This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gdbm compile error
- From: V Suryanarayana Rao <vsrao at cmcltd dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 11 Dec 2002 16:38:07 +0530
- Subject: gdbm compile error
I am facing problem compiling gdbm on my solaris 8 (Sparc).
Tried with both gcc 2.95.2 and 3.2.
After ./configure and make
make progs gives,
gcc -o tdbm testdbm.o -lc
Undefined first referenced
symbol in file
fetch testdbm.o
nextkey testdbm.o
delete testdbm.o
store testdbm.o
dbminit testdbm.o
firstkey testdbm.o
ld: fatal: Symbol referencing errors. No output written to tdbm
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `tdbm'
Can somebody please help. I have my PATH set as below:
/usr/sbin:/usr/bin:/opt/sfw/bin:/opt/sfw/sbin:/usr/local/bin:/usr/ccs/bin
All gnu software is installed in /opt/sfw and gcc3.2 installed in
/usr/local.
I have not set LD_LIBRARY_PATH
Thanks