Mailinglist Archive: opensuse-bugs (4671 mails)

< Previous Next >
[Bug 640700] New: /usr/include/dbm.h (from gdbm-devel pkg) 'broken'; patch provided
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Tue, 21 Sep 2010 06:33:28 +0000
  • Message-id: <bug-640700-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>

https://bugzilla.novell.com/show_bug.cgi?id=640700

https://bugzilla.novell.com/show_bug.cgi?id=640700#c0


Summary: /usr/include/dbm.h (from gdbm-devel pkg) 'broken';
patch provided
Classification: openSUSE
Product: openSUSE 11.3
Version: Final
Platform: All
OS/Version: openSUSE 11.3
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: pgngw+dev001+novell.com@xxxxxx
QAContact: qa@xxxxxxx
Found By: ---
Blocker: ---


User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.10)
Gecko/20100914 SUSE/3.6.10-30.1 Firefox/3.6.10

building in a mipsel cross-compile toolchain, a build of perl 5.12.2 fails @

...
ODBM_File.xs:124:2: error: too few arguments to function 'dbmclose'
...

searching,

http://www.nntp.perl.org/group/perl.perl5.porters/2008/12/msg142876.html
" ... IIRC this is a bad try in wrapping ODBM around ndbm, and it simply
doesn't work on OpenSUSE ... "

and,

http://search.cpan.org/~jesse/perl-5.12.2/INSTALL
" ...
error: too few arguments to function 'dbmclose'

Building ODBM_File on some (Open)SUSE distributions might run into this
error, as the header file is broken. There are two ways to deal with this

1. Disable the use of ODBM_FILE

Configure ... -Dnoextensions=ODBM_File

2. Fix the header file, somewhat like this:

--- a/usr/include/dbm.h 2010-03-24 08:54:59.000000000 +0100
+++ b/usr/include/dbm.h 2010-03-24 08:55:15.000000000 +0100
@@ -59,4 +59,4 @@ extern datum firstkey __P((void));

extern datum nextkey __P((datum key));

-extern int dbmclose __P((DBM *));
+extern int dbmclose __P((void));
"

since this is a dynamic build, source pulled at execute, option 2 is the
choice.

making the change, as above, in /usr/include/dbm.h, gets past the error.

fyi,

rpm -q --whatprovides /usr/include/dbm.h
gdbm-devel-1.8.3-392.1.x86_64




Reproducible: Always

Steps to Reproduce:
1.
2.
3.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >