lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> ---- Error Message:
> 
> dhcppc1:/usr/local/lpeg-0.7 # make
> gcc -O2 -DNDEBUG -Wall -Wextra -pedantic -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wwrite-strings -Wcast-qual -ansi -I../lua -shared -o lpeg.so lpeg.c
> lpeg.c: In function ‘printinst’:
> lpeg.c:262: warning: format ‘%02d’ expects type ‘int’, but argument 2 has type ‘long int’
> lpeg.c:270: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’
> lpeg.c:279: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’
> lpeg.c:298: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’
> lpeg.c:306: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’
> lpeg.c:311: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’
> lpeg.c: At top level:
> lpeg.c:330: warning: ‘printcap’ defined but not used

These warnings are all related to debug information. If you do not print
patterns, you can just ignore them. (BTW, does 'long' in your machine have
64 bits?)


> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: /tmp/cccqktSm.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
> /tmp/cccqktSm.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make: *** [lpeg.so] Error 1                        

I guess you should add the '-fPIC' option to the makefile...

-- Roberto