List:General Discussion« Previous MessageNext Message »
From:Casey Allen Shobe Date:August 19 2004 6:52pm
Subject:Re: Compilation error
View as plain text  
Same problem when trying to compile 4.0 instead of 4.1:

gcc -O3 -DDBUG_OFF -O3 -mcpu=i686 -felide-constructors -fno-rtti
-fno-exceptions -fno-implicit-templates -fno-exceptions -fno-rtti
-DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL -rdynamic -o mysqld sql_lex.o
sql_handler.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 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 set_var.o sql_parse.o sql_yacc.o sql_base.o table.o sql_select.o
sql_insert.o sql_update.o sql_delete.o uniques.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 des_key_file.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_innodb.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 sql_union.o mini_client.o
mini_client_errors.o stacktrace.o repl_failsafe.o sql_olap.o -static 
../innobase/usr/libusr.a ../innobase/srv/libsrv.a
../innobase/dict/libdict.a ../innobase/que/libque.a
../innobase/srv/libsrv.a ../innobase/ibuf/libibuf.a
../innobase/row/librow.a ../innobase/pars/libpars.a
../innobase/btr/libbtr.a ../innobase/trx/libtrx.a
../innobase/read/libread.a ../innobase/usr/libusr.a
../innobase/buf/libbuf.a ../innobase/ibuf/libibuf.a
../innobase/eval/libeval.a ../innobase/log/liblog.a
../innobase/fsp/libfsp.a ../innobase/fut/libfut.a ../innobase/fil/libfil.a
../innobase/lock/liblock.a ../innobase/mtr/libmtr.a
../innobase/page/libpage.a ../innobase/rem/librem.a
../innobase/thr/libthr.a ../innobase/sync/libsync.a
../innobase/data/libdata.a ../innobase/mach/libmach.a
../innobase/ha/libha.a ../innobase/dyn/libdyn.a ../innobase/mem/libmem.a
../innobase/sync/libsync.a ../innobase/ut/libut.a ../innobase/os/libos.a
../innobase/ut/libut.a -lrt ../isam/libnisam.a ../merge/libmerge.a
../myisam/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a
../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a
../strings/libmystrings.a -ldl -lpthread -lz -lcrypt -lnsl -lm -lpthread
/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[2]: *** [mysqld] Error 1
make[2]: Leaving directory `/share/src/mysql/mysql-4.0.20/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/share/src/mysql/mysql-4.0.20/sql'
make: *** [all] Error 2

Casey Allen Shobe said:
> Michael Stassen said:
>> -lz means to link with libz (the zlib library
>> <http://www.gzip.org/zlib/>),
>> but the error is that it couldn't be found.  Do you have zlib?  I'd
>> expect
>> yes, or configure should have complained.
>
> Yes, I have zlib.
>
> $ find /lib -user zlib | xargs ls -l
> lrwxrwxrwx    1 zlib     zlib           13 Mar 29  2003 /lib/libz.so ->
> libz.so.1.1.4
> lrwxrwxrwx    1 zlib     zlib           13 Mar 29  2003 /lib/libz.so.1 ->
> libz.so.1.1.4
> -rwxr-xr-x    1 zlib     zlib        63020 Mar 23  2003 /lib/libz.so.1.1.4
>
> --
> Casey Allen Shobe  |  http://casey.allen.shobe.info
>   cshobe@stripped  |  ICQ: 1494523  |  AIM: SomeLinuxGuy
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    http://lists.mysql.com/mysql?unsub=1
>
>


-- 
Casey Allen Shobe  |  http://casey.allen.shobe.info
  cshobe@stripped  |  ICQ: 1494523  |  AIM: SomeLinuxGuy
Thread
Compilation errorCasey Allen Shobe18 Aug
  • Re: Compilation errorMichael Stassen19 Aug
    • Re: Compilation errorCasey Allen Shobe19 Aug
      • Re: Compilation errorCasey Allen Shobe19 Aug
        • Re: Compilation errorDan Nelson19 Aug
          • Re: Compilation errorCasey Allen Shobe19 Aug
            • Re: Compilation errorDan Nelson19 Aug