🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Stefan Bruhn Mon, 04 Mar 2002 19:31
Errors compiling INN
#57029
Author: Stefan Bruhn
Date: Mon, 04 Mar 2002 19:31
31 lines
2060 bytes
Hey!

I'm trying to setup INN with this config line:

./configure --enable-tagged-hash --with-perl
--with-sendmail=/usr/sbin/sendmail

When I type make everything seems to proceed normal until it exits with
this error:

 make[1]: Entering directory `/usr/local/src/inn-2.3.2/authprogs'
 gcc -g -O2 -I../include     -c -o ckpasswd.o ckpasswd.c
 gcc   -o ckpasswd ckpasswd.o  -lresolv -lcrypt
 ckpasswd.o: In function `GetDBPass':
 /usr/local/src/inn-2.3.2/authprogs/ckpasswd.c:89: undefined reference to `dbm_open'
 /usr/local/src/inn-2.3.2/authprogs/ckpasswd.c:94: undefined reference to `dbm_fetch'
 /usr/local/src/inn-2.3.2/authprogs/ckpasswd.c:96: undefined reference to `dbm_close'
 /usr/local/src/inn-2.3.2/authprogs/ckpasswd.c:101: undefined reference to `dbm_close'
 collect2: ld returned 1 exit status
 make[1]: *** [ckpasswd] Error 1
 make[1]: Leaving directory `/usr/local/src/inn-2.3.2/authprogs'
 make: *** [all-authprogs] Error 2

Any ideas to how to make it work?

-- 
Mvh. Stefan
Website: http://www.3x7.dk/ | http://ghashul.dk/
"I demand the right to keep and arm bears"
"A computer without Windows, is like a fish without a bicycle"
Re: Errors compiling INN
#57036
Author: Jeffrey M. Vinocur
Date: Tue, 05 Mar 2002 07:50
26 lines
1877 bytes
In article <uri78u01hd2urofn3dpt3ohk4n0f1c276o@4ax.com>,
Stefan Bruhn  <devnull@bruhn.tk> wrote:
>
>./configure --enable-tagged-hash --with-perl
>
> gcc   -o ckpasswd ckpasswd.o  -lresolv -lcrypt
> ckpasswd.o: In function `GetDBPass':
> /usr/local/src/inn-2.3.2/authprogs/ckpasswd.c:89: undefined reference
>to `dbm_open'

Hrm.  I don't know why it's confused about whether your system
has DBM libraries or not.  It detected them during configure, but
isn't linking against them for some reason.

I don't know if this is a known problem.  In the meantime:

Are you planning on using DBM to store a password database?  (If
you don't know, the answer is most likely no.)  If not, then go
into include/config.h and look for the lines about
HAVE_DB1_NDBM_H and HAVE_NDBM_H.  One of those is currently
uncommented.  Comment it out and recompile.

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Errors compiling INN
#57037
Author: M. Buchenrieder
Date: Tue, 05 Mar 2002 07:50
25 lines
1527 bytes
Stefan Bruhn <devnull@bruhn.tk> writes:

[...]

> make[1]: Entering directory `/usr/local/src/inn-2.3.2/authprogs'
> gcc -g -O2 -I../include     -c -o ckpasswd.o ckpasswd.c
> gcc   -o ckpasswd ckpasswd.o  -lresolv -lcrypt

You need to have libcrypt.so installed for this to be working.
That's however probably unrelated to this error:

> ckpasswd.o: In function `GetDBPass':
> /usr/local/src/inn-2.3.2/authprogs/ckpasswd.c:89: undefined reference 
> to `dbm_open'

[...]

You're most likely missing a "-ldbm" somewhere.

Michael
-- 
Michael Buchenrieder * mibu@scrum.greenie.muc.de * http://www.muc.de/~mibu
          Lumber Cartel Unit #456 (TINLC) & Official Netscum
    Note: If you want me to send you email, don't munge your address.
Re: Errors compiling INN
#57041
Author: Stefan Bruhn
Date: Tue, 05 Mar 2002 09:05
29 lines
1963 bytes
On Tue, 5 Mar 2002 07:50:35 +0000 (UTC), jeff@litech.org (Jeffrey M.
Vinocur) wrote:

>
>Hrm.  I don't know why it's confused about whether your system
>has DBM libraries or not.  It detected them during configure, but
>isn't linking against them for some reason.
>
>I don't know if this is a known problem.  In the meantime:
>
>Are you planning on using DBM to store a password database?  (If
>you don't know, the answer is most likely no.)  If not, then go
>into include/config.h and look for the lines about
>HAVE_DB1_NDBM_H and HAVE_NDBM_H.  One of those is currently
>uncommented.  Comment it out and recompile.


Thanks a lot, this worked! I was in the "I don't know" category so it's
all good :)

I'd tried a few options I'd found searching for the error on google but
they didn't work.

-- 
Mvh. Stefan
Website: http://www.3x7.dk/ | http://ghashul.dk/
"I demand the right to keep and arm bears"
"A computer without Windows, is like a fish without a bicycle"
Re: Errors compiling INN
#57043
Author: Jeffrey M. Vinocur
Date: Tue, 05 Mar 2002 17:10
25 lines
1806 bytes
In article <mibu.1015314648@scrum.muc.de>,
M. Buchenrieder <mibu@scrum.muc.de> wrote:
>Stefan Bruhn <devnull@bruhn.tk> writes:
>
>> make[1]: Entering directory `/usr/local/src/inn-2.3.2/authprogs'
>> gcc -g -O2 -I../include     -c -o ckpasswd.o ckpasswd.c
>> gcc   -o ckpasswd ckpasswd.o  -lresolv -lcrypt
>
>> ckpasswd.o: In function `GetDBPass':
>> /usr/local/src/inn-2.3.2/authprogs/ckpasswd.c:89: undefined reference 
>> to `dbm_open'
>
>You're most likely missing a "-ldbm" somewhere.

Right.  However, there's a $(DBMLIB) that should be pointing to
either -ldbm or -lndbm depending on what configure could find.  I
don't know what's confusing it into having marking the HAVE
variable as true but not finding a library to link with.



-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Errors compiling INN
#57047
Author: Jeffrey M. Vinocur
Date: Tue, 05 Mar 2002 19:21
26 lines
1907 bytes
In article <3i298u8q4sut5cqnuol5v16t50rfunjvca@4ax.com>,
Stefan Bruhn  <news005@3x7.dk> wrote:
>On Tue, 5 Mar 2002 07:50:35 +0000 (UTC), jeff@litech.org (Jeffrey M.
>Vinocur) wrote:
>
>>Hrm.  I don't know why it's confused about whether your system
>>has DBM libraries or not.  It detected them during configure, but
>>isn't linking against them for some reason.

My autoconf guru wants to know if your DBM libraries are
installed in someplace not listed in /etc/ld.so.conf.


>>Are you planning on using DBM to store a password database?  (If
>>you don't know, the answer is most likely no.)  
>
>Thanks a lot, this worked! I was in the "I don't know" category so it's
>all good :)

(Unless you plan on having a large number of people with
passwords in a separate news database, you don't need DBM.)

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Errors compiling INN
#57049
Author: Stefan Bruhn
Date: Tue, 05 Mar 2002 22:49
22 lines
1791 bytes
On Tue, 5 Mar 2002 19:21:59 +0000 (UTC), jeff@litech.org (Jeffrey M.
Vinocur) wrote:

>My autoconf guru wants to know if your DBM libraries are
>installed in someplace not listed in /etc/ld.so.conf.

I haven't a clue :)
I'm pretty much a linux newbie, set up my server in the start of
february, and have been gradually adding more services.

I had my first taste of Linux in the RH 5.2 times, but this is the first
time I've tried it for real (with RH7.2).

Anyway, I have no idea what the DBM libraries are anyway ;)
(except I've gathered, some database stuff)

-- 
Mvh. Stefan
Website: http://www.3x7.dk/ | http://ghashul.dk/
"I demand the right to keep and arm bears"
"A computer without Windows, is like a fish without a bicycle"
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads