| Summary: | sys-apps/tcp-wrappers - ld: unknown option: -soname=libwrap.so.0 | ||
|---|---|---|---|
| Product: | Gentoo/Alt | Reporter: | DIZ <daniel.ibnzayd> |
| Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | emerge --info and build log | ||
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. not certain, all of them, for Darwin doesn't use ELF (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. (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*. 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. 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). I removed tcpd as a use flag and this is no longer pulled in. lmdb is working on ppc-macos, tcp-wrappers I don't know, but would have to recheck. |
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"