Csound Csound-dev Csound-tekno Search About

[Csnd] Trouble compiling git csound5 sources

Date2012-05-28 02:59
FromForrest Cahoon
Subject[Csnd] Trouble compiling git csound5 sources
Hey, I can compile the csound5 sources out of git using scons if I
have very minimal build options selected, but once I add useFLTK=1 I
get a build failure I can't figure out.

The error is this:

gcc -o lpanal -Wl,-Bdynamic -Wl,-Bdynamic util/lpc_main.o -L. -L.
-L/usr/local/lib -L. -L. -L/home/forrest/src/mpadec/libmpadec
-lsndfile -lpthread -lpthread -lgomp -lm -lasound libcsound64.so.5.2
-lsndfile -ldl -lpthread -lm
/usr/bin/ld: InOut/FL_graph.os: relocation R_X86_64_PC32 against
symbol `_Z9do_redrawP9Fl_WidgetPv' can not be used when making a
shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
scons: *** [libwidgets.so] Error 1
scons: building terminated because of errors.

Which is weird, because if it's telling me that InOut/FL_graph.os
should've been compiled with -fPIC, my logs show it was:

g++ -o InOut/FL_graph.os -c -Wno-format -Wno-format -DGNU_GETTEXT -g
-fomit-frame-pointer -freorder-blocks -fPIC -DLINUX -DPIPES
-DNO_FLTK_THREADS -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Wformat-security -Werror=format-security -fPIE -pie -fPIC
-DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DBETA -DUSE_DOUBLE -DHAVE_SOCKETS
-DHAVE_PTHREAD_SPIN_LOCK -DHAVE_PTHREAD_BARRIER_INIT
-DHAVE_SYNC_LOCK_TEST_AND_SET -DHAVE_FCNTL_H -DHAVE_UNISTD_H
-DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H
-DHAVE_VALUES_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -D_THREAD_SAFE
-D_REENTRANT -I. -IH -I/usr/lib/jvm/java-6-openjdk-amd64/include
-I/usr/lib/jvm/java-6-openjdk-amd64/include/linux
-I/home/forrest/src/mpadec/include -I/usr/local/include -I/usr/include
-I/usr/X11R6/include -I/usr/include/freetype2 InOut/FL_graph.cpp

The name R_X86_64_PC32 sounds like something about 32 bit vs 64 bit
code, but AFAIK everything I have is compiled for native 64 bits.

Does anyone have a clue what might be up here?  This is debian
unstable running on x86_64.

Forrest