From kde-devel Sat Jun 16 18:15:02 2001 From: Matthias Posseldt Date: Sat, 16 Jun 2001 18:15:02 +0000 To: kde-devel Subject: gcc's atexit problem (Re: Problems with qt-copy in CVS) X-MARC-Message: https://marc.info/?l=kde-devel&m=99271580500706 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------Boundary-00=_21C1KJU3C3UBWKUD3LIC" --------------Boundary-00=_21C1KJU3C3UBWKUD3LIC Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable On Saturday 16 June 2001 13:14, Thorsten Schnebeck wrote: > Am Samstag, 16. Juni 2001 12:56 schrieb Nils Holland: > [...] > > > /usr/X11R6/lib/libX11.so.6: undefined reference to `atexit' > > collect2: ld returned 1 exit status > > make[4]: *** [aclock] Error 1 > > Hmm, this seems to be the problem mentioned in > > http://lists.kde.org/?l=3Dkde-devel&m=3D99264135212831&w=3D2 > > For some unknown reasons I don't have these problems here (so far:) usi= ng > gcc-2.95.3 and glib-2.2.2 too. After some investigation I found the problem that occurs with the followi= ng=20 versions: gcc 2.95.3 glibc 2.2.3 Due to a bug in the compiler/linker/I don't know the linker sometimes doe= sn't=20 link against libc.so.6 which is a text file with the content "GROUP=20 (/lib/libc-2.2.3.so /lib/libc_unshared.a)", but directly to=20 /lib/libc-2.2.3.so. But only in the nonshared file there is a function=20 'atexit' (also fstat, etc.). So sometimes if you link a program to a libr= ary=20 linked incorrectly the "Undefined reference to 'atexit'" occurs. On the gcc mailing list there is a patch, I attached it for convenience=20 (searched some time for it myself). After patching and rebuilding your gcc 2.95.3, you have to recompile your= =20 XFree86 (if you have the error described), then you can compile qt-2.3.1 = and=20 no more "Undefined references to 'atexit'". Ciao, Matthias --=20 Go Open Source and build software that doesn't crash even when it's hit by an U.S. Navy submarine piloted by rich civilians. --------------Boundary-00=_21C1KJU3C3UBWKUD3LIC Content-Type: application/x-gzip; name="01-gcc-2.95.3.patch.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="01-gcc-2.95.3.patch.gz" H4sICAPZ6zoAA2djYy0yLjk1LjMucGF0Y2gArVRra+JAFP1sfsWBQlFjYh7t4oMFu1aKUG1ZU3YX FoY0MzGDZlLycCvF/74zsb7WWgrbQcjMvefeufd47lAehjCKcYppEBiO2b40XTNJ+bQpz80gEaHc crf1pTnnong2oz3cKYhmGMZH01W8qMDVUwq0YFsd1+nYLux2u63puv6BuyqTQpTxTluGdSy347hw LMvWej0YjnvRcKGrj2Oj19Og1qqyWb+VYYU/EZ8zVK2ahjMmKA81XdPPeAjKQi4YrRJyP+wTUsP5 +caG6sNkQG7GD7fDb31i1zS9WYcX8Qzy52M2L+iUmdLCoOqFRDZvVc2gS+HHPIDsYMZSCMZoBkLI YzojPqVpQ9NlVYQwseBpIuALCj9nzzxHtWbiB0PkLxjyBLE/Y8iKVB4itoQvN1yoPUx5SbaMy0wZ C3KeiDLSD4IkfprzLIJM97hUKbiYyoJpEcdLBP58joilZeU8K+ODhDLVlGALWW7K/CBi1ATqzdK9 XpKvNTHof/fIYHxNhuOhR64fRqNfimeJpMkr52XUy/4BYM85SwUWCaeo75HRPcYEkZ+iXt8StIYc ptvLgK/4B7qGbCi1at1d5GqXZicK/VUU9P1ZSfMsL8LQDI5ku/WcnowtpOIVDCPZodSxbXcu3M6l fXogdmFHc2BZuzlwW1bDbkNX31Y5B68tKR6yGFVv8NMjk0HfG96NydVkRO7ua10NmvF5ojY+TdTG f4raeF/Uhmz7cPjLt+Zw/N96EqRNsSKN6oqX8p7Twj5wH2laM9b+U0Jee7cMludV+WjJYt6YQaXo Y2t3J4SV/Lf/Av3jBfoNBgAA --------------Boundary-00=_21C1KJU3C3UBWKUD3LIC-- >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<