Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24565 - gnome-extra/libgtkhtml-3.0.5 fails to build
Summary: gnome-extra/libgtkhtml-3.0.5 fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-15 21:56 UTC by Richard Stevens
Modified: 2003-07-23 18:48 UTC (History)
1 user (show)

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


Attachments
Output of ebuild libgtkhtml (out.txt,370.68 KB, text/plain)
2003-07-19 11:40 UTC, Richard Stevens
Details
Output of ebuild libgtkhtml (out.txt.gz,13.86 KB, application/x-gzip)
2003-07-19 11:40 UTC, Richard Stevens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Stevens 2003-07-15 21:56:21 UTC
Trying to -u this ebuild fails with the following (rather long, sorry): 
 
------------------------------------ 
 
creating gtest 
/usr/lib/libesd.a(audio.o)(.text+0xa): In function `print_state': 
: undefined reference to `snd_pcm_status_sizeof' 
/usr/lib/libesd.a(audio.o)(.text+0x17): In function `print_state': 
: undefined reference to `snd_pcm_status_sizeof' 
/usr/lib/libesd.a(audio.o)(.text+0x40): In function `print_state': 
: undefined reference to `snd_pcm_status' 
/usr/lib/libesd.a(audio.o)(.text+0x50): In function `print_state': 
: undefined reference to `snd_pcm_status_get_state' 
/usr/lib/libesd.a(audio.o)(.text+0x1aa): In function `print_state': 
: undefined reference to `snd_strerror' 
/usr/lib/libesd.a(audio.o)(.text+0x1e8): In function `initAlsa': 
: undefined reference to `snd_pcm_open' 
/usr/lib/libesd.a(audio.o)(.text+0x203): In function `initAlsa': 
: undefined reference to `snd_pcm_nonblock' 
/usr/lib/libesd.a(audio.o)(.text+0x208): In function `initAlsa': 
: undefined reference to `snd_pcm_hw_params_sizeof' 
/usr/lib/libesd.a(audio.o)(.text+0x215): In function `initAlsa': 
: undefined reference to `snd_pcm_hw_params_sizeof' 
/usr/lib/libesd.a(audio.o)(.text+0x23c): In function `initAlsa': 
: undefined reference to `snd_pcm_hw_params_any' 
/usr/lib/libesd.a(audio.o)(.text+0x25b): In function `initAlsa': 
: undefined reference to `snd_pcm_hw_params_set_access' 
/usr/lib/libesd.a(audio.o)(.text+0x279): In function `initAlsa': 
: undefined reference to `snd_pcm_hw_params_set_format' 
/usr/lib/libesd.a(audio.o)(.text+0x297): In function `initAlsa': 
: undefined reference to `snd_pcm_hw_params_set_channels' 
/usr/lib/libesd.a(audio.o)(.text+0x2ba): In function `initAlsa': 
: undefined reference to `snd_pcm_hw_params_set_rate_near' 
/usr/lib/libesd.a(audio.o)(.text+0x312): In function `initAlsa': 
: undefined reference to `snd_pcm_hw_params_set_periods_integer' 
/usr/lib/libesd.a(audio.o)(.text+0x33f): In function `initAlsa': 
: undefined reference to `snd_pcm_hw_params_set_periods_min' 
/usr/lib/libesd.a(audio.o)(.text+0x369): In function `initAlsa': 
: undefined reference to `snd_pcm_hw_params_set_periods_max' 
/usr/lib/libesd.a(audio.o)(.text+0x384): In function `initAlsa': 
: undefined reference to `snd_pcm_hw_params_set_buffer_size_near' 
/usr/lib/libesd.a(audio.o)(.text+0x397): In function `initAlsa': 
: undefined reference to `snd_pcm_hw_params' 
/usr/lib/libesd.a(audio.o)(.text+0x3c7): In function `initAlsa': 
: undefined reference to `snd_pcm_dump' 
/usr/lib/libesd.a(audio.o)(.text+0x3e2): In function `initAlsa': 
: undefined reference to `snd_strerror' 
/usr/lib/libesd.a(audio.o)(.text+0x416): In function `initAlsa': 
: undefined reference to `snd_strerror' 
/usr/lib/libesd.a(audio.o)(.text+0x447): In function `initAlsa': 
: undefined reference to `snd_strerror' 
/usr/lib/libesd.a(audio.o)(.text+0x47a): In function `esd_audio_devices': 
: undefined reference to `snd_ctl_card_info_sizeof' 
/usr/lib/libesd.a(audio.o)(.text+0x48e): In function `esd_audio_devices': 
: undefined reference to `snd_ctl_card_info_sizeof' 
/usr/lib/libesd.a(audio.o)(.text+0x4c4): In function `esd_audio_devices': 
: undefined reference to `snd_card_next' 
/usr/lib/libesd.a(audio.o)(.text+0x50d): In function `esd_audio_devices': 
: undefined reference to `snd_ctl_open' 
/usr/lib/libesd.a(audio.o)(.text+0x527): In function `esd_audio_devices': 
: undefined reference to `snd_ctl_card_info' 
/usr/lib/libesd.a(audio.o)(.text+0x53a): In function `esd_audio_devices': 
: undefined reference to `snd_ctl_card_info_get_name' 
/usr/lib/libesd.a(audio.o)(.text+0x55a): In function `esd_audio_devices': 
: undefined reference to `snd_ctl_card_info_get_name' 
/usr/lib/libesd.a(audio.o)(.text+0x593): In function `esd_audio_devices': 
: undefined reference to `snd_ctl_close' 
/usr/lib/libesd.a(audio.o)(.text+0x59b): In function `esd_audio_devices': 
: undefined reference to `snd_card_next' 
/usr/lib/libesd.a(audio.o)(.text+0x624): In function `esd_audio_devices': 
: undefined reference to `snd_strerror' 
/usr/lib/libesd.a(audio.o)(.text+0x64f): In function `esd_audio_devices': 
: undefined reference to `snd_ctl_close' 
/usr/lib/libesd.a(audio.o)(.text+0x65c): In function `esd_audio_devices': 
: undefined reference to `snd_strerror' 
/usr/lib/libesd.a(audio.o)(.text+0x6ee): In function `esd_audio_open': 
: undefined reference to `snd_output_stdio_attach' 
/usr/lib/libesd.a(audio.o)(.text+0x7bb): In function `esd_audio_open': 
: undefined reference to `snd_pcm_close' 
/usr/lib/libesd.a(audio.o)(.text+0x84a): In function `esd_audio_open': 
: undefined reference to `snd_pcm_close' 
/usr/lib/libesd.a(audio.o)(.text+0x87e): In function `esd_audio_open': 
: undefined reference to `snd_pcm_close' 
/usr/lib/libesd.a(audio.o)(.text+0x920): In function `esd_audio_open': 
: undefined reference to `snd_card_next' 
/usr/lib/libesd.a(audio.o)(.text+0x9eb): In function `esd_audio_read': 
: undefined reference to `snd_pcm_bytes_to_frames' 
/usr/lib/libesd.a(audio.o)(.text+0xa02): In function `esd_audio_read': 
: undefined reference to `snd_pcm_readi' 
/usr/lib/libesd.a(audio.o)(.text+0xa34): In function `esd_audio_read': 
: undefined reference to `snd_pcm_prepare' 
/usr/lib/libesd.a(audio.o)(.text+0xa57): In function `esd_audio_read': 
: undefined reference to `snd_strerror' 
/usr/lib/libesd.a(audio.o)(.text+0xa89): In function `esd_audio_read': 
: undefined reference to `snd_pcm_resume' 
/usr/lib/libesd.a(audio.o)(.text+0xaba): In function `esd_audio_read': 
: undefined reference to `snd_pcm_prepare' 
/usr/lib/libesd.a(audio.o)(.text+0xbbb): In function `esd_audio_write': 
: undefined reference to `snd_pcm_bytes_to_frames' 
/usr/lib/libesd.a(audio.o)(.text+0xbd2): In function `esd_audio_write': 
: undefined reference to `snd_pcm_writei' 
/usr/lib/libesd.a(audio.o)(.text+0xc04): In function `esd_audio_write': 
: undefined reference to `snd_pcm_prepare' 
/usr/lib/libesd.a(audio.o)(.text+0xc27): In function `esd_audio_write': 
: undefined reference to `snd_strerror' 
/usr/lib/libesd.a(audio.o)(.text+0xc59): In function `esd_audio_write': 
: undefined reference to `snd_pcm_resume' 
/usr/lib/libesd.a(audio.o)(.text+0xc8a): In function `esd_audio_write': 
: undefined reference to `snd_pcm_prepare' 
/usr/lib/libesd.a(audio.o)(.text+0xdaa): In function `esd_audio_close': 
: undefined reference to `snd_pcm_close' 
/usr/lib/libesd.a(audio.o)(.text+0xdb4): In function `esd_audio_close': 
: undefined reference to `snd_pcm_close' 
/usr/lib/libesd.a(audio.o)(.text+0xe34): In function `esd_audio_flush': 
: undefined reference to `snd_pcm_drain' 
/usr/lib/libesd.a(audio.o)(.text+0xb96): In function `esd_audio_read': 
: undefined reference to `snd_pcm_frames_to_bytes' 
/usr/lib/libesd.a(audio.o)(.text+0xd66): In function `esd_audio_write': 
: undefined reference to `snd_pcm_frames_to_bytes' 
collect2: ld returned 1 exit status 
make[2]: *** [testgtkhtml] Error 1 
make[2]: Leaving directory 
`/var/tmp/portage/libgtkhtml-3.0.5/work/gtkhtml-3.0.5/src' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory 
`/var/tmp/portage/libgtkhtml-3.0.5/work/gtkhtml-3.0.5' 
make: *** [all-recursive-am] Error 2 
 
!!! ERROR: gnome-extra/libgtkhtml-3.0.5 failed. 
!!! Function gnome2_src_compile, Line 41, Exitcode 2 
!!! compile failure 
------------------------------------ 
 
The output of emerge info is: 
 
------------------------------------ 
Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) 
================================================================= 
System uname: 2.4.21 i686 AMD Athlon(TM) MP 1600+ 
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config 
/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="" 
USE="x86 oss jpeg mad mikmod zlib gtkhtml svga guile postgres esd oggvorbis icc 
xv slang readline gpm berkdb mmx 3dnow gdbm -tcpd pam ssl mitshm arts lame 
perl python imlib sdl o ggvorbis gtk X qt kde motif opengl avi png tiff gif xml xml2 
dvd encode gphoto2 cups qtmt tcltk aalib ncurses lcms jpe g quicktime mpeg 
xmms flash crypt mozilla mozirc spell truetype pdflib plotutils tetex java ruby 
libwww libg++ pic pos tgres gd samba nls doc -gnome -bonobo alsa junit scanner 
acpi apm cdr imap usb wmf -ldap mysql" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer" 
CXXFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer" 
ACCEPT_KEYWORDS="x86" 
MAKEOPTS="-j3" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache" 
------------------------------------ 
 
I executed revdep-rebuild and it says my system is consistent. 

Reproducible: Always
Steps to Reproduce:
1. emerge -p -u --deep world, gtkhtml is one of four ebuilds left to do in this step. 
2. 
3. 
Actual Results:  
compile failed 

Expected Results:  
compile successful
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2003-07-16 01:16:12 UTC
looks like you had alsa-libs but removed them. do you have libasound.so around?

if you don't, you'll probably need to recompile esound
Comment 2 Roger 2003-07-16 01:28:37 UTC
yup. libgtkhtml-3.0.5 fails to build also (for those that have alsa installed).

one of the defines are found here:

fgrep /usr/include/alsa/* -r -e "snd_pcm_status_sizeof"
shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory
/usr/include/alsa/pcm.h:size_t snd_pcm_status_sizeof(void);
/usr/include/alsa/pcm.h:#define snd_pcm_status_alloca(ptr) do { assert(ptr); *ptr = (snd_pcm_status_t *) alloca(snd_pcm_status_sizeof()); memset(*ptr, 0, snd_pcm_status_sizeof()); } while (0)

I think it's quite obvious that the alsa includes are not being found by libgtkhtml-3.0.5

However, I think I tried to manually build libgtkhtml with specifying --includedir=/usr/include/asla and it still failed.

I'm kinda stumped and this bug does look *valid*.  I think the maintainer might be able to understand it's origins. ;-)

My system is also stuck on this ebuild -- won't be chancing upgrading my other boxes until it resolves.
Comment 3 Roger 2003-07-16 01:30:12 UTC
blank message (to send me a copy of the url via email)
Comment 4 Richard Stevens 2003-07-16 05:19:42 UTC
I have libasound around and I even rebuilt esd, sorry forgot to mention that in 
my original post. 
Comment 5 Roger 2003-07-16 09:32:53 UTC
no matter. it appears to me that libgtkhtml might be trying to find alsa-libs (includes) within /usr/include instead of /user/include/alsa
Comment 6 Alastair Tse (RETIRED) gentoo-dev 2003-07-18 14:46:10 UTC
to me it isn't a matter of not finding the include files, but more like libesd.la doesn't contain libasound.la. does "grep libasound.la /usr/lib/libesd.la" give you anything?

can you attach the full build log for libgtkhtml ?
Comment 7 Richard Stevens 2003-07-19 10:43:00 UTC
$ grep libasound.la /usr/lib/libesd.la 
dependency_libs=' -L/usr/lib /usr/lib/libaudiofile.la /usr/lib/libasound.la -lm -ldl 
-lpthread' 
 
 
 
Comment 8 Richard Stevens 2003-07-19 11:40:04 UTC
Created attachment 14709 [details]
Output of ebuild libgtkhtml

this is 3.0.7 but the error is the same.
Comment 9 Richard Stevens 2003-07-19 11:40:52 UTC
Created attachment 14710 [details]
Output of ebuild libgtkhtml

this is 3.0.7 but the error is the same.
Comment 10 Alastair Tse (RETIRED) gentoo-dev 2003-07-19 12:28:40 UTC
seems like one of the gnome libs is having problems with that, because the *.la files are definately missing the alsa libraries. which means it was probably compiled before alsa was enabled.

it looks likely to be libgnome or libbonoboui according to your logs. check if they have libasound.la in /usr/lib/libgnome-2.la and /usr/lib/libbonoboui.la, if not, recompile those packages.
Comment 11 Richard Stevens 2003-07-19 12:58:30 UTC
Hmm, after rebuilding those two, gtkhtml now buids. It's still surprising though 
since I have alsa in my use flags for as long as I can think.  
 
Well, it works now, thanks anyways. 
Comment 12 Alastair Tse (RETIRED) gentoo-dev 2003-07-20 02:16:59 UTC
not sure why libgnome and libbonoboui were outdated .. but i'm glad its working for you now
Comment 13 Roger 2003-07-21 14:58:53 UTC
Maybe this is it here:

# locate /usr/lib/libgnome-2.la
/usr/lib/libgnome-2.la

# locate /usr/lib/libbonoboui.la

(no libbonoboui.la found!)

As such, recompiling a recent version may solve this issue, but now I have further problems with more recent package updates after syncing recently.

gal-1.99.8 refusing to pass the configure with an "iconv implementation"
http://bugs.gentoo.org/show_bug.cgi?id=24349

So, it might be difficult to properly troubleshoot this bug further until bug #24349 is resolved. :-(
Comment 14 Roger 2003-07-22 13:54:36 UTC
I did the following:

# emerge libbonoboui

Tried building libgtkhtml but still resulted in this bug.

# emerge libgnome

Bug resolved.  Looks like libgnome was the culrpit package that needs to be rebuilt when using alsa (alsa is list as one of my use flags...maybe have been included after I built gnome tho).

Was finally able to continue with "emerge -UD world"
Comment 15 Roger 2003-07-23 18:48:20 UTC
The exact culprit of this bug was libgnome.