Re: configuring for Mac
Cesar Gutierrez Corea <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Configure worked for me without problems in Mac OS X 10.4, but when I run gmake, this warning appears: gcc: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags Then gmake continue compiling but stops here: /usr/bin/ld: warning fat file: /usr/lib/system/libmathCommon.A.dylib does not contain an architecture that matches the specified -arch flag: i386 (file ignored) /usr/bin/ld: Undefined symbols: _fegetround referenced from libSystem expected to be defined in /usr/ lib/system/libmathCommon.A.dylib collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccyJEXm4.out (No such file or directory) make: *** [wmlscript/wmlsc] Error 1 Then I removed the -arch i386 flag from the configure script following Aarno suggestions and it compiled without problems. So the problem seems to be the flags that create temporary files (-E, -S, - M) do not play nice with 2 architectures and when this files are needed the error "lipo: can't open input file: /var/tmp// ccyJEXm4.out" appears. Thanks in advance, On Jan 12, 2006, at 9:35 AM, Aarno Syvänen wrote: > Hi List, > > Current configure does *not* work with Mac at all. So i use > following instead: > > Index: configure.in > =================================================================== > RCS file: /home/cvs/gateway/configure.in,v > retrieving revision 1.155 > diff -r1.155 configure.in > 157,158d156 > < AC_CHECK_LIB(c_r, pthread_exit, [LIBS="$LIBS -lc_r"; > pthread="yes"]) > < AC_CHECK_LIB(kse, pthread_exit, [LIBS="$LIBS -lkse"; > pthread="yes"]) > 203a202,203 > > AC_SEARCH_LIBS([pthread_exit], [c_r], [pthread="yes"]) > > AC_SEARCH_LIBS([pthread_exit], [kse], [pthread="yes"]) > 214c214,229 > < AC_CHECK_HEADERS(sys/socket.h sys/sockio.h net/if.h netinet/in.h) > --- > > AC_CHECK_HEADERS([sys/socket.h]) > > AC_CHECK_HEADERS([net/if.h], [], [], > > [#include <stdio.h> > > #if STDC_HEADERS > > # include <stdlib.h> > > # include <stddef.h> > > #else > > # if HAVE_STDLIB_H > > # include <stdlib.h> > > # endif > > #endif > > #if HAVE_SYS_SOCKET_H > > # include <sys/socket.h> > > #endif > > ]) > > AC_CHECK_HEADERS(sys/sockio.h netinet/in.h) > > Does anybody object me committing this change. It is, does break > some other os. > > Aarno > -- Cesar Gutierrez Corea Software Engineer [email protected]