Date: Mon, 7 Jul 2008 17:43:48 +0200 (CEST) From: Joerg Pulz <Joerg.Pulz@frm2.tum.de> To: yves.guerin@muhc.mcgill.ca Cc: ports@freebsd.org Subject: Re: FreeBSD Port: nut-2.2.2 Message-ID: <20080707173950.H6862@unqrf.nqzva.sez2> In-Reply-To: <OF79AF87A1.A8092590-ON8525747F.0053F571-8525747F.00545B86@muhc.mcgill.ca> References: <OF79AF87A1.A8092590-ON8525747F.0053F571-8525747F.00545B86@muhc.mcgill.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080707173950.H6862>