Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jan 2012 03:30:15 GMT
From:      Rob Farmer <rfarmer@predatorlabs.net>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/164029: [PATCH] graphics/bmeps fix build with databases/gdbm
Message-ID:  <201201140330.q0E3UFX9074761@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/164029; it has been noted by GNATS.

From: Rob Farmer <rfarmer@predatorlabs.net>
To: Jan Henrik Sylvester <me@janh.de>
Cc: bug-followup@freebsd.org
Subject: Re: ports/164029: [PATCH] graphics/bmeps fix build with databases/gdbm
Date: Fri, 13 Jan 2012 19:26:18 -0800

 --f46d0438954f6a10c204b6748b2d
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 On Thu, Jan 12, 2012 at 3:35 PM, Jan Henrik Sylvester <me@janh.de> wrote:
 > On 01/13/2012 00:07, Rob Farmer wrote:
 >>
 >> But, the build doesn't actually fail because we only build bmeps,
 >> which shouldn't need databases or snmp. Can you ignore the message and
 >> continue, or does it completely fail?
 >
 >
 > What do you mean with "the build doesn't actually fail"?
 >
 
 It prints a message saying "ERROR," but the configure script finishes,
 exits with 0 status, and the build works:
 
 	ERROR: None of the supported database APIs was found on this system.
 	At least one of NDBM, GDBM or Berkeley DB is required.
 	NDBM is shipped as part of the OS for some UNIX systems.
 	GDBM is the Gnu Database Manager, this software can be found on GNU softwa=
 re
 	mirrors, i.e. ftp://ftp.informatik.rwth-aachen.de/pub/gnu/gnudbm/ .
 	The Berkeley DB is an open source embedded database system. SleepyCat is
 	now owned by Oracle, I found the sources at
 	http://www.oracle.com/database/berkeley-db/ but the URL may change if Orac=
 le
 	reorganizes the web site.
 =09
 	WARNING: The netsnmp library is missing. This library is recommended.
 	Some programs (i.e. fsnmp, klpinfo and snmpyalc) can not be built without
 	this library.
 	Use your favorite package management method to install the library _and_ t=
 he
 	developer support. If there is no package available for your system you ca=
 n
 	attempt to install from source. See http://sourceforge.net/projects/netsnm=
 p/
 	for the sources.
 =09
 	If the configure script complains about a missing library but you are sure
 	the library (including developer support) is installed, make sure to have
 	the CFLAGS and LDFLAGS variables set up properly.
 	On Unix/Linux systems you may want to use
 	  CFLAGS=3D"-I/usr/local/include"
 	  LDFLAGS=3D"-L/usr/local/lib"
 	  export CFLAGS
 	  export LDFLAGS
 	On Mac OS you may want to use
 	  CFLAGS=3D"-I/sw/include"
 	  LDFLAGS=3D"-L/sw/lib"
 	  export CFLAGS
 	  export LDFLAGS
 	if you have Fink installed.
 	=3D=3D=3D>  Building for bmeps-2.2.22
 	>>> 2012-01-13 02:22:55 Compile b2main.c
 	cc -DHAVE_CONFIG_H  -I. -I. -I/usr/local/include  -O2
 -fno-strict-aliasing -pipe -march=3Dnocona   -o b2main.o -c b2main.c
 	In file included from ./dktypes.h:125,
 	                 from ./dk.h:96,
 	                 from bmepsi.h:53,
 	                 from b2main.c:66:
 	/usr/include/sys/termios.h:3:2: warning: #warning "this file includes
 <sys/termios.h> which is deprecated, use <termios.h> instead"
 
 > cd /usr/ports/graphics/bmeps/
 > make
 >
 > fails (on 9.0-RELEASE/amd64 with current ports tree and databases/gdbm
 > installed) with the error message you got, too, and additionally this:
 >
 > =3D=3D=3D> =A0Script "configure" failed unexpectedly.
 > Please report the problem to rfarmer@predatorlabs.net [maintainer] and
 > attach
 > the "/usr/ports/graphics/bmeps/work/dktools-2.2.22/config.log" including =
 the
 > output of the failure of your make command. Also, it might be a good idea=
  to
 > provide an overview of all packages installed on your system (e.g. an `ls
 > /var/db/pkg`).
 > *** Error code 1
 >
 > Stop in /usr/ports/graphics/bmeps.
 >
 > I do not know how to ignore this. Tools dealing with ports consider this =
 a
 > build failure.
 >
 > Yes, I can got to work/dktools-2.2.22/ and run make successfully, but thi=
 s
 > is not how ports are supposed to be used.
 >
 > Since you say that bmeps does not actually use databases, my patch will d=
 o
 > not harm, but fix the build (of the port).
 >
 > Have I misunderstood you?
 >
 
 I can't reproduce the problem with just gdbm installed. I can
 reproduce it with net-snmp so I have expanded the patch to cover that.
 Removing the gdbm part didn't work for me, but I left it since it
 won't hurt anything.
 
 --=20
 Rob Farmer
 
 --f46d0438954f6a10c204b6748b2d
 Content-Type: application/octet-stream; name="bmeps.diff"
 Content-Disposition: attachment; filename="bmeps.diff"
 Content-Transfer-Encoding: base64
 X-Attachment-Id: f_gxe1stw20
 
 SW5kZXg6IGZpbGVzL3BhdGNoLWNvbmZpZ3VyZQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiBmaWxlcy9w
 YXRjaC1jb25maWd1cmUKZGlmZiAtTiBmaWxlcy9wYXRjaC1jb25maWd1cmUKLS0tIC9kZXYvbnVs
 bAkxIEphbiAxOTcwIDAwOjAwOjAwIC0wMDAwCisrKyBmaWxlcy9wYXRjaC1jb25maWd1cmUJMTQg
 SmFuIDIwMTIgMDI6Mzg6NTIgLTAwMDAKQEAgLTAsMCArMSwxMDEgQEAKKy0tLSAuL2NvbmZpZ3Vy
 ZS5vcmlnCTIwMTEtMTEtMDIgMTA6Mzc6MjYuMDAwMDAwMDAwIC0wNzAwCisrKysgLi9jb25maWd1
 cmUJMjAxMi0wMS0xMyAxODozNTowOC4wMDAwMDAwMDAgLTA4MDAKK0BAIC00MjM0LDE5ICs0MjM0
 LDYgQEAKKyAKKyAKKyBHREJNTElCPSIiCistYWNfZm5fY19jaGVja19oZWFkZXJfbW9uZ3JlbCAi
 JExJTkVOTyIgImdkYm0uaCIgImFjX2N2X2hlYWRlcl9nZGJtX2giICIkYWNfaW5jbHVkZXNfZGVm
 YXVsdCIKKy1pZiB0ZXN0ICJ4JGFjX2N2X2hlYWRlcl9nZGJtX2giID0geCIieWVzOyB0aGVuIDoK
 Ky0gICRhc19lY2hvICIjZGVmaW5lIEhBVkVfR0RCTV9IIDEiID4+Y29uZmRlZnMuaAorLQorLWVs
 c2UKKy0g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FzX2xpbmVuby0kTElORU5PfTogcmVzdWx0OiAkYWNfY3ZfbGliX25ldHNubXBfbmV0
 c25tcF9lbmFibGVfZmlsZWxvZyIgPiY1CisgJGFzX2VjaG8gIiRhY19jdl9saWJfbmV0c25tcF9u
 ZXRzbm1wX2VuYWJsZV9maWxlbG9nIiA+JjY7IH0KKyBpZiB0ZXN0ICJ4JGFjX2N2X2xpYl9uZXRz
 bm1wX25ldHNubXBfZW5hYmxlX2ZpbGVsb2ciID0geCIieWVzOyB0aGVuIDoK
 --f46d0438954f6a10c204b6748b2d--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201140330.q0E3UFX9074761>