discuss-gnustep
[Top][All Lists]
Advanced

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

Xpdf and linking problems


From: Riccardo Mottola
Subject: Xpdf and linking problems
Date: Sat, 02 Jun 2012 00:13:41 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.4) Gecko/20120517 Firefox/10.0.4 Iceape/2.7.4

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



reply via email to

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