Hola, hace mucho que no respondo, pero sigo en este proyecto, hasta ahora
tengo ese problema de compilación, he tratado de compilarlo teniendo el
mysqlclient.a en /usr/lib/:

gcc proyecto.c -o proyecto -lmysqlclient --static

y me sale esto:

/usr/lib/libmysqlclient.a(mf_pack.o): In function `unpack_dirname':
(.text+0x953): warning: Using 'getpwnam' in statically linked applications
requires at runtime the shared libraries from the glibc version used for
linking
/usr/lib/libmysqlclient.a(libmysql.o): In function `read_user_name':
(.text+0x3e41): warning: Using 'getpwuid' in statically linked applications
requires at runtime the shared libraries from the glibc version used for
linking
/usr/lib/libmysqlclient.a(mf_pack.o): In function `unpack_dirname':
(.text+0x973): warning: Using 'endpwent' in statically linked applications
requires at runtime the shared libraries from the glibc version used for
linking
/usr/lib/libmysqlclient.a(my_net.o): In function `my_gethostbyname_r':
(.text+0x7c): warning: Using 'gethostbyname_r' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/lib/libmysqlclient.a(libmysql.o): In function `mysql_server_init':
(.text+0x32c2): warning: Using 'getservbyname' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking
/usr/lib/libmysqlclient.a(libmysql.o): In function
`fetch_float_with_conversion':
(.text+0xad6): undefined reference to `floor'

...etc.

los ldd son:

linux-gate.so.1 =>  (0x00154000)
libmysqlclient.so.16 => /usr/lib/libmysqlclient.so.16 (0x00c0c000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x00155000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0x00110000)
libcrypt.so.1 => /lib/i386-linux-gnu/libcrypt.so.1 (0x0079f000)
libnsl.so.1 => /lib/i386-linux-gnu/libnsl.so.1 (0x008c8000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0x003f4000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0x008f6000)
/lib/ld-linux.so.2 (0x00f3e000)

alguna idea????

se agradece cualquier ayuda!!

Salu2.

El 11 de abril de 2012 22:20, Germán <[email protected]> escribió:

> On Wed, 11 Apr 2012 20:30:10 -0500
> shingo <[email protected]> wrote:
>
> > Hola, no es un programa mio, asi que parece que tendre que editar el
> > Makefile...
> > pero he probado compilarlo en Ubuntu 8.04 y este que tiene la libreria
> > libmysqlclient.so.15 y no el libmysqlclient.so.16, compila y todo bien y
> > para colmo lo puedo llevar al Ubuntu 11.04 y si corre como si nada.... no
> > creen que puedo usar un Ubuntu sin muchas librerias nuevas (versiones
> > pasadas lts) y así poder hacerlos correr en versiones nuevas?...
> >
> > Saludos!
> >
>
> mmm... Si lo compilaste en Ubuntu 8.04 y te anda tambien en 11.04,
> entonces ¿problema solucionado? No entendí que quisiste decir al final.
>
> Yo probaría primero con el enlace simbólico (no tiene que ver con
> compilación, capaz que se confunde).
>
> --
> Germán <[email protected]>
> Lanux - Grupo de usuarios de GNU/Linux de Lanus
> Visitanos en: http://www.lanux.org.ar
>
> Reglas de etiqueta para el posteo de mensajes a  la lista:
> http://www.lanux.org.ar/?page_id=35
>
> Articulos y noticias por rss:
> http://www.lanux.org.ar/?feed=rss2
>
> Lanux por irc:
> irc.freenode.net -> #lanux.
> _______________________________________________
> General mailing list
> [email protected]
> http://listas.lanux.org.ar/cgi-bin/mailman/listinfo/general
>
Lanux - Grupo de usuarios de GNU/Linux de Lanus
Visitanos en: http://www.lanux.org.ar

Reglas de etiqueta para el posteo de mensajes a  la lista:
http://www.lanux.org.ar/?page_id=35

Articulos y noticias por rss:
http://www.lanux.org.ar/?feed=rss2 
            
Lanux por irc: 
irc.freenode.net -&gt; #lanux.
_______________________________________________
General mailing list
[email protected]
http://listas.lanux.org.ar/cgi-bin/mailman/listinfo/general

Responder a