Hi,

I fixed several details in the PDFKit/xpdf build system (currently available in GAP and used for example by GWorkspace by its inspector).

It contained several hacks which made it compile on linux+gcc, but not well on other systems or compilers. I fixed some places which forced the "C" compiler to be g++ (I suppose for linking purposes) which prevented building with clang and cleaned up some of the cflags and ldflags.

I still can build fine and use it on linux/x86 and on freebsd8/gcc. With freeBSD9 it builds (but displays white pages). On NetBSD and OpenBSD however it builds, but it fails to be used by the gworkspace configure script. I think that either some option is not working or that gnustep-make has problems when linking objective-c and C++ file? I suppose that when OBJC, CC files are mixed, our make system will do the right thing...

The symbols appear to be C++ symbols, or not?

Ideas/suggestions/patches welcome.

Riccardo


From NetBSD:

configure:3536: checking for PDFKit
configure:3552: gcc -o conftest -xobjective-c -MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -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 -fconstant-string-class=NSConstantString -I/Local/Library/Headers/ObjectiveC2 -fexec-charset=UTF-8 -I/usr/pkg/include -I. -I/usr/pkg/include -I/home/multix/GNUstep/Library/Headers -I/Local/Library/Headers -I/System/Library/Headers -rdynamic -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -pthread -shared-libgcc -fexceptions -fgnu-runtime -L/home/multix/GNUstep/Library/Libraries -L/Local/Library/Libraries -L/System/Library/Libraries -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lgnustep-gui -lgnustep-base -lpthread -lobjc -lm conftest.c -lPDFKit >&5 /Local/Library/Libraries/libPDFKit.so: warning: warning: tmpnam() possibly used unsafely, use mkstemp() or mkdtemp() /Local/Library/Libraries/libPDFKit.so: undefined reference to `operator new[](unsigned int)' /Local/Library/Libraries/libPDFKit.so: undefined reference to `operator delete[](void*)' /Local/Library/Libraries/libPDFKit.so: undefined reference to `operator delete(void*)' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__cxa_pure_virtual' /Local/Library/Libraries/libPDFKit.so: undefined reference to `__gxx_personality_v0' /Local/Library/Libraries/libPDFKit.so: undefined reference to `vtable for __cxxabiv1::__class_type_info' /Local/Library/Libraries/libPDFKit.so: undefined reference to `operator new(unsigned int)' /Local/Library/Libraries/libPDFKit.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
c

_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to