LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2007, 06:46 AM   #1
yogeshk@redim.net
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Rep: Reputation: 0
Angry error running my makefile


this project is working successful inthe freebsd4.11,mysql4.1.7,php4,now the updation is going on so i need to bulit as follow

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

how to tackle the error ... plz help me

[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 ....
 
Old 01-06-2007, 01:34 AM   #2
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Rep: Reputation: 34
Quote:
/usr/bin/ld: warning: libm.so.2, needed by /usr/local/lib/mysql/libmysqlclient.so
There is a missing library - libm.so.2.

Try to check if you really have this in your system. This command works in my Slack.

# ldconfig -p |grep libm.so

If it really doesn't show, it is not installed and you will have to see if what RPM package has this. Try to google for it.

---------
GANI
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Having some problem in running the Makefile Sulman Shah Fedora 2 12-19-2006 04:26 AM
makefile error pantera Programming 3 05-21-2005 08:05 AM
makefile error durden2.0 Programming 2 01-25-2004 04:45 PM
makefile error puckney Linux - Newbie 3 04-25-2002 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration