Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99728 - darwin8-gcc-4.0.0 does not recognize cflags used in sys-libs/com_err
Summary: darwin8-gcc-4.0.0 does not recognize cflags used in sys-libs/com_err
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC OS X
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 99729 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-20 15:08 UTC by Marcin Gabrowski
Modified: 2006-04-12 10:53 UTC (History)
1 user (show)

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


Attachments
Darwin patch for com_err-1.38.ebuild (com_err-1.38.ebuild.patch,2.26 KB, patch)
2005-07-20 22:29 UTC, Kito (RETIRED)
Details | Diff
Darwin patch for com_err-1.38.ebuild (com_err-1.38.ebuild.patch,1.63 KB, patch)
2005-07-20 22:32 UTC, Kito (RETIRED)
Details | Diff
Darwin patch for com_err-1.38.ebuild 20050921 (ebuild.diff,1.53 KB, patch)
2005-09-21 12:00 UTC, Fabian Groffen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Gabrowski 2005-07-20 15:08:36 UTC
[cut]
powerpc-apple-darwin8-gcc-4.0.0: unrecognized option '-shared'
/usr/bin/ld: unknown flag: -soname
collect2: ld returned 1 exit status
make: *** [libcom_err.so.2.1] Error 1
make: *** Waiting for unfinished jobs....



Reproducible: Always
Steps to Reproduce:
1.emerge com_err





Portage 2.0.51.22-r1 (default-darwin/macos/10.4, gcc-4.0.0, unavailable, 8.2.0 Power Macintosh)
============================================================
=====
System uname: 8.2.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  [Not Present]
ACCEPT_KEYWORDS="ppc-macos ~ppc-macos"
AUTOCLEAN="yes"
CBUILD="powerpc-apple-darwin"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /
var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy collision-protect digest distlocks sfperms strict userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/
gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/Users/gaber/work/gentoo"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc emboss extras ipv6 macos ncurses nls ppc-macos utf8 userland_Darwin kernel_Darwin 
elibc_Darwin"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-07-20 15:17:14 UTC
Which ebuild and version???
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-07-20 15:30:31 UTC
*** Bug 99729 has been marked as a duplicate of this bug. ***
Comment 3 Jonathan Smith (RETIRED) gentoo-dev 2005-07-20 15:56:18 UTC
jakub: he said "Steps to Reproduce: \n emerge com_err"





Comment 4 Marcin Gabrowski 2005-07-20 16:00:33 UTC
(In reply to comment #1)
> Which ebuild and version???
Both.

Soulution:
--- /usr/portage/sys-libs/com_err/com_err-1.38.ebuild   2005-07-21 00:33:56.000000000 +0200
+++ com_err-1.38.ebuild 2005-07-21 00:47:16.000000000 +0200
@@ -31,14 +31,23 @@
 }
 
 src_compile() {
-       econf \
+        if use ppc-macos; then
+         econf \
+               --with-ldopts="${LDFLAGS}" \
+               $(use_enable nls) \
+               || die
+        else                                                                                                                                                
    
+         econf \
                --enable-elf-shlibs \
                --with-ldopts="${LDFLAGS}" \
                $(use_enable nls) \
                || die
+         fi                                                                                                                                                   
   
+
        emake -C lib/et || die
 }
 
+
 src_test() {
        make -C lib/et check || die "make check failed"
 }
Comment 5 Kito (RETIRED) gentoo-dev 2005-07-20 22:29:32 UTC
Created attachment 63943 [details, diff]
Darwin patch for com_err-1.38.ebuild

base-system@ would something like this work for you guys?
Comment 6 Kito (RETIRED) gentoo-dev 2005-07-20 22:32:12 UTC
Created attachment 63945 [details, diff]
Darwin patch for com_err-1.38.ebuild

more like this...
Comment 7 SpanKY gentoo-dev 2005-08-02 20:13:56 UTC
'something' is a pretty key word here :p

added support for darwin with bsd/elf shlibs option in src_compile to com_err and ss
Comment 8 Albert Lash 2005-09-15 06:44:59 UTC
(In reply to comment #7)
> 'something' is a pretty key word here :p
> 
> added support for darwin with bsd/elf shlibs option in src_compile to com_err and ss

Still getting: 
...
        GEN_ELF_SOLIB libcom_err.so.2.1
powerpc-apple-darwin8-gcc-4.0.0: unrecognized option `-shared'
/usr/bin/ld: unknown flag: -soname
collect2: ld returned 1 exit status
make: *** [libcom_err.so.2.1] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-libs/com_err-1.38 failed.
!!! Function src_compile, Line 42, Exitcode 2

With a fresh sync'd ebuild of com_err-1.38 on Tiger 10.4. 
Comment 9 Kito (RETIRED) gentoo-dev 2005-09-15 14:55:51 UTC
please check your CHOST setting in /etc/make.conf. 

On Tiger systems it should be:

  CHOST=powerpc-apple-darwin8
Comment 10 Fabian Groffen gentoo-dev 2005-09-21 12:00:02 UTC
Created attachment 68958 [details, diff]
Darwin patch for com_err-1.38.ebuild 20050921

The ebuild has been changed since kito's last patch.  Using this patch, which
is basically only the first and last hunk of kito's previous patch com_err
compiles and installs fine for me.  The middle hunk is already dealt with
differently in the ebuild now.

I only have a collision protect issue for
existing file /usr/bin/compile_et is not owned by this package
Comment 11 Kito (RETIRED) gentoo-dev 2005-10-12 16:46:36 UTC
FInally found it...apple ships /usr/bin/compile_et with Kerberos on 10.4...
Comment 12 SpanKY gentoo-dev 2005-10-12 17:57:39 UTC
fixed in cvs