Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: regression: port www/squid fails to build on ia64 head

0 views
Skip to first unread message

Anton Shterenlikht

unread,
Dec 11, 2009, 11:05:26 AM12/11/09
to Thomas-Martin Seck, freebsd...@freebsd.org, freebs...@freebsd.org
On Fri, Dec 11, 2009 at 04:46:42PM +0100, Thomas-Martin Seck wrote:
> * Anton Shterenlikht (me...@bristol.ac.uk):
>
> > ia64
>
> > kern.osrelease: 9.0-CURRENT
>
> Hm, this is not my area of expertise.
>
> I usually build-test the default configuration on at least the latest
> 7.x and 8.x release on i386 and amd64 and it builds fine there. The
> committer usually runs a tinderbox build, too and notifies me of any
> errors (but only on amd64 and i386 AFAIK). It's possible that either
> ia64 or -CURRENT is breaking things but I cannot tell for sure.
>
> > kern.osrevision: 199506
> > kern.osreldate: 900004
> >
> > while upgrading squid from squid-2.7.7 I get:
> >
> > cc -DHAVE_CONFIG_H -I. -I../../../include -I../../../include -O2 -pipe -fno-strict-aliasing -D_REENTRANT -MT yp_auth.o -MD -MP -MF .deps/yp_auth.Tpo -c -o yp_auth.o yp_auth.c
> > mv -f .deps/yp_auth.Tpo .deps/yp_auth.Po
> > cc -DHAVE_CONFIG_H -I. -I../../../include -I../../../include -O2 -pipe -fno-strict-aliasing -D_REENTRANT -MT nis_support.o -MD -MP -MF .deps/nis_support.Tpo -c -o nis_support.o nis_support.c
> > mv -f .deps/nis_support.Tpo .deps/nis_support.Po
> > cc -O2 -pipe -fno-strict-aliasing -D_REENTRANT -g -o yp_auth yp_auth.o nis_support.o -L../../../lib -lmiscutil -lcrypt -pthread -lmd -lm
> > nis_support.o(.text+0x82): In function `get_nis_password':
> > : undefined reference to `yp_match'
> > *** Error code 1
> >
> > Stop in /usr/ports/www/squid/work/squid-2.7.STABLE7/helpers/basic_auth/YP.
> > *** Error code 1
> >
> > Please advise
>
> You might want to ask on the -current or -ia64 mailinglist about this
> particular error. I just checked on 8-STABLE/amd64 and the YP helper
> builds fine there.
>
> Did you configure anything particular in your make.conf that might
> explain this (modified CFLAGS or somesuch)?

# cat /etc/make.conf
# $FreeBSD: src/share/examples/etc/make.conf,v 1.279 2007/01/17 12:43:06 des Exp $

NO_MODULES= # do not build modules with the kernel
# added by use.perl 2009-09-23 14:34:53
PERL_VERSION=5.10.1
#

Marcel, can you reproduce this on your ia64?

many thanks

--
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

Marcel Moolenaar

unread,
Dec 11, 2009, 2:07:06 PM12/11/09
to Anton Shterenlikht, freebsd...@freebsd.org, Thomas-Martin Seck, freebs...@freebsd.org

On Dec 11, 2009, at 8:04 AM, Anton Shterenlikht wrote:

>> You might want to ask on the -current or -ia64 mailinglist about this
>> particular error. I just checked on 8-STABLE/amd64 and the YP helper
>> builds fine there.
>>
>> Did you configure anything particular in your make.conf that might
>> explain this (modified CFLAGS or somesuch)?
>
> # cat /etc/make.conf
> # $FreeBSD: src/share/examples/etc/make.conf,v 1.279 2007/01/17 12:43:06 des Exp $
>
> NO_MODULES= # do not build modules with the kernel
> # added by use.perl 2009-09-23 14:34:53
> PERL_VERSION=5.10.1
> #
>
> Marcel, can you reproduce this on your ia64?

No, I can't seem to reproduce it. It builds just fine for me.
I have the log here (starting with the kernel booting):
http://ns1.xcllnt.net/~marcel/squid.log

Maybe NO_MODULES is interfering?
FYI,

--
Marcel Moolenaar
xcl...@mac.com

Johan Hendriks

unread,
Dec 12, 2009, 1:46:17 PM12/12/09
to freebsd...@freebsd.org

>>> You might want to ask on the -current or -ia64 mailinglist about
this
>>> particular error. I just checked on 8-STABLE/amd64 and the YP helper
>>> builds fine there.
>>>
>>> Did you configure anything particular in your make.conf that might
>>> explain this (modified CFLAGS or somesuch)?
>>
>> # cat /etc/make.conf
>> # $FreeBSD: src/share/examples/etc/make.conf,v 1.279 2007/01/17
12:43:06 des Exp $
>>
>> NO_MODULES= # do not build modules with the kernel
>> # added by use.perl 2009-09-23 14:34:53
>> PERL_VERSION=5.10.1
>> #
>>
>> Marcel, can you reproduce this on your ia64?

>No, I can't seem to reproduce it. It builds just fine for me.
>I have the log here (starting with the kernel booting):
> http://ns1.xcllnt.net/~marcel/squid.log

>Maybe NO_MODULES is interfering?
>FYI,

>--
>Marcel Moolenaar
>xcl...@mac.com


A long shot
Could it be that you have set the following in your src.conf
WITHOUT_NIS= yes
WITHOUT_RCMDS= yes
WITHOUT_RCS= yes

If i set those i get a similar error with squid (on i386 and amd64 )

Regards,
Johan Hendriks

Thomas-Martin Seck

unread,
Dec 13, 2009, 11:46:19 AM12/13/09
to Johan Hendriks, freebsd...@freebsd.org, freebs...@freebsd.org
* Johan Hendriks <Jo...@double-l.nl>:

(Squid breakage in the YP/NIS helper)

> A long shot
> Could it be that you have set the following in your src.conf
> WITHOUT_NIS= yes
> WITHOUT_RCMDS= yes
> WITHOUT_RCS= yes
>
> If i set those i get a similar error with squid (on i386 and amd64 )

This is possible; the Squid 2.7 port still relies on WITHOUT_NIS/NO_NIS
being set in make.conf. Due to the make.conf/src.conf split this does no
longer work. I have added an OPTION to turn off NIS support to the squid
3.x ports and will merge this change into the Squid 2.7 port along with
other changes soon. In the meantime you can work around this if you
build www/squid with "make -DWITHOUT_NIS" or by adding WITHOUT_NIS=yes
to /etc/make.conf.

The same applies to systems built/installed without Heimdal support.
Sorry for the breakage.

Anton Shterenlikht

unread,
Dec 14, 2009, 10:43:30 AM12/14/09
to Thomas-Martin Seck, Johan Hendriks, freebs...@freebsd.org, freebsd...@freebsd.org
On Sun, Dec 13, 2009 at 04:27:12PM -0000, Thomas-Martin Seck wrote:
> * Johan Hendriks <Jo...@double-l.nl>:
>
> (Squid breakage in the YP/NIS helper)
>
> > A long shot
> > Could it be that you have set the following in your src.conf
> > WITHOUT_NIS= yes
> > WITHOUT_RCMDS= yes
> > WITHOUT_RCS= yes
> >
> > If i set those i get a similar error with squid (on i386 and amd64 )
>
> This is possible; the Squid 2.7 port still relies on WITHOUT_NIS/NO_NIS
> being set in make.conf. Due to the make.conf/src.conf split this does no
> longer work. I have added an OPTION to turn off NIS support to the squid
> 3.x ports and will merge this change into the Squid 2.7 port along with
> other changes soon. In the meantime you can work around this if you
> build www/squid with "make -DWITHOUT_NIS" or by adding WITHOUT_NIS=yes
> to /etc/make.conf.
>
> The same applies to systems built/installed without Heimdal support.
> Sorry for the breakage.

yes, I had WITHOUT_NIS= yes in /etc/src.conf, but not the other
two options. I have now rebuilt the system without this option,
but I still get the NIS build error.

If I build with "make -DWITHOUT_NIS", then I get this error:

Making all in negotiate_auth
Making all in squid_kerb_auth
cc -DHAVE_CONFIG_H -I. -I../../../include -DHEIMDAL -I./spnegohelp -I. -O2 -pipe -fno-strict-aliasing -D_REENTRANT -MT squid_kerb_auth.o -MD -MP -MF .deps/squid_kerb_auth.Tpo -c -o squid_kerb_auth.o squid_kerb_auth.c
squid_kerb_auth.c:70:18: error: krb5.h: No such file or directory
*** Error code 1

Stop in /usr/ports/www/squid/work/squid-2.7.STABLE7/helpers/negotiate_auth/squid_kerb_auth.
*** Error code 1

does it mean I also need to build kerberos? I've WITHOUT_KERBEROS=yes
in /etc/src.conf

many thanks
anton

--
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423

Johan Hendriks

unread,
Dec 14, 2009, 11:02:12 AM12/14/09
to Anton Shterenlikht, freebsd...@freebsd.org

-MD -MP ->MF .deps/squid_kerb_auth.Tpo -c -o squid_kerb_auth.o


squid_kerb_auth.c
>squid_kerb_auth.c:70:18: error: krb5.h: No such file or directory
>*** Error code 1

>Stop in
/usr/ports/www/squid/work/squid-2.7.STABLE7/helpers/negotiate_auth/squid
_kerb_auth.
>*** Error code 1

>does it mean I also need to build kerberos? I've WITHOUT_KERBEROS=yes
>in /etc/src.conf

>many thanks
>anton

Yes it could not harm to remove that one from src.conf also.

Regards,
Johan Hendriks

Anton Shterenlikht

unread,
Dec 14, 2009, 11:46:44 AM12/14/09
to Johan Hendriks, freebsd...@freebsd.org, Anton Shterenlikht

well, instead I built with make -DWITHOUT_NIS -DWITHOUT_KERBEROS

and left
WITHOUT_KERBEROS=yes

WITHOUT_NIS=yes

in /etc/src.conf

seems to work.

By the way, do you know how to disable squid accept incoming connections.
I need squid only to dial out, never to accept connections. I got lost
in the conf file, but maybe there is a simpler option, e.g.
squid_enable="NO" in /etc/rc.conf, perhaps?

This is by analogy with sendmail. The following sendmail options would
let sendmail run fine, but not accept connections:

sendmail_enable="NO"
sendmail_submit_enable="YES"
sendmail_outbound_enable="YES"
sendmail_msp_queue_enable="YES"


many thanks
anton

--
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423

Anton Shterenlikht

unread,
Dec 14, 2009, 11:48:20 AM12/14/09
to Anton Shterenlikht, freebsd...@freebsd.org, freebs...@freebsd.org
On Mon, Dec 14, 2009 at 05:36:01PM +0100, Thomas-Martin Seck wrote:
> * Anton Shterenlikht (me...@bristol.ac.uk):
>
> > On Sun, Dec 13, 2009 at 04:27:12PM -0000, Thomas-Martin Seck wrote:
> > > * Johan Hendriks <Jo...@double-l.nl>:
> > >
> > > (Squid breakage in the YP/NIS helper)
> > >
> > > > A long shot
> > > > Could it be that you have set the following in your src.conf
> > > > WITHOUT_NIS= yes
> > > > WITHOUT_RCMDS= yes
> > > > WITHOUT_RCS= yes
> > > >
> > > > If i set those i get a similar error with squid (on i386 and amd64 )
> > >
> > > This is possible; the Squid 2.7 port still relies on WITHOUT_NIS/NO_NIS
> > > being set in make.conf. Due to the make.conf/src.conf split this does no
> > > longer work. I have added an OPTION to turn off NIS support to the squid
> > > 3.x ports and will merge this change into the Squid 2.7 port along with
> > > other changes soon. In the meantime you can work around this if you
> > > build www/squid with "make -DWITHOUT_NIS" or by adding WITHOUT_NIS=yes
> > > to /etc/make.conf.
> > >
> > > The same applies to systems built/installed without Heimdal support.
> > > Sorry for the breakage.
> >
> > yes, I had WITHOUT_NIS= yes in /etc/src.conf, but not the other
> > two options. I have now rebuilt the system without this option,
> > but I still get the NIS build error.
>
> The other options are for the port, not for the base system. (Look at
> www/squid/Makefile to see how this works.)
>
> If you set WITHOUT_NIS and/or WITHOUT_KERBEROS in src.conf, you
> currently need to set these in make.conf, too so the port can pick these
> settings up.

>
> > If I build with "make -DWITHOUT_NIS", then I get this error:
> >
> > Making all in negotiate_auth
> > Making all in squid_kerb_auth
> > cc -DHAVE_CONFIG_H -I. -I../../../include -DHEIMDAL -I./spnegohelp -I. -O2 -pipe -fno-strict-aliasing -D_REENTRANT -MT squid_kerb_auth.o -MD -MP -MF .deps/squid_kerb_auth.Tpo -c -o squid_kerb_auth.o squid_kerb_auth.c
> > squid_kerb_auth.c:70:18: error: krb5.h: No such file or directory
> > *** Error code 1
> >
> > Stop in /usr/ports/www/squid/work/squid-2.7.STABLE7/helpers/negotiate_auth/squid_kerb_auth.
> > *** Error code 1
> >
> > does it mean I also need to build kerberos? I've WITHOUT_KERBEROS=yes
> > in /etc/src.conf
>
> No, you just need to disable Kerberos support in Squid, because it's on
> by default. Rebuild the port using "make clean ; make -DNO_KERBEROS" or
> put WITHOUT_KERBEROS=yes or NO_KERBEROS=yes into /etc/make.conf before
> rebuilding the port. But do a "make clean" first so Squid's configure
> script does actually exclude these helpers from the build.

yes, that's what I did. Seems to work

Thomas-Martin Seck

unread,
Dec 14, 2009, 11:56:33 AM12/14/09
to Anton Shterenlikht, freebsd...@freebsd.org, freebs...@freebsd.org
* Anton Shterenlikht (me...@bristol.ac.uk):

> On Sun, Dec 13, 2009 at 04:27:12PM -0000, Thomas-Martin Seck wrote:
> > * Johan Hendriks <Jo...@double-l.nl>:
> >
> > (Squid breakage in the YP/NIS helper)
> >
> > > A long shot
> > > Could it be that you have set the following in your src.conf
> > > WITHOUT_NIS= yes
> > > WITHOUT_RCMDS= yes
> > > WITHOUT_RCS= yes
> > >
> > > If i set those i get a similar error with squid (on i386 and amd64 )
> >
> > This is possible; the Squid 2.7 port still relies on WITHOUT_NIS/NO_NIS
> > being set in make.conf. Due to the make.conf/src.conf split this does no
> > longer work. I have added an OPTION to turn off NIS support to the squid
> > 3.x ports and will merge this change into the Squid 2.7 port along with
> > other changes soon. In the meantime you can work around this if you
> > build www/squid with "make -DWITHOUT_NIS" or by adding WITHOUT_NIS=yes
> > to /etc/make.conf.
> >
> > The same applies to systems built/installed without Heimdal support.
> > Sorry for the breakage.
>
> yes, I had WITHOUT_NIS= yes in /etc/src.conf, but not the other
> two options. I have now rebuilt the system without this option,
> but I still get the NIS build error.

The other options are for the port, not for the base system. (Look at


www/squid/Makefile to see how this works.)

If you set WITHOUT_NIS and/or WITHOUT_KERBEROS in src.conf, you
currently need to set these in make.conf, too so the port can pick these
settings up.

> If I build with "make -DWITHOUT_NIS", then I get this error:


>
> Making all in negotiate_auth
> Making all in squid_kerb_auth
> cc -DHAVE_CONFIG_H -I. -I../../../include -DHEIMDAL -I./spnegohelp -I. -O2 -pipe -fno-strict-aliasing -D_REENTRANT -MT squid_kerb_auth.o -MD -MP -MF .deps/squid_kerb_auth.Tpo -c -o squid_kerb_auth.o squid_kerb_auth.c
> squid_kerb_auth.c:70:18: error: krb5.h: No such file or directory
> *** Error code 1
>
> Stop in /usr/ports/www/squid/work/squid-2.7.STABLE7/helpers/negotiate_auth/squid_kerb_auth.
> *** Error code 1
>
> does it mean I also need to build kerberos? I've WITHOUT_KERBEROS=yes
> in /etc/src.conf

No, you just need to disable Kerberos support in Squid, because it's on


by default. Rebuild the port using "make clean ; make -DNO_KERBEROS" or
put WITHOUT_KERBEROS=yes or NO_KERBEROS=yes into /etc/make.conf before
rebuilding the port. But do a "make clean" first so Squid's configure
script does actually exclude these helpers from the build.

0 new messages