i run in REDHAT 9.0, mysql5.0.27, php5,

how to tackle the error

[root@localhost unix]# make -f Makefile_adm
g++ -o adm.cgi -O0 -g -pthread -DCASINO_TWIST -DTARGET_UNIX -DMYSQL4
-DNOTHREAD -DCASINO_TWIST -L/usr/local/lib/mysql -L/usr/local/lib
-lmysqlclient ../src/adm/mCgiMain.o ../src/adm/mSSIService.o
.../src/adm/mMain.o
/usr/bin/ld: warning: libm.so.2, needed by
/usr/local/lib/mysql/libmysqlclient.so, not found (try using -rpath or
-rpath-link)
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`__stdoutp'
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`__inet_addr'
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`__stderrp'
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`h_errno'
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`__error'
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`__inet_ntoa'
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`__isthreaded'
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`__swbuf'
collect2: ld returned 1 exit status
make: *** [index] Error 1


please help me