MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Dan Date:March 23 1999 4:08am
Subject:install / compile errors

View as plain text  
I've been trying to install egcs but it can't find my sources.  If
needed I'll get help from there, not here.

I'm still having problems linking my mysql .cc files.  I added the
libraries as suggested and here's the new output:

Undefined   first referenced
 symbol         in file
dlclose                             /usr/lib/libnsl.a(netdir.o)
dlsym                               /usr/lib/libnsl.a(netdir.o)
dlopen                              /usr/lib/libnsl.a(netdir.o)
dlerror                             /usr/lib/libnsl.a(netdir.o)
ld: fatal: Symbol referencing errors. No output written to a.out

Are there more libraries that I have to include for the linker?
Thanks again for the help.

Also, I do not have a man page for "undefined symbol" or anything of the
sort.  Where can I get man pages for such things?



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
Dan> test program while cross compiling
Dan> What does it mean and what do I do about it?

install egcs 1.1.2 from

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


Undefined   first referenced
 symbol         in file


Try man 'unidefined symbol' for errors like the above.


Add '-lsocket -lnsl -lgen' to your link line.


install / compile errorsDan23 Mar