Bug#209130: marked as done (bad build-depends and depends)

Debian Bug Tracking System owner@bugs.debian.org
Fri, 06 Aug 2004 14:18:08 -0700


Your message dated Fri, 06 Aug 2004 23:02:58 +0200
with message-id <1091826177.4147.78.camel@ganymede.kk.de>
and subject line fixed packages in the archives now
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; 7 Sep 2003 22:06:56 +0000
>From manty@debian.org Sun Sep 07 17:06:49 2003
Return-path: <manty@debian.org>
Received: from 204.red-213-96-224.pooles.rima-tde.net (pul.beta.es) [213.96.224.204] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19w7gC-0002hP-00; Sun, 07 Sep 2003 17:06:45 -0500
Received: by pul.beta.es (Postfix, from userid 1000)
	id 562F5F966; Mon,  8 Sep 2003 00:06:40 +0200 (CEST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Santiago Garcia Mantinan <manty@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bad build-depends and depends
X-Mailer: reportbug 2.27
Date: Mon, 08 Sep 2003 00:06:40 +0200
Message-Id: <20030907220640.562F5F966@pul.beta.es>
X-BadReturnPath: manty@pul.beta.es rewritten as manty@debian.org
  using "From" header
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-4.8 required=4.0
	tests=BAYES_30,HAS_PACKAGE,RCVD_IN_RFCI
	version=2.53-bugs.debian.org_2003_8_27
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_27 (1.174.2.15-2003-03-30-exp)

Package: pwlib
Version: 1.5.2-1
Severity: important
Tags: sid

Hi!

I've been trying to build ohphone and other programs against the new libs
and after finding some problems with dependencies I have looked to
autobuilder results and results compiling the libs under a clean environment
like the one provided by pbuilder and found several weirdness that results
in problems when building other packages against this libs.

These are the dependencies of the uploaded libpt package:

 Depends: libc6 (>= 2.3.2-1), libexpat1 (>= 1.95.6), libgcc1 (>= 1:3.3.1-1),
libldap2 (>= 2.1.17-1), libsdl1.2debian (>> 1.2.5-0), libssl0.9.7,
libstdc++5 (>= 1:3.3.1-1)

These are the ones of the libpts uploaded by the autobuilders:

 Depends: libc6 (>= 2.3.2-1), libgcc1 (>= 1:3.3.1-1), libssl0.9.7,
libstdc++5 (>= 1:3.3.1-1)

You can see that there are a lot less in the autobuilder's lib, this is
because the uploaded lib was compiled in a system with a lot of lib headers
installed, pwlib detects this headers and builds the libs adding support for
all this stuff.

I don't know if you wanted pwlib to be compiled against all this libs, if
you really wanted it you should add them in the build dependencies.

I think that at least libsdl-dev should be added, it was not needed before,
but now upstream has made changes so that sdl support is included in pwlib
directly, and thus if is not compiled in pwlib, programs like the new
ohphone cannot have sdl support (please comment on what you decide about sdl
as I need to know it for the ohphone package).

There is a weird thing about the sdl support in pwlib, if sdl is compiled
in, then libpt-dev should depend on libsdl-dev, or otherwise programs
including ptclib/vsdl.h get errors like this:

In file included from main.cxx:535:
/usr/include/ptclib/vsdl.h:69:21: SDL/SDL.h: No such file or directory
In file included from main.cxx:535:
/usr/include/ptclib/vsdl.h:81: error: type specifier omitted for parameter `
   Uint8'
/usr/include/ptclib/vsdl.h:81: error: syntax error before `*' token
/usr/include/ptclib/vsdl.h:94: error: syntax error before `*' token
/usr/include/ptclib/vsdl.h:96: error: semicolon missing after declaration of `
   PSDLVideoFrame'
/usr/include/ptclib/vsdl.h: In member function `unsigned int 
   PSDLVideoFrame::GetWidth()':
/usr/include/ptclib/vsdl.h:91: error: `width' undeclared (first use this 
   function)
/usr/include/ptclib/vsdl.h:91: error: (Each undeclared identifier is reported 
   only once for each function it appears in.)
/usr/include/ptclib/vsdl.h: In member function `unsigned int 
   PSDLVideoFrame::GetHeight()':
/usr/include/ptclib/vsdl.h:92: error: `height' undeclared (first use this 
   function)
/usr/include/ptclib/vsdl.h: At global scope:
/usr/include/ptclib/vsdl.h:96: error: two or more data types in declaration of 
   `PrintOn'
/usr/include/ptclib/vsdl.h:96: error: non-member function `PSDLVideoFrame 
   PrintOn(std::ostream&)' cannot have `const' method qualifier
/usr/include/ptclib/vsdl.h:98: error: syntax error before `protected'
/usr/include/ptclib/vsdl.h:101: error: `unsigned int width' used prior to 
   declaration
/usr/include/ptclib/vsdl.h:102: error: `unsigned int height' used prior to 
   declaration
/usr/include/ptclib/vsdl.h:104: error: syntax error before `*' token
/usr/include/ptclib/vsdl.h:167: error: syntax error before `*' token
/usr/include/ptclib/vsdl.h:168: error: syntax error before `*' token
/usr/include/ptclib/vsdl.h:169: error: syntax error before `[' token

either that or vsdl.h needs fixing.

There is a problem in the libs build system that is broken upstream, I think
it is related to old libs not being correctly linked, while this libs are
linked ok. The problem is that on programs using the libs build system to
get compiled, like ohphone, openam, ... it adds -l flags for all the libs
that pwlib, and maybe also openh323, was compiled against, this results on
lines like this:

g++ -o obj_linux_x86_r/ohphone   -Wl,--gc-sections -s -L/usr/lib -L/usr/lib
./obj_linux_x86_r/main.o  ./obj_linux_x86_r/vidlinux.o
./obj_linux_x86_r/xlibvid.o -lopenh323 -lpt  -lpthread -llber -lldap
-lldap_r -lssl -lcrypto -lexpat -lSDL -lresolv -ldl
/usr/bin/ld: cannot find -llber

the error here is that most of this -l flags should not be added, at least
not if the program you are compiling doesn't use those libs directly, at
least...

g++ -o obj_linux_x86_r/ohphone   -Wl,--gc-sections -s -L/usr/lib -L/usr/lib
./obj_linux_x86_r/main.o  ./obj_linux_x86_r/vidlinux.o
./obj_linux_x86_r/xlibvid.o -lopenh323 -lpt

works ok, and "objdump --all-headers obj_linux_x86_r/ohphone |grep NEEDED"
gives this:

  NEEDED      libopenh323.so.1.12.2
  NEEDED      libstdc++.so.5
  NEEDED      libm.so.6
  NEEDED      libgcc_s.so.1
  NEEDED      libc.so.6
  NEEDED      libpt.so.1.5.2

So I believe that all those -l flags appended are not needed, don't you
agree?

Well, I guess I have mixed quite some things in this report, but it all
comes to the dependencies of the libs, not only pwlib but also openh323 and
the dependencies we need for the programs being compiled against them.

I may be wrong on some of this stuff, so I sugest you double check it, and
if you don't understand something (I know my english is awful) or you feel
that info is missing, just ask here or on irc, I'll be around for helping
you in whatever I can.

Regards!

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux pul 2.4.22 #1 Fri Sep 5 22:48:01 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=C


---------------------------------------
Received: (at 209130-done) by bugs.debian.org; 6 Aug 2004 21:03:08 +0000
>From kk@verfaction.de Fri Aug 06 14:03:08 2004
Return-path: <kk@verfaction.de>
Received: from nyx.verfaction.de [212.9.161.72] (Debian-exim)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BtBro-00027h-00; Fri, 06 Aug 2004 14:03:08 -0700
Received: from erebos.verfaction.de
	([3ffe:400:d00:7357::1] helo=erebos.kk.de ident=Debian-exim)
	by nyx.verfaction.de with asmtp (TLS-1.0:RSA_ARCFOUR_SHA:16)
	(Exim 4.34)
	id 1BtBrm-0004h8-M5
	for 209130-done@bugs.debian.org; Fri, 06 Aug 2004 23:03:07 +0200
Received: from ganymede.kk.verfaction.de ([192.168.70.18])
	by erebos.kk.de with esmtp (TLS-1.0:RSA_ARCFOUR_MD5:16)
	(Exim 4.34)
	id 1BtBrf-00006u-B7
	for 209130-done@bugs.debian.org; Fri, 06 Aug 2004 23:03:03 +0200
From: Kilian Krause <kk@verfaction.de>
To: 209130-done@bugs.debian.org
Message-Id: <1091826177.4147.78.camel@ganymede.kk.de>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.6 
Date: Fri, 06 Aug 2004 23:02:58 +0200
Subject: fixed packages in the archives now
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-F3/Yps3GEKP3w4A7TKj8"
X-SA-Exim-Connect-IP: 3ffe:400:d00:7357::1
X-SA-Exim-Mail-From: kk@verfaction.de
Delivered-To: 209130-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=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 


--=-F3/Yps3GEKP3w4A7TKj8
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

as far as we know the current packages do only contain the Build-Depends
and Depends which they should have. Please reopen this bug, in case you
spot something that shouldn't be there.

--=20
Best regards,
 Kilian

--=-F3/Yps3GEKP3w4A7TKj8
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Dies ist ein digital signierter Nachrichtenteil

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBBE/IBvdkzt4X+wX8RAsVNAJ99S24ZQgkQ/8mOW94CpVQofAbzFQCdFMg8
hjGdhMEnDDPvZcL4/4KcRCw=
=mPBg
-----END PGP SIGNATURE-----

--=-F3/Yps3GEKP3w4A7TKj8--