Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461808 - dev-perl/Net-SSLeay does not respect CFLAGS
Summary: dev-perl/Net-SSLeay does not respect CFLAGS
Status: RESOLVED DUPLICATE of bug 236200
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-15 13:13 UTC by Anton Bolshakov
Modified: 2013-03-17 09:31 UTC (History)
0 users

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


Attachments
Makefile (Makefile,27.94 KB, text/plain)
2013-03-15 14:29 UTC, Anton Bolshakov
Details
build.log (build.log,15.80 KB, text/plain)
2013-03-15 14:46 UTC, Anton Bolshakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2013-03-15 13:13:57 UTC
* Messages for package dev-perl/Net-SSLeay-1.520.0:

 * QA Notice: Files built without respecting CFLAGS have been detected
 *  Please include the following list of files in your report:
 * /usr/lib/perl5/vendor_perl/5.12.4/i686-linux/auto/Net/SSLeay/SSLeay.so

To detect it, the make.conf should look like that:
CFLAGS="${CFLAGS} -frecord-gcc-switches"
CXXFLAGS="${CXXFLAGS} -frecord-gcc-switches"
FFLAGS="${FFLAGS} -frecord-gcc-switches"
FCFLAGS="${FCFLAGS} -frecord-gcc-switches"
Comment 1 Agostino Sarubbo gentoo-dev 2013-03-15 13:49:37 UTC
Could you point out the line where the cflags are ignored?
Comment 2 Anton Bolshakov 2013-03-15 14:29:42 UTC
Created attachment 342132 [details]
Makefile

Please find the generated Makefile attached.
Comment 3 Anton Bolshakov 2013-03-15 14:36:23 UTC
it seems that x86 is the only affected arch.

I don't see anything wrong, but I no expect. Here is a potential problematic place:

CCCMD = $(CC) -c $(PASTHRU_INC) $(INC) \
        $(CCFLAGS) $(OPTIMIZE) \
        $(PERLTYPE) $(MPOLLUTE) $(DEFINE_VERSION) \
        $(XS_DEFINE_VERSION)

.c$(OBJ_EXT):
        $(CCCMD) $(CCCDLFLAGS) "-I$(PERL_INC)" $(PASTHRU_DEFINE) $(DEFINE) $*.c

The OPTIMIZE variable is specified in the ebuild.

emerge --info
Portage 2.1.11.52 (hardened/linux/x86, gcc-4.6.3, glibc-2.15-r3, 3.7.5-pentoo-r1 i686)
=================================================================
System uname: Linux-3.7.5-pentoo-r1-i686-Intel-R-_Core-TM-_i5_CPU_M_520_@_2.40GHz-with-gentoo-2.1
KiB Mem:     2067116 total,   1593652 free
KiB Swap:    2072380 total,   2072380 free
Timestamp of tree: Fri, 15 Mar 2013 12:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8::pentoo
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r4
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories:

gentoo
    location: /usr/portage
    sync: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

pentoo
    location: /var/lib/layman/pentoo
    masters: gentoo
    priority: 0

ABI_X86="32"
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x Intel-SDP Google-TOS"
ACCEPT_PROPERTIES="*"
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"
ANDROID_SWT="/usr/share/swt-3.7/lib"
ANT_HOME="/usr/share/ant"
APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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"
ARCH="x86"
AUTOCLEAN="yes"
BOOTSTRAP_USE="cxx unicode hardened pax_kernel pic -jit -orc"
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump"
CAMERAS="ptp2"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -frecord-gcc-switches"
CHOST="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules/* *.py[co] *$py.class"
COLORTERM="Terminal"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe -frecord-gcc-switches"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS=" --ask-enter-invalid --keep-going=y --binpkg-respect-use=y --tree --verbose --with-bdeps=y"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FCFLAGS="-O2 -march=i686 -pipe -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
Comment 4 Anton Bolshakov 2013-03-15 14:46:45 UTC
Created attachment 342134 [details]
build.log
Comment 5 Agostino Sarubbo gentoo-dev 2013-03-15 18:41:47 UTC
I meant if you could point out the line _in the build log_ where the code is compiled without your cflags.
Comment 6 Anton Bolshakov 2013-03-15 22:07:05 UTC
There is only one .so file in this perl library, so i'm sure you can figure it out:

make.conf:
CFLAGS="-O2 -march=i686 -pipe -frecord-gcc-switches"

ebuild.log:
LD_RUN_PATH="/usr/lib" i686-pc-linux-gnu-gcc  -shared -O2 -march=pentium-m -mtune=nocona -pipe -fomit-frame-pointer -ggdb -L/usr/local/lib -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu SSLeay.o -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o blib/arch/auto/Net/SSLeay/SSLeay.so
Comment 7 Torsten Veller (RETIRED) gentoo-dev 2013-03-17 09:31:24 UTC
It uses the cflags from your perl. See bugs #261375 and #236200.

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