Unix Technical Forum

libevent and PIC

This is a discussion on libevent and PIC within the lucky.openbsd.tech forums, part of the OpenBSD category; --> Is there a reason there's no version of libevent installed with PIC, or is an oversight? I'm on an ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 11:51 AM
William Ahern
 
Posts: n/a
Default libevent and PIC

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).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:16 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com