← Back to team overview

maria-developers team mailing list archive

Re: compile issue and the -lz flag

 

Yes the the libraries are installed, and I believe that the
--with-zlib-dir=bundled has gotten me on to a difference error, my yum list
shown below.

[root@m1330 etc] > yum list|grep libz
libzip.x86_64                         0.8-5.fc9
installed
libzip-devel.x86_64                   0.8-5.fc9
installed
libzdb.i386                           2.4-3.fc10
updates
libzdb.x86_64                         2.4-3.fc10
updates
libzdb-devel.i386                     2.4-3.fc10
updates
libzdb-devel.x86_64                   2.4-3.fc10
updates
libzip.i386                           0.8-5.fc9
fedora


New situation:

../cmd-line-utils/readline/libreadline.a(complete.o): In function
`rl_username_completion_function':
complete.c:(.text+0x140d): warning: Using 'setpwent' in statically linked
applications requires at runtime the shared libraries from the glibc version
used for linking
../libmysql/.libs/libmysqlclient.a(mf_pack.o): In function `unpack_dirname':
mf_pack.c:(.text+0x988): warning: Using 'endpwent' in statically linked
applications requires at runtime the shared libraries from the glibc version
used for linking
../libmysql/.libs/libmysqlclient.a(my_gethostbyname.o): In function
`my_gethostbyname_r':
my_gethostbyname.c:(.text+0x10): warning: Using 'gethostbyname_r' in
statically linked applications requires at runtime the shared libraries from
the glibc version used for linking
../libmysql/.libs/libmysqlclient.a(libmysql.o): In function
`mysql_server_init':
libmysql.c:(.text+0x418d): warning: Using 'getservbyname' in statically
linked applications requires at runtime the shared libraries from the glibc
version used for linking
../cmd-line-utils/readline/libreadline.a(display.o): In function
`_rl_move_vert':
display.c:(.text+0x282): undefined reference to `tputs'
display.c:(.text+0x2e5): undefined reference to `tputs'
../cmd-line-utils/readline/libreadline.a(display.o): In function
`_rl_move_cursor_relative':
display.c:(.text+0x5f2): undefined reference to `tputs'
../cmd-line-utils/readline/libreadline.a(display.o): In function
`_rl_erase_entire_line':
display.c:(.text+0x122b): undefined reference to `tputs'
display.c:(.text+0x1250): undefined reference to `tputs'
../cmd-line-utils/readline/libreadline.a(display.o):display.c:(.text+0x126b):
more undefined references to `tputs' follow
../cmd-line-utils/readline/libreadline.a(display.o): In function
`update_line':
display.c:(.text+0x2134): undefined reference to `tgoto'
display.c:(.text+0x2146): undefined reference to `tputs'
display.c:(.text+0x220f): undefined reference to `tputs'
display.c:(.text+0x2351): undefined reference to `tputs'
display.c:(.text+0x2372): undefined reference to `tputs'
display.c:(.text+0x23e5): undefined reference to `tputs'
display.c:(.text+0x2486): undefined reference to `tgoto'
display.c:(.text+0x2496): undefined reference to `tputs'
display.c:(.text+0x24aa): undefined reference to `tputs'
../cmd-line-utils/readline/libreadline.a(display.o): In function
`rl_redisplay':
display.c:(.text+0x31c2): undefined reference to `tputs'
display.c:(.text+0x31f3): undefined reference to `tputs'
display.c:(.text+0x322f): undefined reference to `tputs'
../cmd-line-utils/readline/libreadline.a(display.o):display.c:(.text+0x32d0):
more undefined references to `tputs' follow
../cmd-line-utils/readline/libreadline.a(terminal.o): In function
`_rl_get_screen_size':
terminal.c:(.text+0x437): undefined reference to `tgetnum'
terminal.c:(.text+0x4b3): undefined reference to `tgetnum'
../cmd-line-utils/readline/libreadline.a(terminal.o): In function
`_rl_init_terminal_io':
terminal.c:(.text+0x757): undefined reference to `PC'
terminal.c:(.text+0x76a): undefined reference to `BC'
terminal.c:(.text+0x775): undefined reference to `UP'
terminal.c:(.text+0x7ff): undefined reference to `tgetent'
terminal.c:(.text+0x820): undefined reference to `tgetstr'
terminal.c:(.text+0x85c): undefined reference to `PC'
terminal.c:(.text+0x863): undefined reference to `BC'
terminal.c:(.text+0x871): undefined reference to `UP'
terminal.c:(.text+0x881): undefined reference to `tgetflag'
terminal.c:(.text+0x8d0): undefined reference to `tgetflag'
terminal.c:(.text+0xa96): undefined reference to `tgetflag'
terminal.c:(.text+0xb06): undefined reference to `tgetflag'
../cmd-line-utils/readline/libreadline.a(terminal.o): In function
`_rl_set_cursor':
terminal.c:(.text+0x50): undefined reference to `tputs'
terminal.c:(.text+0x73): undefined reference to `tputs'
../cmd-line-utils/readline/libreadline.a(terminal.o): In function
`_rl_control_keypad':
terminal.c:(.text+0x9b): undefined reference to `tputs'
../cmd-line-utils/readline/libreadline.a(terminal.o): In function
`_rl_enable_meta_key':
terminal.c:(.text+0xd1): undefined reference to `tputs'
collect2: ld returned 1 exit status
make[2]: *** [mysql] Error 1
make[2]: Leaving directory `/u02/devl/mysql-5.1.34/client'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/u02/devl/mysql-5.1.34/client'
make: *** [all-recursive] Error 1
[dkehn@m1330 mysql-5.1.34] >



On Mon, May 4, 2009 at 9:18 AM, Bo Thorsen <bo@xxxxxxxxxxxx> wrote:

> On Monday 04 May 2009 16:57:42 Kristian Nielsen wrote:
> > Don Kehn <dekehn@xxxxxxxxx> writes:
> > > when compiling on x64 systems (i.e. CentOS & Fedora core 10) and using
> > > the BUILD/compile-pentium64-max, I'm getting the -lz error
> "/usr/bin/ld:
> > > cannot find -lz" and when I simplify the ./comfigure line to a
> > > --without-zlib it
> >
> > Hm, could not reproduce this locally. This was using
> > BUILD/compile-pentium64-max on a 64-bit Ubuntu Hardy (amd64).
>
> 64 bit libraries are handled differently between these two. Debian/Ubuntu
> puts
> them in /usr/lib (and has a link from /usr/lib64) and CentOS/Fedora/Red
> Hat/OpenSUSE puts them in /usr/lib64 (/usr/lib is 32 bit).
>
> So to reproduce it, you need a distribution that does the same thing as
> Dons.
> I only have Kubuntu machines here, so I can't test it.
>
> Don, just to be absolutely certain: You do have the zlib devel package
> installed, right? There should be something like this in your /usr/lib64:
>
> shrek> ll /usr/lib64/libz*
> -rw-r--r-- 1 root root 119778 Mar 18 18:58 /usr/lib64/libz.a
> lrwxrwxrwx 1 root root     20 Mar 19 07:51 /usr/lib64/libz.so ->
> /lib/libz.so.1.2.3.3
> lrwxrwxrwx 1 root root     15 Feb 25 17:19 /usr/lib64/libzip.so.1 ->
> libzip.so.1.0.0
> -rw-r--r-- 1 root root  37904 Nov 12  2007 /usr/lib64/libzip.so.1.0.0
>
> This might be obvious, but I have to ask.
>
> Bo.
>
>

Follow ups

References