Hi Riccardo On Wed, Jun 6, 2012, at 12:01 PM, Riccardo Mottola wrote: > This works perfectly with gcc again. So freebsd 8.2 is perfect as is > linux. With clang 3.1 however I get: > configure:3536: checking for PDFKit > configure:3552: /usr/local/bin/clang -o conftest -xobjective-c -MMD -MP > -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing > -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -pthread -fPIC > -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -g -O2 -fgnu-runtime -I. > -I/usr/local/include -I/home/multix/GNUstep/Library/Headers > -I/Local/Library/Headers -I/System/Library/Headers -rdynamic -pthread > -shared-libgcc -fexceptions -fgnu-runtime > -L/home/multix/GNUstep/Library/Libraries -L/Local/Library/Libraries > -L/System/Library/Libraries -L/usr/local/lib -lobjc -lm conftest.c > -lPDFKit >&5 > clang: warning: argument unused during compilation: '-shared-libgcc' > /Local/Library/Libraries/libPDFKit.so: undefined reference to > `GSCurrentContext' > (snip)
Try adding a -lstdc++ to the linking stage - clang doesn't pass this explicitly when mixing C/C++. You also seem to be missing a -lgnustep-base (through $(FND_LIB) on the link line IIRC). This looks like you may need to dig into the configure.ac to make sure its included :-( Regards Chris -- Christopher Armstrong carmstrong ^^AT^ fastmail dOT com /Dot/ au _______________________________________________ Discuss-gnustep mailing list Discuss-gnustep@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnustep