PDFedit Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000191 [PDFedit] Compilation block always 12-13-07 22:45 08-28-09 05:53
Reporter DanP View Status public  
Assigned To hockm0bm
Priority normal Resolution won't fix  
Status confirmed   Product Version 0.3.2
Summary 0000191: Compilation halts, -static spec'd when lazy_symbol_pointer selected
Description Compilation halts with following message:

...
g++ -c -pipe -Wall -W -Wconversion -Wcast-qual -Wwrite-strings -ansi -pedantic -Wno-unused-variable -Wunused-function -D_REENTRANT -DNDEBUG -O2 -I./ -I../ -I../xpdf/ -I../xpdf/xpdf -I../xpdf/goo -I../xpdf/splash -I../xpdf/fofi -o confparser.o confparser.cc
ar cqs libutils.a debug.o delinearizator.o confparser.o
cd kernel && /usr/local/QT3/bin/qmake && make staticlib
c++ -c -pipe -O2 -DNDEBUG -fexceptions -static -Wall -W -Os -I/usr/local/QT3/mkspecs/default -I. -I.. -I../utils -I../xpdf -I../xpdf/xpdf -I../xpdf/goo -I../xpdf/splash -I../xpdf/fofi -o .obj/modecontroller.o modecontroller.cc
{standard input}:2380:FATAL:incompatible feature used: directive .non_lazy_symbol_pointer (must specify "-dynamic" to be used)
make[2]: *** [.obj/modecontroller.o] Error 1
make[1]: *** [kernel] Error 2
make: *** [src] Error 2
Additional Information
Attached Files  unified_makefiles_v3.1.tar.gz [^] (118,190 bytes) 12-16-07 19:08
 config.log [^] (40,652 bytes) 12-16-07 20:20
 config.logApplegcc [^] (41,160 bytes) 12-16-07 20:25
 Makefile [^] (3,085 bytes) 12-16-07 20:59
 configure [^] (330,011 bytes) 12-18-07 16:58

- Relationships

- Notes
(0000222)
hockm0bm
12-14-07 11:52

This is interesting. Which platform do you have?
We have never encountered this problem.
Anyway I am currently working on the new makefiles scheme and -static will be removed there. I think that it should be ready next week. Could you help to test it then?
 
(0000223)
DanP
12-14-07 12:28

Mac OS X 10.4.11 intel MacBook
gcc build 4.2.2 + Apple's gcc 4.0.1 (boost's build stuff got all confused and sick when I tried to use my own gcc build).

I will note Qt3 is a bit flaky (builds OK -- some of the demos won't work, which worries me). They don't have a "make test" set up in their code.

Dan
 
(0000224)
DanP
12-14-07 22:28

Yes, I will be happy to try out your new makefile config...

Dan
 
(0000225)
hockm0bm
12-16-07 19:16

Could you try unified_makefiles_v3.1.tar.gz on top of the current CVS state?

To patch simply
cat *.patch | patch -p1 in the pdfedit top level directory

It would be fine to test:
./configure --disable-doxygen-doc # doxygen is not checked
./configure # This should fail if you don't have doxygen
./configure --enable-kernel-tests # This should fail if you don't have CPPunit

Note that you still have to have boost, boost-iostreams and freetype2 libraries. Type1 fonts are also recommended. It would be fine to have config logs from all runs.

Thanks in advance
 
(0000226)
DanP
12-16-07 19:39

cvs -z3 -d:pserver:anonymous@pdfedit.cvs.sourceforge.net:/cvsroot/pdfedit co -P unified_makefiles_v3.1.tar.gz
cvs server: cannot find module `unified_makefiles_v3.1.tar.gz' - ignored
cvs [checkout aborted]: cannot expand modules
platt@wildebeest:/Users/platt/install/PDFEditor/cvsDownload $
 
(0000227)
hockm0bm
12-16-07 20:02

unified_makefiles_v3.1.tar.gz is not in CVS.

get current CVS tree:
cvs -z3 -d:pserver:anonymous@pdfedit.cvs.sourceforge.net:/cvsroot/pdfedit co pdfedit

download patch set from http://pdfedit.petricek.net/bt/file_download.php?file_id=24&type=bug [^]
 
(0000228)
DanP
12-16-07 20:18

I have grabbed the cvs directory, and downloaded your patches and applied them.

The first config.log is the one using

gcc --version
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

It produced the following message

g++ -c -O2 -Wall -W -Wall -Wconversion -Wwrite-strings -Wno-unused-variable -Wunused-function -Wwrite-strings -Wunused-macros -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-aliasing -fexceptions -pipe -I. -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf/ -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf/xpdf/ -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf/goo -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf/splash -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf/fofi -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -o GHash.o GHash.cc
cc1plus: error: unrecognized command line option "-fstack-protector"
make[3]: *** [GHash.o] Error 1
make[2]: *** [libxpdf] Error 2
make[1]: *** [xpdf] Error 2
make: *** [source] Error 2

I will submit the log and compilation error message for my gcc ver 4.2.2 build in the next note.

Dan
 
(0000229)
DanP
12-16-07 20:23

OK -- the 1st config.log that got uploaded was the one generated using

gcc --version
gcc (GCC) 4.2.2
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


The error message on that build is:

ar cq libqoutputdevices.a QOutputDevPixmap.o QOutputDev.o
ranlib -s libqoutputdevices.a
cd /Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/qsa && ./configure "/usr/local/QT3/bin/qmake" "yes"
Building second stage2 configure
dyld: Library not loaded: libqt.3.dylib
  Referenced from: /Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/qsa/configure2/configure2
  Reason: image not found
./configure: line 26: 5903 Trace/BPT trap configure2/configure2 -qmake "$QMAKE" $BUILD "$@"
make[1]: *** [/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/qsa/Makefile.qsa] Error 1
make: *** [source] Error 2


My next upload is the config.log generated when I build with Apple's gcc.

Dan
 
(0000230)
DanP
12-16-07 20:26

Do you want other/more logs? If so, which ones?

Dan
 
(0000231)
hockm0bm
12-16-07 20:46

> Do you want other/more logs? If so, which ones?
I would appreciate that

* Ad stack protector
-fstack-protection has to be updated (I will change it to the --enable-stack-protection option to the configure script). According to the http://en.wikipedia.org/wiki/Stack-smashing_protection#GCC_Stack-Smashing_Protector_.28ProPolice.29 [^]
"It was implemented as a patch to GCC 3.x; a less intrusive reimplementation is included in the GCC 4.1 release. Currently, the 3.x patch is standard in OpenBSD, Ubuntu (since 6.10), DragonFly BSD and the IPCop Linux distribution. It is also available in NetBSD, Debian and Gentoo, disabled by default."

* Ad qsa failure
"dyld: Library not loaded: libqt.3.dylib"
This seems like you don't have libqt.3.dylib installed correctly, or qmake (/usr/local/QT3/bin/qmake) has created not valid Makefile from the project file.
Could you send generated src/qsa/configure2/Makefile?
Could you also look where do you have libqt.3.dylib?


Many thanks
 
(0000232)
DanP
12-16-07 20:58

lf /usr/local/QT3/lib
libdesignercore.a libqt.dylib@ /> libdesignercore.prl libqt.la
libeditor.a libqt.prl
libeditor.prl libqui.1.0.0.dylib*
libqassistantclient.a libqui.1.0.dylib@
libqassistantclient.prl libqui.1.dylib@
libqt.3.3.4.dylib*
libqui.dylib@ /> libqt.3.3.dylib@ libqui.prl
libqt.3.dylib@ pkgconfig/
 
(0000233)
DanP
12-16-07 21:00

The uploaded Makefile came from src/qsa/configure2
 
(0000234)
hockm0bm
12-16-07 21:12

From generated Makefile:
> INCPATH = -I/usr/local/QT3/mkspecs/default -I. -I. -I$(QTDIR)/include
> LINK = c++
> LFLAGS = -headerpad_max_install_names -prebind
> LIBS = $(SUBLIBS) -L$(QTDIR)/lib -lqt

It seems that both include path nad qt library with path are correct. So I don't understand why would configure2 fail during linking stage.

Have you already tried to compile and run some qt application - just to be sure that your environment is ok and we are doing something non standard or platform dependet. Though this peace of code (in fact whole qsa subdir) is from QSA team without any significant changes from our side.
 
(0000235)
DanP
12-16-07 21:24

QT3 build went OK -- as far as the build. If I build QT3 -static, I can run SOME demos; not all of their demos work. Don't know why. If I build with ANY -shared the demos don't work. I also went through the exercise with apple's gcc and my build. I also have Qt4 on my machine -- with THEIR build distributed in a .dmg ;-( . They don't have a .dmg for Qt3 available.

ONE hint -- the -prebind may be a problem. The Qt3 build frequently made comments that prebinding did not occur.

Dan
 
(0000236)
hockm0bm
12-16-07 21:41

It seems that qt is not very easy-goind on Mac OS X. Unfortunately, I don't know this platform very much and I don't have any in touch.
We are working on qt4 integration at the moment, but it can take some time (i am not working on that, so it's hard to assume).

You can also try to force static linkage in all qmake generated make files. Just add
 QMAKE_CXXFLAGS += -static
to all *.pro files.

> ONE hint -- the -prebind may be a problem. The Qt3 build frequently made
> comments that prebinding did not occur.

I don't understand. What is the -prebind and where do we/qt use it?
 
(0000237)
DanP
12-16-07 22:02

It is in the config2/Makefile in the LFLAGS:

#############################################################################
# Makefile for building: configure2
# Generated by qmake (1.07a) (Qt 3.3.4) on: Sun Dec 16 14:22:45 2007
# Project: configure2.pro
# Template: app
# Command: $(QMAKE) -o Makefile configure2.pro
#############################################################################

####### Compiler, tools and options

CC = cc
CXX = c++
LEX = flex
YACC = yacc
CFLAGS = -pipe -Wall -W -Os -DQT_NO_DEBUG -DQT_SHARED -DQT_ACCESSIBILITY_SUPPORT -DQT_TABLET_SUPPORT
CXXFLAGS = -pipe -Wall -W -Os -DQT_NO_DEBUG -DQT_SHARED -DQT_ACCESSIBILITY_SUPPORT -DQT_TABLET_SUPPORT
LEXFLAGS =
YACCFLAGS= -d
INCPATH = -I/usr/local/QT3/mkspecs/default -I. -I. -I$(QTDIR)/include
LINK = c++
LFLAGS = -headerpad_max_install_names -prebind
 
(0000238)
hockm0bm
12-16-07 22:25

Have you seen this: http://trolltech.com/products/qt/qt3/platforms/osx/?searchterm=upgraded [^]

I don't know OS X versioning scheme, but
 
Mac OS X 10.4 "Tiger"

We do not officially support Qt 3.3.4 on Tiger. Qt 3.3.4 will not compile with gcc 4.

Tiger is officially supported starting with Qt 3.3.5.
 
(0000239)
DanP
12-16-07 23:13

I did *NOT* see that. Yes, I am running Tiger!

I will adjust and see if this fixes things.

Dan
 
(0000240)
DanP
12-17-07 00:37

Progress!

OK -- the old .gzip I got from the site still didn't work.

The patched version got MUCH further along, though it seems /usr/local/QT3 was hardwired (the Qt folks recommended installing the new version in /Developer/qt; I made a symlink to /usr/local/QT3).

The resulting compilation yields the following:

ar cq libqsa_pdfedit.a qsproject.o qsinterpreter.o qsobjectfactory.o qswrapperfactory.o qsinputdialogfactory.o qseditor.o qsargument.o qsscript.o qsutilfactory.o quickinterpreter.o quickdebugger.o quickobjects.o quickenv.o quickclassparser.o quickbytearrayobject.o quickpixmapobject.o quickcolorobject.o quickfontobject.o quickcoordobjects.o quickdispatchobject.o qsclass.o qsmember.o qstypes.o qsenv.o qslexer.o grammar.o qsnodes.o qsoperations.o qscheck.o qsengine.o qsobject.o qsfunction.o qslookup.o qsinternal.o qsdebugger.o qsglobal_object.o qsmath_object.o qsbool_object.o qsobject_object.o qserror_object.o qsarray_object.o qsstring_object.o qsnumber_object.o qsdate_object.o qsregexp_object.o qsfuncref.o qsaeditor.o qsacompletion.o qsabrowser.o qsasyntaxhighlighter.o qsaeditorinterface.o editor.o parenmatcher.o completion.o viewmanager.o markerwidget.o conf.o browser.o arghintwidget.o cindent.o yyindent.o preferences.o moc_qsproject.o moc_qsinterpreter.o moc_qseditor.o moc_qsscript.o moc_quickinterpreter.o moc_quickdebugger.o moc_quickobjects.o moc_quickdispatchobject.o moc_qsengine.o moc_qstimeouttrigger.o moc_qsaeditor.o moc_qsacompletion.o moc_qsabrowser.o moc_qsaeditorinterface.o moc_editor.o moc_completion.o moc_viewmanager.o moc_markerwidget.o moc_browser.o moc_arghintwidget.o moc_preferences.o
ranlib: file: libqsa_pdfedit.a(qsfunction.o) has no symbols
ranlib -s libqsa_pdfedit.a
ranlib: file: libqsa_pdfedit.a(qsfunction.o) has no symbols
rm -f ../../lib/libqsa_pdfedit.a
mv -f libqsa_pdfedit.a ../../lib/
cd /Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/gui && /Developer/qt/bin/qmake pdfedit.pro -o Makefile.qt
cd /Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/gui && make -f Makefile.gui pdfedit
make[2]: *** No rule to make target `pdfedit'. Stop.
make[1]: *** [pdfedit] Error 2
make: *** [source] Error 2
 
(0000241)
hockm0bm
12-17-07 10:11

> cd /Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/gui && /Developer/qt/bin/qmake pdfedit.pro -o Makefile.qt
> cd /Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/gui && make -f Makefile.gui pdfedit
> make[2]: *** No rule to make target `pdfedit'. Stop.

Does src/gui/Makefile.qt contain TARGET = pdfedit?
 
(0000242)
DanP
12-17-07 15:20

QMAKE_TARGET = pdfedit
DESTDIR = pdfedit.app/Contents/MacOS/
TARGET = pdfedit.app/Contents/MacOS/pdfedit
 
(0000243)
DanP
12-17-07 15:23

I just tried:

make -f Makefile.gui pdfedit.app/Contents/MacOS/pdfedit
c++ -c -pipe -DQT_CLEAN_NAMESPACE -fexceptions -O2 -Wall -W -Wall -Wconversion -Wwrite-strings -Wno-unused-variable -Wunused-function -Wwrite-strings -Wunused-macros -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-aliasing -fexceptions -pipe -Wall -W -Os -DQT_NO_DEBUG -DQT_SHARED -DQT_ACCESSIBILITY_SUPPORT -DQT_TABLET_SUPPORT -I/Developer/qt/mkspecs/macx-g++ -I. -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/qsa/src/qsa -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/kpdf-kde-3.3.2 -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf/ -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf/xpdf/ -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf/goo -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf/splash -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf/fofi -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -I/Developer/qt/include -I.ui/ -I.moc/ -o .obj/additemdialog.o additemdialog.cc
In file included from /Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/kernel/iproperty.h:15,
                 from additemdialog.h:15,
                 from additemdialog.cc:15:
/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/kernel/static.h:58: error: 'Point' is already declared in this scope
make: *** [.obj/additemdialog.o] Error 1
 
(0000244)
hockm0bm
12-17-07 15:49

> QMAKE_TARGET = pdfedit
> DESTDIR = pdfedit.app/Contents/MacOS/
> TARGET = pdfedit.app/Contents/MacOS/pdfedit

I don't understand. This is the content of src/gui/Makefile.qt?
TARGET should be simple pdfedit, because we refer to it from src Makefile.
 
(0000245)
DanP
12-17-07 15:55

That was a direct copy/paste from Makefile.qt in src/gui/.
 
(0000246)
hockm0bm
12-17-07 16:16

> That was a direct copy/paste from Makefile.qt in src/gui/.

Ok I have fixed that so we are using default target for gui directory where TARGET is created by default.

> In file included from /Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/kernel/iproperty.h:15,
> from additemdialog.h:15,
> from additemdialog.cc:15:
> /Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/kernel/static.h:58: error: 'Point' is already declared in this scope
> make: *** [.obj/additemdialog.o] Error 1

Hmm. Can your compiler give some more verbose information. We don't have this error anywhere else? Where is the first declaration? Why would be multiple declaration a problem (if they are same)?
 
(0000247)
DanP
12-17-07 18:16

Hi,

Well -- I've been doing a few things. 1) I compiled the Qt3 with -static so that I could test the demos. They worked. That produced some of the errors you saw. I took a hint from the static.h that that might be part of the problem. 2) I recomplied Qt3 with default setting (I assume that means shared, no static). Now I get

/Developer/qt/bin/moc -DHAVE_CONFIG_H -DQSDEBUGGER -DQT_INTERNAL_XML -DQT_INTERNAL_WORKSPACE -DQT_INTERNAL_ICONVIEW -DQT_INTERNAL_TABLE -DHAVE_CONFIG_H -DQSDEBUGGER -DQT_NO_DEBUG -I/Developer/qt-mac-free-3.3.8/mkspecs/macx-g++ -I. -I/Developer/qt/include -I../engine -I../../tools/designer/editor -I../kernel -I. -I../engine -I/Developer/qt/tools/designer/interfaces -I. -I. qsinputdialogfactory.cpp -o qsinputdialogfactory.moc
Qt meta object compiler
moc: Invalid argument
Usage: moc [options] <header-file>
        -o file Write output to file rather than stdout
        -f[file] Force #include, optional file name
        -p path Path prefix for included file
        -i Do not generate an #include statement
        -k Do not stop on errors
        -nw Do not display warnings
        -v Display version of moc
make[5]: *** [qsinputdialogfactory.moc] Error 1
make[4]: *** [sub-qsa] Error 2
make[3]: *** [sub-src] Error 2
make[2]: *** [run-make] Error 2
make[1]: *** [qsa] Error 2
make: *** [source] Error 2
 
(0000248)
hockm0bm
12-18-07 14:54

> /Developer/qt/bin/moc -DHAVE_CONFIG_H -DQSDEBUGGER -DQT_INTERNAL_XML -DQT_INTERNAL_WORKSPACE -DQT_INTERNAL_ICONVIEW -DQT_INTERNAL_TABLE -DHAVE_CONFIG_H -DQSDEBUGGER -DQT_NO_DEBUG -I/Developer/qt-mac-free-3.3.8/mkspecs/macx-g++ -I. -I/Developer/qt/include -I../engine -I../../tools/designer/editor -I../kernel -I. -I../engine -I/Developer/qt/tools/designer/interfaces -I. -I. qsinputdialogfactory.cpp -o qsinputdialogfactory.moc
> Qt meta object compiler
> moc: Invalid argument

I don't see any bad parameter there (only some defines, and include paths which should be legal here). Nevertheless, this is generated by qmake. moc parameters list is *very* same like one which I am using.

Hmm it seems that compiling QT on OS X is real pain.
 
(0000249)
DanP
12-18-07 16:07

Qt3 compiled using gcc build with -static gives me working demos this time!!! That part is good.

Compiling pdfEdit (the build set from cvs with patches you sent) gave the second-to-last set of errors (I noticed the static.h file -- which may not have had anything to do with how libraries are linked).

I recompiled Qt3 with dynamic libraries only, and got the errors you saw in this last build.

MY next choice is to re-compile Qt3 with the Apple-modified gcc to see what that produces.

As an outsider, my sense is that pdfEdit's build configuration is sensitive to a lot of configuration specific issues that it does not yet know how to respond to. Likely best to pick some configuration and make *that* work, then require it for other builds until more configurations get cleaned up (looks like they each present different problems :-( ).

One other thing that worries me is that I don't know how clean I get the configuration when I re-run configure -- if it retains bits of previous states around, I'm going to get junk when I want to reconfigure using different compilers/different Qt builds, etc. But all I can do is 'make clean'... Do you know whether old state info is left behind?

So -- my next thing is to try Apple's gcc and see if that looks better.

Dan
 
(0000250)
hockm0bm
12-18-07 16:34

> Qt3 compiled using gcc build with -static gives me working demos this time!!! > That part is good.

> Compiling pdfEdit (the build set from cvs with patches you sent) gave the second-to-last set of errors (I noticed the static.h file -- which may not have had anything to do with how libraries are linked).

static.h is header which collects some commonly used stuff (includes headers and also defines some templates). I am not author of this code, but we have never problems with that (on *BSD, Linux, cygwin platforms it is compilable).

> I recompiled Qt3 with dynamic libraries only, and got the errors you saw in this last build.

> MY next choice is to re-compile Qt3 with the Apple-modified gcc to see what that produces.

Maybe it helps, but it is hard to do any suggestions in this area, where i am absolutely greenhorn.

> As an outsider, my sense is that pdfEdit's build configuration is sensitive to a lot of configuration specific issues that it does not yet know how to respond to.

Of course, platforms are sometimes very different in many ways.

> Likely best to pick some configuration and make *that* work, then require it for other builds until more configurations get cleaned up (looks like they each present different problems :-( ).

If you are talking about configure input, I would start with:
./configure --disable-doxygen --disable-gui # This one compiles everything besides doxygen documentation, gui and kernel test . So you get static library which you can link and use for your purposes. This doesn't use any QT stuff

if above works (it should), then I would try:
./configure --disable-doxygen # This one will try to build everything besides doxygen documentation and kernel tests. This one is interesting for QT testing.

> One other thing that worries me is that I don't know how clean I get the configuration when I re-run configure -- if it retains bits of previous states around, I'm going to get junk when I want to reconfigure using different compilers/different Qt builds, etc. But all I can do is 'make clean'... Do you know whether old state info is left behind?

configure script creates config, Makefile.flags, Makefile, src/utils/config.h, src/xpdf/{*/}Makefile. So it should be safe to rerun configure and recompile certain part of tree (note that you still have to clean that subtree). I would assume make distclean && ./configure from the tree root.

> So -- my next thing is to try Apple's gcc and see if that looks better.

Ok, many thanks for testing. Hopefully we will get it to some working state.
 
(0000251)
DanP
12-18-07 16:37

OK -- using the Apple version of gcc, with default Qt3 build, I get the following:

cd /Users/platt/install/PDFEditor/cvsDownload/pdfedit/src && make
cd /Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf && make libxpdf
cd goo && make
g++ -c -O2 -Wall -W -Wall -Wconversion -Wwrite-strings -Wno-unused-variable -Wunused-function -Wwrite-strings -Wunused-macros -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-aliasing -fexceptions -pipe -I. -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf/ -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf/xpdf/ -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf/goo -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf/splash -I/Users/platt/install/PDFEditor/cvsDownload/pdfedit/src/xpdf/fofi -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -o GHash.o GHash.cc
cc1plus: error: unrecognized command line option "-fstack-protector"
make[3]: *** [GHash.o] Error 1
make[2]: *** [libxpdf] Error 2
make[1]: *** [xpdf] Error 2
make: *** [source] Error 2
 
(0000252)
DanP
12-18-07 16:39

make distclean
make: *** No rule to make target `distclean'. Stop.
 
(0000253)
hockm0bm
12-18-07 16:58

I haven't completed new patch set version yet, but you can use one-off configure which I will upload here. Simply overwrite the one in the tree root and start configure again.

This configure disables -fstack-protector by default and you have to enable it explicitly by --enable-stack-protector configure parameter.
 
(0000254)
hockm0bm
12-18-07 17:00

> make distclean
> make: *** No rule to make target `distclean'. Stop.

I am pretty sure that top level Makefile as well as src/Makefile define distclean rule.
 
(0000255)
DanP
12-18-07 17:21

I recompiled Qt3 using gcc build (seems easiest -- apple's gcc is what I take as the odd one out).

Then I did configure ./configure --disable-doxygen-doc --disable-gui

I am getting yet other issues that look like disable-gui got past/around some other issues -- got to:

Looked for docbook.xsl in:
/usr/local/share/xsl/docbook/html /usr/share/xsl/docbook/html /usr/share/sgml/docbook/xsl-stylesheets*/html /usr/local/share/sgml/docbook/xsl-stylesheets*/html /usr/share/xml/docbook/stylesheet/nwalsh/html /usr/share/docbook-xsl/html
/bin/sh: line 1: docbook2html: command not found
../tools/docbook2html pdfedit.xml ../../src/gui/help/pdfedit.html html || docbook2html -o ../../src/gui/help -u pdfedit.xml 2>&1 >/dev/null || true
XSL stylesheet not found - check if docbook.xsl stylesheet is installed
or modify XSLPATHS in ../tools/docbook2html to point to directory where it is installed
(if installed in non-standard directory)
Looked for docbook.xsl in:
/usr/local/share/xsl/docbook/html /usr/share/xsl/docbook/html /usr/share/sgml/docbook/xsl-stylesheets*/html /usr/local/share/sgml/docbook/xsl-stylesheets*/html /usr/share/xml/docbook/stylesheet/nwalsh/html /usr/share/docbook-xsl/html
/bin/sh: line 1: docbook2html: command not found
cd design && make all_no_pdf
../tools/docbook2html_any design_doc.xml design_doc.html || true
XSL stylesheet not found - check if docbook.xsl stylesheet is installed
or modify XSLPATHS in ../tools/docbook2html to point to directory where it is installed
(if installed in non-standard directory)
Looked for docbook.xsl in:
/usr/local/share/xsl/docbook/xhtml /usr/share/xsl/docbook/xhtml /usr/share/sgml/docbook/xsl-stylesheets*/xhtml /usr/local/share/sgml/docbook/xsl-stylesheets*/xhtml /usr/share/xml/docbook/stylesheet/nwalsh/xhtml /usr/share/docbook-xsl/xhtml
../tools/docbook2html_any: line 33: docbook2html: command not found

Does this mean it ignored --disable-doxygen-doc?

Dan
 
(0000256)
hockm0bm
12-18-07 17:32

> Looked for docbook.xsl in:
> /usr/local/share/xsl/docbook/xhtml /usr/share/xsl/docbook/xhtml /usr/share/sgml/docbook/xsl-stylesheets*/xhtml /usr/local/share/sgml/docbook/xsl-stylesheets*/xhtml /usr/share/xml/docbook/stylesheet/nwalsh/xhtml /usr/share/docbook-xsl/xhtml
> ../tools/docbook2html_any: line 33: docbook2html: command not found

no, this is not covered by --disable-doxygen-doc
This is not covered by configure at all yet. We are working on it. If it fails nothing happens at the moment - make should proceed anyway.
 
(0000257)
DanP
12-18-07 23:13

The last completed action was building a library in the kernel directory.

ar cqs libkernel.a modecontroller.o filters.o factories.o cannotation.o cxref.o xrefwriter.o streamwriter.o iproperty.o carray.o cdict.o cstream.o cobject.o cobjecthelpers.o ccontentstream.o pdfoperators.o pdfoperatorsiter.o stateupdater.o pdfwriter.o cinlineimage.o coutline.o cpage.o cpdf.o textoutputengines.o textoutputentities.o textoutputbuilder.o
ranlib libkernel.a
cd /Users/platt/install/PDFEditor/cvsDownload/pdfedit/doc && make
cd user && make all_no_pdf
../tools/docbook2html_any user_doc.xml user_doc.html || true
XSL stylesheet not found - check if docbook.xsl stylesheet is installed
or modify XSLPATHS in ../tools/docbook2html to point to directory where it is installed
(if installed in non-standard directory)
Looked for docbook.xsl in:
/usr/local/share/xsl/docbook/xhtml /usr/share/xsl/docbook/xhtml /usr/share/sgml/docbook/xsl-stylesheets*/xhtml /usr/local/share/sgml/docbook/xsl-stylesheets*/xhtml /usr/share/xml/docbook/stylesheet/nwalsh/xhtml /usr/share/docbook-xsl/xhtml
../tools/docbook2html_any: line 33: docbook2html: command not found
../tools/docbook2html_any appendix.xml appendix.html || true
XSL stylesheet not found - check if docbook.xsl stylesheet is installed
or modify XSLPATHS in ../tools/docbook2html to point to directory where it is installed
 
(0000258)
hockm0bm
12-19-07 12:58

Ok, so no-gui configuration seems to be successful.
 
(0000259)
DanP
12-19-07 18:50

OK -- so what's next? Anything I can do to help at this point?

Dan
 
(0000260)
hockm0bm
12-19-07 19:10

> OK -- so what's next? Anything I can do to help at this point?

Now, we should focus on the second case:
./configure --disable-doxygen # This one will try to build everything besides doxygen documentation and kernel tests. This one is interesting for QT testing.

and collect all problems.
 
(0000261)
DanP
12-19-07 20:10

OK -- then we're back to moc woes as a starting point.

What do I do here?

Dan
 
(0000262)
hockm0bm
12-19-07 20:24

What is the version of moc?
Are you sure that it is compatible with the rest of QT3?
What if you try to remove all -Dxxx parameters?

JFYI: I have created a new branch (devel-msts-unified_makefiles) with all actual changes (covered by patch set + some more).
Try
cvs -z3 -d:pserver:anonymous@pdfedit.cvs.sourceforge.net:/cvsroot/pdfedit co -r devel-msts-unified_makefiles -d pdfedit-test pdfedit
to get it from CVS
 
(0000263)
DanP
12-19-07 21:56

moc.[ly]: 3.3.8 Came with the Qt3 distribution I'm using.

I'll do the cvs stuff a little later today.

Dan
 
(0000265)
DanP
12-23-07 22:26

My machine was tied up with a long task for a few days. I have downloaded the cvs pdefedit-test, tried ./configure --disable-doxygen, found it still complains about doxygen.

Dan
 
(0000266)
hockm0bm
12-24-07 16:20

You have to use --disable-doxygen-doc
 
(0000267)
DanP
12-24-07 17:29

My cut-n-paste dropped the -doc, but it was in my history.

The result of this last compile:

c++ -c -pipe -O2 -DNDEBUG -Wall -W -Os -DQT_NO_DEBUG -DQT_SHARED -DQT_ACCESSIBILITY_SUPPORT -DQT_TABLET_SUPPORT -I/Developer/qt/mkspecs/default -I. -I../xpdf -I../xpdf/xpdf -I../xpdf/goo -I../xpdf/splash -I../xpdf/fofi -I/Developer/qt/include -o QOutputDev.o QOutputDev.cpp
rm -f libqoutputdevices.a
ar cq libqoutputdevices.a QOutputDevPixmap.o QOutputDev.o
ranlib -s libqoutputdevices.a
cd /Users/platt/install/PDFEditor/cvsDownload/pdfedit-test/src/qsa && ./configure "/Developer/qt/bin/qmake" "yes"
Building second stage2 configure
/usr/bin/ld: warning prebinding disabled because dependent library: libqt.3.dylib is not prebound
dyld: Library not loaded: libqt.3.dylib
  Referenced from: /Users/platt/install/PDFEditor/cvsDownload/pdfedit-test/src/qsa/configure2/configure2
  Reason: image not found
./configure: line 26: 14190 Trace/BPT trap configure2/configure2 -qmake "$QMAKE" $BUILD "$@"
make[1]: *** [/Users/platt/install/PDFEditor/cvsDownload/pdfedit-test/src/qsa/Makefile.qsa] Error 1
make: *** [source] Error 2
 
(0000268)
hockm0bm
12-31-07 13:47

> Building second stage2 configure
> /usr/bin/ld: warning prebinding disabled because dependent library: libqt.3.dylib is not prebound
> dyld: Library not loaded: libqt.3.dylib

This is the linkage problem (even more linkage problem of the QSA subtree which is imported almost with any change - and no change in respect of code). So I am afraid and can't help with this.
One my friend should try the very same approach in his Mac OS X configuration, so hopefully he finds some time soon and give some of his experiences here.
 
(0000454)
hockm0bm
04-07-08 10:37

Do you experience same problems also with current 0.4.1 release?
 
(0000455)
DanP
04-08-08 22:04

I installed Leopard. Now cannot build Qt3. Qt4 installs are easily available.
 
(0000456)
hockm0bm
04-09-08 12:15

Is there any pre-built version of QT3 for Leopard?
If not, I am afraid that we can't do much about it.
(If there is not any) Are you ok with closing this bug as won't fix (as it seems that the problem is not on PDFedit site but QT3 is blocker her)?

We are currently working on port for QT4, but it will take some time until it reach some alpha state.
 
(0000488)
hockm0bm
08-13-08 00:42

If you are not able to find prebuild QT3 package for Leopard, then I have to close this issue as won't fix and you have to wait for QT4 port which will be hopefully available in reasonable time.

Thanks for your testing effort.

Please reopen if you can make QT3 stuff working.
 
(0000978)
anonymous
08-28-09 05:53

Tried to create an account (risner) here, it failed. Tried again (risner2), it failed as well. Reporting this anonymously.

This centers around "Point" being used by darwin libraries.

Here is a patch that fixes the Point issue and disables a non portable use of QT lib x11AppDpiX():

begin 644 patch.risner.diff.gz
M'XL(`&A&ETH``^U9_T_;.!3_.?TKGIB$4MI\*P5&"H@=;--.MZTW)MVFTPFE
MB4M]E\91[$"[B?_]GNVD3=NT%)A..FD%ZL1^[]E^[^./GTU$AT.P,K!R2*,A
MB:BP7+MK[SL\"YV;G#II<$-X&H3$#L-%$3NC/"%9K63#LJPM#!H=USVVW`/+
M.X:.YQ_L^U['=LL/6&[7=1NM5FO[C@N++ZW.$7B'ON?Z!]T5B^?G8!T<>NTC
M:.GB_+P!0000003`R(O(L@6'&QE][#;AO6+>,1M!'^U?2ON^'++DEF>C3R3A(^XQ_
M9OUHB*4)V,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S"F=$DEMS)1>3[3#?M0L,J;VG@Y`3,Q49Y?;IZ
K1;*5PLI5B$RU&`<#E78F/NQ(;;6YR0J8SFM4-EC,@_%>XU]U)W%*S1P`````
`
end
 

- Issue History
Date Modified Username Field Change
12-13-07 22:45 DanP New Issue
12-14-07 11:13 hockm0bm Status new => assigned
12-14-07 11:13 hockm0bm Assigned To  => hockm0bm
12-14-07 11:52 hockm0bm Note Added: 0000222
12-14-07 12:28 DanP Note Added: 0000223
12-14-07 22:28 DanP Note Added: 0000224
12-16-07 19:08 hockm0bm File Added: unified_makefiles_v3.1.tar.gz
12-16-07 19:16 hockm0bm Note Added: 0000225
12-16-07 19:39 DanP Note Added: 0000226
12-16-07 20:02 hockm0bm Note Added: 0000227
12-16-07 20:18 DanP Note Added: 0000228
12-16-07 20:20 DanP File Added: config.log
12-16-07 20:23 DanP Note Added: 0000229
12-16-07 20:25 DanP File Added: config.logApplegcc
12-16-07 20:26 DanP Note Added: 0000230
12-16-07 20:46 hockm0bm Note Added: 0000231
12-16-07 20:58 DanP Note Added: 0000232
12-16-07 20:59 DanP File Added: Makefile
12-16-07 21:00 DanP Note Added: 0000233
12-16-07 21:12 hockm0bm Note Added: 0000234
12-16-07 21:24 DanP Note Added: 0000235
12-16-07 21:41 hockm0bm Note Added: 0000236
12-16-07 22:02 DanP Note Added: 0000237
12-16-07 22:25 hockm0bm Note Added: 0000238
12-16-07 23:13 DanP Note Added: 0000239
12-17-07 00:37 DanP Note Added: 0000240
12-17-07 10:11 hockm0bm Note Added: 0000241
12-17-07 15:20 DanP Note Added: 0000242
12-17-07 15:23 DanP Note Added: 0000243
12-17-07 15:49 hockm0bm Note Added: 0000244
12-17-07 15:55 DanP Note Added: 0000245
12-17-07 16:16 hockm0bm Note Added: 0000246
12-17-07 18:16 DanP Note Added: 0000247
12-18-07 14:54 hockm0bm Note Added: 0000248
12-18-07 16:07 DanP Note Added: 0000249
12-18-07 16:34 hockm0bm Note Added: 0000250
12-18-07 16:37 DanP Note Added: 0000251
12-18-07 16:39 DanP Note Added: 0000252
12-18-07 16:58 hockm0bm Note Added: 0000253
12-18-07 16:58 hockm0bm File Added: configure
12-18-07 17:00 hockm0bm Note Added: 0000254
12-18-07 17:21 DanP Note Added: 0000255
12-18-07 17:32 hockm0bm Note Added: 0000256
12-18-07 23:13 DanP Note Added: 0000257
12-19-07 12:58 hockm0bm Note Added: 0000258
12-19-07 18:50 DanP Note Added: 0000259
12-19-07 19:10 hockm0bm Note Added: 0000260
12-19-07 20:10 DanP Note Added: 0000261
12-19-07 20:24 hockm0bm Note Added: 0000262
12-19-07 21:56 DanP Note Added: 0000263
12-23-07 22:26 DanP Note Added: 0000265
12-24-07 16:20 hockm0bm Note Added: 0000266
12-24-07 17:29 DanP Note Added: 0000267
12-31-07 13:47 hockm0bm Note Added: 0000268
04-07-08 10:37 hockm0bm Note Added: 0000454
04-08-08 22:04 DanP Note Added: 0000455
04-09-08 12:15 hockm0bm Note Added: 0000456
08-13-08 00:42 hockm0bm Status assigned => resolved
08-13-08 00:42 hockm0bm Resolution open => won't fix
08-13-08 00:42 hockm0bm Note Added: 0000488
07-03-09 23:53 bilbo Status resolved => closed
08-28-09 05:53 anonymous Note Added: 0000978
08-28-09 05:53 anonymous Status closed => confirmed