From owner-freebsd-ports@FreeBSD.ORG Mon Jul 7 15:55:50 2008 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CC69106566C for ; Mon, 7 Jul 2008 15:55:50 +0000 (UTC) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from mailhost.frm2.tum.de (mailhost.frm2.tum.de [129.187.179.12]) by mx1.freebsd.org (Postfix) with ESMTP id 18B3A8FC1A for ; Mon, 7 Jul 2008 15:55:48 +0000 (UTC) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from localhost (mailhost.frm2.tum.de [129.187.179.12]) by mailhost.frm2.tum.de (8.13.8/8.13.8) with ESMTP id m67Fhsov075180; Mon, 7 Jul 2008 17:43:55 +0200 (CEST) (envelope-from Joerg.Pulz@frm2.tum.de) X-Virus-Scanned: at mailhost.frm2.tum.de Received: from hades.admin.frm2 (hades.admin.frm2 [172.25.1.10]) (authenticated bits=0) by mailhost.frm2.tum.de (8.13.8/8.13.8) with ESMTP id m67FhpeL075176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 7 Jul 2008 17:43:51 +0200 (CEST) (envelope-from Joerg.Pulz@frm2.tum.de) Date: Mon, 7 Jul 2008 17:43:48 +0200 (CEST) From: Joerg Pulz To: yves.guerin@muhc.mcgill.ca In-Reply-To: Message-ID: <20080707173950.H6862@unqrf.nqzva.sez2> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (mailhost.frm2.tum.de [129.187.179.12]); Mon, 07 Jul 2008 17:43:51 +0200 (CEST) Cc: ports@freebsd.org Subject: Re: FreeBSD Port: nut-2.2.2 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2008 15:55:50 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 7 Jul 2008, yves.guerin@muhc.mcgill.ca wrote: > > Hello, > > I try to compile the nut-2.2.2 port: > > > .... > cc -DHAVE_CONFIG_H -I. -I../include -I../include > -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/local/include/hal - > I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include > -I/usr/local/include/glib-2.0 -I/usr/loc > al/lib/glib-2.0/include -I/usr/local/include -DNETSNMP_ENABLE_IPV6 -O2 > -fno-strict-aliasing -pipe -Ufreeb > sd6 -Dfreebsd6=freebsd6 -DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.8/BSDPAN > -DHAS_FPSETMASK -DHAS_FLOATINGPOINT > _H -fno-strict-aliasing -pipe -Wdeclaration-after-statement > -I/usr/local/include -I/usr/local/lib/perl5/5.8 > .8/mach/CORE -I. -I/usr/local/include -I/usr/local/include/neon -O2 > -fno-strict-aliasing -pipe -Wall -W > sign-compare -MT dstate-hal.o -MD -MP -MF .deps/dstate-hal.Tpo -c -o > dstate-hal.o dstate-hal.c > dstate-hal.c:92: error: syntax error before '*' token > dstate-hal.c:93: error: syntax error before '*' token > dstate-hal.c:94: error: syntax error before '*' token > dstate-hal.c:101: error: syntax error before '*' token > dstate-hal.c:176: error: syntax error before '*' token > dstate-hal.c:177: error: syntax error before '*' token > dstate-hal.c:178: error: syntax error before '*' token > dstate-hal.c:183: error: syntax error before '*' token > dstate-hal.c: In function `level_handler': > dstate-hal.c:186: error: `critical_level' undeclared (first use in this > function) > dstate-hal.c:186: error: (Each undeclared identifier is reported only once > dstate-hal.c:186: error: for each function it appears in.) > dstate-hal.c:192: error: `cs' undeclared (first use in this function) > dstate-hal.c: At top level: > dstate-hal.c:203: error: syntax error before '*' token > dstate-hal.c: In function `runtime_handler': > dstate-hal.c:207: error: `cs' undeclared (first use in this function) > dstate-hal.c:210: error: `runtime' undeclared (first use in this function) > dstate-hal.c: At top level: > dstate-hal.c:223: error: syntax error before '*' token > dstate-hal.c: In function `battery_type_handler': > dstate-hal.c:225: error: `battery_type' undeclared (first use in this > function) > dstate-hal.c:226: error: `cs' undeclared (first use in this function) > dstate-hal.c: In function `dstate_init': > dstate-hal.c:240: error: `LibHalChangeSet' undeclared (first use in this > function) > dstate-hal.c:240: error: `cs' undeclared (first use in this function) > dstate-hal.c:244: warning: implicit declaration of function > `libhal_device_new_changeset' > dstate-hal.c:296: warning: implicit declaration of function > `libhal_device_commit_changeset' > dstate-hal.c:297: warning: implicit declaration of function > `libhal_device_free_changeset' > dstate-hal.c: In function `dstate_getinfo': > dstate-hal.c:307: warning: unused variable `ivalue' > dstate-hal.c: In function `dstate_setinfo': > dstate-hal.c:337: error: `LibHalChangeSet' undeclared (first use in this > function) > dstate-hal.c:337: error: `cs' undeclared (first use in this function) > dstate-hal.c:338: warning: ISO C90 forbids mixed declarations and code > dstate-hal.c: In function `status_commit': > dstate-hal.c:459: error: `LibHalChangeSet' undeclared (first use in this > function) > dstate-hal.c:459: error: `cs' undeclared (first use in this function) > dstate-hal.c:460: warning: ISO C90 forbids mixed declarations and code > dstate-hal.c: At top level: > dstate-hal.c:552: error: syntax error before '*' token > dstate-hal.c: In function `hal_set_string': > dstate-hal.c:557: error: `key' undeclared (first use in this function) > dstate-hal.c:557: error: `value' undeclared (first use in this function) > dstate-hal.c:569: warning: implicit declaration of function > `libhal_changeset_set_property_string' > dstate-hal.c:569: error: `cs' undeclared (first use in this function) > dstate-hal.c: At top level: > dstate-hal.c:581: error: syntax error before '*' token > dstate-hal.c: In function `hal_set_int': > dstate-hal.c:586: error: `key' undeclared (first use in this function) > dstate-hal.c:586: error: `value' undeclared (first use in this function) > dstate-hal.c:598: warning: implicit declaration of function > `libhal_changeset_set_property_int' > dstate-hal.c:598: error: `cs' undeclared (first use in this function) > dstate-hal.c: At top level: > dstate-hal.c:642: error: syntax error before '*' token > dstate-hal.c: In function `hal_set_bool': > dstate-hal.c:647: error: `key' undeclared (first use in this function) > dstate-hal.c:647: error: `value' undeclared (first use in this function) > dstate-hal.c:659: warning: implicit declaration of function > `libhal_changeset_set_property_bool' > dstate-hal.c:659: error: `cs' undeclared (first use in this function) > dstate-hal.c: At top level: > dstate-hal.c:125: warning: 'nut2hal_cmd' defined but not used > gmake[1]: *** [dstate-hal.o] Error 1 > gmake[1]: Leaving directory `/usr/ports/sysutils/nut/work/nut-2.2.2 > /drivers' > gmake: *** [all-recursive] Error 1 > *** Error code 2 > > Stop in /usr/ports/sysutils/nut. > *** Error code 1 > > Stop in /usr/ports/sysutils/nut. > > > computer: FreeBSD pbsd 6.3-RELEASE FreeBSD 6.3-RELEASE #1: Fri Feb 15 > 09:53:17 EST 2008 root@pbsd:/usr/obj/usr/src/sys/PATRIOTEBSD i386 Hi Yves, what OPTIONS did you select? Can you please 'cd' to the ports directory and run 'make config' and write me what is selected or not. As it seems to be related to "hal", what version of the "hal port" is installed on your system, make sure that hal is up to date. Regards Joerg - -- The beginning is the most important part of the work. -Plato -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iD8DBQFIcjm3SPOsGF+KA+MRAtqTAJ992a20hDQ+3gsZTjRun2VTS6hn2gCgyzWT /2fZINi+kzh5K7Ix/PizzB0= =AK/E -----END PGP SIGNATURE-----