shailendra201 / oscats

Automatically exported from code.google.com/p/oscats
Other
0 stars 0 forks source link

Perl binding compilation error #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm having problem to compile the Perl binding. I have found out that the 
Build.PL.in requires "GLib" instead of "Glib" (fix in the attached patch). Even 
if I fix this error, the compilation of the binding doesn't work:

Building oscats
x86_64-pc-linux-gnu-gcc -I../../src/liboscats 
-I/usr/lib64/perl5/vendor_perl/5.12.4/x86_64-linux-thread-multi/Glib/Install 
-I/usr/lib64/perl5/5.12.4/x86_64-linux-thread-multi/CORE -DXS_VERSION="0.6" 
-DVERSION="0.6" -fPIC -pthread -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include -I/usr/include -g -O2 -c -D_REENTRANT 
-D_GNU_SOURCE -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -march=native -O2 -pipe -o lib/oscats.o lib/oscats.c
lib/oscats.xs: In function ‘boot_oscats’:
lib/oscats.xs:115:3: warning: passing argument 2 of 
‘gperl_register_sink_func’ from incompatible pointer type
/usr/lib64/perl5/vendor_perl/5.12.4/x86_64-linux-thread-multi/Glib/Install/gperl
.h:185:6: note: expected ‘GPerlObjectSinkFunc’ but argument is of type 
‘void * (*)(void *)’
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/oscats/oscats.bs')
x86_64-pc-linux-gnu-gcc -shared -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed 
-o blib/arch/auto/oscats/oscats.so lib/oscats.o 
-L/usr/lib64/perl5/vendor_perl/5.12.4/x86_64-linux-thread-multi/auto/Glib 
-lGlib -L../../src/liboscats/.libs -loscats -pthread -lgobject-2.0 
-lgthread-2.0 -lrt -lglib-2.0 -L/usr/lib64 -lgsl -lgslcblas -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld: 
cannot find -lGlib
collect2: ld returned 1 exit status
error building blib/arch/auto/oscats/oscats.so from lib/oscats.o at 
/usr/lib64/perl5/vendor_perl/5.12.4/ExtUtils/CBuilder/Base.pm line 244.
make[2]: *** [blib/arch/auto/oscats/oscats.bundle] Error 2
make[2]: Leaving directory `/home/user/oscats-0.6/bindings/perl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/oscats-0.6/bindings'
make: *** [all-recursive] Error 1

In order to compile liboscats I had to apply the patch from the Issue 5 - 
commend 3 (http://code.google.com/p/oscats/issues/detail?id=5#c3).

Any advice is more than welcome.

Original issue reported on code.google.com by jiri....@gmail.com on 2 Sep 2012 at 11:03