Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 531880 - sys-apps/tcp-wrappers - ld: unknown option: -soname=libwrap.so.0
Summary: sys-apps/tcp-wrappers - ld: unknown option: -soname=libwrap.so.0
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-07 10:51 UTC by DIZ
Modified: 2021-01-06 12:38 UTC (History)
0 users

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


Attachments
emerge --info and build log (tcp-wrappers-info-log.txt,25.06 KB, text/plain)
2014-12-07 10:51 UTC, DIZ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DIZ 2014-12-07 10:51:06 UTC
Created attachment 391120 [details]
emerge --info and build log

I am trying to get LDAP up and running within Gentoo Prefix on a Mac PPC G4. Was having problems with lmdb (see bug there) and then found the "Getting Started" doc for LDAP and Gentoo. Added new USE flags, and tcp-wrappers comes up as a new dependency. 

When I try to install either of the two listed versions that are marked stable for PPC, I get a problem with "unknown option" and ld.

7.6.22-r1 gives me: ld: unknown option: -soname=libwrap.so.0
7.6-r8 gives me: ld: unknown option: -soname

Thanks in advance for any help both here and for lmdb.

AS CALLED:
[ebuild  N    ] sys-apps/tcp-wrappers-7.6.22-r1  USE="ipv6 -netgroups -static-libs"
Comment 1 DIZ 2014-12-24 08:06:44 UTC
A search on "ld: unknown option: -soname=libwrap.so.0" shows that this is a known problem for certain Mac gccs.

I'm willing to to try working this out myself--patch, overlay, etc.--if there is any advice as to what that would entail?

Thanks again.
Comment 2 Fabian Groffen gentoo-dev 2014-12-24 08:33:04 UTC
not certain, all of them, for Darwin doesn't use ELF
Comment 3 Fabian Groffen gentoo-dev 2014-12-24 08:34:25 UTC
(In reply to DIZ from comment #1)
> I'm willing to to try working this out myself--patch, overlay, etc.--if
> there is any advice as to what that would entail?

Try simply removing the soname flag and its argument.
Comment 4 Fabian Groffen gentoo-dev 2015-01-03 10:34:30 UTC
(In reply to Fabian Groffen from comment #3)
> (In reply to DIZ from comment #1)
> > I'm willing to to try working this out myself--patch, overlay, etc.--if
> > there is any advice as to what that would entail?
> 
> Try simply removing the soname flag and its argument.

that is:

The build-system (I hope it's a Makefile/autotools setup) somewhere defines -soname=blah.  This needs to be removed for Darwin.  Nicest way is if the buildsystem itself figures out when to or not to do this.  If that's too hard, then a simple sed from the ebuild could do it on a conditional for $CHOST == *-darwin*.
Comment 5 DIZ 2015-01-05 08:02:28 UTC
Thanks for the reply. I've been digging around a lot online, and have a sense of what I need to do. Apparently, removing the soname option breaks something; I found I need to replace "soname=" with "install_name," and this removes the error I was getting.

When I then run the "make...all" exactly as emerge had it, I get an error for the next option, which is:

-Wl,--version-script=libwrap.lds

It seemed (from what I was able to glean) that this *is* removable, and when I do so, the make command starts successfully, but after a few steps just dies without an error message of any kind.

I wish I could say I'm more versed in this aspect of building/installing from scratch, but I'm not (and hence why I rely on my prefix!).

I have a question: At the beginning of the Makefile there are a lot of templates/recipes for various flavors of *nix....are these generic? Or quite specific to this build? Can one be "borrowed" for Mac PowerPC from somewhere else?

I ask because I'm now out of ideas as to what to do....

Thanks in advance for any help.
Comment 6 Fabian Groffen gentoo-dev 2015-01-05 10:00:55 UTC
Do you really need tcp-wrappers?  If you really want to get an ldap server running, you better integrate it with launchd instead (IMO).

I think you better revise your USE-flags and see what pulls in tcp-wrappers, for porting this package is going to be a major pita (and probably in vain).
Comment 7 DIZ 2015-01-06 20:35:21 UTC
I removed tcpd as a use flag and this is no longer pulled in.
Comment 8 Fabian Groffen gentoo-dev 2021-01-06 12:38:40 UTC
lmdb is working on ppc-macos, tcp-wrappers I don't know, but would have to recheck.