vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| > Is there a reason there's no version of libevent installed with PIC, or is > an oversight? I'm on an AMD64 (3.7) trying to build a Perl module which > wraps libevent and it don't work; > > $ make > cp lib/Event/Lib.pm blib/lib/Event/Lib.pm > /usr/bin/perl /usr/libdata/perl5/ExtUtils/xsubpp -typemap /usr/libdata/perl5/ExtUtils/typemap -typemap typemap Lib.xs > Lib.xsc && mv Lib.xsc Lib.c > cc -c -fno-strict-aliasing -fno-delete-null-pointer-checks -pipe -I/usr/local/include -O2 -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" -DPIC -fPIC "-I/usr/libdata/perl5/amd64-openbsd/5.8.6/CORE" -DHAVE_CONFIG_H Lib.c > Running Mkbootstrap for Event::Lib () > chmod 644 Lib.bs > rm -f blib/arch/auto/Event/Lib/Lib.so > LD_RUN_PATH="" cc -shared -fPIC Lib.o -o blib/arch/auto/Event/Lib/Lib.so -levent -lm > /usr/bin/ld: /usr/lib/libevent.a(event.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC > /usr/lib/libevent.a: could not read symbols: Bad value > collect2: ld returned 1 exit status > *** Error code 1 > > Stop in /usr/local/src/Event-Lib-0.09 (line 451 of Makefile). It is a 31K library. If you made it into a PIC library, it would use at least 5x as much address space. And PIC libraries are slower. So what's the point? |