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
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep