sinisa@stripped writes:
> M. Eric Otey writes:
> > I'm writing a client program using the mysql c api. It compiles fine, but I
> > have problems when I try to link it.
> >
> > I'm using Red Hat Linux 5.2, with a binary distribution of MySQL 3.22.23b,
> > glibc 2.0.7-29
> >
> > I'm using the c api although the program itself is c++.
> >
> > the command line is:
> > g++ *.0 -L/usr/lib/mysql -lmysqlclient -o cpdb
> >
> > It replies,
> > /usr/lib/mysql/libmysqlclient.a in function my_open
> > my_open.o: undefined reference to open64
> >
> > in function fn_format mf_format.o: undefined reference to __lxstat64
> >
> > in function my_fopen my_fopen.o: undefined reference to fopen64
> >
> > It seems to me like I'm not linking a library in somewhere, but I have no
> > idea what library it is. I've tried including dbug, m, niasm, mysys, merge,
> > heap, & socket. None of these make any difference. Can anyone help?
> >
> > Thanks
> >
> > M. Eric Otey
> > Webmaster,
> > INTERQUEST
> > www.inter-quest.com
> >
> >
> >
> >
>
> Hi!
>
> If you are sure that you have got right client libs for mysql, then
> you should upgrade your glibc to 1.1.1.
>
> Sinisa
>
Hello,
Sinisa must have meant glibc 2.1.1. The newest is 2.1.1-7, (source
rpm) and it seems to be working quite nice. One should upgrade from
2.1.1-6 to 2.1.1-7; there are a lot of bug fixes!
Regards,
- Jani
--
+-------------------------------------------------------------+
| TcX ____ __ _____ _____ ___ |
| /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Jani Tolonen |
| /*/ /*/ /*/ \*\_ |*| |*||*| jani@stripped |
| /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Helsinki |
| /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|_____ Finland |
| ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ |
| /*/ \*\ Developers Team |
+-------------------------------------------------------------+