Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344431 - net-misc/socat fails to build with -w
Summary: net-misc/socat fails to build with -w
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-06 18:53 UTC by MT
Modified: 2010-11-08 20:01 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,15.01 KB, text/plain)
2010-11-06 18:53 UTC, MT
Details
socat-1.7.1.3-r1.ebuild.patch (socat-1.7.1.3-r1.ebuild.patch,1.28 KB, patch)
2010-11-06 18:55 UTC, MT
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MT 2010-11-06 18:53:01 UTC
emerge --info
Portage 2.2.0_alpha2 (default/linux/x86/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r3, 2.6.35-zen2 i686)
=================================================================
System uname: Linux-2.6.35-zen2-i686-Pentium-R-_Dual-Core_CPU_E6300_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 06 Nov 2010 07:15:02 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2, 4.5.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
Repositories: gentoo zugaina kde-sunset gnome roslin kde sping hardened-dev dev-zero ruby x11 rion qting-edge toolchain sunrise java-overlay dev-jokey arcon gechi ineluctable-overlay
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -fomit-frame-pointer -mfpmath=sse,387 -ftracer -pipe -w -g0"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -fomit-frame-pointer -mfpmath=sse,387 -ftracer -pipe -w -g0"
DISTDIR="/usr/portage/tree/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --backtrack=35"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="rsync://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ rsync://de-mirror.org/gentoo/"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,now -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common"
LINGUAS="it en"
MAKEOPTS="-j1 -s"
PKGDIR="/usr/portage/tree/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/tree"
PORTDIR_OVERLAY="/usr/portage/overlays/zugaina /usr/portage/overlays/kde-sunset /usr/portage/overlays/gnome /usr/portage/overlays/roslin /usr/portage/overlays/kde /usr/portage/overlays/sping /usr/portage/overlays/hardened-development /usr/portage/overlays/dev-zero /usr/portage/overlays/ruby /usr/portage/overlays/x11 /usr/portage/overlays/rion /usr/portage/overlays/qting-edge /usr/portage/overlays/toolchain /usr/portage/overlays/sunrise /usr/portage/overlays/java-overlay /usr/portage/overlays/jokey /usr/portage/overlays/arcon /usr/portage/overlays/gechi /home/equilibrium/tmp/ineluttabile/ineluctable-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 bash-completion bzip2 cairo cdda cdr cleartype cli consolekit corefonts cracklib crypt cups dbus dri dts dvb dvd dvdr egl emboss encode exif fam ffmpeg fftw firefox flac fontconfig gallium gif graphite gstreamer hal iconv inotify jack java6 javascript jpeg jpeg2k kde kdehiddenvisibility laptop lcms libnotify lzma mad matroska mikmod mmap mmx mng modules mp3 mp4 mpeg mudflap musepack networkmanager nls nocxx nptl nptlonly nsplugin nspluginwrapper ogg openexr opengl openmp pango pcre pcsc-lite pdf phonon plasma png ppds pppd qt3support qt4 readline sdl session smp sse sse2 sse3 ssl ssse2 ssse3 startup-notification svg symlink sysfs system-sqlite theora threads tiff truetype type1 unicode upnp usb v4l vaapi vhosts vim-pager vim-syntax vorbis webkit x264 x86 xcb xcomposite xml xorg xscreensaver xulrunner xv xvid xvmc zlib zsh-completion" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" NETBEANS_MODULES="ide nb websvccommon python ergonomics harness webcommon php profiler cnd dlight" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18 ree18" USERLAND="GNU" VIDEO_CARDS="intel vesa vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Attached there is an ebuild patch that fixes the problem for v1.7.1.3 (plus a clean up of the ebuild itself).
Hope to be useful.

Mauro
Comment 1 MT 2010-11-06 18:53:36 UTC
Created attachment 253415 [details]
build.log
Comment 2 MT 2010-11-06 18:55:28 UTC
Created attachment 253417 [details, diff]
socat-1.7.1.3-r1.ebuild.patch
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2010-11-08 04:33:38 UTC
You haven't argued the problem at all. What is the rationale to begin to support -w?
Comment 4 MT 2010-11-08 10:02:52 UTC
(In reply to comment #3)
> You haven't argued the problem at all. What is the rationale to begin to
> support -w?

The same rationale expressed previously for the bug #293324 (where you commented too); You should know the relation between -Wall / -Werror and socat (as reported upstream: http://www.dest-unreach.org/socat/ see note of 2009/05/09) right? the same apply to -w as it inhibits -Wall breaking the source code as I have reported.

p.s.: also -Wno-errors* isn't officially supported by Gentoo, so why is filtered?

Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2010-11-08 20:01:50 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > You haven't argued the problem at all. What is the rationale to begin to
> > support -w?
> 
> The same rationale expressed previously for the bug #293324 (where you
> commented too); You should know the relation between -Wall / -Werror and socat
> (as reported upstream: http://www.dest-unreach.org/socat/ see note of
> 2009/05/09) right? the same apply to -w as it inhibits -Wall breaking the
> source code as I have reported.
> 
> p.s.: also -Wno-errors* isn't officially supported by Gentoo, so why is
> filtered?

I don't see how this is the same as to stop the compiler from emitting any warnings: -w would very likely disable several QA triggers in portage. -Wno-error (especially for a specific warning) could be useful to set globally in some cases, but inhibiting all warnings is insane.

So let me rephrase the question: Why should we support -w?