[cAos-devel] [Warewulf] Problem compiling perceus on caos2
Greg Kurtzer
gmkurtzer at gmail.com
Thu Feb 15 17:22:35 GMT 2007
That looks like a glibc kernel header issue. Add the line:
#include <linux/types.h>
near the top of /usr/include/linux/ethtool.h right under the:
#ifndef _LINUX_ETHTOOL_H
#define _LINUX_ETHTOOL_H
and then try to compile again.
I am not sure why caos2 is having this issue where caos3 isn't.
types.h is included in perceus' ethinfo.c yet caos3 doesn't error
out. Probably a compiler difference. In any case... If this works for
you it should probably be added to the default glibc-kernheaders for
caos2 IMHO. I am CC'ing caos-devel list.
Let us know!
Greg
On Feb 15, 2007, at 7:23 AM, Stefano Bridi wrote:
> I'm trying to compile perceus 1.1.1 on a fresh installed caos2.
> After installing the dependencies packages and the mktemp from
> centos4.4 when I try to:
>
> rpmbuild --rebuild /usr/src/caos/SRPMS/perceus-1.1.1-1.src.rpm
>
> I get this output [cutted]:
>
> Installing /usr/src/caos/SRPMS/perceus-1.1.1-1.src.rpm
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.78184
> + umask 022
>
> [cut]
>
> --infodir=/usr/share/info
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
>
> [cut]
>
> config.status: creating modules/passwdfile/Makefile
> config.status: executing depfiles commands
> + /usr/bin/make
> Making all in scripts
> make[1]: Entering directory `/usr/src/caos/BUILD/perceus-1.1.1/
> scripts'
> Making all in bin
>
> [cut]
>
> make[1]: Entering directory `/usr/src/caos/BUILD/perceus-1.1.1/etc'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/usr/src/caos/BUILD/perceus-1.1.1/etc'
> Making all in src
> make[1]: Entering directory `/usr/src/caos/BUILD/perceus-1.1.1/src'
> Making all in .
> make[2]: Entering directory `/usr/src/caos/BUILD/perceus-1.1.1/src'
>
> [cut]
>
> if /bin/sh ../libtool --tag=CC --mode=compile gcc
> -DPACKAGE_NAME=\"perceus\" -DPACKAGE_TARNAME=\"perceus\"
> -DPACKAGE_VERSION=\"1.0\" -DPACKAGE_STRING=\"perceus\ 1.0\"
> -DPACKAGE_BUGREPORT=\"gmk\*at\*runlevelzero.net\"
> -DPACKAGE=\"perceus\" -DVERSION=\"1.0.2\" -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
> -DHAVE_DLFCN_H=1 -I. -I. -O2 -g -pipe -MT ethinfo.lo -MD -MP -MF
> ".deps/ethinfo.Tpo" -c -o ethinfo.lo ethinfo.c; \
> then mv -f ".deps/ethinfo.Tpo" ".deps/ethinfo.Plo"; else rm -f
> ".deps/ethinfo.Tpo"; exit 1; fi
> gcc -DPACKAGE_NAME=\"perceus\" -DPACKAGE_TARNAME=\"perceus\"
> -DPACKAGE_VERSION=\"1.0\" "-DPACKAGE_STRING=\"perceus 1.0\""
> "-DPACKAGE_BUGREPORT=\"gmk*at*runlevelzero.net\""
> -DPACKAGE=\"perceus\" -DVERSION=\"1.0.2\" -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
> -DHAVE_DLFCN_H=1 -I. -I. -O2 -g -pipe -MT ethinfo.lo -MD -MP -MF
> .deps/ethinfo.Tpo -c ethinfo.c -fPIC -DPIC -o .libs/ethinfo.o
> In file included from ethinfo.c:12:
> /usr/include/linux/ethtool.h:18: error: parse error before "u32"
> /usr/include/linux/ethtool.h:20: error: parse error before
> "advertising"
> /usr/include/linux/ethtool.h:21: error: parse error before "speed"
> /usr/include/linux/ethtool.h:22: error: parse error before "duplex"
> /usr/include/linux/ethtool.h:23: error: parse error before "port"
>
> [cut]
>
> /usr/include/linux/ethtool.h:351: error: parse error before "u32"
> /usr/include/linux/ethtool.h:353: error: parse error before "u64"
> /usr/include/linux/ethtool.h:356: error: parse error before '}' token
> ethinfo.c: In function `link_status':
> ethinfo.c:20: error: storage size of 'edata' isn't known
> ethinfo.c:40: warning: return makes integer from pointer without a
> cast
> {standard input}: Assembler messages:
> {standard input}:34: Warning: size of "version" is already 32; not
> changing to 4
> {standard input}:36: Warning: size of "data" is already 4; not
> changing to 0
> {standard input}:73: Warning: size of "reserved" is already 16; not
> changing to 4
> make[2]: *** [ethinfo.lo] Error 1
> make[2]: Leaving directory `/usr/src/caos/BUILD/perceus-1.1.1/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/caos/BUILD/perceus-1.1.1/src'
> make: *** [all-recursive] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.56475 (%build)
>
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.56475 (%build)
>
>
> any hint?
>
> thanks
> stef
> _______________________________________________
> Warewulf mailing list
> Warewulf at caosity.org
> http://lists.caosity.org/mailman/listinfo/warewulf
--
Greg Kurtzer
I believe the world would be a better place if people didn't
believe in their beliefs. -- gmk
More information about the cAos-devel
mailing list