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
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
Depends on:
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: ---

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

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, but the ./nbase/configure script does its check by linking against, which then links against 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 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, not
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):

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

    net-analyzer/nmap: drop *-solaris, bug #396353
    Package-Manager: Portage-2.3.69, Repoman-2.3.16
    Signed-off-by: Fabian Groffen <>

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