Re: Building amanda on Mac OS X
2005-07-07 18:42:23
Chris Marble wrote:
Then a simple make which ends with: /bin/sh ../libtool --mode=link
gcc -g -O2 -o libamanda.la -rpath /usr/local/amanda-2.4.5/lib
-release 2.4.5 alloc.lo amflock.lo clock.lo debug.lo dgram.lo
error.lo file.lo fileheader.lo amfeatures.lo match.lo protocol.lo
regcomp.lo regerror.lo regexec.lo regfree.lo security.lo statfs.lo
stream.lo token.lo util.lo versuff.lo version.lo pipespawn.lo sl.lo
-lm -ltermcap gcc -dynamiclib -flat_namespace -undefined suppress -o
.libs/libamanda-2.4.5.dylib .libs/alloc.o .libs/amflock.o
.libs/clock.o .libs/debug.o .libs/dgram.o .libs/error.o .libs/file.o
.libs/fileheader.o .libs/amfeatures.o .libs/match.o .libs/protocol.o
.libs/regcomp.o .libs/regerror.o .libs/regexec.o .libs/regfree.o
.libs/security.o .libs/statfs.o .libs/stream.o .libs/token.o
.libs/util.o .libs/versuff.o .libs/version.o .libs/pipespawn.o
.libs/sl.o -lm -ltermcap -install_name
/usr/local/amanda-2.4.5/lib/libamanda-2.4.5.dylib /usr/bin/libtool:
for architecture: cputype (16777234) cpusubtype (0) file: -lm is not
an object file (not allowed in a library) /usr/bin/libtool: for
architecture: cputype (16777234) cpusubtype (0) file: -lSystem is not
an object file (not allowed in a library) make[1]: *** [libamanda.la]
Error 1 make: *** [all-recursive] Error 1
Somehow this line gets misinterpreted as it seems to read the option -lm
as argument for the option -o IMO, seems like that command doesn't get
built properly.
I also can't quite tell from your posting where the lines end ...
Which gcc-release is this? What make-binary?
Maybe you have hit the same bug as we had on Solaris lately, where the
problem was that the system used a non-BSD-version of make (and OSX is a
kind of BSD ...).
The solution there was to use /usr/ccs/bin/make, but I have no idea if
this is it for you and which paths are correct for OSX.
Suggestions? My amanda server is 2.4.4p1 so I can use an older
version. I just wanted the latest on the new client.
Have you read
http://web.brandeis.edu/pages/view/Bio/AmandaMacOSXCompileNotes
?
I am not sure if this helps as it is a bit outdated already.
In general I would suggest to use the newer release if possible, also on
the server, although at first we have to find out why your make fails ...
--
Stefan G. Weichinger
AMANDA core team member
mailto://sgw AT amanda DOT org
--
oops! linux consulting & implementation
http://www.oops.co.at
--
|
|
|