[Pkg-pciutils-discuss] Bug#379407: I/O access on GNU/Hurd

Cyril Brulebois cyril.brulebois at enst-bretagne.fr
Wed Jul 26 18:36:06 UTC 2006


On Sun, Jul 23, 2006 at 08:33:05PM -0600, Matthew Wilcox wrote:
> Do you need to touch the Makefile?  Would it be enough to instead do
> >  #include <sys/io.h>
> +#define _GNU_SOURCE
> instead?
I've tried that but the build fails (I attached the log). I also try to
move the #define before other preprocessor directives but that's not
better.  I've also try to add the #define within the test case in
lib/i386-ports.c, but that's not sufficient either. So I guess that a
flag could be a better solution than patching many other files.

> I'm also a little concerned that you guys are still using the ioport
> routines. 
That's totally out of my skills, sorry.

Cheers,

-- 
Cyril Brulebois
> 
> 
> 
-------------- next part --------------
dh_testdir
/usr/bin/make PREFIX=/usr SBINDIR=/usr/bin IDSDIR=/usr/share/misc
make[1]: Entering directory `/home/kibi/pciutils-build/pciutils-2.2.1'
cd lib && ./configure /usr/share/misc 2.2.1  
Configuring libpci for your system... i586-at386-gnu 0.3
Looking for access methods... i386-ports dump
/usr/bin/make -C lib all
make[2]: Entering directory `/home/kibi/pciutils-build/pciutils-2.2.1/lib'
cc -O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Winline -fPIC   -c -o access.o access.c
cc -O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Winline -fPIC   -c -o generic.o generic.c
cc -O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Winline -fPIC   -c -o dump.o dump.c
cc -O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Winline -fPIC   -c -o names.o names.c
cc -O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Winline -fPIC   -c -o filter.o filter.c
cc -O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Winline -fPIC   -c -o i386-ports.o i386-ports.c
In file included from /usr/include/hurd.h:37,
                 from i386-io-hurd.h:16,
                 from i386-ports.c:16:
/usr/include/hurd/io.h:627: error: syntax error before 'ino64_t'
/usr/include/hurd/io.h:1272: error: syntax error before 'ino64_t'
In file included from /usr/include/hurd/userlink.h:28,
                 from /usr/include/hurd/port.h:26,
                 from /usr/include/hurd.h:42,
                 from i386-io-hurd.h:16,
                 from i386-ports.c:16:
/usr/include/hurd/signal.h:26:2: error: #error "Must have `_GNU_SOURCE' feature test macro to use this file"
In file included from /usr/include/hurd/userlink.h:28,
                 from /usr/include/hurd/port.h:26,
                 from /usr/include/hurd.h:42,
                 from i386-io-hurd.h:16,
                 from i386-ports.c:16:
/usr/include/hurd/signal.h:55: error: syntax error before 'error_t'
/usr/include/hurd/signal.h:82: error: array type has incomplete element type
/usr/include/hurd/signal.h:294: error: syntax error before '_hurd_intr_rpc_mach_msg'
In file included from i386-io-hurd.h:16,
                 from i386-ports.c:16:
/usr/include/hurd.h:51: error: syntax error before 'err'
/usr/include/hurd.h: In function '__hurd_fail':
/usr/include/hurd.h:53: error: 'err' undeclared (first use in this function)
/usr/include/hurd.h:53: error: (Each undeclared identifier is reported only once
/usr/include/hurd.h:53: error: for each function it appears in.)
/usr/include/hurd.h: At top level:
/usr/include/hurd.h:96: error: syntax error before '_hurd_ports_use'
/usr/include/hurd.h:96: error: syntax error before 'error_t'
/usr/include/hurd.h:96: error: syntax error before ')' token
In file included from i386-io-hurd.h:16,
                 from i386-ports.c:16:
/usr/include/hurd.h:150: error: syntax error before '_hurd_ports_get'
/usr/include/hurd.h:151: error: syntax error before '_hurd_ports_set'
/usr/include/hurd.h:247: error: syntax error before '_hurd_exec'
/usr/include/hurd.h:293: error: syntax error before '_hurd_sig_post'
/usr/include/hurd.h:294: error: syntax error before 'hurd_sig_post'
/usr/include/hurd.h:327: error: syntax error before 'hurd_thread_cancel'
make[2]: *** [i386-ports.o] Error 1
make[2]: Leaving directory `/home/kibi/pciutils-build/pciutils-2.2.1/lib'
make[1]: *** [lib/libpci.a] Error 2
make[1]: Leaving directory `/home/kibi/pciutils-build/pciutils-2.2.1'
make: *** [build-pciutils] Error 2


More information about the Pkg-pciutils-discuss mailing list