Subj : Re: ./configure question To : comp.os.linux From : Paul Nolan Date : Thu Sep 02 2004 08:03 pm pakdog wrote: > Trying to compile MyODBC on my RH 9 system. Running ./configure with > directions given to mysql/lib, mysql/include, mysql/src I get the > following error: > > gcc -o conftest -g -O2 conftest.c -lmysqlclient -L/usr/local/mysql/lib > -lz 1>&5 > > /usr/local/mysql/lib/libmysqlclient.a(my_malloc.o)(.text+0x28): In > function `my_malloc': > : undefined reference to `errno' > /usr/local/mysql/lib/libmysqlclient.a(my_realloc.o)(.text+0x65): In > function `my_realloc': > : undefined reference to `errno' > /usr/local/mysql/lib/libmysqlclient.a(my_lib.o)(.text+0x2e1): In function > `my_dir': > : undefined reference to `errno' > /usr/local/mysql/lib/libmysqlclient.a(my_lib.o)(.text+0x3d1): In function > `my_stat': > : undefined reference to `errno' > /usr/local/mysql/lib/libmysqlclient.a(my_getwd.o)(.text+0x44): In function > `my_getwd': > : undefined reference to `errno' > /usr/local/mysql/lib/libmysqlclient.a(my_getwd.o)(.text+0xce): more > undefined references to `errno' follow > > On Google I found a post from early 2003 with the exact error messages and > the solution offered was to add -lc to the gcc command. I'd like to try > that but don't know the syntax for adding the -lc options in the configure > command (assuming that's how it's done). Can anyone here help me out? > > Kevin > > Before invoking ./configure, set the environment var LDFLAGS to -lc eg. cow@moon:~$ LDFLAGS=-lc ./configure --prefix=/usr -- Paul Nolan Veni veni venias - ne me mori facias! .