Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260483 - net-firewall/ipset-2.4.8: cast increases required alignment of target type
Summary: net-firewall/ipset-2.4.8: cast increases required alignment of target type
Status: RESOLVED DUPLICATE of bug 260481
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: HPPA Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-27 09:53 UTC by Antixrict
Modified: 2009-02-28 13:40 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 Antixrict 2009-02-27 09:53:44 UTC
When i compile ipset 2.4.8 and i have 2.4.9 ebuild but problem the same. Problem in ipset.c.



Reproducible: Always

Steps to Reproduce:
1. emerge =net-firewall/ipset-2.4.8
2.
3.

Actual Results:  
cc -O2 -Wall -Wextra -Waggregate-return -Wbad-function-cast -Wcast-align -Wformat=2 -Wfloat-equal -Winit-self -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpacked -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wwrite-strings -Wno-missing-field-initializers -Werror -Ikernel/include -I.  -DIPSET_VERSION=\"2.4.9\" -DIPSET_LIB_DIR=\"/usr/local/lib/ipset\" -c -o ipset.o ipset.c
cc1: warnings being treated as errors
ipset.c: In function 'parse_ip':
ipset.c:628: warning: cast increases required alignment of target type
make: *** [ipset.o] Error 1




I try compile with many gcc options, and 2 version gcc and glibc testing, result the same. ipset.c can't compile. But ofcourse if i comment that function all compile ok...

Portage 2.1.6.7 (default/linux/hppa/2008.0, gcc-4.2.4, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r2 parisc)
=================================================================
System uname: Linux-2.6.28-gentoo-r2-parisc-PA8600_-PCX-W+-with-glibc2.2
Timestamp of tree: Fri, 27 Feb 2009 02:45:02 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="hppa"
CBUILD="hppa2.0-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mschedule=8000 -march=2.0"
CHOST="hppa2.0-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -mschedule=8000 -march=2.0"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.tups.lv/source/ http://ftp.linux.ee/pub/gentoo/distfiles/"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="apache2 bash-completion berkdb bzip2 cli cracklib crypt cups firefox fontconfig foomaticdb fortran gd gdbm gif gpm hardenedphp hppa iconv imlib isdnlog jbig jpeg libwww midi mudflap mysql ncurses nls nptl nptlonly openmp pam pcre pear perl php png pppd python readline reflection session spell spl ssl sysfs tcpd tiff truetype unicode xml xml2 xorg xulrunner zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Antixrict 2009-02-27 09:56:08 UTC
Here I found the problem and fixed here https://www.redhat.com/archives/libvir-list/2007-February/msg00113.html maybe it can help.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2009-02-28 13:40:14 UTC

*** This bug has been marked as a duplicate of bug 260481 ***