Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52169 - hdf-4.2.0-r3 needs CFLAGS="-lm" to compile
Summary: hdf-4.2.0-r3 needs CFLAGS="-lm" to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-27 02:51 UTC by Vincent Schut
Modified: 2004-06-02 04:29 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 Vincent Schut 2004-05-27 02:51:40 UTC
when emerging hdf-4.2.0-r3, build fails with an error: "undefined reference to 'sqrt'". Emerging like this:

CLFAGS="-lm" emerge hdf

works.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.50-r6 (gcc34-amd64-2004.1, gcc-3.4.0, glibc-2.3.3_pre20040420-r0, 
2.6.5-gentoo-r1) 
================================================================= 
System uname: 2.6.5-gentoo-r1 x86_64 4 
Gentoo Base System version 1.4.15 
Autoconf: sys-devel/autoconf-2.59-r3 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CFLAGS="-march=k8 -mtune=k8 -O3 -pipe -fomit-frame-pointer" 
CHOST="x86_64-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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=k8 -mtune=k8 -O3 -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo 
http://212.219.247.10/sites/www.ibiblio.org/gentoo/ 
http://212.219.247.13/sites/www.ibiblio.org/gentoo/ 
http://212.219.247.21/sites/www.ibiblio.org/gentoo/" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X aalib acpi alsa amd64 apache2 apm arts avi berkdb cdr crypt cscope cups 
curl dga directfb divx4linux dvb dvd dvdr emacs encode esd f77 fbcon fftw 
foomaticdb gd gdbm ggi gif gimpprint gnome gpm gtk gtk2 gtkhtml imagemagick 
imap imlib jabber java javascript jikes jpeg kde ldap libg++ libwww lirc live 
mad maildir mikmod mng motif mpeg mpi ncurses nls nogcj odbc oggvorbis opengl 
oss pam pdflib perl png postgres ppds python qt quicktime readline samba 
scanner sdl slang snmp spell ssl szip tcltk tcpd tetex theora threads tiff 
truetype unicode usb v4l v4l2 vim-with-x wmf wxwindows xml xml2 xmms xv xvid 
zlib"
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2004-06-02 04:29:24 UTC
Ok, it's a gcc 3.4 issue... replaced make by make LDFLAGS="-lm", seems to work. Thanks for reporting.