Mailing List Archive

[0.4.3] building on FreeBSD 3.0
System
======
FreeBSD 3.0-CURRENT #1: Sun Nov 8 04:20:07 EST 1998
gcc 2.7.2.1

Problems
========
./configure --with-included-gettext --disable-m-guard
[...]
% ls -l intl/libintl.h
lrwx------ 1 bryanf user 22 Nov 10 04:06 intl/libintl.h@ ->
.././intl/libgettext.h
% make
[...]
Making all in tools
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -O2 -Wall -c mpicalc.c
In file included from mpicalc.c:34:
../include/i18n.h:29: libintl.h: No such file or directory
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

configure isn't adding -I../intl to the DEFS line in the Makefile in the
tools subdirectory. Adding it fixes this error.

The next error I get is:

Making all in g10
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../intl -O2 -Wall -c
ringedit.c
ringedit.c: In function `locate_keyblock_by_fpr':
ringedit.c:517: warning: implicit declaration of function `do_gdbm_locate'
ringedit.c:517: structure has no member named `dbf'
ringedit.c: In function `locate_keyblock_by_keyid':
ringedit.c:556: warning: implicit declaration of function
`do_gdbm_locate_by_keyid'
ringedit.c:556: structure has no member named `dbf'
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

I'm not sure how to fix this one. It's beyond my mere tweaking skills. I
suspect that FreeBSD doesn't come with gdbm, which could be a complication.

Bryan

--
Bryan Fullerton http://www.samurai.com/
Owner, Lead Consultant http://www.feh.net/
Samurai Consulting http://www.icomm.ca/
"No, we don't do seppuku." Can you feel the Ohmu call?
Re: [0.4.3] building on FreeBSD 3.0 [ In reply to ]
Bryan Fullerton <bryanf@samurai.com> writes:

> configure isn't adding -I../intl to the DEFS line in the Makefile in the
> tools subdirectory. Adding it fixes this error.

Ohhh, not again :-(. Please can someone look that.

> ringedit.c: In function `locate_keyblock_by_fpr':
> ringedit.c:517: warning: implicit declaration of function `do_gdbm_locate'
> ringedit.c:517: structure has no member named `dbf'
> ringedit.c: In function `locate_keyblock_by_keyid':
> ringedit.c:556: warning: implicit declaration of function
> `do_gdbm_locate_by_keyid'
> ringedit.c:556: structure has no member named `dbf'

Please put these case blocks into #ifdef HAVE_LIBGDBM ... #endif.

Thanks,

Werner
re: [0.4.3] building on FreeBSD 3.0 [ In reply to ]
I had the same problems on FreeBSD 2.2.7, but hadn't finished
looking at the second problem before reporting it...

--
David Pick
D.M.Pick@qmw.ac.uk
a.k.a. Hostmaster@qmw.ac.uk
Re: [0.4.3] building on FreeBSD 3.0 [ In reply to ]
> Bryan Fullerton <bryanf@samurai.com> writes:
>
> > configure isn't adding -I../intl to the DEFS line in the Makefile in the
> > tools subdirectory. Adding it fixes this error.
>
> Ohhh, not again :-(. Please can someone look that.

I edited "./tools/Makefile.in" to append " -I$(top_srcdir)/intl" to
the line setting INCLUDES. I suspect that performing the same edit to
"./tools/Makefile.am" before running "automake" in that directory will
cause the same effect.

> > ringedit.c: In function `locate_keyblock_by_fpr':
> > ringedit.c:517: warning: implicit declaration of function `do_gdbm_locate'
> > ringedit.c:517: structure has no member named `dbf'
> > ringedit.c: In function `locate_keyblock_by_keyid':
> > ringedit.c:556: warning: implicit declaration of function
> > `do_gdbm_locate_by_keyid'
> > ringedit.c:556: structure has no member named `dbf'
>
> Please put these case blocks into #ifdef HAVE_LIBGDBM ... #endif.

This seems to have solved this problem for FreeBSD 2.2.7

--
David Pick
D.M.Pick@qmw.ac.uk
a.k.a. Hostmaster@qmw.ac.uk
Re: [0.4.3] building on FreeBSD 3.0 [ In reply to ]
David Pick <D.M.Pick@qmw.ac.uk> writes:

> I edited "./tools/Makefile.in" to append " -I$(top_srcdir)/intl" to
> the line setting INCLUDES. I suspect that performing the same edit to
> "./tools/Makefile.am" before running "automake" in that directory will
> cause the same effect.

Yes. But this is not the correct way, because it depends on the
included gettext. the AM_GNU_GETTEXT should figure it out (normally it
does) and add the -I../intl or whatever is needed.
RE: [0.4.3] building on FreeBSD 3.0 [ In reply to ]
When I get it to detect that I have GDBM (using FreeBSD 2.2.5) I get the
following error:

gcc -g -Wall -o mpicalc mpicalc.o ../cipher/libcipher.a
../util/libutil.a ../mpi/libmpi.a ../util/libutil.a ../intl/libintl.a
-lgdbm -lz
ld: -lgdbm: no match
*** Error code 1

Any ideas?

-Darrell

-----Original Message-----
From: Werner Koch [mailto:wk@isil.d.shuttle.de]
Sent: Tuesday, November 10, 1998 5:55 AM
To: g10@net.lut.ac.uk
Subject: Re: [0.4.3] building on FreeBSD 3.0


Bryan Fullerton <bryanf@samurai.com> writes:

> configure isn't adding -I../intl to the DEFS line in the Makefile in
the
> tools subdirectory. Adding it fixes this error.

Ohhh, not again :-(. Please can someone look that.

> ringedit.c: In function `locate_keyblock_by_fpr':
> ringedit.c:517: warning: implicit declaration of function
`do_gdbm_locate'
> ringedit.c:517: structure has no member named `dbf'
> ringedit.c: In function `locate_keyblock_by_keyid':
> ringedit.c:556: warning: implicit declaration of function
> `do_gdbm_locate_by_keyid'
> ringedit.c:556: structure has no member named `dbf'

Please put these case blocks into #ifdef HAVE_LIBGDBM ... #endif.

Thanks,

Werner
Re: [0.4.3] building on FreeBSD 3.0 [ In reply to ]
Darrell Brogdon <dbrogdon@sagenetworks.com> writes:

> gcc -g -Wall -o mpicalc mpicalc.o ../cipher/libcipher.a
> ../util/libutil.a ../mpi/libmpi.a ../util/libutil.a ../intl/libintl.a
> -lgdbm -lz
> ld: -lgdbm: no match

Is this the BSD ld? Please make sure that the libray is installed in
the right place.
Re: [0.4.3] building on FreeBSD 3.0 [ In reply to ]
On Tue, Nov 10, 1998 at 11:54:48AM +0100, Werner Koch <wk@isil.d.shuttle.de> wrote:
>
> > ringedit.c: In function `locate_keyblock_by_fpr':
> > ringedit.c:517: warning: implicit declaration of function `do_gdbm_locate'
> > ringedit.c:517: structure has no member named `dbf'
> > ringedit.c: In function `locate_keyblock_by_keyid':
> > ringedit.c:556: warning: implicit declaration of function
> > `do_gdbm_locate_by_keyid'
> > ringedit.c:556: structure has no member named `dbf'
>
> Please put these case blocks into #ifdef HAVE_LIBGDBM ... #endif.

Yep, that fixed the problem here.

Bryan

--
Bryan Fullerton http://www.samurai.com/
Owner, Lead Consultant http://www.feh.net/
Samurai Consulting http://www.icomm.ca/
"No, we don't do seppuku." Can you feel the Ohmu call?