Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 113174

Summary: net-mail/metamail-2.7.45.3 does not yet work
Product: Gentoo/Alt Reporter: Tobias Hahn <tobhahn>
Component: Mac OSXAssignee: Gentoo for Mac OS X <ppc-macos>
Status: RESOLVED CANTFIX    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tobias Hahn 2005-11-21 08:27:56 UTC
metamail has the following problems preventing it to compile:
-depends on sharutils which collide with BSD sharutils
=when compiling, at some stage in the makefile, the command

ar cru .libs/libreplace.al

is issued. With GNU ar, this command creates an empty archive (what the authors
probably want at that stage of compilation). BSD ar gives the error below. ar is
called from a file called libtool in the compile directory. I have no clue where
this libtool is generated from (configure, ebuild author, portage, package
author). I'd like to get this working, so please help: Who is responsible for
libtool? Is there an easy workaround? What is the proper procedure to fix this?

Making all in replace
/bin/sh ../libtool --mode=link gcc  -O2 -pipe  -o libreplace.la     
mkdir .libs
rm -fr .libs/libreplace.la .libs/libreplace.* .libs/libreplace.*
ar cru .libs/libreplace.al
ar: no archive members specified
usage:  ar -d [-TLsv] archive file ...
        ar -m [-TLsv] archive file ...
        ar -m [-abiTLsv] position archive file ...
        ar -p [-TLsv] archive [file ...]
        ar -q [-cTLsv] archive file ...
        ar -r [-cuTLsv] archive file ...
        ar -r [-abciuTLsv] position archive file ...
        ar -t [-TLsv] archive [file ...]
        ar -x [-ouTLsv] archive [file ...]
make[1]: *** [libreplace.la] Error 1
make: *** [all-recursive] Error 1

!!! ERROR: net-mail/metamail-2.7.45.3 failed.
!!! Function src_compile, Line 35, Exitcode 2
!!! (no error message)

PS. I am well aware that metamail is not even tagged ~ppc-macos...

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Fabian Groffen gentoo-dev 2005-11-21 11:08:35 UTC
sharutils is a bit problematic I think.  The package provides on linux:
/usr/bin/mail-files
/usr/bin/mailshar
/usr/bin/remsync
/usr/bin/shar
/usr/bin/unshar
/usr/bin/uudecode
/usr/bin/uuencode

On my OSX I don't have mail-files, mailshar, remsync and unshar.
Comment 2 Fabian Groffen gentoo-dev 2005-11-21 11:18:32 UTC
libtool is an autotools component.  Running glibtoolize doesn't help either. 
During configure it says "creating libtool", so I guess you'll have to hack
configure for now.  I don't know a quick solution for now.
Comment 3 Fabian Groffen gentoo-dev 2008-03-24 18:05:19 UTC
Error is due to libtool/autoconf/-make not understanding that on Darwin "ar" complains when you try to make an archive with no members.  According to a GNU manual, this is intended though.  I'm not sure how to fix it (properly).