From owner-freebsd-arch@FreeBSD.ORG Sat Mar 6 14:12:42 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E44E16A4CE; Sat, 6 Mar 2004 14:12:42 -0800 (PST) Received: from smtp.aaanet.ru (smtp.aaanet.ru [80.80.111.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91F1843D45; Sat, 6 Mar 2004 14:12:41 -0800 (PST) (envelope-from bushman@rsu.ru) Received: from [80.80.101.125] (helo=jerusalem) by smtp.aaanet.ru with smtp (Exim 4.30; FreeBSD) id 1Azk8O-000Gpe-O2; Sun, 07 Mar 2004 01:19:06 +0300 Message-ID: <002601c403c8$2ac9b060$7d655050@jerusalem> From: "?????? ??????" To: "Jacques A. Vidrine" References: <20040306003800.GA80556@madman.celabo.org> Date: Sun, 7 Mar 2004 01:12:40 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Mailman-Approved-At: Sun, 07 Mar 2004 05:09:09 -0800 Subject: Re: IPC nsswitch implementation X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2004 22:12:42 -0000 ----- Original Message ----- From: "Jacques A. Vidrine" To: "Michael Bushkov" Cc: "Jordan K Hubbard" ; ; ; ; Sent: Saturday, March 06, 2004 3:38 AM Subject: Re: IPC nsswitch implementation > You're not going to have to write your own modules (like LDAP), are you? > That seems like a big drawback. Of course we can (and we will) existing nss-modules. However, it can be necessary to adapt them to lookupd to achieve maximum performance. Michael Bushkov Software Engineer, Rostov State University From owner-freebsd-arch@FreeBSD.ORG Tue Mar 9 06:05:46 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D07516A4CE for ; Tue, 9 Mar 2004 06:05:46 -0800 (PST) Received: from darkness.comp.waw.pl (unknown [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id C095743D2D for ; Tue, 9 Mar 2004 06:05:44 -0800 (PST) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 596BFACADB; Tue, 9 Mar 2004 15:05:43 +0100 (CET) Date: Tue, 9 Mar 2004 15:05:43 +0100 From: Pawel Jakub Dawidek To: freebsd-arch@freebsd.org Message-ID: <20040309140543.GW10864@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9j/QU+CmmrcVJkVI" Content-Disposition: inline User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 Subject: We have to fix this! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 14:05:46 -0000 --9j/QU+CmmrcVJkVI Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi. it is really irritating that connecting files from other directory is not possible. For example: % cat Makefile PROG=3Dtest SRCS=3D../test.c NOMAN=3Dwhat_for .include % make cc -O -pipe -c ../test.c cc -O -pipe -o test ../test.o=20 cc: ../test.o: No such file or directory cc: No input files specified *** Error code 1 =09 Stop in /usr/home/pjd/src/test. % ls ../test.o test.o ls: ../test.o: No such file or directory test.o % make -n cc -O -pipe -c ../test.c cc -O -pipe -o test ../test.o=20 It is created in wrong directory, because there is no '-o' specified. This simple path fix building .c files, but other should be fixed as well. Index: sys.mk =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: /private/FreeBSD/src/share/mk/sys.mk,v retrieving revision 1.75 diff -u -p -r1.75 sys.mk --- sys.mk 4 Feb 2004 14:40:44 -0000 1.75 +++ sys.mk 9 Mar 2004 14:02:21 -0000 @@ -184,7 +184,7 @@ MACHINE_ARCH ?=3D i386 ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} =20 .c.o: - ${CC} ${CFLAGS} -c ${.IMPSRC} + ${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} =20 .cc .cpp .cxx .C: ${CXX} ${CXXFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} Could someone commit this, PLEASE? PS. I'm building world right now to be sure nothing depend on it, but I have no idea how something may depend on this. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --9j/QU+CmmrcVJkVI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFATc83ForvXbEpPzQRAou1AJ9735av9p+EfperC4rLbmHeUkiKPwCfSRpF Wjif0Yi60JKr5XyZnjbSico= =v2gN -----END PGP SIGNATURE----- --9j/QU+CmmrcVJkVI-- From owner-freebsd-arch@FreeBSD.ORG Tue Mar 9 06:11:05 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2777316A4CE; Tue, 9 Mar 2004 06:11:05 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAC9443D54; Tue, 9 Mar 2004 06:11:04 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 8DA61530E; Tue, 9 Mar 2004 15:11:03 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 350A3530A; Tue, 9 Mar 2004 15:10:57 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id BFC8033CA4; Tue, 9 Mar 2004 15:10:56 +0100 (CET) To: Pawel Jakub Dawidek References: <20040309140543.GW10864@darkness.comp.waw.pl> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Tue, 09 Mar 2004 15:10:56 +0100 In-Reply-To: <20040309140543.GW10864@darkness.comp.waw.pl> (Pawel Jakub Dawidek's message of "Tue, 9 Mar 2004 15:05:43 +0100") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: freebsd-arch@freebsd.org Subject: Re: We have to fix this! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 14:11:05 -0000 Pawel Jakub Dawidek writes: > it is really irritating that connecting files from other directory > is not possible. It is; you're just not doing it right. If it weren't possible, none of the stuff in src/contrib and src/crypto would ever get built. (hint: .PATH) DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-arch@FreeBSD.ORG Tue Mar 9 06:15:10 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C262D16A4CF for ; Tue, 9 Mar 2004 06:15:10 -0800 (PST) Received: from darkness.comp.waw.pl (unknown [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECA0B43D55 for ; Tue, 9 Mar 2004 06:15:09 -0800 (PST) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 6F2D7ACADB; Tue, 9 Mar 2004 15:15:08 +0100 (CET) Date: Tue, 9 Mar 2004 15:15:08 +0100 From: Pawel Jakub Dawidek To: Dag-Erling Sm?rgrav Message-ID: <20040309141508.GX10864@darkness.comp.waw.pl> References: <20040309140543.GW10864@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="t4h8pR5TgOYIPOP9" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-arch@freebsd.org Subject: Re: We have to fix this! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 14:15:10 -0000 --t4h8pR5TgOYIPOP9 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 09, 2004 at 03:10:56PM +0100, Dag-Erling Sm?rgrav wrote: +> Pawel Jakub Dawidek writes: +> > it is really irritating that connecting files from other directory +> > is not possible. +>=20 +> It is; you're just not doing it right. If it weren't possible, none +> of the stuff in src/contrib and src/crypto would ever get built. +>=20 +> (hint: .PATH) Sorry, I'm aware of .PATH, but try to do something like: SRCS=3Dfile1.c ../file2.c --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --t4h8pR5TgOYIPOP9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFATdFsForvXbEpPzQRAngMAJ9ZjldbOvFkX9Z4fqwG8mnn2QfGXQCgs6lc zBN52zxjA+GiOkP4obMgmC8= =Gbp1 -----END PGP SIGNATURE----- --t4h8pR5TgOYIPOP9-- From owner-freebsd-arch@FreeBSD.ORG Tue Mar 9 07:00:00 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B0BA16A4CE; Tue, 9 Mar 2004 07:00:00 -0800 (PST) Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5ACD643D54; Tue, 9 Mar 2004 06:59:58 -0800 (PST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: from zibbi.icomtek.csir.co.za (localhost [127.0.0.1]) i29ExtLF056343; Tue, 9 Mar 2004 16:59:55 +0200 (SAST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: (from jhay@localhost)i29ExtVT056342; Tue, 9 Mar 2004 16:59:55 +0200 (SAST) (envelope-from jhay) Date: Tue, 9 Mar 2004 16:59:55 +0200 From: John Hay To: Pawel Jakub Dawidek Message-ID: <20040309145955.GA56187@zibbi.icomtek.csir.co.za> References: <20040309140543.GW10864@darkness.comp.waw.pl> <20040309141508.GX10864@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040309141508.GX10864@darkness.comp.waw.pl> User-Agent: Mutt/1.4.1i cc: freebsd-arch@freebsd.org Subject: Re: We have to fix this! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 15:00:00 -0000 On Tue, Mar 09, 2004 at 03:15:08PM +0100, Pawel Jakub Dawidek wrote: > On Tue, Mar 09, 2004 at 03:10:56PM +0100, Dag-Erling Sm?rgrav wrote: > +> Pawel Jakub Dawidek writes: > +> > it is really irritating that connecting files from other directory > +> > is not possible. > +> > +> It is; you're just not doing it right. If it weren't possible, none > +> of the stuff in src/contrib and src/crypto would ever get built. > +> > +> (hint: .PATH) > > Sorry, I'm aware of .PATH, but try to do something like: > > SRCS=file1.c ../file2.c What about using ${.CURDIR} ? eg. SRCS=file1.c ${.CURDIR}/../file2.c John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org From owner-freebsd-arch@FreeBSD.ORG Tue Mar 9 07:04:30 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A77CE16A4CE for ; Tue, 9 Mar 2004 07:04:30 -0800 (PST) Received: from darkness.comp.waw.pl (unknown [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD6AC43D45 for ; Tue, 9 Mar 2004 07:04:29 -0800 (PST) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id BE468AEA4F; Tue, 9 Mar 2004 16:04:26 +0100 (CET) Date: Tue, 9 Mar 2004 16:04:26 +0100 From: Pawel Jakub Dawidek To: John Hay Message-ID: <20040309150426.GY10864@darkness.comp.waw.pl> References: <20040309140543.GW10864@darkness.comp.waw.pl> <20040309141508.GX10864@darkness.comp.waw.pl> <20040309145955.GA56187@zibbi.icomtek.csir.co.za> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2OFxhqPNSAodNyNc" Content-Disposition: inline In-Reply-To: <20040309145955.GA56187@zibbi.icomtek.csir.co.za> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-arch@freebsd.org Subject: Re: We have to fix this! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 15:04:30 -0000 --2OFxhqPNSAodNyNc Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 09, 2004 at 04:59:55PM +0200, John Hay wrote: +> > Sorry, I'm aware of .PATH, but try to do something like: +> >=20 +> > SRCS=3Dfile1.c ../file2.c +>=20 +> What about using ${.CURDIR} ? eg. SRCS=3Dfile1.c ${.CURDIR}/../file2.c I don't understand how this can help. The problem is that cc is looking for file2.o in "../" (or in "${.CURDIR}/../" in you proposal) directory, but it is not created there, it is created in current directory. Anyway, I gave example how to reproduce it, so you're welcome to try. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --2OFxhqPNSAodNyNc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFATdz6ForvXbEpPzQRAlGRAJ49AqpIr1niyJpP9I2Ez5BOXfZYpwCcCml6 z/HQ7wdKMiGtuDXtUbxsZ1o= =hpn0 -----END PGP SIGNATURE----- --2OFxhqPNSAodNyNc-- From owner-freebsd-arch@FreeBSD.ORG Tue Mar 9 07:15:43 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D71B316A4CE; Tue, 9 Mar 2004 07:15:43 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id C864F43D41; Tue, 9 Mar 2004 07:15:43 -0800 (PST) (envelope-from mux@freebsd.org) Received: by elvis.mu.org (Postfix, from userid 1920) id BA5CF5C7EE; Tue, 9 Mar 2004 07:15:43 -0800 (PST) Date: Tue, 9 Mar 2004 16:15:43 +0100 From: Maxime Henrion To: Pawel Jakub Dawidek Message-ID: <20040309151543.GU35475@elvis.mu.org> References: <20040309140543.GW10864@darkness.comp.waw.pl> <20040309141508.GX10864@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040309141508.GX10864@darkness.comp.waw.pl> User-Agent: Mutt/1.4.1i cc: Dag-Erling Sm?rgrav cc: freebsd-arch@freebsd.org Subject: Re: We have to fix this! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 15:15:44 -0000 Pawel Jakub Dawidek wrote: > On Tue, Mar 09, 2004 at 03:10:56PM +0100, Dag-Erling Sm?rgrav wrote: > +> Pawel Jakub Dawidek writes: > +> > it is really irritating that connecting files from other directory > +> > is not possible. > +> > +> It is; you're just not doing it right. If it weren't possible, none > +> of the stuff in src/contrib and src/crypto would ever get built. > +> > +> (hint: .PATH) > > Sorry, I'm aware of .PATH, but try to do something like: > > SRCS=file1.c ../file2.c If you're aware of .PATH, why aren't you just using it? .PATH: .. SRCS= file1.c file2.c works just fine... If that's not what you're looking for, you should try explaining your problem better. Maxime From owner-freebsd-arch@FreeBSD.ORG Tue Mar 9 07:27:56 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 258D016A4CE; Tue, 9 Mar 2004 07:27:56 -0800 (PST) Received: from darkness.comp.waw.pl (unknown [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id A114543D41; Tue, 9 Mar 2004 07:27:54 -0800 (PST) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id EEE04AC974; Tue, 9 Mar 2004 16:27:52 +0100 (CET) Date: Tue, 9 Mar 2004 16:27:52 +0100 From: Pawel Jakub Dawidek To: Maxime Henrion Message-ID: <20040309152752.GZ10864@darkness.comp.waw.pl> References: <20040309140543.GW10864@darkness.comp.waw.pl> <20040309141508.GX10864@darkness.comp.waw.pl> <20040309151543.GU35475@elvis.mu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AJ3oM32U01nchLSz" Content-Disposition: inline In-Reply-To: <20040309151543.GU35475@elvis.mu.org> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: Dag-Erling Sm?rgrav cc: freebsd-arch@freebsd.org Subject: Re: We have to fix this! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 15:27:56 -0000 --AJ3oM32U01nchLSz Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 09, 2004 at 04:15:43PM +0100, Maxime Henrion wrote: +> > Sorry, I'm aware of .PATH, but try to do something like: +> >=20 +> > SRCS=3Dfile1.c ../file2.c +>=20 +> If you're aware of .PATH, why aren't you just using it? +>=20 +> .PATH: .. +>=20 +> SRCS=3D file1.c file2.c +>=20 +> works just fine... +>=20 +> If that's not what you're looking for, you should try explaining your +> problem better. Hmm, it is. I was sure that .PATH means "this is your path and only this". It will not work with two files with the same name, but this is what I was looking for. Thanks! --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --AJ3oM32U01nchLSz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFATeJ4ForvXbEpPzQRAuu2AKCwMvISqa1RGdb4D3wZXdGfBSuACQCgktdG Yo2fhLzY4l9MN6mBoBVNc7M= =1/OY -----END PGP SIGNATURE----- --AJ3oM32U01nchLSz-- From owner-freebsd-arch@FreeBSD.ORG Tue Mar 9 08:28:46 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E04E716A4CE; Tue, 9 Mar 2004 08:28:46 -0800 (PST) Received: from pittgoth.com (14.zlnp1.xdsl.nauticom.net [209.195.149.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A1A543D1F; Tue, 9 Mar 2004 08:28:46 -0800 (PST) (envelope-from trhodes@FreeBSD.org) Received: from localhost (acs-24-154-235-164.zoominternet.net [24.154.235.164]) (authenticated bits=0) by pittgoth.com (8.12.11/8.12.11) with ESMTP id i29GSiJd040168 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 9 Mar 2004 11:28:45 -0500 (EST) (envelope-from trhodes@FreeBSD.org) Date: Tue, 9 Mar 2004 11:29:01 -0500 From: Tom Rhodes To: Pawel Jakub Dawidek Message-Id: <20040309112901.06aae750@localhost> In-Reply-To: <20040309152752.GZ10864@darkness.comp.waw.pl> References: <20040309140543.GW10864@darkness.comp.waw.pl> <20040309141508.GX10864@darkness.comp.waw.pl> <20040309151543.GU35475@elvis.mu.org> <20040309152752.GZ10864@darkness.comp.waw.pl> X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-arch@FreeBSD.org Subject: Re: We have to fix this! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 16:28:47 -0000 On Tue, 9 Mar 2004 16:27:52 +0100 Pawel Jakub Dawidek wrote: > On Tue, Mar 09, 2004 at 04:15:43PM +0100, Maxime Henrion wrote: > +> > Sorry, I'm aware of .PATH, but try to do something like: > +> > > +> > SRCS=file1.c ../file2.c > +> > +> If you're aware of .PATH, why aren't you just using it? > +> > +> .PATH: .. > +> > +> SRCS= file1.c file2.c > +> > +> works just fine... > +> > +> If that's not what you're looking for, you should try explaining your > +> problem better. > > Hmm, it is. I was sure that .PATH means "this is your path and only this". > It will not work with two files with the same name, but this is what > I was looking for. > Thanks! I was just going to say 'read share/mk/*' -- Tom Rhodes From owner-freebsd-arch@FreeBSD.ORG Tue Mar 9 08:42:11 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22DBA16A4CE; Tue, 9 Mar 2004 08:42:11 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEA6F43D3F; Tue, 9 Mar 2004 08:42:10 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 10A1A530E; Tue, 9 Mar 2004 17:42:10 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id D1C0B530A; Tue, 9 Mar 2004 17:42:03 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id BA24833CA4; Tue, 9 Mar 2004 17:42:03 +0100 (CET) To: Tom Rhodes References: <20040309140543.GW10864@darkness.comp.waw.pl> <20040309141508.GX10864@darkness.comp.waw.pl> <20040309151543.GU35475@elvis.mu.org> <20040309152752.GZ10864@darkness.comp.waw.pl> <20040309112901.06aae750@localhost> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Tue, 09 Mar 2004 17:42:03 +0100 In-Reply-To: <20040309112901.06aae750@localhost> (Tom Rhodes's message of "Tue, 9 Mar 2004 11:29:01 -0500") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: Pawel Jakub Dawidek cc: freebsd-arch@FreeBSD.org Subject: Re: We have to fix this! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 16:42:11 -0000 Tom Rhodes writes: > I was just going to say 'read share/mk/*' actually, 'man make' would have sufficed. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-arch@FreeBSD.ORG Tue Mar 9 08:52:01 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8467C16A4CE; Tue, 9 Mar 2004 08:52:01 -0800 (PST) Received: from pittgoth.com (14.zlnp1.xdsl.nauticom.net [209.195.149.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2530A43D31; Tue, 9 Mar 2004 08:52:01 -0800 (PST) (envelope-from trhodes@FreeBSD.org) Received: from localhost (acs-24-154-235-164.zoominternet.net [24.154.235.164]) (authenticated bits=0) by pittgoth.com (8.12.11/8.12.11) with ESMTP id i29GpvQj040244 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 9 Mar 2004 11:51:58 -0500 (EST) (envelope-from trhodes@FreeBSD.org) Date: Tue, 9 Mar 2004 11:52:14 -0500 From: Tom Rhodes To: des@des.no (Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?=) Message-Id: <20040309115214.59547fa6@localhost> In-Reply-To: References: <20040309140543.GW10864@darkness.comp.waw.pl> <20040309141508.GX10864@darkness.comp.waw.pl> <20040309151543.GU35475@elvis.mu.org> <20040309152752.GZ10864@darkness.comp.waw.pl> <20040309112901.06aae750@localhost> X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable cc: Pawel Jakub Dawidek cc: freebsd-arch@FreeBSD.org Subject: Re: We have to fix this! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 16:52:01 -0000 On Tue, 09 Mar 2004 17:42:03 +0100 des@des.no (Dag-Erling Sm=F8rgrav) wrote: > Tom Rhodes writes: > > I was just going to say 'read share/mk/*' >=20 > actually, 'man make' would have sufficed. I was thinking more for examples with possible comments. Yet I don't know if any exist as I didn't even look. :P --=20 Tom Rhodes From owner-freebsd-arch@FreeBSD.ORG Tue Mar 9 09:47:18 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99CE216A4CE; Tue, 9 Mar 2004 09:47:18 -0800 (PST) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75EDB43D39; Tue, 9 Mar 2004 09:47:18 -0800 (PST) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 604B972DCB; Tue, 9 Mar 2004 09:47:18 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 5B9DF72DB5; Tue, 9 Mar 2004 09:47:18 -0800 (PST) Date: Tue, 9 Mar 2004 09:47:18 -0800 (PST) From: Doug White To: Tom Rhodes In-Reply-To: <20040309115214.59547fa6@localhost> Message-ID: <20040309094541.X69332@carver.gumbysoft.com> References: <20040309140543.GW10864@darkness.comp.waw.pl> <20040309151543.GU35475@elvis.mu.org> <20040309112901.06aae750@localhost> <20040309115214.59547fa6@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE cc: Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= cc: Pawel Jakub Dawidek cc: freebsd-arch@FreeBSD.org Subject: Re: We have to fix this! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 17:47:18 -0000 On Tue, 9 Mar 2004, Tom Rhodes wrote: > On Tue, 09 Mar 2004 17:42:03 +0100 > des@des.no (Dag-Erling Sm=F8rgrav) wrote: > > > Tom Rhodes writes: > > > I was just going to say 'read share/mk/*' > > > > actually, 'man make' would have sufficed. > > I was thinking more for examples with possible comments. Yet > I don't know if any exist as I didn't even look. :P The mount_* programs share a common options parsing implementation, stored in src/sbin/mount/getmntopts.c. The person that suggested ${.CURDIR} was _really_ close. --=20 Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org From owner-freebsd-arch@FreeBSD.ORG Tue Mar 9 10:02:25 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0D2716A4CE; Tue, 9 Mar 2004 10:02:25 -0800 (PST) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9338F43D1F; Tue, 9 Mar 2004 10:02:24 -0800 (PST) (envelope-from ru@ip.net.ua) Received: from heffalump.office.ipnet (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.10/8.12.9) with ESMTP id i29I4ju0073477 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 9 Mar 2004 20:05:46 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.office.ipnet (8.12.11/8.12.11) id i29I1BAv059537; Tue, 9 Mar 2004 20:01:11 +0200 (EET) (envelope-from ru) Date: Tue, 9 Mar 2004 20:01:11 +0200 From: Ruslan Ermilov To: Pawel Jakub Dawidek Message-ID: <20040309180111.GE59166@ip.net.ua> References: <20040309140543.GW10864@darkness.comp.waw.pl> <20040309141508.GX10864@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GxcwvYAGnODwn7V8" Content-Disposition: inline In-Reply-To: <20040309141508.GX10864@darkness.comp.waw.pl> User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: Dag-Erling Sm?rgrav cc: freebsd-arch@freebsd.org Subject: Re: We have to fix this! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 18:02:25 -0000 --GxcwvYAGnODwn7V8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 09, 2004 at 03:15:08PM +0100, Pawel Jakub Dawidek wrote: > On Tue, Mar 09, 2004 at 03:10:56PM +0100, Dag-Erling Sm?rgrav wrote: > +> Pawel Jakub Dawidek writes: > +> > it is really irritating that connecting files from other directory > +> > is not possible. > +>=20 > +> It is; you're just not doing it right. If it weren't possible, none > +> of the stuff in src/contrib and src/crypto would ever get built. > +>=20 > +> (hint: .PATH) >=20 > Sorry, I'm aware of .PATH, but try to do something like: >=20 > SRCS=3Dfile1.c ../file2.c >=20 I just wanted to further emphasize _why_ this will never be supported: we want all our product files (aka object files) to end up in the object directory ("obj"), and using source files with path prefixes doesn't work well with suffix transformation rules like .c.o, as make(1) only changes the file suffix in that case. (I know you've already learned how to use .PATH: properly.) Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --GxcwvYAGnODwn7V8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFATgZnUkv4P6juNwoRAsR2AJ44yezboLVFhZ3ebLRJPclQIOVnIACfV3RB nQnYA7o/X5lXpF0t1BB2Urg= =k7lG -----END PGP SIGNATURE----- --GxcwvYAGnODwn7V8-- From owner-freebsd-arch@FreeBSD.ORG Tue Mar 9 10:06:27 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4B6216A4CE; Tue, 9 Mar 2004 10:06:27 -0800 (PST) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB53843D46; Tue, 9 Mar 2004 10:06:26 -0800 (PST) (envelope-from ru@ip.net.ua) Received: from heffalump.office.ipnet (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.10/8.12.9) with ESMTP id i29I9lu0073554 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 9 Mar 2004 20:09:49 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.office.ipnet (8.12.11/8.12.11) id i29I6EGd059590; Tue, 9 Mar 2004 20:06:14 +0200 (EET) (envelope-from ru) Date: Tue, 9 Mar 2004 20:06:13 +0200 From: Ruslan Ermilov To: Doug White Message-ID: <20040309180613.GF59166@ip.net.ua> References: <20040309140543.GW10864@darkness.comp.waw.pl> <20040309112901.06aae750@localhost> <20040309115214.59547fa6@localhost> <20040309094541.X69332@carver.gumbysoft.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qp4W5+cUSnZs0RIF" Content-Disposition: inline In-Reply-To: <20040309094541.X69332@carver.gumbysoft.com> User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: Tom Rhodes cc: freebsd-arch@freebsd.org cc: Pawel Jakub Dawidek cc: Dag-Erling Sm?rgrav Subject: Re: We have to fix this! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 18:06:27 -0000 --qp4W5+cUSnZs0RIF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 09, 2004 at 09:47:18AM -0800, Doug White wrote: > On Tue, 9 Mar 2004, Tom Rhodes wrote: >=20 > > On Tue, 09 Mar 2004 17:42:03 +0100 > > des@des.no (Dag-Erling Sm?rgrav) wrote: > > > > > Tom Rhodes writes: > > > > I was just going to say 'read share/mk/*' > > > > > > actually, 'man make' would have sufficed. > > > > I was thinking more for examples with possible comments. Yet > > I don't know if any exist as I didn't even look. :P >=20 > The mount_* programs share a common options parsing implementation, > stored in src/sbin/mount/getmntopts.c. The person that suggested > ${.CURDIR} was _really_ close. >=20 There's some hairier example, for those with masochistic bents: see how src/kerberos5/tools/asn1_compile/Makefile has to deal with print_version.c. ;) Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --qp4W5+cUSnZs0RIF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD4DBQFATgeVUkv4P6juNwoRAm/2AJdpqXCMFPatBpdWaoVUPlkBb4wRAJ0Tc2Ia w/M7bI+Yt5U4Uj6gfTgJcw== =569N -----END PGP SIGNATURE----- --qp4W5+cUSnZs0RIF-- From owner-freebsd-arch@FreeBSD.ORG Tue Mar 9 12:03:51 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D52916A4CE for ; Tue, 9 Mar 2004 12:03:51 -0800 (PST) Received: from darkness.comp.waw.pl (unknown [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38B9143D3F for ; Tue, 9 Mar 2004 12:03:50 -0800 (PST) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id D3D79AEA4F; Tue, 9 Mar 2004 21:03:47 +0100 (CET) Date: Tue, 9 Mar 2004 21:03:47 +0100 From: Pawel Jakub Dawidek To: Alexander Leidinger Message-ID: <20040309200347.GB10864@darkness.comp.waw.pl> References: <20040229182209.7d1cdd12@Magellan.Leidinger.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MgQdU7jr+b9ajvaw" Content-Disposition: inline In-Reply-To: <20040229182209.7d1cdd12@Magellan.Leidinger.net> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: arch@freebsd.org cc: Garance A Drosihn cc: Marius Strobl Subject: Re: updated Intel C compiler patch-set (kernel code and build infrastructure) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 20:03:51 -0000 --MgQdU7jr+b9ajvaw Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 29, 2004 at 06:22:09PM +0100, Alexander Leidinger wrote: +> I've updated the icc patch-set at +> http://www.leidinger.net/FreeBSD/current-patches/ relative to -current +> from Feb 26. +>=20 +> icc.diff is the patch set +> icc.README is a short introduction how to use icc to compile +> the kernel +> icc.ChangeLog explains what I changed +>=20 +> For those which missed the last bi-monthly status report: an icc +> compiled kernel (optimized for a P4) was used to try to build the entire +> ports collection: no dogs or cats where eaten by this patch, no black +> helicopters so far, no crashes... only some strange, white "something" +> which melts away when heated was fallen out of the sky, but I'm not sure +> if this may be a sideeffect of something different... +>=20 +> As 5.2* is out the door, it may be a good time to get them into the +> tree. It would be nice if anyone of those src committers who showed +> interest in getting this support into the tree would step forward. It will be really great if we can merge your patches. I'm not sure how to handle broken with this compiler part of the kernel. If those are modules only we could mark them somehow and don't allow to compile them with icc. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --MgQdU7jr+b9ajvaw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFATiMjForvXbEpPzQRAkJ4AKCbA7N2LCr3HmG9ONl/UhUq020vOQCgpsdf Ab26Dw6iFVsLc27UW10YWyI= =JRv7 -----END PGP SIGNATURE----- --MgQdU7jr+b9ajvaw-- From owner-freebsd-arch@FreeBSD.ORG Wed Mar 10 01:01:10 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F06EA16A4CE; Wed, 10 Mar 2004 01:01:10 -0800 (PST) Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B01443D2D; Wed, 10 Mar 2004 01:01:10 -0800 (PST) (envelope-from Alexander@Leidinger.net) Received: from fwd07.aul.t-online.de by mailout01.sul.t-online.com with smtp id 1B0zaP-000256-01; Wed, 10 Mar 2004 10:01:09 +0100 Received: from Andro-Beta.Leidinger.net (TtIpvMZEgexWhkJmW3S7lZNH+X6keiOry7RYyRKR9BsyZK-HG1Hhgw@[80.131.117.146]) by fmrl07.sul.t-online.com with esmtp id 1B0zaB-0VJvNo0; Wed, 10 Mar 2004 10:00:55 +0100 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) i2A90pOU096217; Wed, 10 Mar 2004 10:00:51 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (netchild@localhost [127.0.0.1]) i2A90pLo006316; Wed, 10 Mar 2004 10:00:51 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Wed, 10 Mar 2004 10:00:51 +0100 From: Alexander Leidinger To: Pawel Jakub Dawidek Message-Id: <20040310100051.47b2fa03@Magellan.Leidinger.net> In-Reply-To: <20040309200347.GB10864@darkness.comp.waw.pl> References: <20040229182209.7d1cdd12@Magellan.Leidinger.net> <20040309200347.GB10864@darkness.comp.waw.pl> X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Seen: false X-ID: TtIpvMZEgexWhkJmW3S7lZNH+X6keiOry7RYyRKR9BsyZK-HG1Hhgw@t-dialin.net cc: Tom Rhodes cc: arch@FreeBSD.org cc: Garance A Drosihn cc: Marius Strobl Subject: Re: updated Intel C compiler patch-set (kernel code and build infrastructure) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2004 09:01:11 -0000 On Tue, 9 Mar 2004 21:03:47 +0100 Pawel Jakub Dawidek wrote: > It will be really great if we can merge your patches. > I'm not sure how to handle broken with this compiler part of the kernel. > If those are modules only we could mark them somehow and don't allow > to compile them with icc. Tom Rhodes tries to get some time to make some style(9) fixes (his style-fu is better than mine). After that he is willing to commit the patches. Feel free to help with the style review. I don't think we have to mark some modules for icc. Most of the modules work with icc v7 (and so far everything we tested in a monolithic kernel) and an icc v8 compiled kernel fails in the FPU detection code, so v8 isn't recommended ATM. Bye, Alexander. -- I will be available to get hired in April 2004. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 From owner-freebsd-arch@FreeBSD.ORG Wed Mar 10 05:00:20 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3E3716A4CE; Wed, 10 Mar 2004 05:00:20 -0800 (PST) Received: from mailout08.sul.t-online.com (mailout08.sul.t-online.com [194.25.134.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E41543D41; Wed, 10 Mar 2004 05:00:20 -0800 (PST) (envelope-from Alexander@Leidinger.net) Received: from fwd04.aul.t-online.de by mailout08.sul.t-online.com with smtp id 1B13Jr-0005Nw-05; Wed, 10 Mar 2004 14:00:19 +0100 Received: from Andro-Beta.Leidinger.net (VgfHTMZTYeRt54I5T7rZDovBXQ1iTpa3mWdwvb2wLcGlJWnx5CY4kQ@[80.131.117.146]) by fmrl04.sul.t-online.com with esmtp id 1B13Iz-1XYDey0; Wed, 10 Mar 2004 13:59:25 +0100 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) i2ACxLOU030210; Wed, 10 Mar 2004 13:59:21 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (netchild@localhost [127.0.0.1]) i2ACxLsl036570; Wed, 10 Mar 2004 13:59:21 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Wed, 10 Mar 2004 13:59:21 +0100 From: Alexander Leidinger To: Pawel Jakub Dawidek Message-Id: <20040310135921.42fd1d70@Magellan.Leidinger.net> In-Reply-To: <20040310100051.47b2fa03@Magellan.Leidinger.net> References: <20040229182209.7d1cdd12@Magellan.Leidinger.net> <20040309200347.GB10864@darkness.comp.waw.pl> <20040310100051.47b2fa03@Magellan.Leidinger.net> X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Seen: false X-ID: VgfHTMZTYeRt54I5T7rZDovBXQ1iTpa3mWdwvb2wLcGlJWnx5CY4kQ@t-dialin.net cc: Tom Rhodes cc: Marius Strobl cc: Garance A Drosihn cc: arch@freebsd.org Subject: Re: updated Intel C compiler patch-set (kernel code and build infrastructure) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2004 13:00:20 -0000 On Wed, 10 Mar 2004 10:00:51 +0100 Alexander Leidinger wrote: > I don't think we have to mark some modules for icc. Most of the modules > work with icc v7 (and so far everything we tested in a monolithic > kernel) and an icc v8 compiled kernel fails in the FPU detection code, > so v8 isn't recommended ATM. s/kernel)/kernel works, only the sound modules are known to fail ATM)/ Bye, Alexander. -- I will be available to get hired in April 2004. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 From owner-freebsd-arch@FreeBSD.ORG Thu Mar 11 05:32:11 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA04F16A4CE for ; Thu, 11 Mar 2004 05:32:11 -0800 (PST) Received: from web42006.mail.yahoo.com (web42006.mail.yahoo.com [66.218.93.174]) by mx1.FreeBSD.org (Postfix) with SMTP id ACD1143D2F for ; Thu, 11 Mar 2004 05:32:11 -0800 (PST) (envelope-from jpande_techinfo@yahoo.com) Message-ID: <20040311133210.53599.qmail@web42006.mail.yahoo.com> Received: from [202.144.61.162] by web42006.mail.yahoo.com via HTTP; Thu, 11 Mar 2004 05:32:10 PST Date: Thu, 11 Mar 2004 05:32:10 -0800 (PST) From: jitendra pande To: freebsd-arch@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: How to use Kernel level mutex in FreeBSD 4.8 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2004 13:32:12 -0000 Hi, I am trying to use kernle level mutex in my driver for FreeBSD 4.8. I tried searching for kernel level mutex but couldn't find any information on the same. The kernel level mutex functions mtx_lock(..), mutex(..), mtx_init(..) and other mtx_ functions are available from FreeBSD 5.0 onwards and not in FreeBSD 4.8. Kindly adavice me how should i proceed. Also is there anything like Gaint lock in FreeBSD 4.8. If so then how can i use it. Any early reply will be of great help. Thanks in advance Jitendra --------------------------------- Do you Yahoo!? Yahoo! Search - Find what you’re looking for faster. From owner-freebsd-arch@FreeBSD.ORG Thu Mar 11 05:42:17 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0517F16A4CE for ; Thu, 11 Mar 2004 05:42:17 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 943C443D31 for ; Thu, 11 Mar 2004 05:42:16 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 2DA84530E; Thu, 11 Mar 2004 14:42:15 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 08750530A; Thu, 11 Mar 2004 14:42:08 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id A3E3B33CA6; Thu, 11 Mar 2004 14:42:08 +0100 (CET) To: jitendra pande References: <20040311133210.53599.qmail@web42006.mail.yahoo.com> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Thu, 11 Mar 2004 14:42:08 +0100 In-Reply-To: <20040311133210.53599.qmail@web42006.mail.yahoo.com> (jitendra pande's message of "Thu, 11 Mar 2004 05:32:10 -0800 (PST)") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: freebsd-arch@freebsd.org Subject: Re: How to use Kernel level mutex in FreeBSD 4.8 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2004 13:42:17 -0000 jitendra pande writes: > I am trying to use kernle level mutex in my driver for FreeBSD 4.8. > I tried searching for kernel level mutex but couldn't find any > information on the same. The FreeBSD 4 kernel is single-threaded. You don't need locking except to protect against interrupts (see spl(9)) DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-arch@FreeBSD.ORG Fri Mar 12 07:51:52 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0FC516A4CE for ; Fri, 12 Mar 2004 07:51:52 -0800 (PST) Received: from web42003.mail.yahoo.com (web42003.mail.yahoo.com [66.218.93.171]) by mx1.FreeBSD.org (Postfix) with SMTP id CB1EC43D3F for ; Fri, 12 Mar 2004 07:51:52 -0800 (PST) (envelope-from jpande_techinfo@yahoo.com) Message-ID: <20040312155151.38206.qmail@web42003.mail.yahoo.com> Received: from [202.144.61.162] by web42003.mail.yahoo.com via HTTP; Fri, 12 Mar 2004 07:51:51 PST Date: Fri, 12 Mar 2004 07:51:51 -0800 (PST) From: jitendra pande To: Dag-Erling "Smørgrav" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: freebsd-arch@freebsd.org Subject: Re: How to use Kernel level mutex in FreeBSD 4.8 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2004 15:51:53 -0000 Hi Dag-Erling..... Thanks a lot for the information. I tried using the splimp(..) and splx(..) within my driver and it works for the fisrt go..... But when i tried to do any other activity like pinging another machine/ starting a application then my client application using the driver crashes. The behavior is very erratic...in some cases it works even when doing any other operation/ but in another situataion it just crashes...... can u help me why this is happening......is there anything else i need to do.. any other way for mutual exclusion.... or some kernel level semaphore and so..... also any idea that in FreeBSD how does one determine the spl level at which a device's interrupt routines execute Thanks a lot for ur help.... Dag-Erling Smørgrav wrote: jitendra pande writes: > I am trying to use kernle level mutex in my driver for FreeBSD 4.8. > I tried searching for kernel level mutex but couldn't find any > information on the same. The FreeBSD 4 kernel is single-threaded. You don't need locking except to protect against interrupts (see spl(9)) DES -- Dag-Erling Smørgrav - des@des.no --------------------------------- Do you Yahoo!? Yahoo! Search - Find what you’re looking for faster. From owner-freebsd-arch@FreeBSD.ORG Sat Mar 13 11:48:11 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DBD716A4CE for ; Sat, 13 Mar 2004 11:48:11 -0800 (PST) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E98143D31 for ; Sat, 13 Mar 2004 11:48:11 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 13700 invoked from network); 13 Mar 2004 19:48:10 -0000 Received: from dsl017-045-168.spk4.dsl.speakeasy.net (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 13 Mar 2004 19:48:10 -0000 Received: from hydrogen.funkthat.com (wluzyr@localhost.funkthat.com [127.0.0.1])i2DJlw7Y059419; Sat, 13 Mar 2004 11:47:58 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i2DJlvpr059418; Sat, 13 Mar 2004 11:47:57 -0800 (PST) Date: Sat, 13 Mar 2004 11:47:56 -0800 From: John-Mark Gurney To: jitendra pande Message-ID: <20040313194756.GE56805@funkthat.com> Mail-Followup-To: jitendra pande , Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= , freebsd-arch@freebsd.org References: <20040312155151.38206.qmail@web42003.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040312155151.38206.qmail@web42003.mail.yahoo.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= cc: freebsd-arch@freebsd.org Subject: Re: How to use Kernel level mutex in FreeBSD 4.8 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Mar 2004 19:48:11 -0000 jitendra pande wrote this message on Fri, Mar 12, 2004 at 07:51 -0800: > I tried using the splimp(..) and splx(..) within my driver and it works > for the fisrt go..... > > But when i tried to do any other activity like pinging another machine/ starting a application then my client application using the driver crashes. The behavior is very > erratic...in some cases it works even when doing any other operation/ but > in another situataion it just crashes...... > > > can u help me why this is happening......is there anything else i need > to do.. any other way for mutual exclusion.... or some kernel level semaphore and so..... > > also any idea that in FreeBSD how does one determine the spl level at > which a device's interrupt routines execute if you read the spl(9) man page, you can see: The traditional assignment of the various device drivers to the interrupt priority groups can be roughly classified as: splnet() All network interface drivers. and they list a couple others, and there are more like splcam (for scsi drivers)... since you're pinging and stuff, I assume you're writing a network driver.. The spl levels are a way to block interrupts from a set from occuring.. When you are in splnet, no network associated interrupts will occure.. This is how to make sure that you're interrupt handler doesn't touch data that you are currently modifing.. Also under 4.x SMP, there is only one kernel thread of execution, so you don't have to worry about locking till you call malloc with M_WAITOK, or tsleep (there might be a few more), there the kernel may stop execution of your code and switch to another process... Hope this helps. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."