[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Mac OS X: Failed link, linking against a plists impersonating object files???

Am 22.09.2013 um 19:34 schrieb Jeffrey Walton <noloader@xxxxxxxxx>:

> On Sun, Sep 22, 2013 at 10:26 AM, Nick Mathewson <nickm@xxxxxxxxxxxxx> wrote:
>> On Sun, Sep 22, 2013 at 5:59 AM, Jeffrey Walton <noloader@xxxxxxxxx> wrote:
>>> Hi All,
>>> I'm building on Mac OS X 10.8.4 (x64). The library configured OK, but
>>> it attempts to link against some plist files which are named like
>>> object files.
>>> libevent-2.0.21-stable$ file .libs/event.o
>>> .libs/event.o: XML  document text
>>> libevent-2.0.21-stable$ cat .libs/event.o
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
>>> "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
>>> <plist version="1.0">
>>> <dict>
>>> <key>clang_version</key>
>>> <string>clang version 3.3 (tags/RELEASE_33/final)</string>
>>> ...
>>> Any ideas??? Searching has not returned up much.
>> Strange; the likeliest thing I can think of is that something strange
>> is going on with libtool.  I know it's a dumb idea, but perhaps there
>> are some old files lurking around from a previous build with a
>> different version of the tools?
> Thanks Nick.
> This is from a fresh download and unpack. I also experienced the issue
> after a 'make distclean'.
> Would you know if/how to update the auto tools stuff? Can I download a
> new configure and drop in the project sources?
>> (I build Libevent 2.0 and 2.1 regularly with OSX 10.8.5, and they work
>> okay for me)
> I'm using the tarball libevent-2.0.21-stable.tar.gz dated 2012-11-18.

fwiw, works for me:

$ sw_vers 
ProductName:	Mac OS X
ProductVersion:	10.8.5
BuildVersion:	12F37
$ grep AM_INIT_AUTOMAKE configure.in 
$ make clean > /dev/null && make > /dev/null 2>&1  && echo success || echo failure

What command is run by make if you manually rebuild event.o ? This is what I see:

$ rm event.o && make event.o
gcc -DHAVE_CONFIG_H -I.  -I./compat -I./include -I./include    -g -O2 -Wall -fno-strict-aliasing -Wno-deprecated-declarations -D_THREAD_SAFE  -MT event.o -MD -MP -MF .deps/event.Tpo -c -o event.o event.c
mv -f .deps/event.Tpo .deps/event.Po

To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.