From: Michael Widenius Date: March 19 1999 10:39am Subject: install / compile errors List-Archive: http://lists.mysql.com/mysql/582 Message-Id: <14066.10320.209312.394600@monty.pp.sci.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit >>>>> "Dan" == Dan writes: Dan> Thanks in advance for any help. Dan> I am running Solaris7 on a Ultra5. Dan> My first problem occurs when I run the Dan> configure Dan> script in mysql-3.22.20a Dan> I get this error: Dan> checking for restartable system calls... configure: error: can not run Dan> test program while cross compiling Dan> What does it mean and what do I do about it? install egcs 1.1.2 from www.cygnus.com Dan> My second problem: Dan> I have successfully installed the binary Dan> mysql-3.22.19-sun-solaris2.6-sparc and everything runs as it should, Dan> except I can not compile any of my own programs. Dan> with the command Dan> /usr/local/bin/g++ Dan> -I/usr/local/mysql-3.22.19-sun-solaris2.6-sparc/include Dan> -L/usr/local/mysql-3.22.19-sun-solaris2.6-sparc/lib myprogram.cc Dan> -lmysqlclient Undefined first referenced symbol in file socket /usr/local/mysql-3.22.19-sun-solaris2.6-sparc/lib/libmysqlclient.a(libmysql.o) Suggestion: Try man 'unidefined symbol' for errors like the above. Fix: Add '-lsocket -lnsl -lgen' to your link line. Regards, Monty