Bug 70057 - emerge app-sci/elem-1.0.3 fails with undefined references
Bug#: 70057 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: phosphan@gentoo.org Reported By: mail@jasper-moeller.de
Component: Applications
URL: 
Summary: emerge app-sci/elem-1.0.3 fails with undefined references
Keywords:  
Status Whiteboard: 
Opened: 2004-11-04 08:04 0000
Description:   Opened: 2004-11-04 08:04 0000
When trying to emerge app-sci/elem-1.0.3, compilation fails with the following
error:

gcc -g -O2 -o elem-de elem_main_de.o elem_cb_de.o elem_de.o -lm -L./  -lforms
-L/usr/X11R6/lib -lX11 -lnsl  -DDEUTSCH
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libforms.so: undefined
reference to `XpmCreatePixmapFromData'
[...More undefined references...]
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../libforms.so: undefined
reference to `XpmLibraryVersion'
collect2: ld returned 1 exit status
make: *** [elem-de] Fehler 1

Reproducible: Always
Steps to Reproduce:
1. emerge -uv elem
Actual Results:  
compilation error 

Expected Results:  
ebuild shoud have finished successfully 

It looks as if -lXpm is missing from the link line. I did, however, update to 
xforms-1.0.90 before, so perhaps this is the problem. Fix should be rather 
trivial.

------- Comment #1 From Patrick Kursawe 2004-11-08 03:39:55 0000 -------
I am using the same xforms version and can't reproduce this problem. But since
it should not hurt anyone I've modified the ebuild. Please try -r1 when it hits
your portage mirror (see ChangeLog for other changes in this revision). Thanks
for reporting.