Date: Mon, 2 Aug 2004 12:20:14 +0200 From: Max Laier <max@love2party.net> To: freebsd-current@freebsd.org Cc: Dan Cojocar <dan.cojocar@gmail.com> Subject: Re: Buildkernel+ALTQ error Message-ID: <200408021220.20785.max@love2party.net> In-Reply-To: <b37cb09704080201511c0aac62@mail.gmail.com> References: <b37cb09704072906577f137b70@mail.gmail.com> <b37cb0970408020109250948c4@mail.gmail.com> <b37cb09704080201511c0aac62@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary-03=_kVhDB6Jr7zMM6B8 Content-Type: multipart/mixed; boundary="Boundary-01=_eVhDBpOmDET5OsM" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_eVhDBpOmDET5OsM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 02 August 2004 10:51, Dan Cojocar wrote: > On Mon, 2 Aug 2004 11:09:22 +0300, Dan Cojocar <dan.cojocar@gmail.com>=20 wrote: > > On Mon, 2 Aug 2004 09:50:51 +0200, Max Laier <max@love2party.net> wrote: > > > On Monday 02 August 2004 09:35, you wrote: > > > > Hello, > > > > > > > > Sorry for this delay, but i was offline :( > > > > > > Once more: I need your *complete* kernel config! > > > > > > > I made a cvsup today, and now i get another error: > > > > > > > > cc -c -O -pipe -march=3Dathlon-xp -Wall -Wredundant-decls > > > > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes > > > > -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=3Dc99= -g > > > > -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica > > > > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter > > > > -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath > > > > -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm > > > > -D_KERNEL -include opt_global.h -finline-limit=3D8000 --param > > > > inline-unit-growth=3D100 --param large-function-growth=3D1000 > > > > -mno-align-long-strings -mpreferred-stack-boundary=3D2 -ffreestandi= ng > > > > /usr/src/sys/i386/i386/genassym.c > > > > cc1: error: invalid parameter `inline-unit-growth' > > > > cc1: error: invalid parameter `large-function-growth' > > > > *** Error code 1 > > > > > > This seems not linked to ALTQ at all. Looks more like a defect build > > > environment. Did you do a complete buildworld before? Try: > > > $ rm -rf /usr/obj/* > > > $ cd /usr/src && make buildworld && make buildkernel > > > KERNCONF=3D<yourconf> to have a clean starting point. The gcc update > > > created a lot of noise all over the build. > > > > I know that this is not related to ALTQ, i'm doing now a > > buildworld, again :(, and i will post my results asap. > > I did a cvsup, buildworld went ok, and when i buildkernel, i get > the same error, like that on 29.07: Uhm, well ... attached diff should fix this, but I still think that your bu= ild=20 environment is somehow defective as the required headers would be pulled in= =20 via the following - certainly discussable - include chain: net/if.h -> _KERNEL =3D> net/if_var.h -> altq/if_altq.h -> sys/lock.h & mu= tex.h I have to clean that up and add lock headers where needed. Can you meanwhil= e=20 check out if that helps and/or if a #make installincludes helps? Thanks. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --Boundary-01=_eVhDBpOmDET5OsM Content-Type: text/x-diff; charset="iso-8859-1"; name="altq_cbq.c.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="altq_cbq.c.diff" Index: altq_cbq.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /usr/store/mlaier/fcvs/src/sys/contrib/altq/altq/altq_cbq.c,v retrieving revision 1.2 diff -u -r1.2 altq_cbq.c =2D-- altq_cbq.c 12 Jun 2004 00:57:20 -0000 1.2 +++ altq_cbq.c 2 Aug 2004 10:15:25 -0000 @@ -43,6 +43,10 @@ #ifdef ALTQ_CBQ /* cbq is enabled by ALTQ_CBQ option in opt_altq.h */ =20 #include <sys/param.h> +#if defined(__FreeBSD__) && __FreeBSD_version > 500000 +#include <sys/lock.h> +#include <sys/mutex.h> +#endif #include <sys/malloc.h> #include <sys/mbuf.h> #include <sys/socket.h> --Boundary-01=_eVhDBpOmDET5OsM-- --Boundary-03=_kVhDB6Jr7zMM6B8 Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBBDhVkXyyEoT62BG0RAtVQAJ92azoFM/Rv3rSkhJf84zcSGHevtwCfegmX eA/48uerCxuiAUVRi3LY2A8= =3Aq1 -----END PGP SIGNATURE----- --Boundary-03=_kVhDB6Jr7zMM6B8--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408021220.20785.max>