[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gdb] Re: compile gdbm error
From: |
Jason Downs |
Subject: |
[Gdb] Re: compile gdbm error |
Date: |
Wed, 18 Aug 2004 11:45:47 -0700 |
In message <address@hidden>,
=?iso-8859-1?q?Oliveiros=20Peixoto?= writes:
>hm..
>
>command to compile gdbm
>
>./configure --prefix=/usr
>make
>make install
>make install-compat
>ldconfig
>
>in rgb for Xfree
>return error
You're not linking with it. If you did, it would probably find the routines.
Helping you with your system configuration is way beyond the scope of what
I do. Good luck.
>bash-2.05b# make
>rm -f rgb.o
>gcc -m32 -c -O2 -fno-strength-reduce
>-I../../programs/Xserver/include -I../..
>-I../../exports/include -Dlinux -D__i386__
>-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
>-D_XOPEN_SOURCE -D_BSD_SOURCE
>-D_SVID_SOURCE
>-D_GNU_SOURCE
>-DFUNCPROTO=15 -DNARROWPROTO
>-DRGB_DB=\"/usr/X11R6/lib/X11/rgb\" rgb.c
>rm -f rgb
>gcc -m32 -o rgb -O2 -fno-strength-reduce
>-L../../exports/lib rgb.o
>-Wl,-rpath-link,../../exports/lib
>rgb.o(.text+0x110): In function `main':
>: undefined reference to `dbminit'
>rgb.o(.text+0x317): In function `main':
>: undefined reference to `store'
>rgb.o(.text+0x3b6): In function `main':
>: undefined reference to `dbmclose'
>collect2: ld returned 1 exit status
>make: *** [rgb] Error 1
>bash-2.05b#
>
>in make progs return error
>
>gcc -o tndbm tndbm.o -lc
>tndbm.o(.text+0x130): In function `main':
>: the `gets' function is dangerous and should not be
>used.
>tndbm.o(.text+0x8c): In function `main':
>: undefined reference to `dbm_open'
>tndbm.o(.text+0x176): In function `main':
>: undefined reference to `dbm_fetch'
>tndbm.o(.text+0x22b): In function `main':
>: undefined reference to `dbm_store'
>tndbm.o(.text+0x28e): In function `main':
>: undefined reference to `dbm_delete'
>tndbm.o(.text+0x2c7): In function `main':
>: undefined reference to `dbm_firstkey'
>tndbm.o(.text+0x316): In function `main':
>: undefined reference to `dbm_fetch'
>tndbm.o(.text+0x35d): In function `main':
>: undefined reference to `dbm_nextkey'
>tndbm.o(.text+0x3a8): In function `main':
>: undefined reference to `dbm_fetch'
>tndbm.o(.text+0x3df): In function `main':
>: undefined reference to `dbm_firstkey'
>tndbm.o(.text+0x404): In function `main':
>: undefined reference to `dbm_nextkey'
>tndbm.o(.text+0x49a): In function `main':
>: undefined reference to `dbm_close'
>collect2: ld returned 1 exit status
>make: *** [tndbm] Error 1
>bash-2.05b#
>
>
>
> --- Jason Downs <address@hidden> escreveu:
>> In message
>>
><address@hidden>,
>> =?iso-8859-1?q?Oliveiros=20Peixoto?= writes:
>> >I am trying to compile gdbm however when I execute
>> >make progs it returns me an error
>> >
>> >any idea?
>> >thank
>>
>> Don't do 'make progs'.
>>
>> --
>> Jason Downs
>> address@hidden
>>
>> "Where is the wisdom we have lost in knowledge,
>> and where is the knowledge we have lost in
>> information." -- T.S. Eliot
>>
>
>
>
>
>
>_______________________________________________________
>Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade!
>http://br.acesso.yahoo.com/
--
Jason Downs
address@hidden
"Where is the wisdom we have lost in knowledge,
and where is the knowledge we have lost in information." -- T.S. Eliot