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
|