[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#306937: Building with noopt fails.



On Fri, Apr 29, 2005 at 10:25:50AM -0400, Daniel Burrows wrote:
> Package: apt
> Version: 0.6.25
> Severity: normal
> 
>   If I try to compile apt with noopt (say for debugging purposes),
> the build fails here:
> 
> Building program ../build/bin/methods/file
> ../build/bin/libapt-pkg.so: undefined reference to `pkgVendorList::end() const'
> ../build/bin/libapt-pkg.so: undefined reference to `pkgVendorList::begin() const'
> 
>   Daniel

Building with noopt fails here too, and it's really pretty annoying.
I've come up with a little example that reproduces that bug:
<URL:http://greek0.net/~greek0/div/apt-build-problem.tar.gz>

It fails with g++-2.95 and g++-3.3 (didn't check 3.0). But it works
with g++-4.0 from experimental (apt compiles well, only with some
warnings with 4.0).

Some people (well, wilx from #c++ on IRCnet) had a look at the
example code provided above, and they told me they thought it was a
gcc bug (which makes at least some sense to me, since the code
doesn't seem to do anything terribly wrong, and it worked ok with
g++-4.0).

If noone has objections, I'd like to reassign this bug to
apt/g++.

Cheers,
Greek0

Attachment: signature.asc
Description: Digital signature


Reply to: