On Friday 15 October 2004 06:53 pm, Elliot Somers wrote:
> I issued the make command after the "./configure" command. It did it's
> thing but an error came about. I am still new to linux, I am running
> Mandrake 10. I am attempting to install the dba.openoffice source tarball.
> The error has to do with an "undefined reference." I will just paste my
> command line where I see the problem started:
>
> /bin/sh ../../libtool --mode=link gcc �-g -O2 -DSQL � -o mdb-sql �
> mdb-sql.o ../libmdb/libmdb.la ../sql/libmdbsql.la -lglib-2.0 � �-lfl
> gcc -g -O2 -DSQL -o .libs/mdb-sql mdb-sql.o �../libmdb/.libs/libmdb
> -lm ../sql/.libs/libmdbsql /usr/lib/libglib-2.0.so -lfl -Wl,--rpath
> -Wl,/usr/local/lib
> mdb-sql.o(.text+0xb57): In function `main':
> /home/elliot/Documents/mdbtools-0.6pre1/src/util/mdb-sql.c:364: undefined
> reference to `read_history'
> mdb-sql.o(.text+0x10c2):/home/elliot/Documents/mdbtools-0.6pre1/src/util/md
>b-sql.c:483: undefined reference to `write_history'
> collect2: ld returned 1 exit status
> make[2]: *** [mdb-sql] Error 1
> make[2]: Leaving directory
> `/home/elliot/Documents/mdbtools-0.6pre1/src/util' make[1]: ***
> [all-recursive] Error 1
> make[1]: Leaving directory `/home/elliot/Documents/mdbtools-0.6pre1/src'
> make: *** [all-recursive] Error 1
>
> I've had problems as a new Mandrake user with libraries not installed
> initially for dev purposes. I don't know if this is an extension of that
> issue or what. I appreciate any help you may provide.
>  Thanks again,
>  Elliot

Hi Elliot. I'm not 100% certain, but it looks as if it might be trying to find 
the headers for SQL (maybe PostGreSQL or MySQL)... the -DSQL in the first 
line also sorta' points to this. You might want to first do a './configure 
--help' and see what it mentions about SQL. If it's indeed looking for that, 
you might need to install the development packages for it.

Also, the configure script sets up the prefix as /usr/local - you might want 
to use './configure --prefix=/usr', as most RPM distributions put things 
there, and it'll fit in with overall system layout better (IMHO).

-- 
Take care,
Randall Hobbs
Programmer - System Administrator - Chip Castle Dot Com, Inc.
Web Hosting * Programming * Software
http://www.chipcastle.com

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to