Date: 11 May 2003 12:42:03 -0400 From: Joe Marcus Clarke <marcus@marcuscom.com> To: "Timur I. Bakeyev" <timur@com.bat.ru> Cc: Glenn Johnson <gjohnson@srrc.ars.usda.gov> Subject: Re: gdm-2.4.1.4 not launching Message-ID: <1052671323.6810.10.camel@shumai.marcuscom.com> In-Reply-To: <20030511150225.A84789@bat.ru> References: <20030509160612.GA19809@node1.cluster.srrc.usda.gov> <1052500047.313.14.camel@gyros> <20030509172845.GA76544@node1.cluster.srrc.usda.gov> <1052502107.313.24.camel@gyros> <20030510064319.GC36282@gforce.johnson.home> <20030511044052.GA68086@gforce.johnson.home> <20030511044457.GA68161@gforce.johnson.home> <1052633694.98015.38.camel@shumai.marcuscom.com> <20030511150225.A84789@bat.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-c9b3dx2NcuKyu4bSQfO2 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2003-05-11 at 09:02, Timur I. Bakeyev wrote: > On Sun, May 11, 2003 at 02:14:55AM -0400, Joe Marcus Clarke wrote: > > On Sun, 2003-05-11 at 00:44, Glenn Johnson wrote: > > > > > > > > > > Well, version 2.4.1.3 works just fine. I have that version > > > > > installed now. It seems like most of the differences, other than > > > > > the language support, are in the Makefiles and configure scripts. > > > > > Something must be getting built incorrectly for version 2.4.1.4. > > > > > > > > The attached patch to ltmain.sh gets gdm-2.4.1.4 working for me. > > >=20 > > Glenn, I owe you a bottle of something. This patch not only fixes gdm, > > but nautilus and [maybe] bonobo as well. This crept in, and is only > > applicable to -STABLE. -CURRENT _should_ have libc_r linked in. >=20 > Thanks Glenn for the fix! I spend half of Sunday incrementally applying > patches to 2.4.1.3 to make it 2.4.1.4 and reached the stage, where only > changes in libtool and configure were not applied and the beast was still > working :(). So you saved my other half of the day from investigation :) Try doing that with nautilus which is what I was doing. I had applied all the patches to get from 2.2.3 to 2.3.1, but it was _still_ failing.=20 I was about to look at LDFLAGS, but I was still a ways off from ltmain.sh. >=20 > As a side help - can someone explain me, what is this mess with -lc_r and > -pthread is all about? What should be used with wich version of FreeBSD? In -STABLE, you may notice that all of functions in libc are also in libc_r. libc_r contains thread-safe versions. If you link both libc and libc_r into a binary in -STABLE, you get symbol collisions, and bad things can happen. At some point early in 5.x -CURRENT development, libc was made thread-safe, and only the POSIX thread API was put into libc_r. Therefore, you can now safely link both libc and libc_r into binaries in -CURRENT. -pthread is handled specially by the linker. It knows where it can and where it can't link libc_r (e.g. shared libraries). However, in -CURRENT, these restrictions have now been lessened, so passing -lc_r directly is now okay. Note how I modified Glenn's patch to exclude -lc_r from the linker in freebsd4*. This should really be necessary as ${PTHREAD_LIBS} should always be -pthread on -STABLE. Hope that clarifies things for you. Joe >=20 > Thanks a lot, > Timur. --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-c9b3dx2NcuKyu4bSQfO2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQA+vn1bb2iPiv4Uz4cRAk3FAJ0ZY3sLXwZY8n9I0cRFFzB3QFlaTwCgjaP4 jwAOwXx70WHnlpW+YsgAbJA= =2WJh -----END PGP SIGNATURE----- --=-c9b3dx2NcuKyu4bSQfO2--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1052671323.6810.10.camel>