[Newbie]link problem with some programs of XFree86 4.2.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Vivenzio,

I believe it's a glibc problem, possibly when used with an unpatched GCC 
2.95.3 (although I'm not sure about that last bit :-). Check the archives 
here (using google with the site:xfree86.org option in the search parameters) 
as I remember someone else with the same problem fairly recently, or just do 
a general google on 'undefined', 'reference' and 'atexit' to show plenty of 
similar postings unrelated to XFree itself. It's definitely *not* just an 
XFree problem though.

Cheers,
Sean

On Friday 07 June 2002 09:48, Vivenzio Pagliari wrote:
> When building XFree86 4.2.0 on my linux machine, I get link errors for
> the programs xcmsdb, xev, xmodmap and xwud.
>
> The error message is always (here the one from xcmsdb):
> gcc -o xcmsdb -O2 -fno-strength-reduce -ansi -pedantic -Wall
> -Wpointer-arith -L../../exports/lib xcmsdb.o loadData.o -lX11
> -Wl,-rpath-link,../../exports/lib
> /lib/libdl.so.2: undefined reference to `atexit'
> collect2: ld returned 1 exit status
> make: *** [xcmsdb] Fehler 1
>
> I can resolve all link errors by appending "-ldl" to LOCAL_LIBRARIES
> in the makefiles. Is this a known build problem or is there something
> wrong on my machine? Does xcmsdb really use something from
> libdl.so? ("grep -- dl" on the sources showed nothing, but most
> probably this is not accurate enough.)
>
> Can someone enlighten me? When responding, please mail also to my
> personal address, I not subscribed to the list.
>
> If it matters, here some details of my machine:
> $ gcc -v
> Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs
> gcc version 2.95.3 20010315 (release)
>
> $ ld -V
> GNU ld version 2.12
>   Supported emulations:
>    elf_i386
>    i386linux
>    i386coff
>    mmo
>    elf64mmix
>
> $ uname -a
> Linux jon 2.4.17 #2 Thu Jan 3 20:25:24 CET 2002 i686 unknown
>
> $ /lib/libc.so.6
> GNU C Library stable release version 2.2.5, by Roland McGrath et al.
> Copyright (C) 1992-2001, 2002 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
> Compiled by GNU CC version 2.95.3 20010315 (release).
> Compiled on a Linux 2.4.17 system on 2002-02-09.
> Available extensions:
>         GNU libio by Per Bothner
>         crypt add-on version 2.1 by Michael Glad and others
>         linuxthreads-0.9 by Xavier Leroy
>         BIND-8.2.3-T5B
>         libthread_db work sponsored by Alpha Processor Inc
>         NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
> Report bugs using the `glibcbug' script to <bugs@gnu.org>.
>
>
> TIA,
> Vivenzio Pagliari

-- 
Sean McGlynn
sean@tmiau.com


[Index of Archives]     [XFree86]     [Xfree86 Xpert]     [X.org]     [IETF Annouce]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Picture Sharing]     [Linux Security]     [Linux RAID]

  Powered by Linux