Gentoo Archives: gentoo-osx

From: Michael Haubenwallner <michael.haubenwallner@×××××××.at>
To: gentoo-osx@l.g.o
Subject: Re: [gentoo-osx] Results
Date: Tue, 12 Sep 2006 06:44:53
Message-Id: 1158043540.14777.24.camel@localhost
In Reply to: [gentoo-osx] Results by "Chris L. Mason"
1 On Mon, 2006-09-11 at 19:34 -0400, Chris L. Mason wrote:
2 <snip>
3
4 > libperl-5.8.8 fails:
5 >
6 > env MACOSX_DEPLOYMENT_TARGET=10.3 cc -o libperl.1.5.8.dylib
7 > -L/usr/local/lib -L/opt/local/lib -dynamiclib
8 > -compatibility_version 5.8.0
9 > -current_version 5.8.8
10 > -install_name /gentoo/usr/lib/perl5/5.8.8/darwin-2level/CORE/libperl.1.5.8.dylib
11 > perl.o gv.o toke.o perly.o o
12 > p.o pad.o regcomp.o dump.o util.o mg.o reentr.o hv.o av.o run.o
13 > pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o
14 > utf8.o taint.o deb.o universal.o xsutils.o g
15 > lobals.o perlio.o perlapi.o numeric.o locale.o pp_pack.o pp_sort.o
16 > -ldl -lm -lc -Wl,-soname -Wl,libperl.so.`echo libperl.1.5.8.dylib |
17 > cut -d. -f3`
18 > /usr/bin/libtool: unknown option character `o' in: -soname
19 > Usage: /usr/bin/libtool -static [-] file [...] [-filelist
20 > listfile[,dirname]] [-arch_only arch] [-sacLT]
21 > Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist
22 > listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name]
23 > [-compatibility_version #] [-current_version #]
24 > [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr
25 > 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename
26 > <file_system_path>] [-all_load] [-noall_load]
27 > make: *** [libperl.1.5.8.dylib] Error 1
28 >
29
30 This looks like some similar problem I had on ia64-hpux, where native ld
31 does not understand -soname.
32 But wait, questions came up while reading your errormessage thrice:
33 Seems that your /usr/bin/libtool does not understand -soname ?
34 Didn't you have libtool-1.5.22 emerged just before to eprefix ?
35 Shouldn't this be passed to linker using -Wl, rather than libtool ?
36
37 Anyway:
38
39 libperl-5.8.7.ebuild assumes using GNU ld if userland != Darwin,
40 applying a patch called "${PN}-create-libperl-soname.patch".
41 Do you have userland set to Darwin ?
42
43 I'm not sure how to decide when to apply this patch, in libperl-5.8.7 it
44 was done for non-Darwin userland only:
45 use userland_Darwin || epatch ${FILESDIR}/${PN}-create-libperl-soname.patch
46
47 On ia64-hpux i'm doing this based on CHOST now (will work for hppa-hpux
48 too), but IMHO this nothing but a quick-hack:
49 ( use userland_Darwin || [[ ${CHOST} = *-*-hpux* ]] ) ||
50 epatch ${FILESDIR}/${PN}-create-libperl-soname.patch
51
52 Maybe I should do with 'use ia64-hpux' ?
53
54 Same problem applies for perl itself lateron.
55
56 Maybe we should introduce another global use-flags both for GNU-as and
57 GNU-ld ?
58 Because there are some platform out there, where both GNU and native
59 as/ld will work, and others where only GNU as works, but GNU ld does
60 not, and others where none of the GNU binutils work.
61
62 -haubi-
63 --
64 Michael Haubenwallner SALOMON Automation GmbH
65 Forschung & Entwicklung A-8114 Friesach bei Graz
66 mailto:michael.haubenwallner@×××××××.at http://www.salomon.at
67 No HTML/MIME please, see http://expita.com/nomime.html
68
69 --
70 gentoo-osx@g.o mailing list

Replies

Subject Author
Re: [gentoo-osx] Results "Chris L. Mason" <clmason@×××××.com>
Re: [gentoo-osx] Results Tobias Hahn <tobhahn@×××.de>