Re: [Monotone-devel] building monotone on Red Hat Enterprise 4

2009-08-11 Thread Thomas Moschny
Stephen Leake wrote:
 I'm trying to build monotone head on Red Hat Enterprise 4.
 
 gcc is gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-11)
 
 Botan, Lua, pcre get past the mtn configure checks, but sqlite does
 not:
 [... undefined references ...]

 Do these errors look familiar? 
 
 Maybe I need a newer pthread library?

Reminds me more of problems with the order of libraries in the final
link step I saw when building the (semi-) static binary we have on the
website.

- Thomas


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] building monotone on Red Hat Enterprise 4

2009-08-11 Thread Stephen Leake
Thomas Moschny thomas.mosc...@gmx.de writes:

 Stephen Leake wrote:
 I'm trying to build monotone head on Red Hat Enterprise 4.
 
 gcc is gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-11)
 
 Botan, Lua, pcre get past the mtn configure checks, but sqlite does
 not:
 [... undefined references ...]

 Do these errors look familiar? 
 
 Maybe I need a newer pthread library?

 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?

 I saw when building the (semi-) static binary we have on the
 website.

Which one is that? 

It would be good to describe the library dependencies of the
distributions.

It would also be good to include the specific build instructions in
some file in monotone, so others can reproduce it.

The Windows native installer includes the necessary DLLs, and build
instructions are in monotone/INSTALL and monotone/win32/README.

-- 
-- Stephe


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] building monotone on Red Hat Enterprise 4

2009-08-11 Thread Thomas Moschny
Stephen Leake wrote:
 Thomas Moschny thomas.mosc...@gmx.de 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



___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] building monotone on Red Hat Enterprise 4

2009-08-11 Thread Stephen Leake
Thomas Moschny thomas.mosc...@gmx.de writes:

 Stephen Leake wrote:
 Thomas Moschny thomas.mosc...@gmx.de 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.

Ok, I'll give that a try.

 It would be good to describe the library dependencies of the
 distributions.

 Not sure I understand what you mean here.

Since I know that monotone no longer bundles its own copies of
external libraries, I thought the Linux executable relied on system
shared libraries. 

Other casual users would not make that assumption.

But it would be good to state something like

These are either staticly linked, or include all external
libraries.

on the website.

 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? 

Yes.

 That is currently built by hand, as I wasn't in the mood working
 through our auto*tools stuff yet to implement that.

Right.

So whoever does the next release will need to repeat that by hand
process. It would be helpful if it was written down somewhere.

-- 
-- Stephe


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


[Monotone-devel] building monotone on Red Hat Enterprise 4

2009-08-10 Thread Stephen Leake
I'm trying to build monotone head on Red Hat Enterprise 4.

gcc is gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-11)

Botan, Lua, pcre get past the mtn configure checks, but sqlite does
not:

/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libsqlite3.a(sqlite3.o)(.text+0x32d4e):
 In function `pthreadMutexTry':
/home/stephe/monotone/sqlite-3.6.16/sqlite3.c:14876: undefined reference to 
`pthread_mutex_trylock'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libsqlite3.a(sqlite3.o)(.text+0x32e39):
 In function `pthreadMutexAlloc':
/home/stephe/monotone/sqlite-3.6.16/sqlite3.c:14753: undefined reference to 
`pthread_mutexattr_init'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libsqlite3.a(sqlite3.o)(.text+0x32e4a):/home/stephe/monotone/sqlite-3.6.16/sqlite3.c:14754:
 undefined reference to `pthread_mutexattr_settype'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libsqlite3.a(sqlite3.o)(.text+0x32e5e):/home/stephe/monotone/sqlite-3.6.16/sqlite3.c:14756:
 undefined reference to `pthread_mutexattr_destroy'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libsqlite3.a(sqlite3.o)(.text+0x4d5ae):
 In function `findLockInfo':
/home/stephe/monotone/sqlite-3.6.16/sqlite3.c:21879: undefined reference to 
`pthread_create'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libsqlite3.a(sqlite3.o)(.text+0x4d5bf):/home/stephe/monotone/sqlite-3.6.16/sqlite3.c:21880:
 undefined reference to `pthread_join'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libsqlite3.a(sqlite3.o)(.text+0x4daa8):
 In function `unixDlError':
/home/stephe/monotone/sqlite-3.6.16/sqlite3.c:24980: undefined reference to 
`dlerror'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libsqlite3.a(sqlite3.o)(.text+0x21a1):
 In function `unixDlSym':
/home/stephe/monotone/sqlite-3.6.16/sqlite3.c:25007: undefined reference to 
`dlsym'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libsqlite3.a(sqlite3.o)(.text+0x4da8b):
 In function `unixDlClose':
/home/stephe/monotone/sqlite-3.6.16/sqlite3.c:25011: undefined reference to 
`dlclose'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../libsqlite3.a(sqlite3.o)(.text+0x4daf2):
 In function `unixDlOpen':
/home/stephe/monotone/sqlite-3.6.16/sqlite3.c:24966: undefined reference to 
`dlopen'


Do these errors look familiar? 

Maybe I need a newer pthread library?

-- 
-- Stephe


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel