<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] libtool on Mac OSX Lion</TITLE>
</HEAD>
<BODY>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Are you using the Apple Developers Kit or are you using something else?<BR>
<BR>
<BR>
On 5/26/12 11:56 AM, "Neil Patel" <<a href="neilp@cs.stanford.edu">neilp@cs.stanford.edu</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Hi All, another OSX Lion build issue:<BR>
<BR>
On bootstrap I'm getting this output:<BR>
<BR>
anitya:freeswitch neil$ ./bootstrap.sh <BR>
bootstrap: checking installation...<BR>
bootstrap: autoconf version 2.59 (ok)<BR>
bootstrap: automake version 1.7.1 (ok)<BR>
bootstrap: aclocal version 1.7.1 (ok)<BR>
bootstrap: libtool version 1.5.24 (ok)<BR>
Bootstrapping using:<BR>
autoconf : /usr/local/bin/autoconf<BR>
automake : /usr/local/bin/automake<BR>
aclocal : /usr/local/bin/aclocal<BR>
libtool : /usr/bin/glibtool (1.5.24.)<BR>
libtoolize: /usr/bin/glibtoolize<BR>
make : /usr/bin/make (GNU Make 3.81)<BR>
awk : ()<BR>
<BR>
Entering directory /usr/local/src/freeswitch/libs/apr<BR>
Copying libtool helper files ...<BR>
Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'<BR>
...<BR>
Remember to add `AC_PROG_LIBTOOL' to `configure.ac <<a href="http://configure.ac/">http://configure.ac/</a>> '.<BR>
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.<BR>
Creating configure<BR>
bootstrap: autoconf<BR>
configure:6475: error: possibly undefined macro: AC_PROG_LIBTOOL<BR>
If this token and others are legitimate, please use m4_pattern_allow.<BR>
See the Autoconf documentation.<BR>
...<BR>
<BR>
I believe this is behind a build error I'm currently up against on mod_enum:<BR>
making all mod_enum<BR>
checking for i386-apple-darwin11.3.0-gcc... gcc<BR>
checking for C compiler default output file name... a.out<BR>
checking whether the C compiler works... yes<BR>
checking whether we are cross compiling... no<BR>
checking for suffix of executables... <BR>
checking for suffix of object files... o<BR>
checking whether we are using the GNU C compiler... yes<BR>
checking whether gcc accepts -g... yes<BR>
checking for gcc option to accept ANSI C... none needed<BR>
checking how to run the C preprocessor... gcc -E<BR>
checking for egrep... grep -E<BR>
checking for AIX... no<BR>
rm: conftest.dSYM: is a directory<BR>
checking for i386-apple-darwin11.3.0-gcc... (cached) gcc<BR>
checking whether we are using the GNU C compiler... (cached) yes<BR>
checking whether gcc accepts -g... (cached) yes<BR>
checking for gcc option to accept ANSI C... (cached) none needed<BR>
checking whether make sets $(MAKE)... yes<BR>
checking whether gcc supports -std=c99... yes<BR>
checking whether gcc supports -xc99... no<BR>
checking for an ANSI C-conforming const... yes<BR>
checking whether gcc supports -g... yes<BR>
checking whether gcc supports -O2... yes<BR>
checking whether gcc supports -Wall... yes<BR>
checking whether gcc supports -W... yes<BR>
checking whether gcc supports -Wwrite-strings... yes<BR>
checking for ANSI C header files... rm: conftest.dSYM: is a directory<BR>
rm: conftest.dSYM: is a directory<BR>
yes<BR>
checking for sys/types.h... yes<BR>
checking for sys/stat.h... yes<BR>
checking for stdlib.h... yes<BR>
checking for string.h... yes<BR>
checking for memory.h... yes<BR>
checking for strings.h... yes<BR>
checking for inttypes.h... yes<BR>
checking for stdint.h... yes<BR>
checking for unistd.h... yes<BR>
checking for getopt.h... yes<BR>
checking for time.h... yes<BR>
checking for winsock2.h... no<BR>
checking for ws2tcpip.h... no<BR>
checking whether gcc supports -Werror... yes<BR>
checking whether gcc supports -Wall... (cached) yes<BR>
checking whether gcc supports -std=c99... (cached) yes<BR>
checking whether gcc supports -xc99... (cached) no<BR>
checking for getopt.h... (cached) yes<BR>
checking for time.h... (cached) yes<BR>
checking whether we need -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE as a flag for gcc... no<BR>
checking whether we need -std=c99 -D__EXTENSIONS__ -D_BSD_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ALL_SOURCE as a flag for gcc... no<BR>
checking whether we need -std=c99 as a flag for gcc... no<BR>
checking whether we need -D_BSD_SOURCE as a flag for gcc... no<BR>
checking whether we need -D_GNU_SOURCE as a flag for gcc... no<BR>
checking whether we need -D_GNU_SOURCE -D_FRSRESGID as a flag for gcc... failed<BR>
checking whether we need -D_POSIX_C_SOURCE=200112 as a flag for gcc... no<BR>
checking whether we need -D__EXTENSIONS__ as a flag for gcc... no<BR>
checking for inline... inline<BR>
checking for int8_t... yes<BR>
checking for int16_t... yes<BR>
checking for int32_t... yes<BR>
checking for int64_t... yes<BR>
checking for uint8_t... yes<BR>
checking for uint16_t... yes<BR>
checking for uint32_t... yes<BR>
checking for uint64_t... yes<BR>
checking for doxygen... no<BR>
checking for library containing socket... none required<BR>
checking for library containing inet_pton... none required<BR>
checking build system type... i386-apple-darwin11.3.0<BR>
checking host system type... i386-apple-darwin11.3.0<BR>
checking for i386-apple-darwin11.3.0-ar... no<BR>
checking for ar... /usr/bin/ar<BR>
/usr/local/src/freeswitch/libs/ldns/configure: line 6475: AC_PROG_LIBTOOL: command not found<BR>
checking for openssl/ssl.h... yes<BR>
checking for openssl/err.h... yes<BR>
checking for openssl/rand.h... yes<BR>
checking for EVP_sha256... no<BR>
checking whether byte ordering is bigendian... no<BR>
checking for ANSI C header files... (cached) yes<BR>
checking for getopt.h... (cached) yes<BR>
checking for stdarg.h... yes<BR>
checking for stdbool.h... yes<BR>
checking for openssl/ssl.h... (cached) yes<BR>
checking for netinet/in.h... yes<BR>
checking for time.h... (cached) yes<BR>
checking for arpa/inet.h... yes<BR>
checking for netdb.h... yes<BR>
checking for sys/param.h... yes<BR>
checking for sys/mount.h... yes<BR>
checking for sys/socket.h... yes<BR>
checking for inttypes.h... (cached) yes<BR>
checking for sys/types.h... (cached) yes<BR>
checking for unistd.h... (cached) yes<BR>
checking for socklen_t... yes<BR>
checking for ssize_t... yes<BR>
checking for in_addr_t... yes<BR>
checking for in_port_t... yes<BR>
checking for struct sockaddr_storage.ss_family... yes<BR>
checking for stdlib.h... (cached) yes<BR>
checking for GNU libc compatible malloc... yes<BR>
checking for stdlib.h... (cached) yes<BR>
checking for GNU libc compatible realloc... yes<BR>
checking for b64_pton... no<BR>
checking for b64_ntop... no<BR>
checking for b32_pton... no<BR>
checking for b32_ntop... no<BR>
checking for timegm... yes<BR>
checking for gmtime_r... yes<BR>
checking for ctime_r... yes<BR>
checking for isblank... yes<BR>
checking for isascii... yes<BR>
checking for inet_aton... yes<BR>
checking for inet_pton... yes<BR>
checking for inet_ntop... yes<BR>
checking for snprintf... yes<BR>
checking for strlcpy... yes<BR>
checking for memmove... yes<BR>
checking for endprotoent... yes<BR>
checking for endservent... yes<BR>
checking for sleep... yes<BR>
checking for random... yes<BR>
checking for fcntl... yes<BR>
checking for strtoul... yes<BR>
checking for getaddrinfo... yes<BR>
checking for ioctlsocket... no<BR>
checking whether the C compiler (gcc) accepts the "format" attribute... yes<BR>
checking whether the C compiler (gcc) accepts the "unused" attribute... yes<BR>
configure: creating ./config.status<BR>
config.status: creating Makefile<BR>
config.status: creating ldns/net.h<BR>
config.status: creating ldns/util.h<BR>
config.status: creating packaging/libldns.pc<BR>
config.status: creating packaging/ldns-config<BR>
config.status: creating ldns/config.h<BR>
copying header files<BR>
make[6]: ./libtool: No such file or directory<BR>
make[6]: *** [rdata.o] Error 1<BR>
make[5]: *** [/usr/local/src/freeswitch/libs/ldns/libldns.la <<a href="http://libldns.la/">http://libldns.la/</a>> ] Error 2<BR>
make[4]: *** [all] Error 1<BR>
make[3]: *** [mod_enum-all] Error 1<BR>
make[2]: *** [all-recursive] Error 1<BR>
make[1]: *** [all-recursive] Error 1<BR>
make: *** [all] Error 2<BR>
<BR>
I don't remember exactly how I installed libtool, but it was a script I ran from within FS that automatically wget'd, compiled, and installed it (suggested by wiki or mailing list). It definitely wasn't through macports/fink/brew.<BR>
<BR>
Any suggestions on what the problem may be?<BR>
<BR>
Thanks!<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services:<BR>
<a href="consulting@freeswitch.org">consulting@freeswitch.org</a><BR>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><BR>
<BR>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR>
<a href="http://www.cudatel.com">http://www.cudatel.com</a><BR>
<BR>
Official FreeSWITCH Sites<BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><BR>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><BR>
<BR>
Join Us At ClueCon - Aug 7-9, 2012<BR>
<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>