Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66180 - meida-libs/glide-v3 (3.10-r4) missing -lm
Summary: meida-libs/glide-v3 (3.10-r4) missing -lm
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: Alpha Linux
: High normal
Assignee: Alpha Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-02 18:11 UTC by Dr. David Alan Gilbert
Modified: 2006-02-20 10:03 UTC (History)
2 users (show)

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


Attachments
[PATCH] Add a -lm (glide-diff,459 bytes, patch)
2005-11-12 12:06 UTC, Dr. David Alan Gilbert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dr. David Alan Gilbert 2004-10-02 18:11:35 UTC
On Alpha trying to build the glide package I hit the following error:
(I've had glide working on Alpha many years ago on Debian; I have a Voodoo 3 3000 PCI card).

make[3]: Entering directory `/var/tmp/portage/glide-v3-3.10-r4/work/glide3x/build/swlibs/texus2/cmd'
/bin/sh ../../../libtool --mode=link gcc  -O6 -m486          -o texus  cmd.o ../../../swlibs/fxmisc/libfxmisc.la                        ../../../swlibs/texus2/lib/libtexus.la
gcc -O6 -m486 -o texus cmd.o  ../../../swlibs/fxmisc/.libs/libfxmisc.a ../../../swlibs/texus2/lib/.libs/libtexus.a
../../../swlibs/texus2/lib/.libs/libtexus.a(eigen.o)(.text+0x47c): In function `eigenVectors':
: undefined reference to `sqrt'
../../../swlibs/texus2/lib/.libs/libtexus.a(eigen.o)(.text+0x488): In function `eigenVectors':
: undefined reference to `sqrt'

A -lm lets this link, but I don't know automake/autoconf to know where to stuff one in.
Note also that it is passing the -m486 which fortunately the compiler seems to be ignoring.

I suspect on x86 that there is some handcoded assembler and hence no need for the library sqrt() - but I don't know that for sure.

Reproducible: Always
Steps to Reproduce:
1. emerge of glide-v3

Actual Results:  
gcc -O6 -m486 -o texus cmd.o  ../../../swlibs/fxmisc/.libs/libfxmisc.a
../../../swlibs/texus2/lib/.libs/libtexus.a
../../../swlibs/texus2/lib/.libs/libtexus.a(eigen.o)(.text+0x47c): In function
`eigenVectors':
: undefined reference to `sqrt'

Expected Results:  
linked!

Portage 2.0.50-r11 (default-alpha-2004.0, gcc-3.3.2, glibc-2.3.2-r11,
2.4.21-alpha-r12)
=================================================================
System uname: 2.4.21-alpha-r12 alpha EV56
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="alpha"
AUTOCLEAN="yes"
CFLAGS="-mieee -O2 -mcpu=ev56"
CHOST="alphaev56-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mieee -O2 -mcpu=ev56"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo
ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ ftp://gentoo.inode.at/source/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alpha arts avi berkdb bitmap-fonts crypt cups encode esd foomaticdb gdbm
gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mpeg
ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime
readline sdl slang spell ssl tcpd truetype voodoo3 xml2 xmms xprint xv zlib"
Comment 1 Dr. David Alan Gilbert 2005-11-12 12:06:32 UTC
Created attachment 72767 [details, diff]
[PATCH] Add a -lm

Well this seems to get me past this error - I'm not sure how many similar ones
there are or whether this is the right way to do it - should probably check it
doesn't break x86.
Comment 2 Thomas Cort (RETIRED) gentoo-dev 2006-02-17 17:43:22 UTC
There is a new version of glide-v3 in portage, glide-v3-20060203. Do you still get compile problems with the new version?
Comment 3 Fernando J. Pereda (RETIRED) gentoo-dev 2006-02-20 10:03:30 UTC
Does version compiles flawlessly here. Haven't tested the driver though.

Reopen if it doesn't work.

Cheers,
Ferdy