Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69480 - Unable to emerge Smalltalkx: ld: cannot find -lXext
Summary: Unable to emerge Smalltalkx: ld: cannot find -lXext
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Maintainers for Miscelleneous Language Packages [OBSOLETE]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-29 21:23 UTC by Eduardo Romero
Modified: 2005-08-24 20:22 UTC (History)
0 users

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


Attachments
Full build log (smalltalkerror,673.83 KB, text/plain)
2005-01-19 23:57 UTC, Herald Becker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eduardo Romero 2004-10-29 21:23:38 UTC
When i tryed to emerge Smalltalkx (marked stable) y get thhe following error:

symlinking to ../../libview/GLXWorkstation.so for linkage ...
gcc  -L/usr/X11/lib -Llib -Lbinary -L. -L/usr/local/lib -L/usr/lib -L/lib -L/usr/local/lib/smalltalk/lib -o stx \
           modulList.o main.o \
           \
          libbasic.so libcomp.so libboss.so libview.so libview2.so libui.so libwidg.so libwidg2.so libtool.so libtool2.so libbasic2.so libbasic3.so libhtml.so libdbase.so  XWorkstation.so GLXWorkstation.so  \
          librun.so \
           \
          -lm        -lXext -lX11 -ldl -lm
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
make[3]: *** [linkIt] Error 1
make[2]: *** [stx_shared] Error 2
make[1]: *** [Smalltalk] Error 2
make: *** [catchDefaultRule] Error 2

!!! ERROR: dev-lang/smalltalkx-4.1.4 failed.
!!! Function src_compile, Line 510, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.


Tried changin to a less "agressive" CFlags, no luck :(

Reproducible: Always
Steps to Reproduce:
1.emerge smalltalkx
2.wait for the error to show :)
3.

Actual Results:  
The error shown above

Expected Results:  
Smalltalkx should install and work properly as its marked stable

fox root # cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built
this stage
# Please consult /etc/make.conf.example for a more detailed example
USE="mmx sse X kde qt gtk2 usb alsa doc fam fbcon java samba unicode ld cups
jikes slang fbcon dvd cdr gnome gtk maildir ssl imap mysql x86"

CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
FEATURES="ccache" # distcc"
DISTCC_DIR="/var/tmp/.distcc"

GENTOO_MIRRORS="http://mirror.tucdemonic.org/gentoo/ http://gentoo.ccccom.com
http://mirror.datapipe.net/gentoo
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://128.213.5.34/gentoo/"

ALSA_CARDS="intel8x0"
AUTOCLEAN="yes"
PORTAGE_OVERLAY="/usr/local/portage"
PORTAGE_NICENESS=1


CCACHE_SIZE="2G"
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-31 00:55:59 UTC
emerge gentoolkit
qpkg -l xorg-x11 | grep libXext
grep LDPATH /etc/env.d/10xorg

Make sure your environment's up to date too. env-update && source /etc/profile && emerge smalltalkx.
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-31 00:56:15 UTC
also, qpkg -I -v xorg-x11.
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-03 01:49:22 UTC
Please reopen when you add info.
Comment 4 Herald Becker 2005-01-17 02:35:24 UTC
OK, somebody else has added the info required:

electric@BrokenWing electric $ qpkg -l xorg-x11 | grep libXext

/usr/X11R6/lib/libXext.so -> libXext.so.6.4 1103626455
/usr/X11R6/lib/libXext.so.6.4
/usr/X11R6/lib/libXext.a
/usr/X11R6/lib/libXext.so.6 -> libXext.so.6.4 1103626465

electric@BrokenWing electric $ grep LDPATH /etc/env.d/10xorg

LDPATH=/usr/X11R6/lib64:/usr/X11R6/lib

electric@BrokenWing electric $ qpkg -I -v xorg-x11

x11-base/xorg-x11-6.8.0-r3 *

Problem seems to persist on my system too. Tried the other guy's solution that cleverly tricked the ebuild in thinking that X11 was somewhere else, giving the exact same error.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-17 09:36:58 UTC
Try this: first make test.c, contents below, then try to link against libXext.

donnie@supernova ~ $ cat test.c
int main()
{}
donnie@supernova ~ $ gcc -o test -lXext test.c
donnie@supernova ~ $ ls -l test
-rwxr-xr-x  1 donnie users 7577 Jan 17 09:33 test
donnie@supernova ~ $ gcc -o test -lXext -static test.c
donnie@supernova ~ $ ls -l test
-rwxr-xr-x  1 donnie users 581347 Jan 17 09:36 test
Comment 6 Herald Becker 2005-01-18 09:43:40 UTC
This is the output I get. Of course I omitted the ls, because there is no file created (duh ;))

I'm running Xorg as my xwindows system, so no more XFree (like I did a long time ago).
So as far as I can tell, it seems to be going wrong there.

Hopefully the stuff down here makes more sense to you then to me, because I'm not a too bad programmer, but C++ and Linux aren't my favourite programming mates yet.

electric@BrokenWing electric $ cat test.c
int main()
{}

electric@BrokenWing electric $ gcc -o test -lXext test.c
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status

electric@BrokenWing electric $ gcc -o test -lXext -static test.c
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status

I at least know it can't find the stuff it searches for.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-18 10:49:25 UTC
ls /usr/X11R6/lib/libXext.*

Also try the earlier compiles with -L/usr/X11R6/lib.
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-18 10:49:56 UTC
Ah might as well make that `ls -l` instead of `ls`.
Comment 9 Herald Becker 2005-01-18 11:28:03 UTC
For your pleasure :)

bash-2.05b$ ls -l /usr/X11R6/lib/libXext.*
-rw-r--r--  1 root root 86744 Dec 21 10:53 /usr/X11R6/lib/libXext.a
lrwxrwxrwx  1 root root    14 Dec 21 10:54 /usr/X11R6/lib/libXext.so -> libXext.so.6.4
lrwxrwxrwx  1 root root    14 Dec 21 10:54 /usr/X11R6/lib/libXext.so.6 -> libXext.so.6.4
-rwxr-xr-x  1 root root 72811 Dec 21 10:53 /usr/X11R6/lib/libXext.so.6.4

When trying to build like this it works, I didn't remove the "-lXext" tho:

bash-2.05b$ gcc -o test -lXext -L/usr/X11R6/lib  test.c
bash-2.05b$ ls -l test
-rwxr-xr-x  1 electric users 7087 Jan 18 20:24 test

bash-2.05b$ gcc -o test -lXext -L/usr/X11R6/lib  test.c
bash-2.05b$ ls -l test
-rwxr-xr-x  1 electric users 7087 Jan 18 20:24 test
bash-2.05b$ gcc -o test -lXext -L/usr/X11R6/lib -static test.c
bash-2.05b$ ls -l test
-rwxr-xr-x  1 electric users 477313 Jan 18 20:25 test

hmmzz ... any "shining" light on the subject?
Comment 10 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-18 12:52:44 UTC
grep X11R6 /etc/ld.so.conf

Maybe try..
env-update
source /etc/profile
emerge smalltalkx
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-18 12:54:06 UTC
Oh by the way, which revision of xorg-x11 is this? If it's 6.8.0-r4 or greater, see whether /usr/X11R6/lib is a symlink to /usr/lib.
Comment 12 Herald Becker 2005-01-19 01:26:51 UTC
Here goes:

bash-2.05b$ grep X11R6 /etc/ld.so.conf
/usr/X11R6/lib64
/usr/X11R6/lib

Already tried this a couple of times, but starting the proces again:

Maybe try..
env-update
source /etc/profile
emerge smalltalkx

Going to give an update as soon as it finishes somewhere ....

"Oh by the way, which revision of xorg-x11 is this? If it's 6.8.0-r4 or greater, see whether /usr/X11R6/lib is a symlink to /usr/lib."

My version:

Calculating dependencies ...done!
[ebuild   R   ] x11-base/xorg-x11-6.8.0-r3

So the latest stable version of it.

Checking symlink through: ls -l /usr/X11R6/lib/

Doesn't give any symlinks, except for some libraries in the specific directory.
Comment 13 Herald Becker 2005-01-19 13:54:56 UTC
and unfortunately here it goes again:

  GNU nano 1.3.4                           File: smalltalkerror

LIBOBJS: ../../libbasic/libbasic.so ../../libcomp/libcomp.so ../../libboss/libboss.so ../../libview/libview.so ../../libvie$
LINK_LIBOBJS: libbasic.so libcomp.so libboss.so libview.so libview2.so libui.so libwidg.so libwidg2.so libtool.so libtool2.$
  symlinking to ../../libbasic/libbasic.so for linkage ...
  symlinking to ../../libcomp/libcomp.so for linkage ...
  symlinking to ../../libboss/libboss.so for linkage ...
  symlinking to ../../libview/libview.so for linkage ...
  symlinking to ../../libview2/libview2.so for linkage ...
  symlinking to ../../libwidg/libwidg.so for linkage ...
  symlinking to ../../libwidg2/libwidg2.so for linkage ...
  symlinking to ../../libui/libui.so for linkage ...
  symlinking to ../../libtool/libtool.so for linkage ...
  symlinking to ../../libtool2/libtool2.so for linkage ...
  symlinking to ../../libbasic2/libbasic2.so for linkage ...
  symlinking to ../../libbasic3/libbasic3.so for linkage ...
  symlinking to ../../libhtml/libhtml.so for linkage ...
  symlinking to ../../goodies/persistency/libdbase.so for linkage ...
  symlinking to ../../librun/librun.so for linkage ...
  symlinking to ../../libview/XWorkstation.so for linkage ...
  symlinking to ../../libview/GLXWorkstation.so for linkage ...
gcc  -L/usr/X11/lib -Llib -Lbinary -L. -L/usr/local/lib -L/usr/lib -L/lib -L/usr/local/lib/smalltalk/lib -o stx \
           modulList.o main.o \
           \
          libbasic.so libcomp.so libboss.so libview.so libview2.so libui.so libwidg.so libwidg2.so libtool.so libtool2.so l$
          librun.so \
           \
          -lm        -lXext -lX11 -ldl -lm
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
make[3]: *** [linkIt] Error 1
make[2]: *** [stx_shared] Error 2
make[1]: *** [Smalltalk] Error 2
make: *** [catchDefaultRule] Error 2

!!! ERROR: dev-lang/smalltalkx-4.1.4 failed.
!!! Function src_compile, Line 510, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-19 14:57:20 UTC
I see something weird in there: it seems to be using -L/usr/X11/lib instead of -L/usr/X11R6/lib for some reason. Can you attach a full compile log, and configure.log if there is one?
Comment 15 Herald Becker 2005-01-19 15:09:24 UTC
Yeah sure, this compile was done on the console and this was the last info on the screen. I will try compilation again under an XTerm with enough history to capture all info of the build, including the configuration, if that is what you want.
Comment 16 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-19 15:13:01 UTC
Just set PORT_LOGDIR to some directory that exists, and you'll get a free build log.
Comment 17 Herald Becker 2005-01-19 15:18:13 UTC
already resorted to my option now ... as far as I can tell there is no configuration going on. It just extracts the files and starts whizzing away at building it.
Comment 18 Herald Becker 2005-01-19 23:57:42 UTC
Created attachment 49023 [details]
Full build log

Her you go, the full log of the build. From top to bottom
Comment 19 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-20 00:10:35 UTC
Ah, man. Could you change the mime type to plain/text please? Just click "Edit" next to it on the attachments list on the top, if you don't know how.
Comment 20 Herald Becker 2005-01-20 00:47:39 UTC
Comment on attachment 49023 [details]
Full build log

sorry :(
Comment 21 Herald Becker 2005-01-30 14:23:50 UTC
Any more news on the subject?

A few days back, I've changed to the r4 release of xorg-x11.
This changed some of the output but it still fails on the same part.
Comment 22 Donnie Berkholz (RETIRED) gentoo-dev 2005-02-05 12:23:41 UTC
Seems to me that smalltalkx is wrongly finding the X libdir. Reassigning.
Comment 23 Herald Becker 2005-02-25 03:18:24 UTC
Any new info on this subject?
Comment 24 Luis Araujo (RETIRED) gentoo-dev 2005-08-24 20:22:47 UTC
I have already added a new version of this package to the tree (smalltalk-5.2.6) 
please, use/test that one, and that way to replace this very 
very outdated version.

Note it is a binary package, and since it only apparently compiles with
glibc<=2.2 , i decided to use the binary version. 

I will be closing this bug for now.