[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] building monotone on Red Hat Enterprise 4
From: |
Thomas Moschny |
Subject: |
Re: [Monotone-devel] building monotone on Red Hat Enterprise 4 |
Date: |
Tue, 11 Aug 2009 17:10:25 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2 |
Stephen Leake wrote:
> Thomas Moschny <address@hidden> writes:
>> Reminds me more of problems with the order of libraries in the final
>> link step
>
> That makes sense. I added -ldl and the dlclose etc references got
> resolved. Any hint which library has the pthread symbols?
You need -pthread, in the compile as well as in the link step(s) - note
that it is not -lpthread, but simply -pthread, no typo.
Look through the ml archive, there's a thread about that issue some time
ago. Basically, if one of the libraries we use is compiled with pthread
support, we should add -pthread everywhere.
(I consider it an error that neither "pkg-config --cflags sqlite3" nor
"pkg-config --libs sqlite3" output -pthread, but yeah, some people seem
to disagree.)
>> I saw when building the (semi-) static binary we have on the
>> website.
>
> Which one is that?
http://monotone.ca/downloads/0.44/mtn-0.44-linux-x86.bz2
This is not an archive, but a single, compressed binary, with no other
dependencies than that provided by glibc 2.3.
> It would be good to describe the library dependencies of the
> distributions.
Not sure I understand what you mean here.
> It would also be good to include the specific build instructions in
> some file in monotone, so others can reproduce it.
Build instructions for what? The static binary? That is currently built
by hand, as I wasn't in the mood working through our auto*tools stuff
yet to implement that.
> The Windows native installer includes the necessary DLLs, and build
> instructions are in monotone/INSTALL and monotone/win32/README.
No need to separately ship libraries for Linux, see above.
- Thomas