[Pkg-db-devel] Bug#245498: marked as done (db4.2-doc: example in the doc doesn't compile)

Debian Bug Tracking System owner@bugs.debian.org
Thu, 06 May 2004 12:18:05 -0700


Your message dated Thu, 6 May 2004 15:15:09 -0400
with message-id <20040506191509.GA32378@scowler.net>
and subject line [Pkg-db-devel] Bug#245498: db4.2-doc: example in the doc doesn't compile
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 23 Apr 2004 14:23:19 +0000
>From dodod@clubplus.net Fri Apr 23 07:23:19 2004
Return-path: <dodod@clubplus.net>
Received: from mail.clubplus.net [216.191.22.200] (qmailr)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BH1aJ-0000db-00; Fri, 23 Apr 2004 07:23:19 -0700
Received: (qmail 3126 invoked by uid 2280); 23 Apr 2004 14:31:37 -0000
Received: from 228-dialup2.clubplus.net (HELO broceliande.org) (216.191.12.228)
  by mail.clubplus.net with SMTP; 23 Apr 2004 14:31:37 -0000
Received: from dodod by broceliande.org with local (masqmail 0.2.20) id
 1BH1a0-1d8-00; Fri, 23 Apr 2004 10:23:00 -0400
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="ISO-8859-1"
From: Dominique Desbiens <dodod@clubplus.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: db4.2-doc: example in the doc doesn't compile
X-Mailer: reportbug 2.56
Date: Fri, 23 Apr 2004 10:23:00 -0400
Message-ID: <1BH1a0-1d8-00@broceliande.org>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 1

Package: db4.2-doc
Version: 4.2.52-16
Severity: normal


I have copy the file /usr/share/doc/db4.2-doc/ref/simple_tut/example.cs
to example.c

Then:     gcc -Wall -g -o example  example.c

I get this message

/tmp/cc7qFp9i.o(.text+0x2a): dans la fonction « main »:
/home/dodod/example.c:19: undefined reference to `db_create_4002'
/tmp/cc7qFp9i.o(.text+0x3e):/home/dodod/example.c:20: undefined reference to `db_strerror_4002'
collect2: ld a retourné 1 code d'état d'exécution

Now if I look in the source I see: #include "db.h"

and below line 19: 

        if ((ret = db_create(&dbp, NULL, 0)) != 0) {
                fprintf(stderr, "db_create: %s\n", db_strerror(ret));
                exit (1);
        }


This is /usr/include/db.h  from the package libdb4.2-dev
If look inside /usr/include/db.h I see: #define db_create db_create_4002

But nowhere else did I find any information about db_create_4002


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.18
Locale: LANG=fr_CA, LC_CTYPE=fr_CA (ignored: LC_ALL set to fr_CA)

-- no debconf information

---------------------------------------
Received: (at 245498-done) by bugs.debian.org; 6 May 2004 19:15:11 +0000
>From schizo@debian.org Thu May 06 12:15:11 2004
Return-path: <schizo@debian.org>
Received: from acolyte.scowler.net [216.254.112.45] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BLoKt-0003e8-00; Thu, 06 May 2004 12:15:11 -0700
Received: by acolyte.scowler.net (Postfix, from userid 1000)
	id EE08F7004A; Thu,  6 May 2004 15:15:09 -0400 (EDT)
Date: Thu, 6 May 2004 15:15:09 -0400
From: Clint Adams <schizo@debian.org>
To: Dominique Desbiens <dodod@clubplus.net>,
	245498-done@bugs.debian.org
Subject: Re: [Pkg-db-devel] Bug#245498: db4.2-doc: example in the doc doesn't compile
Message-ID: <20040506191509.GA32378@scowler.net>
References: <1BH1a0-1d8-00@broceliande.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1BH1a0-1d8-00@broceliande.org>
User-Agent: Mutt/1.5.5.1+cvs20040105i
Delivered-To: 245498-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 1

> I have copy the file /usr/share/doc/db4.2-doc/ref/simple_tut/example.cs
> to example.c
> 
> Then:     gcc -Wall -g -o example  example.c

Perhaps you should try
	    gcc -Wall -g -o example  example.c -ldb