Patches item #1910718, was opened at 2008-03-09 18:55 Message generated for change (Comment added) made by eighthave You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1910718...
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: externals
Group: bugfix Status: Pending Resolution: Fixed
Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody)
Assigned to: Hans-Christoph Steiner (eighthave)
Summary: Error compiling OSCx on x86_64
Initial Comment: I am trying to compiling pd-extended and I got an error for the OSCx. I am running Gentoo 64bits.
.....
make -C /home/mysthr2/logiciels/musique/pure-data/externals/OSCx make[3]: entrant dans le répertoire « /home/mysthr2/logiciels/musique/pure-data/externals/OSCx » cd libOSC && make make[4]: entrant dans le répertoire « /home/mysthr2/logiciels/musique/pure-data/externals/OSCx/libOSC » make[4]: Rien à faire pour « all ». make[4]: quittant le répertoire « /home/mysthr2/logiciels/musique/pure-data/externals/OSCx/libOSC » cd src && make make[4]: entrant dans le répertoire « /home/mysthr2/logiciels/musique/pure-data/externals/OSCx/src » cc -Wl,-export_dynamic -shared -o sendOSC.pd_linux sendOSC.o htmsocket.o OSC-system-dependent.o -L../../../pd/bin -lpd -lc -lm ../libOSC/libOSC.a /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpd collect2: ld a retourné 1 code d'état d'exécution make[4]: *** [sendOSC.pd_linux] Erreur 1 make[4]: quittant le répertoire « /home/mysthr2/logiciels/musique/pure-data/externals/OSCx/src » make[3]: *** [all] Erreur 2 make[3]: quittant le répertoire « /home/mysthr2/logiciels/musique/pure-data/externals/OSCx » make[2]: *** [/home/mysthr2/logiciels/musique/pure-data/externals/OSCx/src/OSCroute.pd_linux] Erreur 2 make[2]: quittant le répertoire « /home/mysthr2/logiciels/musique/pure-data/externals » make[1]: *** [externals_install] Erreur 2 make[1]: quittant le répertoire « /home/mysthr2/logiciels/musique/pure-data/packages » make: *** [install] Erreur 2
finally I succeeded deleting the "-lpd" flag in the makefile. from : /pure-data/externals/OSCx/src/Makefile
Hope this would help.
Mysth-R mysthr21 ..At.. gmail ..dot.. com
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave)
Date: 2008-03-11 19:33
Message: Logged In: YES user_id=27104 Originator: NO
added -fPIC and changed wildcard to support 64-bit builds on GNU/Linux with the same section as the 32-bit builds. Let's hope that -fPIC doesn't break things on 32-bit :) But I'd like to keep the complexity down.
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave) Date: 2008-03-11 13:02
Message: Logged In: YES user_id=27104 Originator: NO
What happens if you just change it so that the x86 target works for both? It seems that the code in the if statements is the same. E.g., change this:
*86-*-linux*)
to this:
*86*-linux*)
Then that should work for both x86 and x86_64.
----------------------------------------------------------------------
Comment By: Peter Brinkmann (pbrinkmann) Date: 2008-03-11 12:23
Message: Logged In: YES user_id=2033041 Originator: NO
Hi! I was able to compile OSCx on my 64-bit machine (FC6 with Planet CCRMA) with the following change to configure.ac:
svn diff configure.ac Index: configure.ac =================================================================== --- configure.ac (revision 9531) +++ configure.ac (working copy) @@ -77,6 +77,13 @@ esac else case $host in + *86_64-*-linux*) + CFLAGS="$CFLAGS -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O2 -fPIC" + LDFLAGS="-Wl,-export_dynamic -shared" + dnl we could test for bad glibc here, but don't + pd_suffix=pd_linux + LIBS="-lc -lm" + ;; *86-*-linux*) CFLAGS="$CFLAGS -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -O2" LDFLAGS="-Wl,-export_dynamic -shared"
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1910718...