Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310493 - mail-client/mailx-8.1.2.20050715-r1: compile crash due to wrong march=switch (geode)
Summary: mail-client/mailx-8.1.2.20050715-r1: compile crash due to wrong march=switch ...
Status: RESOLVED DUPLICATE of bug 255753
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 328109
  Show dependency tree
 
Reported: 2010-03-21 09:25 UTC by Martin Liška
Modified: 2010-11-01 06:41 UTC (History)
6 users (show)

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


Attachments
patch for mailx_8.1.2-0.20050715cvs.orig.tar.gz (mailx-8.1.2-0.20050715cvs.orig-offsetof.patch,1.53 KB, patch)
2010-03-31 02:21 UTC, Vasiliy A. Balkanov
Details | Diff
new ebuild for mailx-8.1.2.20050715 (mailx-8.1.2.20050715-r2.ebuild,1.52 KB, text/plain)
2010-03-31 02:31 UTC, Vasiliy A. Balkanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Liška 2010-03-21 09:25:16 UTC
The problem occurs during building ebuild.

Reproducible: Always




Portage 2.1.7.17 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 i586)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i586-Geode-TM-_Integrated_Processor_by_AMD_PCS-with-gentoo-1.12.13
Timestamp of tree: Wed, 17 Mar 2010 09:15:02 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.4.4-r13, 2.5.4-r3, 2.6.4-r1
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r3, 1.10.2, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.1.2, 4.3.4
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=geode -Os -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/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/sandbox.d /etc/terminfo"
CXXFLAGS="-march=geode -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.supp.name/"
LDFLAGS="-Wl,-O1"
LINGUAS="cs en"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="acl anagios-game anagios-ntp anagios-ping apache2 avim-syntax berkdb bzip2 calendar cgi cli cracklib crypt ctype curl cxx dri fortran gd gdbm gpm iconv jpeg lm_sensors modules mudflap mysql ncurses nls nptl nptlonly nptlpcre ntponly openmp pam pcre perl php png pppd python readline reflection samba session slang spl ssl subversion svg swat sysfs tcpd tetex truetype unicode utf8 vhosts x86 xorg zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Doktor Notor 2010-03-21 12:49:32 UTC
You need to attach the build log, as told by the error message.
Comment 2 Martin Liška 2010-03-21 12:57:41 UTC
[32;01m*[0m CPV:  mail-client/mailx-8.1.2.20050715-r1
 [32;01m*[0m REPO: gentoo
 [32;01m*[0m USE:  elibc_glibc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking mailx_8.1.2-0.20050715cvs.orig.tar.gz to /var/tmp/portage/mail-client/mailx-8.1.2.20050715-r1/work
>>> Unpacking mailx_8.1.2-0.20050715cvs-1.diff.gz to /var/tmp/portage/mail-client/mailx-8.1.2.20050715-r1/work
 [32;01m*[0m Applying mailx_8.1.2-0.20050715cvs-1.diff.gz ...
[A[117C  [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying mailx-8.1.2.20050715-nostrip.patch ...
[A[117C  [34;01m[ [32;01mok[34;01m ][0m
>>> Source unpacked in /var/tmp/portage/mail-client/mailx-8.1.2.20050715-r1/work
>>> Compiling source in /var/tmp/portage/mail-client/mailx-8.1.2.20050715-r1/work/mailx-8.1.2-0.20050715cvs.orig ...
gcc -D_BSD_SOURCE -DDEBIAN -g -Wall -IEXT -march=geode -Os -pipe -fomit-frame-pointer -c version.c -o version.o
version.c:1: error: bad value (geode) for -march= switch
version.c:1: error: bad value (geode) for -mtune= switch
make: *** [version.o] Error 1
 [31;01m*[0m ERROR: mail-client/mailx-8.1.2.20050715-r1 failed:
 [31;01m*[0m   (no error message)
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line  54:  Called src_compile
 [31;01m*[0m   environment, line 2565:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       make EXTRAFLAGS="${CFLAGS}" || die
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of 'emerge --info =mail-client/mailx-8.1.2.20050715-r1',
 [31;01m*[0m the complete build log and the output of 'emerge -pqv =mail-client/mailx-8.1.2.20050715-r1'.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/mail-client/mailx-8.1.2.20050715-r1/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/mail-client/mailx-8.1.2.20050715-r1/temp/environment'.
 [31;01m*[0m S: '/var/tmp/portage/mail-client/mailx-8.1.2.20050715-r1/work/mailx-8.1.2-0.20050715cvs.orig/'
Comment 3 Mart Raudsepp gentoo-dev 2010-03-21 15:58:27 UTC
It's probably picking your gcc-4.1 installation for some reason (which doesn't have geode arch). Not sure how though, if your selected gcc profile is 4.3 and so the gcc symlink would point at 4.3.
At any rate, the package is also buggy, because as is, it's not distcc and cross-compiling safe, as it doesn't call the correct gcc (with right CHOST in front of the binary name).
Comment 4 Martin Liška 2010-03-21 16:44:06 UTC
marxin bin # gcc-config -l
 [1] i486-pc-linux-gnu-4.1.2
 [2] i586-pc-linux-gnu-4.3.4 *

marxin bin # gcc -v
Using built-in specs.
Target: i586-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/configure --prefix=/usr --bindir=/usr/i586-pc-linux-gnu/gcc-bin/4.3.4 --includedir=/usr/lib/gcc/i586-pc-linux-gnu/4.3.4/include --datadir=/usr/share/gcc-data/i586-pc-linux-gnu/4.3.4 --mandir=/usr/share/gcc-data/i586-pc-linux-gnu/4.3.4/man --infodir=/usr/share/gcc-data/i586-pc-linux-gnu/4.3.4/info --with-gxx-include-dir=/usr/lib/gcc/i586-pc-linux-gnu/4.3.4/include/g++-v4 --host=i586-pc-linux-gnu --build=i586-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --disable-libgcj --with-arch=i586 --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.4 p1.0, pie-10.1.5'
Thread model: posix
gcc version 4.3.4 (Gentoo 4.3.4 p1.0, pie-10.1.5)


I know that the package is little bit old (2005 last release version). But I want to install nagios and there is some dependence:

emerge -pv nagios
Calculating dependencies... done!
[ebuild  N    ] mail-client/mailx-8.1.2.20050715-r1  0 kB
[ebuild  N    ] net-analyzer/nagios-core-3.2.0  USE="apache2 perl web -debug -lighttpd -vim-syntax" 0 kB
[ebuild  N    ] net-analyzer/nagios-3.2.0  0 kB
Comment 5 Mart Raudsepp gentoo-dev 2010-03-21 22:38:24 UTC
Ok, assigning to maintainers.

I was actually merely pinged on IRC from this bug report by the bot that echoes new bugs to a channel due to the "geode" mentioning and I got curious :)
I've been dealing with geode's a lot professionally and I have some notes to share about it I suppose. I will contact you outside bugzilla via e-mail for further discussion.
Comment 6 Abram Morphew 2010-03-22 17:12:39 UTC
Same sort of issue. Installing Nagios and failing to emerge mailx in the process. 


Portage 2.1.7.17 (default/linux/x86/10.0/server, gcc-4.3.4, glibc-2.11-r1, 2.6.31-gentoo-r6 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Pentium-R-_Dual_CPU_E2220_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 15 Feb 2010 15:00:03 +0000
app-shells/bash:     4.1_p2
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.its.uidaho.edu/gentoo/ ftp://gentoo.llarian.net/pub/gentoo ftp://mirrors.rit.edu/gentoo/ http://www.cyberuse.com/gentoo/ http://mirror.datapipe.net/gentoo http://gentoo.mirrors.tds.net/gentoo http://mirrors.cs.wmich.edu/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 ldap modules mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session snmp spl ssl sysfs tcpd truetype unicode x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


==== BUILD LOG =====
* This profile has not been tested thoroughly and is not considered to be
 * a supported server profile at this time.  For a supported server
 * profile, please check the Hardened project (http://hardened.gentoo.org).

 * This profile is merely a convenience for people who require a more
 * minimal profile, yet are unable to use hardened due to restrictions in
 * the software being used on the server. This profile should also be used
 * if you require GCC 4.1 or Glibc 2.4 support. If you don't know if this
 * applies to you, then it doesn't and you should probably be using
 * Hardened, instead.

 * CPV:  mail-client/mailx-8.1.2.20050715-r1
 * REPO: gentoo
 * USE:  elibc_glibc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking mailx_8.1.2-0.20050715cvs.orig.tar.gz to /var/tmp/portage/mail-client/mailx-8.1.2.20050715-r1/work
>>> Unpacking mailx_8.1.2-0.20050715cvs-1.diff.gz to /var/tmp/portage/mail-client/mailx-8.1.2.20050715-r1/work
 * Applying mailx_8.1.2-0.20050715cvs-1.diff.gz ...                                                                          [ ok ]
 * Applying mailx-8.1.2.20050715-nostrip.patch ...                                                                           [ ok ]
>>> Source unpacked in /var/tmp/portage/mail-client/mailx-8.1.2.20050715-r1/work
>>> Compiling source in /var/tmp/portage/mail-client/mailx-8.1.2.20050715-r1/work/mailx-8.1.2-0.20050715cvs.orig ...
gcc -D_BSD_SOURCE -DDEBIAN -g -Wall -IEXT -O2 -march=i686 -pipe -c version.c -o version.o
gcc -D_BSD_SOURCE -DDEBIAN -g -Wall -IEXT -O2 -march=i686 -pipe -c aux.c -o aux.o
In file included from rcv.h:43,
                 from aux.c:41:
def.h:112:1: warning: "offsetof" redefined
In file included from /usr/include/unistd.h:227,
                 from def.h:56,
                 from rcv.h:43,
                 from aux.c:41:
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/stddef.h:414:1: warning: this is the location of the previous definition
gcc -D_BSD_SOURCE -DDEBIAN -g -Wall -IEXT -O2 -march=i686 -pipe -c cmd1.c -o cmd1.o
In file included from rcv.h:43,
                 from cmd1.c:41:
def.h:112:1: warning: "offsetof" redefined
In file included from /usr/include/unistd.h:227,
                 from def.h:56,
                 from rcv.h:43,
                 from cmd1.c:41:
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/stddef.h:414:1: warning: this is the location of the previous definition
gcc -D_BSD_SOURCE -DDEBIAN -g -Wall -IEXT -O2 -march=i686 -pipe -c cmd2.c -o cmd2.o
In file included from rcv.h:43,
                 from cmd2.c:41:
def.h:112:1: warning: "offsetof" redefined
In file included from /usr/include/unistd.h:227,
                 from def.h:56,
                 from rcv.h:43,
                 from cmd2.c:41:
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/stddef.h:414:1: warning: this is the location of the previous definition
gcc -D_BSD_SOURCE -DDEBIAN -g -Wall -IEXT -O2 -march=i686 -pipe -c cmd3.c -o cmd3.o
In file included from rcv.h:43,
                 from cmd3.c:41:
def.h:112:1: warning: "offsetof" redefined
In file included from /usr/include/unistd.h:227,
                 from def.h:56,
                 from rcv.h:43,
                 from cmd3.c:41:
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/stddef.h:414:1: warning: this is the location of the previous definition
gcc -D_BSD_SOURCE -DDEBIAN -g -Wall -IEXT -O2 -march=i686 -pipe -c cmdtab.c -o cmdtab.o
In file included from cmdtab.c:41:
def.h:112:1: warning: "offsetof" redefined
In file included from /usr/include/unistd.h:227,
                 from def.h:56,
                 from cmdtab.c:41:
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/stddef.h:414:1: warning: this is the location of the previous definition
gcc -D_BSD_SOURCE -DDEBIAN -g -Wall -IEXT -O2 -march=i686 -pipe -c collect.c -o collect.o
In file included from rcv.h:43,
                 from collect.c:48:
def.h:112:1: warning: "offsetof" redefined
In file included from /usr/include/unistd.h:227,
                 from def.h:56,
                 from rcv.h:43,
                 from collect.c:48:
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/stddef.h:414:1: warning: this is the location of the previous definition
gcc -D_BSD_SOURCE -DDEBIAN -g -Wall -IEXT -O2 -march=i686 -pipe -c edit.c -o edit.o
In file included from rcv.h:43,
                 from edit.c:41:
def.h:112:1: warning: "offsetof" redefined
In file included from /usr/include/unistd.h:227,
                 from def.h:56,
                 from rcv.h:43,
                 from edit.c:41:
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/stddef.h:414:1: warning: this is the location of the previous definition
gcc -D_BSD_SOURCE -DDEBIAN -g -Wall -IEXT -O2 -march=i686 -pipe -c fio.c -o fio.o
In file included from rcv.h:43,
                 from fio.c:41:
def.h:112:1: warning: "offsetof" redefined
In file included from /usr/include/unistd.h:227,
                 from def.h:56,
                 from rcv.h:43,
                 from fio.c:41:
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/stddef.h:414:1: warning: this is the location of the previous definition
fio.c:150:35: error: macro "offsetof" requires 2 arguments, but only 1 given
fio.c: In function 'setptr':
fio.c:150: error: 'offsetof' undeclared (first use in this function)
fio.c:150: error: (Each undeclared identifier is reported only once
fio.c:150: error: for each function it appears in.)
fio.c:137: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
fio.c: In function 'putline':
fio.c:191: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result
make: *** [fio.o] Error 1
 * ERROR: mail-client/mailx-8.1.2.20050715-r1 failed:
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 2566:  Called die
 * The specific snippet of code:
 *       make EXTRAFLAGS="${CFLAGS}" || die
 *
 * If you need support, post the output of 'emerge --info =mail-client/mailx-8.1.2.20050715-r1',
 * the complete build log and the output of 'emerge -pqv =mail-client/mailx-8.1.2.20050715-r1'.
 * The complete build log is located at '/var/tmp/portage/mail-client/mailx-8.1.2.20050715-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-client/mailx-8.1.2.20050715-r1/temp/environment'.
 * S: '/var/tmp/portage/mail-client/mailx-8.1.2.20050715-r1/work/mailx-8.1.2-0.20050715cvs.orig/'

Comment 7 Martin Liška 2010-03-22 19:20:36 UTC
After switching back to k6-2 which is advised for gcc version 4.1. Compiling with gcc 4.3 and switched match worked.
Comment 8 Vasiliy A. Balkanov 2010-03-31 00:46:40 UTC
> /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/stddef.h:414:1: warning: this is
> the location of the previous definition
> fio.c:150:35: error: macro "offsetof" requires 2 arguments, but only 1 given
> fio.c: In function 'setptr':
> fio.c:150: error: 'offsetof' undeclared (first use in this function)
> fio.c:150: error: (Each undeclared identifier is reported only once
> fio.c:150: error: for each function it appears in.)
> fio.c:137: warning: ignoring return value of 'fwrite', declared with attribute
> warn_unused_result
> fio.c: In function 'putline':
> fio.c:191: warning: ignoring return value of 'fwrite', declared with attribute
> warn_unused_result
> make: *** [fio.o] Error 1

Sorry for my english...

Because stddef.h have declaration other function in same name "offsetof"
Just change name declaration in mailx package:

# diff -r mailx-8.1.2-0.20050715cvs.orig mailx-8.1.2-0.20050715cvs.waso

diff -r mailx-8.1.2-0.20050715cvs.orig/def.h mailx-8.1.2-0.20050715cvs.waso/def.h
112c112
< #define offsetof(off)                 ((int) ((off) % 4096))
---
> #define offsetofmailx(off)                        ((int) ((off) % 4096))
diff -r mailx-8.1.2-0.20050715cvs.orig/fio.c mailx-8.1.2-0.20050715cvs.waso/fio.c
150c150
<                       this.m_offset = offsetof(offset);
---
>                       this.m_offset = offsetofmailx(offset);
Comment 9 Vasiliy A. Balkanov 2010-03-31 01:42:40 UTC
Sorry for my english again...

Also change declaration 'offsetof' to 'offsetofmailx' in edit.c
Comment 10 Vasiliy A. Balkanov 2010-03-31 02:21:38 UTC
Created attachment 225901 [details, diff]
patch for mailx_8.1.2-0.20050715cvs.orig.tar.gz
Comment 11 Vasiliy A. Balkanov 2010-03-31 02:31:27 UTC
Created attachment 225903 [details]
new ebuild for mailx-8.1.2.20050715
Comment 12 Kevin Pyle 2010-04-06 02:08:21 UTC
The problem shown in comment #6 is a duplicate of bug #305251.  When the fix in attachment #225901 [details, diff] is committed, that bug should be closed as well.
Comment 13 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-04-21 11:12:16 UTC
The cross-compile/gcc-call problem is a dupe of #255753, the other problem of #305251.


*** This bug has been marked as a duplicate of bug 255753 ***
Comment 14 Vitaly K. Ivaschenko 2010-04-27 09:56:10 UTC
Fix this, please, in official ebuild!
Still I have my hands to fix this bug.

--
sory for my english too
Comment 15 Sebastian Pipping gentoo-dev 2010-07-11 23:13:34 UTC
+*mailx-8.1.2.20050715-r2 (11 Jul 2010)
+
+  11 Jul 2010; Sebastian Pipping <sping@gentoo.org>
+  +mailx-8.1.2.20050715-r2.ebuild,
+  +files/mailx-8.1.2.20050715-offsetof.patch:
+  Apply patch 225901 by Vasiliy A. Balkanov renaming internal macro
+  offsetof() to offsetofmailx() to fix a compile error (bug #310493)
+
Comment 16 Jeroen Roovers (RETIRED) gentoo-dev 2010-11-01 06:41:17 UTC
*** Bug 343065 has been marked as a duplicate of this bug. ***