Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 396353 - net-analyzer/nmap fails with LDFLAGS="-Wl,--as-needed" on sparc64-solaris
Summary: net-analyzer/nmap fails with LDFLAGS="-Wl,--as-needed" on sparc64-solaris
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: Sparc64 Solaris
: Normal normal with 1 vote (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-28 20:54 UTC by Richard Yao (RETIRED)
Modified: 2019-09-18 08:59 UTC (History)
1 user (show)

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


Attachments
config.log from ./nbase/ (config.log,60.25 KB, text/plain)
2011-12-28 20:54 UTC, Richard Yao (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao (RETIRED) gentoo-dev 2011-12-28 20:54:58 UTC
Created attachment 297247 [details]
config.log from ./nbase/

The checks for inet_ntop and inet_pton fail due to undefined references when --as-needed is passed to the build system.

Those symbols are in libnsl.so, but the ./nbase/configure script does its check by linking against libsocket.so, which then links against libnsl.so. This causes the package to use its own inet_ntop() implementation, which then conflicts with the system inet_ntop(), breaking the build.

I tried modifying the ./configure script to unconditionally assume that the system inet_ntop() exists and that enabled the build to work with LDFLAGS="-Wl,--as-needed".

The easy way to fix this is to modify the ebuild to strip that flag on Solaris, but maybe we could instead modify autotools to link against libsocket.so on Solaris instead.

Any opinions?
Comment 1 Richard Yao (RETIRED) gentoo-dev 2011-12-28 20:57:54 UTC
I meant to say that we couold instead modify autotools to link against libnsl.so, not libsocket.so.
Comment 2 Larry the Git Cow gentoo-dev 2019-09-18 08:31:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6fcd67858690eca97c148d179625655d94f32f7

commit f6fcd67858690eca97c148d179625655d94f32f7
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2019-09-18 08:30:43 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2019-09-18 08:31:02 +0000

    net-analyzer/nmap: drop *-solaris, bug #396353
    
    Closes: https://bugs.gentoo.org/396353
    Package-Manager: Portage-2.3.69, Repoman-2.3.16
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 net-analyzer/nmap/nmap-7.70.ebuild | 2 +-
 net-analyzer/nmap/nmap-7.80.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)