[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Xpdf and linking problems
From: |
Sebastian Reitenbach |
Subject: |
Re: Xpdf and linking problems |
Date: |
Sat, 02 Jun 2012 08:53:31 +0200 |
User-agent: |
SOGoMail 1.3.15 |
On Saturday, June 2, 2012 00:13 CEST, Riccardo Mottola
<riccardo.mottola@libero.it> wrote:
> 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?
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...
Sebastian
>
> 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
> Discuss-gnustep@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep