Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125831 - net-tools-1.60-r12 doesn't compile because of sys/io.h
Summary: net-tools-1.60-r12 doesn't compile because of sys/io.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: PPC Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-11 06:34 UTC by Alberto Zennaro
Modified: 2006-03-11 06:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Zennaro 2006-03-11 06:34:22 UTC
net-tools-1.60-r12 doens't compile on ~ppc because of the missing sys/io.h that is a x86-only include, it should be asm/io.h

The problem is in /var/tmp/portage/net-tools-1.60-r12/work/net-tools-1.60/ethercard-diag/pub/diag/libflash.c that define to use sys/io.h without any hardware check.

#if defined(__linux__)  &&  __GNU_LIBRARY__ == 1
#include <asm/io.h>                     /* Newer libraries use <sys/io.h> instead. */
#else
#include <sys/io.h>
#endif

>>> Emerging (1 of 1) sys-apps/net-tools-1.60-r12 to /
>>> checksums files   ;-) net-tools-1.60-r11.ebuild
>>> checksums files   ;-) net-tools-1.60-r12.ebuild
>>> checksums files   ;-) files/digest-net-tools-1.60-r11
>>> checksums files   ;-) files/digest-net-tools-1.60-r12
>>> checksums src_uri ;-) net-tools-1.60.tar.bz2
>>> checksums src_uri ;-) net-tools-1.60-patches-1.2.tar.bz2
>>> Unpacking source...
>>> Unpacking net-tools-1.60.tar.bz2 to /var/tmp/portage/net-tools-1.60-r12/work
>>> Unpacking net-tools-1.60-patches-1.2.tar.bz2 to /var/tmp/portage/net-tools-1.60-r12/work
 * Applying 01_all_net-tools-1.60-2.6-compilefix.patch ...                                                                [ ok ]
 * Applying 02_all_net-tools-1.60-gcc34.patch ...                                                                         [ ok ]
 * Applying 03_all_net-tools-1.60-cleanup-list-handling.patch ...                                                         [ ok ]
 * Applying 04_all_net-tools-1.60-get_name.patch ...                                                                      [ ok ]
 * Applying 20_all_net-tools-1.54-ipvs.patch ...                                                                          [ ok ]
 * Applying 21_all_net-tools-1.57-bug22040.patch ...                                                                      [ ok ]
 * Applying 22_all_net-tools-1.60-manydevs.patch ...                                                                      [ ok ]
 * Applying 23_all_net-tools-1.60-miiioctl.patch ...                                                                      [ ok ]
 * Applying 24_all_net-tools-1.60-virtualname.patch ...                                                                   [ ok ]
 * Applying 25_all_net-tools-1.60-cycle.patch ...                                                                         [ ok ]
 * Applying 26_all_net-tools-1.60-overflow.patch ...                                                                      [ ok ]
 * Applying 27_all_net-tools-1.60-netstat_ulong.patch ...                                                                 [ ok ]
 * Applying 50_all_net-tools-1.60-multiline-string.patch ...                                                              [ ok ]
 * Applying 51_all_net-tools-1.60-man.patch ...                                                                           [ ok ]
 * Applying 52_all_net-tools-1.60-numeric-ports.patch ...                                                                 [ ok ]
 * Applying 53_all_net-tools-1.60-appletalk.patch ...                                                                     [ ok ]
 * Applying 54_all_net-tools-1.60-wide.patch ...                                                                          [ ok ]
 * Applying 55_all_net-tools-1.60-Makefile.patch ...                                                                      [ ok ]
 * Applying 56_all_net-tools-1.60-ipv6-hostname.patch ...                                                                 [ ok ]
 * Applying 57_all_net-tools-1.60-ifconfig-infiniband.patch ...                                                           [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-tools-1.60-r12/work/net-tools-1.60 ...
arcnet.c: In function 'in_arcnet':
arcnet.c:55: warning: pointer targets in assignment differ in signedness
ash.c: In function 'in_ash':
ash.c:67: warning: pointer targets in assignment differ in signedness
ash.c: In function 'pr_sash':
ash.c:112: warning: pointer targets in passing argument 1 of 'pr_ash' differ in signedness
ax25.c: In function 'AX25_sprint':
ax25.c:76: warning: pointer targets in passing argument 1 of 'AX25_print' differ in signedness
ax25.c: In function 'AX25_input':
ax25.c:87: warning: pointer targets in assignment differ in signedness
ddp.c: In function 'ddp_sprint':
ddp.c:51: warning: pointer targets in passing argument 1 of 'ddp_print' differ in signedness
ether.c: In function 'in_ether':
ether.c:59: warning: pointer targets in assignment differ in signedness
fddi.c: In function 'in_fddi':
fddi.c:69: warning: pointer targets in assignment differ in signedness
hippi.c: In function 'in_hippi':
hippi.c:69: warning: pointer targets in assignment differ in signedness
ib.c: In function 'in_ib':
ib.c:69: warning: pointer targets in assignment differ in signedness
interface.c: In function 'ife_print_long':
interface.c:723: warning: pointer targets in passing argument 1 of 'hw->print' differ in signedness
ipx.c: In function 'IPX_sprint':
ipx.c:82: warning: pointer targets in passing argument 1 of 'IPX_print' differ in signedness
netrom.c: In function 'NETROM_sprint':
netrom.c:79: warning: pointer targets in passing argument 1 of 'NETROM_print' differ in signedness
netrom.c: In function 'NETROM_input':
netrom.c:90: warning: pointer targets in assignment differ in signedness
rose.c: In function 'ROSE_sprint':
rose.c:73: warning: pointer targets in passing argument 1 of 'ROSE_print' differ in signedness
tr.c: In function 'in_tr':
tr.c:55: warning: pointer targets in assignment differ in signedness
unix.c: In function 'UNSPEC_sprint':
unix.c:57: warning: pointer targets in passing argument 1 of 'UNSPEC_print' differ in signedness
unix.c: In function 'UNIX_print':
unix.c:66: warning: pointer targets in return differ in signedness
unix.c: In function 'UNIX_sprint':
unix.c:77: warning: pointer targets in passing argument 1 of 'UNIX_print' differ in signedness
util-ank.c: In function 'format_host':
util-ank.c:317: warning: pointer targets in passing argument 3 of 'inet_ntop' differ in signedness
x25.c: In function 'X25_print':
x25.c:58: warning: pointer targets in passing argument 2 of '__builtin_strncpy' differ in signedness
x25.c: In function 'X25_sprint':
x25.c:71: warning: pointer targets in passing argument 1 of 'X25_print' differ in signedness
x25.c: In function 'X25_input':
x25.c:86: warning: pointer targets in assignment differ in signedness
x25.c:117: warning: pointer targets in passing argument 1 of '__builtin_strncpy' differ in signedness
Building libnet-tools.a
hostname.c: In function 'sethname':
hostname.c:107: warning: implicit declaration of function 'exit'
hostname.c:107: warning: incompatible implicit declaration of built-in function 'exit'
hostname.c: In function 'setdname':
hostname.c:127: warning: incompatible implicit declaration of built-in function 'exit'
hostname.c: In function 'showhname':
hostname.c:148: warning: incompatible implicit declaration of built-in function 'exit'
hostname.c: In function 'setfilename':
hostname.c:266: warning: incompatible implicit declaration of built-in function 'exit'
hostname.c: In function 'version':
hostname.c:273: warning: incompatible implicit declaration of built-in function 'exit'
hostname.c: In function 'usage':
hostname.c:304: warning: incompatible implicit declaration of built-in function 'exit'
hostname.c: In function 'main':
hostname.c:397: warning: incompatible implicit declaration of built-in function 'exit'
hostname.c:450: warning: incompatible implicit declaration of built-in function 'exit'
arp.c: In function 'arp_getdevhw':
arp.c:253: warning: pointer targets in passing argument 1 of 'xhw->print' differ in signedness
iptunnel.c: In function 'print_tunnel':
iptunnel.c:412: warning: pointer targets in passing argument 3 of 'format_host' differ in signedness
iptunnel.c:413: warning: pointer targets in passing argument 3 of 'format_host' differ in signedness
ipmaddr.c: In function 'print_maddr':
ipmaddr.c:266: warning: pointer targets in passing argument 3 of 'format_host' differ in signedness
ipmaddr.c: In function 'multiaddr_modify':
ipmaddr.c:348: warning: pointer targets in passing argument 2 of 'parse_lla' differ in signedness
patching file pub/diag/Makefile
libflash.c:62:20: error: sys/io.h: No such file or directory
libflash.c: In function 'flash_out':
libflash.c:184: warning: implicit declaration of function 'outl'
libflash.c:185: warning: implicit declaration of function 'outb'
libflash.c: In function 'flash_in':
libflash.c:192: warning: implicit declaration of function 'inb'
make[1]: *** [libflash.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [most] Error 2

!!! ERROR: sys-apps/net-tools-1.60-r12 failed.
Call stack:
  ebuild.sh, line 1933:   Called dyn_compile
  ebuild.sh, line 971:   Called src_compile

!!! emake ethercard-diag failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

------

Portage 2.1_pre5-r4 (default-linux/ppc/2005.1/ppc, gcc-4.0.2, glibc-2.3.6-r3, 2.6.15-gentoo-r6 ppc)
=================================================================
System uname: 2.6.15-gentoo-r6 ppc 7447A, altivec supported
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1, 2.16.91.0.6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=G4 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=G4 -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://gentoo.ngi.it"
LDFLAGS="-Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j2 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X a52 aac alsa altivec amuled apm arts asf automount bash-completion berkdb bitmap-fonts browserplugin bzip2 cairo cddb cpudetection crypt css cups curl custom-cflags dri dts dvd dvdr dvdread emboss encode escreen exif exscalibar ffmpeg fftw flac fortran freetype gif glitz gphoto2 gpm gtk2 hal ibam ieee1394 imagemagick imlib input_devices_keyboard input_devices_mouse insecure-savers ipod java jpeg kde kdeenablefinal kipi lcms libwww mad matroska max-idx-128 motif mozsvg mp3 mpeg musepack musicbrainz ncurses nls nptl nptlonly nsplugin offensive ogg oggvorbis opengl oss pam pdflib perl pmu png python qt quicktime readline remote roundrobin samba sametime sdl skins spell ssl svg symlink sysfs syslog tcpd theora tiff truetype truetype-fonts type1-fonts unicode userlocales v4l video_cards_ati vidix visualization vorbis wifi wmf wxwindows xcomposite xine xinerama xml2 xosd xscreensaver xv xvid zlib elibc_glibc kernel_linux linguas_it userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL
Comment 1 SpanKY gentoo-dev 2006-03-11 06:52:24 UTC
i already fixed this, your sync is out of date