Reconfiguring without the --with-mysqld-ldflags=-all-static switch resolved
the issue. Any idea why the recommended configuration does not link properly
in my case?

Thanks,
Christian

-----------------
Christian Gilmore
Technology Leader
GeT WW Global Applications Development
IBM Software Group


> -----Original Message-----
> From: Christian Gilmore [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 03, 2002 4:29 PM
> To: Mysql Mailing List (E-mail)
> Subject: Linker issues with 3.23.52 and solaris 7
>
>
> Hello. I'm attempting to install 3.23.52 on solaris 7 from
> source and am having issues with the linker not finding
> libraries in /usr/lib. I'd greatly appreciate any help as it
> seems this should be a non-issue.
>
> phantom% gcc -v
> Reading specs from
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/specs
> gcc version 2.95.3 20010315 (release)
>
> phantom% ./configure --prefix=/opt/gnu/depot/mysql-3.23.52
> --enable-assembler --with-mysqld-ldflags=-all-static
>
> phantom% make
> .....
> gcc -O3 -DDBUG_OFF -O3 -felide-constructors -fno-exceptions
> -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti
> -DHAVE_CURSES_H -I/export/home/cgilmore/mysql-3.23.52/include
> -DHAVE_RWLOCK_T -L/usr/local/lib -L/opt/gnu/lib -L/usr/lib -o
> mysqld sql_lex.o item.o item_sum.o item_buff.o item_func.o
> item_cmpfunc.o item_strfunc.o item_timefunc.o thr_malloc.o
> item_create.o field.o key.o sql_class.o sql_list.o net_serv.o
> violite.o net_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 sql_select.o sql_insert.o sql_update.o sql_delete.o
> sql_do.o procedure.o item_uniq.o sql_test.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_myisammrg.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_client_errors.o md5.o
> stacktrace.o -static ../isam/libnisam.a ../merge/libmerge.a
> ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a
> ../heap/libheap.a ../mysys/libmysys.a ../dbug/libdbug.a
> ../regex/libregex.a ../strings/libmystrings.a -ldl -lpthread
> -lthread -lz -lcrypt -lgen -lsocket -lnsl -lm -lpthread -lthread
> ld: fatal: library -ldl: not found
> ld: fatal: library -lpthread: not found
> ld: fatal: library -lthread: not found
> ld: fatal: library -lpthread: not found
> ld: fatal: library -lthread: not found
>
>
> phantom% ls -l /usr/lib | grep thread
> lrwxrwxrwx   1 root     root           17 Aug 31  2000
> libpthread.so -> ./libpthread.so.1
> -rwxr-xr-x   1 bin      bin         36316 Sep  1  1998 libpthread.so.1
> lrwxrwxrwx   1 root     root           16 Aug 31  2000
> libthread.so -> ./libthread.so.1
> -rwxr-xr-x   1 bin      bin        185792 Jul 11  2001 libthread.so.1
> lrwxrwxrwx   1 root     root           19 Aug 31  2000
> libthread_db.so -> ./libthread_db.so.0
> -rwxr-xr-x   1 bin      bin         10912 Jul 11  2001
> libthread_db.so.0
> -rwxr-xr-x   1 bin      bin         39332 Jul 11  2001
> libthread_db.so.1
> -rw-r--r--   1 bin      bin         74405 Sep  1  1998
> llib-lpthread.ln
> -rw-r--r--   1 bin      bin          6468 Sep  1  1998 llib-lthread
> -rw-r--r--   1 bin      bin        122265 Sep  1  1998 llib-lthread.ln
>
> phantom% ls -l /usr/lib | grep dl
> lrwxrwxrwx   1 root     root           12 Aug 31  2000
> libdl.so -> ./libdl.so.1
> -rwxr-xr-x   1 bin      bin          4600 Jul 11  2001 libdl.so.1
> -rw-r--r--   1 bin      bin          2129 Sep  1  1998 llib-ldl.ln
>
> Thanks,
> Christian
>
> -----------------
> Christian Gilmore
> Technology Leader
> GeT WW Global Applications Development
> IBM Software Group
>


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