[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Problem build 4.0.3 on Tru64 5.1A
- From: Chris Adams <cmadams hiwaay net>
- To: rpm-list redhat com
- Subject: Re: Problem build 4.0.3 on Tru64 5.1A
- Date: Sun, 23 Dec 2001 18:21:39 -0600
Once upon a time, Chris Adams <cmadams@hiwaay.net> said:
> The other problem I've run into is that when building with the included
> db3, no check is made to see if the thread library is needed (-lpthread
> is needed with db3 on Tru64), so the make bombs trying to link
> tools/dumpdb. For my build, I've changed configure to always link with
> the thread library, but I don't know what the "best" way to do this
> would be (since you can't do the test at configure time for the included
> library).
Just wanted to add one other thing that kept rpm-4.0.3 from building on
Tru64 5.1A. When doing the static link of rpm, you must explicitly
include "-lexc" (it is supposed to be included anywhere you use
"-lpthread" for DECthreads but libpthread.so pulls it in automatically).
I just added -lexc in configure.in to the __pthread_mutex_trylock test
(since that is pretty much for Tru64 5.x anyway), but there is probably
a better way to do it (maybe try to do a static link of a threaded
program, but I'm not sure how to force a static link in autoconf).
With those changes (work around db->stat in rpmdb/db3.c, adding the
thread library to links with db3, and added -lexc to the thread
library), I'm able to build and run rpm-4.0.3 under Tru64 5.1A. The
only software I had to build/install was gcc-3.0.2, zlib-1.1.3, and
(GNU) make-3.79.1.
--
Chris Adams <cmadams@hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]