Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268225 - net-libs/liblockfile-1.08 fails to emerge
Summary: net-libs/liblockfile-1.08 fails to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: All OS X
: High normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-02 01:23 UTC by MATSUI Tetsushi
Modified: 2009-05-02 09:43 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUI Tetsushi 2009-05-02 01:23:45 UTC
net-libs/liblockfile-1.08 fails to emerge on OS X.

The error is:
i686-apple-darwin9-gcc  -fPIC -shared -Wl,-soname,liblockfile.so.1 \
			-o liblockfile.so lockfile.o -lc
ld: unknown option: -soname
collect2: ld returned 1 exit status
make: *** [liblockfile.so] Error 1

Obviously, soname is not appropriate on OS X.

The part of the ebuild
# needs checking -- grobian 2009-04-30
#	[[ ${CHOST} == *-darwin* ]] \
#		&& cp ${FILESDIR}/Makefile.Darwin.in Makefile.in
is the difference from the previous version causing failure.
If I uncomment back the part, it gets emerged successfully.
Comment 1 Fabian Groffen gentoo-dev 2009-05-02 08:09:37 UTC
Thanks for testing.
Are versions and things then also correct?
Comment 2 MATSUI Tetsushi 2009-05-02 08:55:58 UTC
Versions of what do you mean?
How do I test it?

Sorry, I even don't know what the package is for; it's just pulled by -D system
... in fact, a dependency of emacs.  Well, but otool -L emacs doesn't show liblockfile in the linked libraries.  Is it needed at all?
Comment 3 MATSUI Tetsushi 2009-05-02 09:34:51 UTC
The bug #203624 says it's used by movemail.

% otool -L ~/Gentoo/usr/libexec/emacs/22.3/i686-apple-darwin9/movemail
/Users/tetsushi/Gentoo/usr/libexec/emacs/22.3/i686-apple-darwin9/movemail:
	/Users/tetsushi/Gentoo/usr/lib/liblockfile.1.0.dylib (compatibility version 0.0.0, current version 0.0.0)
	/Users/tetsushi/Gentoo/usr/lib/gcc/i686-apple-darwin9/4.2.1/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.3)
% ~/Gentoo/usr/libexec/emacs/22.3/i686-apple-darwin9/movemail 
Usage: movemail [-p] inbox destfile [POP-password]

There is no problem for me.
Comment 4 Fabian Groffen gentoo-dev 2009-05-02 09:43:45 UTC
I uncommented the makefile thing, thanks for testing!