Hi!

Tim, what do you think if we rename our own copy of bdb with 'libmy-bdb'
just to ensure that we link with our copy of bdb ?

Regards,
Monty


>>>>> "Dave" == Dave FitzPatrick <[EMAIL PROTECTED]> writes:

Dave> On 19 Jun 2001, at 13:36, Sinisa Milivojevic <[EMAIL PROTECTED]> wrote:
>> Dave FitzPatrick writes:
>> > I recently set about upgrading our MySQL install on a Compaq Tru64 4.0f 
>> > Alpha box from 3.22.25 to 3.23.38.
>> >
Dave> [snip] 
>> I edited sql/Makefile and replaced the two occurrences of:
>> > 
>> >     -L$(top_builddir)/bdb/build_unix -ldb
>> > 
>> > with
>> > 
>> >     $(top_builddir)/bdb/build_unix/libdb.a
>> > 
>> > and the make proceded without further incident.
>> > 
>> > I'm not sure if this is a problem with Compaq's ld or something else, 
>> > but I found it curious.
>> 
>> Definitely looks like Compaq linker bug. Some GNU linker versions have
>> a similar bug.
>> 
>> Contact Compaq and submit the info. We have had good experience with a
>> software engineer from Compaq that is maintaining their linker.

Dave> It looks like the issue is that the linker looks for the shared version 
Dave> of a library in all library directories first, so it's finding 
Dave> /usr/shlib/libdb.so and linking against that.

Dave> It seems you can pass a parameter of -oldstyle_liblookup to ld that 
Dave> forces it to look for shared libraries and then archives in each 
Dave> directory before moving on to the next.

Dave> I tried adding

Dave>   --with-mysqld-ldflags='-Xlinker -oldstyle_liblookup'

Dave> but this ended up putting it in the wrong order on the resultant 
Dave> command to ld so that it sees it as an additional -o parameter and 
Dave> causes an error.

Dave> Similar problems with defining CXXLDFLAGS.

Dave> The workaround I finally used successfully was to create a shell script 
Dave> named ld in a directory that is in my path before /usr/bin which 
Dave> contains:

Dave>   #!/bin/sh
Dave>   /usr/bin/ld -oldstyle_liblookup $*

Dave> D=
Dave> -- 
Dave>  Dave FitzPatrick                       [EMAIL PROTECTED]
Dave>  Webmaster                              978-681-1599
Dave>  Quantic Communications An MHI Company  http://www.quantic.com/


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to