in reply to Re: Installing Lingua::LinkParser
in thread Installing Lingua::LinkParser

Hi, Thank you very much for the response. Now, I could get lots of error messages:
AutoSplitting blib/lib/Lingua/LinkParser/Simple.pm (blib/lib/auto/Ling +ua/LinkParser/Simple) /usr/bin/perl /usr/local/share/perl/5.10.0/ExtUtils/xsubpp -typemap / +usr/share/perl/5.10/ExtUtils/typemap -typemap typemap LinkParser.xs +> LinkParser.xsc && mv LinkParser.xsc LinkParser.c Please specify prototyping behavior for LinkParser.xs (see perlxs manu +al) cc -c -I/home/aktest/link-4.1b/ -D_REENTRANT -D_GNU_SOURCE -DDEBIAN - +fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D +_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.14\" -DXS_VERSION=\"1.14\ +" -fPIC "-I/usr/lib/perl/5.10/CORE" -DDICTIONARY_DIR=\".\" LinkParse +r.c LinkParser.xs:5:27: error: link-includes.h: No such file or directory LinkParser.c: In function ‘XS_Lingua__LinkParser_dictionary_create_lan +g’: LinkParser.c:124: error: ‘Dictionary’ undeclared (first use in this fu +nction) LinkParser.c:124: error: (Each undeclared identifier is reported only +once LinkParser.c:124: error: for each function it appears in.) .....
I have searched for those errors and referred to incorrect link-grammar installations. I have installed link-grammar required for this module in /home/aktest/link-4.1b. Is there anything I am missing obvious ?

Replies are listed 'Best First'.
Re^3: Installing Lingua::LinkParser
by syphilis (Archbishop) on Apr 13, 2010 at 06:44 UTC
    The immediate problem is simply that link-includes.h can't be found.
    Where is that file located ? I'm guessing it's part of "the Link Parser package" referred to in the Readme. And it looks like that package is a C library that you need to first compile and install before Lingua::LinkParser can be built.

    Was there mention during the "perl Makefile.PL" stage of some libraries that could not be found ? (These would also probably be locatable once "the Link Parser package" has been installed. See the "Requirements" and "Installation" section of the above-mentioned Readme.)

    You'll need to either run 'make clean' or start from a freshly unpacked source before trying again to build Lingu::LinkParser.

    Cheers,
    Rob
      Thanks Rob. You're right, Link-Grammar is a C library. I have installed it locally. I modified the include location in Makefile.PL as per your suggestion and the number of errors reduced significantly. I am not sure if this error has to do with link-grammar.
      /usr/lib/perl/5.10/CORE/perl.h:3770:1: warning: this is the location o +f the previous definition LinkParser.c:47:5: error: macro "assert" requires 2 arguments, but onl +y 1 given LinkParser.c: In function ‘S_croak_xs_usage’: LinkParser.c:47: error: ‘assert’ undeclared (first use in this functio +n) LinkParser.c:47: error: (Each undeclared identifier is reported only o +nce LinkParser.c:47: error: for each function it appears in.) LinkParser.c:47:5: error: macro "assert" requires 2 arguments, but onl +y 1 given LinkParser.c: In function ‘XS_Lingua__LinkParser_dictionary_create_lan +g’: LinkParser.c:126: warning: assignment makes pointer from integer witho +ut a cast LinkParser.c: In function ‘XS_Lingua__LinkParser_dictionary_create_def +ault_lang’: LinkParser.c:147: warning: assignment makes pointer from integer witho +ut a cast LinkParser.xs: In function ‘XS_Lingua__LinkParser_call_linkage_get_lin +k_domain_names’: LinkParser.xs:89: warning: assignment from incompatible pointer type LinkParser.c: In function ‘XS_Lingua__LinkParser_linkage_get_link_doma +in_names’: LinkParser.c:469: warning: assignment from incompatible pointer type LinkParser.xs: In function ‘XS_Lingua__LinkParser_call_linkage_get_wor +ds’: LinkParser.xs:166: warning: assignment from incompatible pointer type LinkParser.c: In function ‘XS_Lingua__LinkParser_linkage_get_words’: LinkParser.c:950: warning: assignment from incompatible pointer type LinkParser.c: In function ‘XS_Lingua__LinkParser_linkage_post_process’ +: LinkParser.c:1114: warning: passing argument 2 of ‘linkage_post_proces +s’ from incompatible pointer type LinkParser.c: In function ‘XS_Lingua__LinkParser_post_process_close’: LinkParser.c:2881: warning: passing argument 1 of ‘post_process_close’ + from incompatible pointer type LinkParser.c: In function ‘XS_Lingua__LinkParser_post_process_open’: LinkParser.c:2901: error: too few arguments to function ‘post_process_ +open’ LinkParser.c: In function ‘XS_Lingua__LinkParser_linkage_constituent_n +ode_get_label’: LinkParser.c:3285: warning: assignment makes pointer from integer with +out a cast LinkParser.c: In function ‘XS_Lingua__LinkParser_linkage_constituent_n +ode_get_child’: LinkParser.c:3315: warning: assignment makes pointer from integer with +out a cast LinkParser.c: In function ‘XS_Lingua__LinkParser_linkage_constituent_n +ode_get_next’: LinkParser.c:3346: warning: assignment makes pointer from integer with +out a cast make: *** [LinkParser.o] Error 1
        As Anonymous Monk has suggested, can you show us what comes before the warnings/errors you've just posted.

        Are you using the same compiler to build Lingua::LinkParser that built your perl ?

        Cheers,
        Rob
        The interesting errors are before that.