Mac problems in gnome-utils.

Neil Williams linux at codehelp.co.uk
Sun Aug 14 11:42:34 EDT 2005


I've had problems getting the G2 build to complete on OSX for some time but 
I'm making some progress.

I've found problems with the CFLAGS for GtkHTML-3 that make it hard to compile 
G2 if GnuCash 1.8 is on the same system. This comes down (I think) to a bug 
in Gtkhtml v1 for OSX that uses /sw/include/gtkhtml AND which puts the real 
v3 directory at the very end of the pkg-config CFLAGS output. The result on 
my Mac is that src/gnome-utils tries to use -I/sw/include/ when the code asks 
for #include <gtkhtml/gtkhtml.h> instead of the configured 
-I/sw/include/libgtkhtml-3.1/

I've got around this for now using a customised GTKHTML_CFLAGS environment 
variable that simply moves the last -I value to be the first, exporting that 
from a bash script that then moves on to the normal ./autogen.sh sequence.

I then get a subsequent error with src/gnome-utils/ (all files):
gcc: cannot specify -o with -c or -S and multiple compilations.

Near the end of the preceding gcc command, I've got:
-Wall -Wmissing-prototypes -Wmissing-declarations -c dialog-utils.c -MT 
dialog-utils.lo -MD -MP -MF .deps/dialog-utils.TPlo -fno-common 
-o .libs/dialog-utils.o

The libtool version (end of the preceding output line) is:
-Wmissing-declarations  -c -o dialog-utils.lo `test -f 'dialog-utils.c' || 
echo './'` dialog-utils.c

What's gone wrong?

The same command on Linux generates:
-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations   -MT 
dialog-utils.o -MD -MP -MF ".deps/dialog-utils.Tpo" \
 -c -o dialog-utils.o `test -f 'dialog-utils.c' || echo './'`dialog-utils.c; \
then mv -f ".deps/dialog-utils.Tpo" ".deps/dialog-utils.Po"; \
else rm -f ".deps/dialog-utils.Tpo"; exit 1; \
fi

Looks like a transposition in the Makefile instructions but I can't see how to 
fix the problem - must have something to do with the GtkHTML stuff that I've 
had to workaround.

-- 

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20050814/7b8ddf00/attachment.bin


More information about the gnucash-devel mailing list