Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47483 - gtkhtml library include incorrect path
Summary: gtkhtml library include incorrect path
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-10 22:19 UTC by Jon Hood (RETIRED)
Modified: 2004-08-06 11:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Hood (RETIRED) gentoo-dev 2004-04-10 22:19:00 UTC
gnome-extras/gtkhtml-1.1.10(-r1):
When compiling, gtkhtml will try to compile with:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I/usr/include -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I/usr/include/libcapplet1 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gdk-pixbuf-1.0 -I/usr/include/freetype2 -I/usr/include/gnome-xml -I/var/tmp/portage/gal-0.24/image//usr/include/gal-1.0 -I/usr/include/libglade-1.0 -I/usr/include -I/usr/include/orbit-1.0 -DG_LOG_DOMAIN=\"gtkhtml\" -DSRCDIR=\".\" -DPREFIX=\"/usr\" -O3 -march=pentium4 -funroll-loops -pipe -Wall -Wunused -I/usr/include/gconf/1 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11R6/include -DGTKHTML_HAVE_GCONF -DICONDIR=\"/usr/share/gtkhtml-1.1//icons\" -c gtkhtml-propmanager.c -o gtkhtml-propmanager.o >/dev/null 2>&1

Note the "-I/var/tmp/portage/gal-0.24/image//usr/include/gal-1.0", this should be "-I/usr/include/gal-1.0". This cause gtkhtml to fail to compile:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I/usr/include -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I/usr/include/libcapplet1 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/gdk-pixbuf-1.0 -I/usr/include/freetype2 -I/usr/include/gnome-xml -I/var/tmp/portage/gal-0.24/image//usr/include/gal-1.0 -I/usr/include/libglade-1.0 -I/usr/include -I/usr/include/orbit-1.0 -DG_LOG_DOMAIN=\"gtkhtml\" -DSRCDIR=\".\" -DPREFIX=\"/usr\" -O3 -march=pentium4 -funroll-loops -pipe -Wall -Wunused -I/usr/include/gconf/1 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11R6/include -DGTKHTML_HAVE_GCONF -DICONDIR=\"/usr/share/gtkhtml-1.1//icons\" -c gtkhtml-propmanager.c -o gtkhtml-propmanager.o >/dev/null 2>&1
distcc[9301] ERROR: compile on localhost failed
In file included from htmlengine.h:34,
                 from gtkhtml-embedded.c:28:
htmlcursor.h:27:34: gal/unicode/gunicode.h: No such file or directory
distcc[9300] ERROR: compile on 192.168.0.4 failed
make[2]: *** [gtkhtml-embedded.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .libs/gtkhtml-propmanager.lo gtkhtml-propmanager.lo
make[2]: Leaving directory `/var/tmp/portage/gtkhtml-1.1.10-r1/work/gtkhtml-1.1.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gtkhtml-1.1.10-r1/work/gtkhtml-1.1.10'
make: *** [all-recursive-am] Error 2

!!! ERROR: gnome-extra/gtkhtml-1.1.10-r1 failed.
!!! Function src_compile, Line 65, Exitcode 2
!!! Package building failed.

Reproducible: Always
Steps to Reproduce:
Comment 1 Jon Hood (RETIRED) gentoo-dev 2004-04-10 22:53:11 UTC
For anyone running into this problem, the quick-n-dirty fix is to add the following after ./configure in the ebuild:

sed -i -e "s:-I/var/tmp/portage/gal-0.24/image/:-I:g" Makefile
sed -i -e "s:-I/var/tmp/portage/gal-0.24/image/:-I:g" src/Makefile
sed -i -e "s:-I/var/tmp/portage/gal-0.24/image/:-I:g" art/Makefile
sed -i -e "s:-I/var/tmp/portage/gal-0.24/image/:-I:g" doc/Makefile
sed -i -e "s:-I/var/tmp/portage/gal-0.24/image/:-I:g" macros/Makefile
sed -i -e "s:-I/var/tmp/portage/gal-0.24/image/:-I:g" po/Makefile
sed -i -e "s:-I/var/tmp/portage/gal-0.24/image/:-I:g" components/Makefile
sed -i -e "s:-I/var/tmp/portage/gal-0.24/image/:-I:g" components/*/Makefile
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2004-04-11 03:28:19 UTC
can you please include your /usr/lib/libgal.la
Comment 3 Jon Hood (RETIRED) gentoo-dev 2004-04-11 05:38:17 UTC
$ cat /usr/lib/libgal.la
# libgal.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4.2 (1.922.2.54 2001/09/11 03:33:37)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libgal.so.23'

# Names of this library.
library_names='libgal.so.23.0.0 libgal.so.23 libgal.so'

# The name of the static archive.
old_library='libgal.a'

# Libraries that this one depends upon.
dependency_libs=' -lSM -lICE -L/usr/lib -L/usr/X11R6/lib /usr/lib/libgtk.la /usr/lib/libgdk.la /usr/lib/libgmodule.la /usr/lib/libglib.la -ldl -lXi -lXext -lX11 -lm'

# Version information for libgal.
current=23
age=0
revision=0

# Is this an already installed library?
installed=yes

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib'
Comment 4 foser (RETIRED) gentoo-dev 2004-04-16 04:21:13 UTC
do a grep for '/var/tmp/portage' in your /usr/lib *.la files.
Comment 5 Jon Hood (RETIRED) gentoo-dev 2004-04-16 10:00:01 UTC
looks like ntop is messed up too:

# grep "/var/tmp/portage" /usr/lib/*.la
libgtkhtml-1.1.la:dependency_libs=' -L/usr/lib -L/usr/X11R6/lib -L/var/tmp/portage/gal-0.24/image//usr/lib /usr/lib/libgal.la /usr/lib/libgnomeprint.la /usr/lib/libfreetype.la /usr/lib/libgnomecanvaspixbuf.la /usr/lib/libbonobox.la /usr/lib/libbonobo.la /usr/lib/libgdk_pixbuf.la /usr/lib/libglade-gnome.la /usr/lib/libglade.la /usr/lib/libxml.la -lncurses /usr/lib/libgnomeui.la /usr/lib/libart_lgpl.la /usr/lib/libgdk_imlib.la -lSM -lICE /usr/lib/libgnome.la /usr/lib/libgnomesupport.la -lz /usr/lib/libesd.la /usr/lib/libasound.la -lpthread /usr/lib/libaudiofile.la -ldb1 /usr/lib/libgconf-gtk-1.la /usr/lib/libgconf-1.la /usr/lib/liboaf.la /usr/lib/libpopt.la /usr/lib/libORBitCosNaming.la /usr/lib/libORBit.la /usr/lib/libIIOP.la -lwrap /usr/lib/libORBitutil.la /usr/lib/libgtk.la /usr/lib/libgdk.la /usr/lib/libgmodule.la /usr/lib/libglib.la -ldl -lXi -lXext -lX11 -lm'
libntop.la:dependency_libs=' -L/usr/local/lib -L/var/tmp/portage/ntop-3.0/work/ntop-3.0/myrrd /usr/lib/libxml2.la /usr/lib/libglib.la -lpthread -lresolv -lnsl -lcrypt -lc -lssl -lcrypto -lpcap /usr/lib/libgdbm.la /usr/lib/libgd.la -L/usr/X11R6/lib -lXpm -lX11 /usr/lib/libjpeg.la /usr/lib/libfreetype.la -lpng12 -lm -lpng -lz -lmyrrd'
libntopreport.la:dependency_libs=' -L/usr/local/lib -L/var/tmp/portage/ntop-3.0/work/ntop-3.0/myrrd /usr/lib/libxml2.la /usr/lib/libglib.la -lpthread -lresolv -lnsl -lcrypt -lc -lssl -lcrypto -lpcap /usr/lib/libgdbm.la /usr/lib/libgd.la -L/usr/X11R6/lib -lXpm -lX11 /usr/lib/libjpeg.la /usr/lib/libfreetype.la -lpng12 -lm -lpng -lz -lmyrrd'
Comment 6 foser (RETIRED) gentoo-dev 2004-08-06 11:54:12 UTC
hmm long time no blah

you have to rebuild those packages owning those .la's (might need to figure out the right order -> altough not in this case i bet)

This is usually non-reproducable weirdness.