I am forwarding message from M.White, which was not submitted automatically
because sender was not list member. However he has subscribed but haven't
send the message again. It is rather interesting, so I have forwarded it.

Forwarded message start
From: "M. White" <MWHITE15@woh.rr.com>
To: pdfedit-support@lists.sourceforge.net
Date: Sat, 24 Feb 2007 16:04:46 -0500
Subject: Problem compiling pdfedit-0.2.5 on OS-X

I am having a problem getting pdfedit to compile.  I am trying to
compile using gcc-4.0 and g++-4.0.  Most of the necessary
dependencies were ported using darwinports - ie. qt3, boost and are
located under /opt/local.  My command for configure is:

  ./configure --prefix=/opt/local --exec-prefix=/opt/local

and in the output, it looks like everything is okay, except perhaps
for items highlighted below:
 checking for stdbool.h that conforms to C99... yes
 > checking for _Bool... no
 checking for an ANSI C-conforming const... yes
 checking for inline... inline
 checking for size_t... yes
 checking whether struct tm is in sys/time.h or time.h... time.h
 > checking for error_at_line... no
 checking for stdlib.h... (cached) yes
 checking for GNU libc compatible malloc... yes
 > checking whether lstat dereferences a symlink specified with a
trailing slash... no
 > checking whether stat accepts an empty string... no
 checking for strftime... yes
and a warning message:
 config.status: WARNING:  config.pro.in.in seems to ignore the --
datarootdir setting

When I execute make, I get the warning:

 configure: WARNING: Couldn't find Motif
 configure: WARNING: -- You will be able to compile pdftops, pdftotext,
        pdfinfo, pdffonts, and pdfimages, but not xpdf or pdftoppm

which I am not sure how to fix. (I have installed openmotif and
Motif.tmpl and Motif.rules is located in /usr/X11R6/lib/X11/config.
I have also installed xpdf - and am hopeful that I will be able to
continue with just this.)

The following archived libraries are made okay:

The problem appears to be when it gets to the kernel:

cd kernel && /opt/local/lib/qt3/bin/qmake && make staticlib
g++-4.0 -c -pipe -Wall -W -g -W -Wall -Wconversion -Wwrite-strings -
ansi -pedantic -Wno-unused-variable -O0 -Wunused-function -Wwrite-
strings -Wunused-macros -static  -D__DARWIN_X11__ -DDEBUG -I/opt/
local/lib/qt3/mkspecs/default -I. -I.. -I../utils -I../xpdf -I../xpdf/
xpdf -I../xpdf/goo -I../xpdf/splash -I../xpdf/fofi -I../../../../
include/qt3 -o .obj/modecontroller.o modecontroller.cc
{standard input}:5518:FATAL:incompatible feature used:
directive .non_lazy_symbol_pointer (must specify "-dynamic" to be used)

I have not run across this sort of error before, and am not exactly
sure how to fix it.  I am guessing that this being a library called
staticlib, that the "-dynamic" would not solve the problem.  Any
ideas would be appreciated.


  - M.
Forwarded message end

Best regards
Michal Hocko