On Tue, 20 Sep 2005, David Logan wrote:

Hugh Sasse wrote:


On solaris 9 Sparc I built originally by modifying
mysql-4.1.14/BUILD/compile-solaris-sparc thusly
[...]
gmake -j 4
neelix hgs 82 %>
and I invoked the script directly, and also tried with bash.
I have:

GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.9

gcc (GCC) 3.4.3

        [...]
So I started again and built using this script:
#!/bin/bash
CFLAGS="-O3 -L$LD_LIBRARY_PATH" CXX=gcc MAKE=gmake \
CXXFLAGS="-O3 -L$LD_LIBRARY_PATH -felide-constructors -fno-exceptions --with-pthread --with-gnu-ld && \
        [...]

My LD_LIBRARY_PATH is

/progs/SUNWspro/lib:/usr/local/lib:/usr/local/lib/sparcv9:/usr/lib:/usr/share/lib:/usr/dt/lib:/usr/openwin/lib:/opt/panorama/lib:/opt/sfw/lib
                                                             ^^^^^^^^

This blows up with:

        [...]
gcc -O3 -DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL -D_FILE_OFFSET_BITS=64 -DHAVE_RWLOCK_T -o mysql_tzinfo_to_sql mysql_tzinfo_to_sql.o -static -L/progs/SUNWspro/lib:/usr/local/lib:/usr/local/lib/sparcv9:/usr/lib:/usr/share/lib:/usr/dt/lib:/usr/openwin/lib:/opt/panorama/lib:/opt/sfw/lib ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -lz -lpthread -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lpthread
/usr/local/bin/ld: cannot find -lpthread
collect2: ld returned 1 exit status
gmake[4]: *** [mysql_tzinfo_to_sql] Error 1
gmake[4]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/scratch/hgs/mysql-4.1.13/sql'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/scratch/hgs/mysql-4.1.13'
gmake: *** [all] Error 2


neelix hgs 57 %> ls /usr/lib/*pthread*
/usr/lib/libpthread.so /usr/lib/llib-lpthread
/usr/lib/libpthread.so.1 /usr/lib/llib-lpthread.ln
neelix hgs 58 %>


Any suggestions as to how I get around this and get the whole thing
installed in /usr/local/mysql-4.1.13 ?

Thank you,
Hugh

Hi Hugh,

Do you have the pthread library path in the -L path somewhere? It doesn't

Yes, it is in $LD_LIBARY_PATH above.

seem to be able to find it.

Well, it does for some of the work, but not at the stage it fails.

You might like to use crle to put the paths in in a more permanent fashion

Possibly, but that only works for sun's ld, and GNU ld is being
found by configure.  AFAICS GNU ld doesn't make use of
$LD_LIBARY_PATH, hence the -L.

Regards
David

        Thank you,
        Hugh

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to