Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 227007 - net-mail/cmd5checkpw should stop using bindnow-flags (deprecated)
Summary: net-mail/cmd5checkpw should stop using bindnow-flags (deprecated)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qmail Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on: 253864
Blocks: bindnow-flags
  Show dependency tree
 
Reported: 2008-06-14 19:05 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-07-27 19:20 UTC (History)
1 user (show)

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 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-06-14 19:05:35 UTC
The bindnow-flags function (as well as the previous -Wl,-z,now direct LDFLAG) is now deprecated. The correct way to fix this is directly in the loader and modern GLIBC systems have this fixed already.

Please get rid of bindnow-flags usage, thanks!
Comment 1 Thomas Petersen 2009-01-05 14:31:18 UTC
Compilation of cmd5checkpw-0.30 now fails. I think it has to do with bindnow-flags. This is the error output:

gcc -march=athlon64 -O2 -pipe   -c -o main.o main.c
main.c: In function 'main':
main.c:79: warning: return type of 'main' is not 'int'
gcc -march=athlon64 -O2 -pipe   -c -o md5c.o md5c.c
gcc -march=athlon64 -O2 -pipe   -c -o hmac_md5.o hmac_md5.c
gcc -g -o cmd5checkpw '' main.o md5c.o hmac_md5.o 
gcc: : No such file or directory
make: *** [cmd5checkpw] Error 1

Note the '' when linking.

If the following line from the makefile is removed it can compile:
LDFLAGS+=''

I assume that the line come from this sed script in the ebuild:
        sed \
                -e "s:-c -g -Wall -O3:${CFLAGS}:" \
                -e "s:cp cmd5checkpw /bin/:cp cmd5checkpw \${D}/bin/:" \
                -e "s:cp cmd5checkpw.8 /usr/man/man8/:cp cmd5checkpw.8 \${D}/usr/share/man/man8/:" \
                -e "/^LDFLAGS/ a LDFLAGS+='$(bindnow-flags)'" \
                < Makefile.orig > Makefile

cmd5checkpw-0.30-r1 compiles fine. A solution could be to stabilize that version.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-07-27 19:20:28 UTC
it's stable.. removed the broken ebuilds..