This all started when the Boss asked for Mysql...and perl...and...

I started by updating the installation of gcc (2.95). No problems.
I installed perl (5.005_03) with gcc, again no problems. 
Except for gcc, no other configure flags were given to perl.

Someone else installed a binary distribution of Mysql (3.23.43), 
and reported no problems. I can start/stop mysql, and it'll 
tell me the version, etc (taken from the "Post-Installation & Testing" 
section of the manual). 
So, from all accounts mysql works as expected.

Repeated failed attempts to install Msql-Mysql-modules-1.2219. It fails on
"make test". From the README file, the reason the driver can't load the 
mysql.so is because the linker doesn't include libgcc.a . To fix it, the
README suggests I recompile perl or mysql. I figured mysql was the unknown,
so I set out to recompile it. (The README also suggested one other fix, but
that didn't work either.)

I downloaded a source distribution of mysql. Read the documentation, and
execute :
CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors -fno-exceptions \
-fno-rtti" ./configure --prefix=/usr/local/mysql \
--enable-assembler --with-mysqld-ldflags=-all-static --with-low-memory

Then "make". It runs for a bit (20-25 minutes) and then dies with :
...
mkdir .libs
gcc -O3 -DDBUG_OFF -O3 -felide-constructors -fno-exceptions -fno-rtti -DSCO
-fno
-implicit-templates -fno-exceptions -fno-rtti -o mysqld sql_lex.o item.o
item_su
m.o item_buff.o item_func.o item_cmpfunc.o item_strfunc.o item_timefunc.o
thr_ma
lloc.o item_create.o field.o key.o sql_class.o sql_list.o net_serv.o
violite.o n
et_pkg.o lock.o my_lock.o sql_string.o sql_manager.o sql_map.o mysqld.o
password
.o hash_filo.o hostname.o convert.o sql_parse.o sql_yacc.o sql_base.o
table.o sq
l_select.o sql_insert.o sql_update.o sql_delete.o procedure.o item_uniq.o
sql_te
st.o log.o log_event.o init.o derror.o sql_acl.o unireg.o time.o opt_range.o
opt
_sum.o opt_ft.o records.o filesort.o handler.o ha_heap.o ha_myisam.o
ha_myisammr
g.o ha_berkeley.o ha_innobase.o ha_gemini.o ha_isam.o ha_isammrg.o sql_db.o
sql_
table.o sql_rename.o sql_crypt.o sql_load.o mf_iocache.o field_conv.o
sql_show.o
 sql_udf.o sql_analyse.o sql_cache.o slave.o sql_repl.o mini_client.o
mini_clien
t_errors.o md5.o stacktrace.o -static ../isam/libnisam.a ../merge/libmerge.a
../
myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a
../mysys/libmys
ys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -ldl
-lgthr
eads -lsocket -lgthreads -lcrypt -lm -lgthreads -lsocket -lgthreads
 fatal error: library not found: -ldl
collect2: ld returned 1 exit status
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)

I've applied to svr5.sh patch (and set LD_LIBRARY_PATH as it suggests),
but the result doesn't change.

HELP!

Cheers,
Jo-an


Release:        mysql-3.23.43 (Source distribution)
Server: lt-mysqladmin  Ver 8.21 Distrib 3.23.43, for pc-sco3.2v5.0.6 on i686
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version          3.23.36
Protocol version        10
Connection              Localhost via UNIX socket
UNIX socket             /tmp/mysql.sock
Uptime:                 23 hours 13 min 45 sec

Threads: 1  Questions: 2  Slow queries: 0  Opens: 5  Flush tables: 1  Open
tables: 0 Queries per second avg: 0.000
>Environment:
        <machine, os, target, libraries (multiple lines)>
System: SCO_SV mm242a 3.2 5.0.6 i386


Some paths:  /usr/bin/perl /bin/make /usr/local/bin/gmake /usr/local/bin/gcc
/bin/cc
GCC: Reading specs from
/usr/local/lib/gcc-lib/i686-pc-sco3.2v5.0.6/2.95.3/specs
gcc version 2.95.3 20010315 (release)
Compilation info: CC='gcc'  CFLAGS=' '  CXX='c++'  CXXFLAGS=''  LDFLAGS=''
LIBC: 
lrwxrwxrwx   1 root     sys           35 Nov  9 12:49 /lib/libc.a ->
/opt/K/SCO/unixds/5.1.2A/lib/libc.a
lrwxrwxrwx   1 root     sys           36 Nov  9 12:49 /lib/libc.so ->
/opt/K/SCO/unixds/5.1.2A/lib/libc.so
lrwxrwxrwx   1 root     sys           39 Nov  9 12:49 /usr/lib/libc.a ->
/opt/K/SCO/unixds/5.1.2A/usr/lib/libc.a
lrwxrwxrwx   1 root     sys           40 Nov  9 12:49 /usr/lib/libc.so ->
/opt/K/SCO/unixds/5.1.2A/usr/lib/libc.so
lrwxrwxrwx   1 root     root          41 Apr 10  2001 /usr/lib/libc.so.1 ->
/opt/K/SCO/Unix/5.0.6Ga/usr/lib/libc.so.1
Configure command: ./configure  --prefix=/usr/local/mysql
Perl: This is perl, version 5.005_03 built for i386-sco

---------------------------------------------------------------------
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