From: Angel C. <ac...@te...> - 2005-05-23 21:35:36
|
El lun, 23-05-2005 a las 15:15 -0500, Piotr A. Sygula escribi=C3=B3: > Hello all (especially Angel, the FreeBSD man!) >=20 Hi Piotr, >=20 > As suggested by the Subject, I'm having issues building 3.1.19 on > FreeBSD 4.10. Specifically, the ./configure script fails around the CPU > autodetection code. I've even went as far as to install linux_base and > linprocfs as per Angels FreeBSD README in the distro. =20 >=20 > The error is: >=20 > checking size of short int... 2 >=20 > checking for int... yes >=20 > checking size of int... 4 >=20 > checking for an ANSI C-conforming const... yes >=20 > ./configure.lineno: 5228: Syntax error: Bad substitution >=20 > =20 >=20 > Line 5228 in configure.lineno happens to be: >=20 > =20 >=20 > CPU_NAME=3D${CPU_NAME#'model name : '} >=20 > Seems like the autodetection just doesn't fly with FreeBSD. The > /usr/compat/linux/proc/cpuinfo file seems to be missing some tokens that > the autodetection code looks for. The file from my FBSD 4.10 machine is > included below: >=20 I quick fix is to remplace this line by : CPU_NAME=3D${CPU_NAME#'model : '} =20 >=20 > Two questions; first, how can this be fixed, second, any plans on > rewriting configure to stay a bit more OS agnostic? Seems pretty silly > for BSD users to run linux compatibility just for the configure script > to run. Hopefully I didn't offend anyone with the above comment, but > from a security standpoint I run FreeBSD, not linux, and cringe at > anything that requires linux_base. >=20 Yes , in a future i'll try to merge both configure.in's ( linux , freebsd )= . The use of linprocfs was a temporary "hack" to allow the optimization in FreeBSD , but it'll remove soon. To remove linux_base motion needs to implement a BSD thread model AFAIK and this has a low priority as no many FreeBSD seems to be interested in . >=20 > Thanx in advance, you guys have concocted a helluva software package.=20 >=20 > Peter A. Sygula >=20 > President/Chief Security Officer - NetShapers, Inc. >=20 > < http://www.net-shapers.com <http://www.net-shapers.com%20> > >=20 Cheers, --=20 Angel Carpintero ack ( at ) telefonica ( dot ) net Key fingerprint =3D 3FD3 9C90 149E 7824 CECD 6BCF AC2C CA61 6EF1 B90D "No basta saber, hay que aplicar lo que se sabe;=20 no basta querer hacerlas cosas, hay que hacerlas". "Knowing is not enough; we must apply.=20 Willing is not enough; we must do" Johann Wolfgang von Goethe |