discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xpdf and linking problems


From: Riccardo Mottola
Subject: Re: Xpdf and linking problems
Date: Wed, 06 Jun 2012 01:34:22 +0200
User-agent: Mozilla/5.0 (X11; FreeBSD i386; rv:12.0) Gecko/20120430 Firefox/12.0 SeaMonkey/2.9

David Chisnall wrote:
On 2 Jun 2012, at 07:53, Sebastian Reitenbach wrote:

shortly after sending my mail, I've seen this in the GNUmakefile.in of
PDFKit:

# Use C++ to link library (this won't work if g++ is not the obj-c compiler!)
#CC=@CXX@

Don't know what the problem is, what the comment describes, and
why the following line is commented out...
It sounds like this line should be:

LD=${CXX}

David

-- Sent from my Difference Engine
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' /Local/Library/Libraries/libPDFKit.so: undefined reference to `operator new[](unsigned int)' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSColor' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSString' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSLock' /Local/Library/Libraries/libPDFKit.so: undefined reference to `operator delete[](void*)' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSBundle' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSAssertionHandler' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSMutableArray' /Local/Library/Libraries/libPDFKit.so: undefined reference to `operator delete(void*)' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSObject' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__cxa_pure_virtual' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSBitmapImageRep' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSFileManager'
/Local/Library/Libraries/libPDFKit.so: undefined reference to `NSLog'
/Local/Library/Libraries/libPDFKit.so: undefined reference to `__gxx_personality_v0' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSMutableDictionary' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSArray' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSMutableString' /Local/Library/Libraries/libPDFKit.so: undefined reference to `vtable for __cxxabiv1::__class_type_info' /Local/Library/Libraries/libPDFKit.so: undefined reference to `NSCalibratedRGBColorSpace' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSGraphicsContext' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSAutoreleasePool' /Local/Library/Libraries/libPDFKit.so: undefined reference to `operator new(unsigned int)' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSImageRep' /Local/Library/Libraries/libPDFKit.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info' /Local/Library/Libraries/libPDFKit.so: undefined reference to `std::terminate()' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__objc_class_name_NSView' clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:3552: $? = 1

I wonder? The same thing with gcc works... I set both CC to CXX to /usr/local/bin/clang and I checked "LD" is the same of CXX.

Riccardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]