Hi all,
My ISP provides me with MySql version 3.23.36 on Red Hat Linux 5.2 box,
gcc version is 2.7.2.1, libc version 5.
When I try to compile my C application I get lots of errors. What is
wrong ?
Since this is not my own server, what should I ask my ISP to do in order
to correct this? I mean, if the reason is old version of libc or gcc for
example,
and my ISP won't install a newer version, is there some workaround ?

gcc -o test.cgi test.c cgihtml.a -I/usr/local/mysql/include
-L/usr/local/mysql/lib -lmysqlclient -lz

/usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function
`net_safe_read':
libmysql.o(.text+0x2bc): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function
`simple_command':
libmysql.o(.text+0x46b): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function
`read_rows':
libmysql.o(.text+0xa64): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function
`mysql_real_connect':
libmysql.o(.text+0xe85): undefined reference to `__stpcpy'
libmysql.o(.text+0x146c): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)(.text+0x148a): more
undefined
references to `__stpcpy' follow
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function
`mysql_list_dbs':
libmysql.o(.text+0x25cd): undefined reference to `__mempcpy'
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function
`mysql_list_tables':
libmysql.o(.text+0x2675): undefined reference to `__mempcpy'
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function
`mysql_stat':
libmysql.o(.text+0x29aa): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(violite.o): In function
`vio_peer_addr':
violite.o(.text+0x1d): undefined reference to `__mempcpy'
/usr/local/mysql/lib/libmysqlclient.a(violite.o): In function
`vio_poll_read':
violite.o(.text+0x306): undefined reference to `poll'
/usr/local/mysql/lib/libmysqlclient.a(my_open.o): In function `my_open':
my_open.o(.text+0x17): undefined reference to `open64'
/usr/local/mysql/lib/libmysqlclient.a(my_error.o): In function
`my_error':
my_error.o(.text+0x1ba): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(mf_pack.o): In function
`pack_dirname':
mf_pack.o(.text+0x1e5): undefined reference to `__stpcpy'
mf_pack.o(.text+0x240): undefined reference to `__stpcpy'
mf_pack.o(.text+0x29f): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(mf_pack.o): In function
`cleanup_dirname':
mf_pack.o(.text+0x401): undefined reference to `__stpcpy'
mf_pack.o(.text+0x6cc): undefined reference to `__mempcpy'
mf_pack.o(.text+0x725): undefined reference to `__stpcpy'
mf_pack.o(.text+0x7ee): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(mf_pack.o): In function
`unpack_filename':
mf_pack.o(.text+0xa15): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(mf_pack.o): In function
`intern_filename':
mf_pack.o(.text+0xa5e): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(typelib.o): In function
`find_type':
typelib.o(.text+0x13d): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(typelib.o)(.text+0x174): more
undefined references to `__stpcpy' follow
/usr/local/mysql/lib/libmysqlclient.a(mf_format.o): In function
`fn_format':
mf_format.o(.text+0x20f): undefined reference to `__lxstat64'
/usr/local/mysql/lib/libmysqlclient.a(default.o): In function
`search_default_file':
default.o(.text+0x4d9): undefined reference to `__stpcpy'
default.o(.text+0x53f): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(default.o): In function
`print_defaults':
default.o(.text+0x95b): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(my_net.o): In function
`my_inet_ntoa':
my_net.o(.text+0x16): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(my_lib.o): In function `my_dir':
my_lib.o(.text+0x1f7): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(my_lib.o)(.text+0x210): more
undefined references to `__stpcpy' follow
/usr/local/mysql/lib/libmysqlclient.a(my_lib.o): In function `my_dir':
my_lib.o(.text+0x269): undefined reference to `readdir64'
/usr/local/mysql/lib/libmysqlclient.a(my_lib.o): In function
`directory_file_name':
my_lib.o(.text+0x343): undefined reference to `__stpcpy'
/usr/local/mysql/lib/libmysqlclient.a(my_lib.o): In function `my_stat':
my_lib.o(.text+0x3a8): undefined reference to `__xstat64'
/usr/local/mysql/lib/libmysqlclient.a(my_lib.o): In function `my_fstat':
my_lib.o(.text+0x406): undefined reference to `__fxstat64'
/usr/local/mysql/lib/libmysqlclient.a(my_fopen.o): In function
`my_fopen':
my_fopen.o(.text+0x1f): undefined reference to `fopen64'
make: *** [test] Error 1

Thanks in advance,
Mitko

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