[CM] Grace, s7 linking on fedora

James Hearon j_hearon at hotmail.com
Thu Aug 15 11:06:16 PDT 2013


re: Grace, Beta4 on f19

s7.c
cc -ldl -lpthread -MMD -MP -DHAVE_SCHEME=1 -Isrc -Isndlib   -MMD -MP -DWITH_AUDIO -DHAVE_SCHEME -DHAVE_PREMAKE -DHAVE_ALSA -DSIZEOF_VOID_P=4 -DHAVE_CONFIG_H=1 -DDEBUG -I.  -g -o "obj/Debug/s7.o" -MF obj/Debug/s7.d -c "s7.c"
Linking sndlib
ar -rcs lib/libsndlib.a obj/Debug/headers.o obj/Debug/audio.o obj/Debug/io.o obj/Debug/sound.o obj/Debug/xen.o obj/Debug/vct.o obj/Debug/clm.o obj/Debug/sndlib2xen.o obj/Debug/clm2xen.o obj/Debug/s7.o 
s7.cpp
Linking s7
/usr/bin/ld: sndlib/lib/libsndlib.a(s7.o): undefined reference to symbol 'dlopen@@GLIBC_2.1'
/usr/bin/ld: note: 'dlopen@@GLIBC_2.1' is defined in DSO /lib/libdl.so.2 so try adding it to the linker command line
/lib/libdl.so.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [bin/s7] Error 1
make: *** [s7] Error 2


Still scratching my head about this error...
undefined reference to symbol 'dlopen@@GLIBC_2.1'

I did: $ CFLAGS='-ldl -lpthread' ./premake4 --with-oscpack

also

$ CFLAGS='-ldl -lpthread' make

and cc above shows ldl and pthread added to the linker command line, but still get the error.

Must be something else.  Odd thing is I can build the standalone src sndlib tarball just fine using ./configure --with-audio, --with-alsa, --with-s7.

Regards,
Jim
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ccrma-mail.stanford.edu/mailman/private/cmdist/attachments/20130815/7003ded5/attachment.html 


More information about the Cmdist mailing list