Subject: Re: courier-imap build failure
To: Marton Fabo <morton@eik.bme.hu>
From: Chuck Silvers <chuq@chuq.com>
List: tech-pkg
Date: 10/24/2005 05:59:44
hi,

looks like libstdc++ is missing a shared library dependency.
the attached patch should fix it.  (apply the patch and
rebuild src/gnu/lib/libstdc++-v3.)

-Chuck


On Mon, Oct 24, 2005 at 01:47:09PM +0200, Marton Fabo wrote:
> 
> Hello,
> 
> can someone shed some light on why is building of courier-imap from the 
> pkgsrc-2005Q3 branch failing on a stock NetBSD-2.0 i386 system? See the 
> relevant build log below. I tried to switch to HEAD, to no avail.
> 
> Based on my research on Google, it may be related to some gcc version 
> incompatibility. Thus I tried building courier-imap after having 
> installed gcc34 and set it as the default compiler, but then the build 
> failed in a different way.
> 
> Any ideas?
> 
> thx
> mortee
> 
> Build log:
> 
> /usr/pkg/bin/gmake  all-am
> gmake[3]: Entering directory 
> `/usr/pkgsrc-work/mail/courier-imap/work/courier-imap-4.0.4/maildir'
> 
> [...]
> 
> Compiling maildirkw.c
> Linking maildirkw
> /usr/lib/libstdc++.so: undefined reference to `log'
> /usr/lib/libstdc++.so: undefined reference to `sqrt'
> /usr/lib/libstdc++.so: undefined reference to `cosh'
> /usr/lib/libstdc++.so: undefined reference to `finitef'
> /usr/lib/libstdc++.so: undefined reference to `cos'
> /usr/lib/libstdc++.so: undefined reference to `tanh'
> /usr/lib/libstdc++.so: undefined reference to `sin'
> /usr/lib/libstdc++.so: undefined reference to `atan2'
> /usr/lib/libstdc++.so: undefined reference to `pow'
> /usr/lib/libstdc++.so: undefined reference to `sinh'
> /usr/lib/libstdc++.so: undefined reference to `log10'
> /usr/lib/libstdc++.so: undefined reference to `exp'
> /usr/lib/libstdc++.so: undefined reference to `tan'
> gmake[3]: *** [maildirkw] Error 1
> gmake[3]: Leaving directory 
> `/usr/pkgsrc-work/mail/courier-imap/work/courier-imap-4.0.4/maildir'
> 
> -- 
> The two basic principles of Windows system administration:
>     * For minor problems, reboot
>     * For major problems, reinstall