Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97543 - links-2.1_pre17-r1 Doesn't find libpng?
Summary: links-2.1_pre17-r1 Doesn't find libpng?
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Marcelo Goes (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-30 14:04 UTC by Herald Becker
Modified: 2005-07-07 03:43 UTC (History)
0 users

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


Attachments
The config.log file (config.log,41.99 KB, text/plain)
2005-07-04 09:33 UTC, Herald Becker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Herald Becker 2005-06-30 14:04:52 UTC
I've been trying to update my version of linkt to version 2.1_pre17-r1.

Except, something doesn't work right.
The configuration process seems to halt at libpng.

Already tried recompiling that too, but to no effect.

Output:
 * Applying links-2.1pre17-utf8.diff ...                                       
                                     [ ok ]

Generating language table.
english belarusian brazilian_portuguese bulgarian catalan croatian czech danish
dutch estonian finnish french galician german greek hungarian icelandic
indonesian italian lithuanian norwegian polish portuguese romanian russian
serbian slovak spanish swedish turkish ukrainian upper_sorbian
Done.

>>> Source unpacked.
 * econf: updating links-2.1pre17/config.guess with
/usr/share/gnuconfig/config.guess
 * econf: updating links-2.1pre17/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --with-x --with-libpng --with-libjpeg --with-libtiff
--with-svgalib --with-directfb --with-ssl --enable-javascript --enable-graphics
--with-fb
creating cache ./config.cache
checking for a BSD compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc -march=athlon-xp -mcpu=athlon-xp -m3dnow
-msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer
-funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4
-maccumulate-outgoing-args ) works... yes
checking whether the C compiler (gcc -march=athlon-xp -mcpu=athlon-xp -m3dnow
-msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer
-funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4
-maccumulate-outgoing-args ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for EMX... no
checking for typeof... yes
checking for long long... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for time.h... yes
checking for unistd.h... yes
checking for math.h... yes
checking for ieee.h... no
checking for endian.h... yes
checking for values.h... yes
checking for sigaction.h... no
checking for netinet/in_systm.h... yes
checking for netinet/in_system.h... no
checking for netinet/ip.h... yes
checking for netinet/dhcp.h... no
checking for sys/select.h... yes
checking for sys/resource.h... yes
checking for sys/utsname.h... yes
checking for sys/un.h... yes
checking for sys/fmutex.h... no
checking for sys/cygwin.h... no
checking for io.h... no
checking for setjmp.h... yes
checking for langinfo.h... yes
checking for working const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking size of short... 2
checking size of unsigned short... 2
checking size of int... 4
checking size of unsigned... 4
checking size of long... 4
checking size of unsigned long... 4
checking for big endian... no
checking for little endian... yes
checking whether gcc needs -traditional... no
checking for 8-bit clean memcmp... yes
checking return type of signal handlers... void
checking for strftime... yes
checking for vprintf... yes
checking for calloc... yes
checking for snprintf... yes
checking for memmove... yes
checking for raise... yes
checking for gettimeofday... yes
checking for mkdir... yes
checking for select... yes
checking for strcspn... yes
checking for strerror... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for chmod... yes
checking for getpid... yes
checking for setpgid... yes
checking for popen... yes
checking for uname... yes
checking for getpagesize... yes
checking for strptime... yes
checking for setlocale... yes
checking for nl_langinfo... yes
checking for sigsetjmp/siglongjmp... yes
checking for atan in -lm... yes
checking for socket... yes
checking for setsockopt... yes
checking for gethostbyname... yes
checking for gethostbyaddr... yes
checking for dhcp_option... no
checking for herror... yes
checking for cfmakeraw... yes
checking for cygwin_conv_to_full_win32_path... no
checking for requested debug level... 2
checking if you want to enable javascript... yes
checking if you want to use graphics... yes
checking for Gpm_Open in -lgpm... yes
checking for gpm.h... yes
checking for OS/2 threads... no
checking for atheos/threads.h... no
checking for spawn_thread... no
checking for resume_thread... no
checking for MouOpen... no
checking for _read_kbd... no
checking for XFree for OS/2... no
checking for dlopen in -ldl... yes
checking for pkg-config... /usr/bin/pkg-config
checking for openssl... yes
checking OPENSSL_CFLAGS...
checking OPENSSL_LIBS... -lssl -lcrypto -ldl
checking for OpenSSL... yes
checking for svgalib... yes
checking for linux/fb.h... yes
checking for linux/kd.h... yes
checking for linux/vt.h... yes
checking for sys/mman.h... yes
checking for directfb-config... /usr/bin/directfb-config
checking for DirectFB >= 0.9.17... yes
checking for X... libraries , headers
checking for sdl-config... /usr/bin/sdl-config
checking for SDL >= 1.2.0... yes
checking for XextAddDisplay in -lXext... yes
checking for pmshell... no
checking for gui/view.h... no
checking for gui/window.h... no
checking for gui/desktop.h... no
checking for gui/bitmap.h... no
checking for util/locker.h... no
checking for util/application.h... no
checking for inflate in -lz... no
checking for png.h... yes
checking for libpng/png.h... yes
checking for png_create_info_struct in -lpng... no
configure: error: You need libpng to compile Links in graphics mode

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/links-2.1_pre17-r1/work/links-2.1pre17/config.log

!!! ERROR: www-client/links-2.1_pre17-r1 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


Libpng is at a high enough level (checked the ebuild), and installed:
Borgnagar electric # emerge -p libpng

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] media-libs/libpng-1.2.8

Finally my emerge --info list:
Borgnagar electric # emerge --info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r5 i686)
=================================================================
System uname: 2.6.11-gentoo-r5 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5,dev-lang/python-2.4.1 [2.4.1 (#1, Jun
10 2005, 11:10:03)]
dev-lang/python:     2.3.5, 2.4.1
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -mcpu=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3
-pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop
-frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -mcpu=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3
-pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop
-frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/linux/gentoo
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d a52 aac aalib acpi alsa apache2 apm arts audiofile avi
bash-completion bcmath berkdb bitmap-fonts bluetooth bonobo bzlib cdparanoia cdr
cpdflib crypt cscope cups curl curlwrappers dedicated directfb doc dvd dvdr
dvdread eds emacs emacs-w3 emboss encode esd ethereal evo exif expat f77 fam
fbcon fdftk ffmpeg fftw firebird flac flash foomaticdb fortran freetds ftp gb gd
gdbm ggi gif ginac glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile
hal icc icc-pgo iconv icq imagemagick imlib innodb iodbc ipv6 jabber jack java
javascript jikes joystcik jpeg junit kde ladcca lcms ldap leim libg++ libgda
libwww lirc lm_sensors mad mcal mikmod mime ming mmx mng mono motif mozilla mp3
mpeg msn mule mysql mysqli nas ncurses nls nocd odbc offensive ogg oggvorbis
openal opengl oss pam pdflib perl php plotutils png portaudio posix postgres
ppds python qt quicktime readline recode ruby samba scanner sdl simplexml slang
sll slp sndfile snmp sox speex spell spl sqlite sse ssl svg svga sysvipc tcltk
tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts unicode
usb v4l vcd videos vorbis wifi wmf wxwindows xine xml xml2 xmms xosd xpm xv zeo
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

Did anybody encouter this behaviour too, or am I missing something?

Reproducible: Always
Steps to Reproduce:
1. Recompile libpng (which is installed)
2. Trying to upgrade links
3. 

Actual Results:  
Get the above error

Expected Results:  
Links should compile perfectly.
Comment 1 Herald Becker 2005-06-30 14:08:29 UTC
Actually my USE-flags look like this:
USE="3dnow Xaw3d a52 aac  aalib acpi alsa apache2 apm arts audiofile avi
bash-completion bcmath berkdb bluetooth bonobo bzlib cdparanoia cdr cpdflib
crypt cscope cups curl curlwrappers dedicated directfb doc dvd dvdr dvdread
emacs emacs-w3 encode esd ethereal evo exif expat f77 fbcon fdftk ffmpeg fftw
firebird flac flash foomaticdb freetds ftp gb gd gdbm ggi gif ginac glut gmp
gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal icc icc-pgo iconv icq
imagemagick imlib innodb iodbc jabber jack java javascript jikes joystcik jpeg
kde ladcca lcms leim libg++ libgda libwww lm_sensors mad mcal mikmod mime ming
mmx mng mono motif mozilla mp3 mpeg msn mule mysql mysqli nas ncurses nls nocd
odbc offensive ogg oggvorbis openal opengl oss pam pdflib perl php plotutils png
portaudio posix postgres ppds python qt quicktime readline recode ruby samba
scanner sdl simplexml slang slp sndfile sox spell spl sse sll svg svga sysvipc
tcltk tcpd tetex theora threads tidy tiff truetype unicode usb v4l vcd videos
wifi wmf wxwindows xine xml xml2 xmms xosd xpm xv zeo zlib"

The last ones get added??
Comment 2 Marcelo Goes (RETIRED) gentoo-dev 2005-06-30 14:56:26 UTC
I am sorry, I could not reproduce your problem.
I have the exact same version of libpng in my system and I even re-emerged it to
see if I could reproduce it.

Please, try rebuilding your system with more sane CFLAGS (such as
-march=athlon-xp -O2) and if the problem persists, reopen the bug.
Comment 3 Herald Becker 2005-06-30 16:32:22 UTC
Just wondering what more sane CFLAGS have to do with a library not being found
on my system?
Comment 4 Marcelo Goes (RETIRED) gentoo-dev 2005-06-30 18:13:14 UTC
Most likely libpng or libraries on which libpng depends did not get
compiled/installed properly.

Using a bunch of dangerous options like -funroll-loops dramatically increases
the chances of such an error happening and makes it almost impossible to track
down the origin of the problem.
Comment 5 Herald Becker 2005-07-01 11:54:45 UTC
OK, I've just rebuild libpng again.

My CFLAGS now are:
CFLAGS="-march=athlon-xp -mcpu=athlon-xp -O3 -pipe -fforce-addr
-fomit-frame-pointer"

Already tried it with -O2. And also without pipe, fforce and fomit.

Then trying to upgrade links, it still gives the same error.
Comment 6 Marcelo Goes (RETIRED) gentoo-dev 2005-07-01 15:47:01 UTC
Ok, as far as I can tell, links's configure script looks for png headers in two
places:

/usr/include/png.h and /usr/include/libpng12/png.h. They are the same file.
Your configure output shows that they are installed.

You should be able to grep out png_create_info_struct from these headers:

$ grep png_create_info_struct /usr/include/png.h
extern PNG_EXPORT(png_infop,png_create_info_struct)

If you can't, that is where lies the problem.
Comment 7 Herald Becker 2005-07-01 17:36:17 UTC
If I grep it:
electric@Borgnagar ~ $ grep png_create_info_struct /usr/include/png.h

I get the following response:
extern PNG_EXPORT(png_infop,png_create_info_struct)

So it looks my system can reproduce your systems info.
Comment 8 Marcelo Goes (RETIRED) gentoo-dev 2005-07-01 19:40:23 UTC
Now I'm stumped.
Any libpng's maintainer who can comment on this?
Comment 9 SpanKY gentoo-dev 2005-07-02 07:45:20 UTC
i'm not going to guess ... attach the config.log like the error message told you to
Comment 10 Herald Becker 2005-07-04 09:33:28 UTC
Created attachment 62604 [details]
The config.log file
Comment 11 SpanKY gentoo-dev 2005-07-04 14:13:33 UTC
has nothing to do with links or libpng ... looks like you were messing around
with slang and broke aalib in the process ... re-emerge aalib and you should be fine

configure:6558: checking for png_create_info_struct in -lpng
configure:6577: gcc -o conftest -march=athlon-xp -mcpu=athlon-xp -m3dnow -msse
-mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops
-frerun-cse-after-loop -frerun-loop-opt -falign-functions=4
-maccumulate-outgoing-args    -I/usr/include/directfb -D_REENTRANT
-I/usr/include/SDL -D_REENTRANT  conftest.c -lpng  -L/usr/lib
-Wl,-rpath,/usr/lib -lSDL -lpthread -lXext -lX11 -L/usr/lib -ldirectfb -lfusion
-ldirect -lpthread -lz -ldl -lvga -lssl -lcrypto -ldl   -ldl -lgpm -lm  1>&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/../../../../i686-pc-linux-gnu/bin/ld:
warning: libslang-utf8.so.1, needed by /usr/lib/libaa.so.1, not found (try using
-rpath or -rpath-link)
/usr/lib/libaa.so.1: undefined reference to `SLsmg_Display_Eight_Bit'
/usr/lib/libaa.so.1: undefined reference to `SLtt_set_cursor_visibility'
Comment 12 Herald Becker 2005-07-07 03:43:37 UTC
Worked, thanks .... Also solved a prob with emerging wesnoth!! :)