On 9/12/06, Michael Haubenwallner <michael.haubenwallner@...> wrote:
> On Mon, 2006-09-11 at 19:34 -0400, Chris L. Mason wrote:
> <snip>
>
> > libperl-5.8.8 fails:
> >
> > env MACOSX_DEPLOYMENT_TARGET=10.3 cc -o libperl.1.5.8.dylib
> > -L/usr/local/lib -L/opt/local/lib -dynamiclib
> > -compatibility_version 5.8.0
> > -current_version 5.8.8
> > -install_name /gentoo/usr/lib/perl5/5.8.8/darwin-2level/CORE/libperl.1.5.8.dylib
> > perl.o gv.o toke.o perly.o o
> > p.o pad.o regcomp.o dump.o util.o mg.o reentr.o hv.o av.o run.o
> > pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o
> > utf8.o taint.o deb.o universal.o xsutils.o g
> > lobals.o perlio.o perlapi.o numeric.o locale.o pp_pack.o pp_sort.o
> > -ldl -lm -lc -Wl,-soname -Wl,libperl.so.`echo libperl.1.5.8.dylib |
> > cut -d. -f3`
> > /usr/bin/libtool: unknown option character `o' in: -soname
> > Usage: /usr/bin/libtool -static [-] file [...] [-filelist
> > listfile[,dirname]] [-arch_only arch] [-sacLT]
> > Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist
> > listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name]
> > [-compatibility_version #] [-current_version #]
> > [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr
> > 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename
> > <file_system_path>] [-all_load] [-noall_load]
> > make: *** [libperl.1.5.8.dylib] Error 1
> >
>
> This looks like some similar problem I had on ia64-hpux, where native ld
> does not understand -soname.
> But wait, questions came up while reading your errormessage thrice:
> Seems that your /usr/bin/libtool does not understand -soname ?
> Didn't you have libtool-1.5.22 emerged just before to eprefix ?
> Shouldn't this be passed to linker using -Wl, rather than libtool ?
Ah, may that's the problem. Yes, I did have 1.5.22 emerge'd, but it's
still calling /usr/bin/libtool not /gentoo/usr/bin/libtool. Maybe
that's it?
>
> Anyway:
>
> libperl-5.8.7.ebuild assumes using GNU ld if userland != Darwin,
> applying a patch called "${PN}-create-libperl-soname.patch".
> Do you have userland set to Darwin ?
I assume that is set by the profile? I didn't explicitly add this anywhere.
>
> I'm not sure how to decide when to apply this patch, in libperl-5.8.7 it
> was done for non-Darwin userland only:
> use userland_Darwin || epatch ${FILESDIR}/${PN}-create-libperl-soname.patch
Yeah, I don't see this in 5.8.8, just 5.8.7, so I'll try that one with
the userland_Darwin use flag.
>
>
Thanks,
Chris
--
gentoo-osx@g.o mailing list
|