Bug#684808: mapserver: FTBFS: ld: cannot find -lstdc++

Arto Jantunen viiru at debian.org
Tue Aug 14 10:02:58 UTC 2012


tags 684808 +patch
thanks

Lucas Nussbaum <lucas at lucas-nussbaum.net> writes:

> Source: mapserver
> Version: 6.0.1-3.1
> Severity: serious
> Tags: wheezy sid
> User: debian-qa at lists.debian.org
> Usertags: qa-ftbfs-20120814 qa-ftbfs
> Justification: FTBFS in wheezy on amd64
>
> Hi,
>
> During a rebuild of all packages in *wheezy*, your package failed to
> build on amd64.
>
> Relevant part:
>> gcc-4.6  -shared -o mapscript.so mapscript_wrap.o -L. -L/usr/lib -L. -Wl,-z,relro -rdynamic -Wl,-export-dynamic -fPIC   -L../.. -L. -lmapserver -L/usr/lib/x86_64-linux-gnu -lfreetype -lz -lgd -ljpeg -L/usr/lib/x86_64-linux-gnu -lfreetype -lz -lpng -lz -lXpm -lX11 -lexpat -lproj -ljpeg -lpng -lgif -L/usr/lib -lgdal -L/usr/lib -lpq -L/usr/lib/x86_64-linux-gnu -lcurl -L/usr/lib -lgeos_c -lpthread -lc -lfcgi -lz -L/usr/lib -lxml2 -lfribidi -lm -lstdc++ -lfreetype -lz -lcairo -lpng12  -lruby1.8  -lpthread -lrt -ldl -lcrypt -lm   -lc
>> /usr/bin/ld: cannot find -lstdc++
>> collect2: ld returned 1 exit status
>
> The full build log is available from:
>    http://people.debian.org/~lucas/logs/2012/08/14/mapserver_6.0.1-3.1_wheezy.log
>
> A list of current common problems and possible solutions is available at 
> http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
>
> About the archive rebuild: The rebuild was done on EC2 VM instances from
> Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
> failed build was retried once to eliminate random failures.

This is caused by ruby1.8 forcing the use of gcc-4.6 and linking against
a C++ library. Adding a build-dep on libstdc++6-4.6-dev (or g++-4.6)
fixes the problem.

I was thinking of fixing this directly in the git repo, but apparently
that is messed up and doesn't contain the commits leading to 6.0.3-1. A
(trivial) patch is attached anyhow.

-- 
Arto Jantunen>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: build-dep.patch
Type: text/x-diff
Size: 722 bytes
Desc: build-dep
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20120814/36ad5605/attachment.patch>


More information about the Pkg-grass-devel mailing list