这两天由于项目需要,在OpenSolaris Nevada build 86上编译了pciutils。具体过程如下:
1. download the source code from:
http://mj.ucw.cz/pciutils.shtml
2. dump the zipped tar achive into a directory:
$ gzcat pciutils-3.0.0.tar.gz | tar xf -
$ cd pciutils-3.0.0
3. change
#ifdef _LITTLE_ENDIAN
to
#ifdef LITTLE_ENDIAN
in lib/sysdep.h
4. install gsed
# pkg-get install gsed
5. gmake CC=gcc
据SUN的工程师说,他们在OpenSolaris中集成pciutils,所以不久就可以直接使用OpenSolaris上集成的pciutils了。
1. download the source code from:
http://mj.ucw.cz/pciutils.shtml
2. dump the zipped tar achive into a directory:
$ gzcat pciutils-3.0.0.tar.gz | tar xf -
$ cd pciutils-3.0.0
3. change
#ifdef _LITTLE_ENDIAN
to
#ifdef LITTLE_ENDIAN
in lib/sysdep.h
4. install gsed
# pkg-get install gsed
5. gmake CC=gcc
据SUN的工程师说,他们在OpenSolaris中集成pciutils,所以不久就可以直接使用OpenSolaris上集成的pciutils了。