Re: [exim] exim build on FreeBSD jail fails re: unrequested,…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Phil Pennock
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] exim build on FreeBSD jail fails re: unrequested, missing NIS symbols, but 2nd build's 'a charm'?
On 2007-12-29 at 11:05 -0800, snowcrash+exim-users wrote:
> that said, i see the following, apparently NIS-related, weirdness ...
>
> as usual, i do,
>
>     cd /usr/ports/mail/exim
>     make distclean rmconfig extract
>     cp -f /usr/local/etc/exim/My_Local_Makefile \
>           /s/portbuild/usr/ports/mail/exim/work/exim-4.69/Local/Makefile

>     
>     rm -rf /s/portbuild/usr/ports/mail/exim/work/exim-4.69/build-FreeBSD-amd64
>     make makefile

>     
>     cd /usr/ports/mail/exim
>     make


I think that "make makefile" needs to follow a "cd work/exim-*" since
you're not asking Ports to make makefile. Did you cd the second time
but not the first? So the second time, you had made the makefile but
the first time, you accidentally let Ports tamper?

> which fails at,
>     /usr/local/libexec/ccache/cc -o exim
>     lookups/lookups.a(nis.o)(.text+0xe): In function `nis_open':
>     : undefined reference to `yp_get_default_domain'


This can only happen if:
(1) LOOKUP_NIS is defined after all
(2) Your C pre-processor is so broken that it gets #ifndef/#else wrong

I'm inclined to suspect (1) and you're missing a cd, as noted. You have
my sympathy, I like FreeBSD's Ports system and the Exim port is
impressive, and yet it always manages to miss "just that one little
thing" and I end up having to script around it as you do.

-Phil