[Devel] [ openser-Bugs-1620116 ] Perl module fails to compile on
AMD64
SourceForge.net
noreply at sourceforge.net
Thu Dec 21 15:57:52 CET 2006
Bugs item #1620116, was opened at 2006-12-21 08:06
Message generated for change (Comment added) made by goestelecom
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1620116&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver devel
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Norman Brandinger (goestelecom)
Assigned to: Nobody/Anonymous (nobody)
Summary: Perl module fails to compile on AMD64
Initial Comment:
The following compile error is produced on a standard AMD64 (debian/etch) system:
Linking perl.so
gcc -shared -Wl,-O2 -Wl,-E openserxs.o perl.o perlfunc.o -ldl -lresolv `perl -MExtUtils::Embed -e ldopts` -o perl.so
/usr/bin/ld: openserxs.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
openserxs.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [perl.so] Error 1
The compile problem can be avoided by adding the -fPIC parameter to the modules/perl/Makefile as shown below:
openserxs.o: openserxs.c openserxs.d
$(CC) $(DEFS) -fPIC -c -o openserxs.o openserxs.c
This may not be the most elegant solution. Someone with more wisdom about Make might want to propose an alternate to forcing -fPIC for everyone.
Regards,
Norm
----------------------------------------------------------------------
>Comment By: Norman Brandinger (goestelecom)
Date: 2006-12-21 09:57
Message:
Logged In: YES
user_id=1372252
Originator: YES
Ticket closed/fixed
----------------------------------------------------------------------
Comment By: Norman Brandinger (goestelecom)
Date: 2006-12-21 09:45
Message:
Logged In: YES
user_id=1372252
Originator: YES
Your change fixed the compile problem.
Thank you.
Norm
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2006-12-21 09:31
Message:
Logged In: NO
Hi,
thank you for your submission.
I corrected the Makefile to use the correct CFLAGS for the file. Tell me
if you can now correctly compile the module.
We could even completely eliminate the manual cc call; a number of
warnings is produced, then, though.
Regards,
Bastian
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1620116&group_id=139143
More information about the Devel
mailing list