Re: build error on my system (Mac OS 10.4.5)
On Mar 28, 2006, at 7:34 PM, Kevin Ryde wrote: Jay Cotton [EMAIL PROTECTED] writes: In file included from /usr/include/netinet/in.h:78, from /usr/include/netdb.h:86, from posix.c:122: /usr/include/sys/socket.h:99: error: two or more data types in declaration specifiers What does that offending sys/socket.h:99 line say? It's probably some extra header required before including netdb.h. See if the man page for gethostbyname says how it should look. The offending sys/socket.h says, in lines 97-100: 97 #ifndef _SOCKLEN_T 98 #define _SOCKLEN_T 99 typedef __darwin_socklen_t socklen_t; 100 #endif The man page for gethostbyname just says to #include netdb.h. Jay ___ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel
Re: build error on my system (Mac OS 10.4.5)
Michael Tuexen [EMAIL PROTECTED] writes: The configure script tests for socklen_t in the wrong way. It must do something like I posted some weeks ago. Oops, that must have gone through to the keeper. The configure change below might do the right thing. --- configure.in.~1.268.2.4.~ 2006-03-28 09:52:36.0 +1100 +++ configure.in2006-03-30 08:16:14.0 +1100 @@ -515,9 +515,6 @@ AC_SUBST([SCM_I_GSC_NEEDS_STDINT_H]) AC_SUBST([SCM_I_GSC_NEEDS_INTTYPES_H]) -AC_CHECK_TYPE(socklen_t, int) -AC_CHECK_TYPE(struct ip_mreq) - AC_HEADER_STDC AC_HEADER_DIRENT AC_HEADER_TIME @@ -532,6 +529,16 @@ sys/utime.h time.h unistd.h utime.h pwd.h grp.h sys/utsname.h \ direct.h]) +AC_CHECK_TYPE(socklen_t, , + [AC_DEFINE_UNQUOTED(socklen_t, int, + [Define to `int' if sys/socket.h does not define.])], + [#if HAVE_SYS_TYPES_H +#include sys/types.h +#endif +#include sys/socket.h +]) +AC_CHECK_TYPE(struct ip_mreq) + GUILE_HEADER_LIBC_WITH_UNISTD AC_TYPE_GETGROUPS ___ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel
Re: build error on my system (Mac OS 10.4.5)
On Mar 29, 2006, at 4:28 PM, Kevin Ryde wrote: Michael Tuexen [EMAIL PROTECTED] writes: The configure script tests for socklen_t in the wrong way. It must do something like I posted some weeks ago. Oops, that must have gone through to the keeper. The configure change below might do the right thing. configure.in.socklen_t.diff Thanks for the help, everybody. I made the changes to configure.in suggested here: http://lists.gnu.org/archive/html/guile-devel/2006-02/msg00039.html and re-ran autoconf. Seems to have worked, because I was able to continue to the next error. :-/ This time the problem seems to be with either GNU MP or libtool. I installed the latest versions of libtool and GNU MP, and ran make check on both of them, before I set out to build guile. (I'm not sure how to verify this, however, as a sanity check.) Here's the error: gcc -dynamiclib -o .libs/libguile.17.0.0.dylib [... i cut out the rest of this huge build line ... ] ld: common symbols not allowed with MH_DYLIB output format with the - multi_module option /usr/local/lib/libgmp.a(mp_bpl.o) definition of common ___gmp_junk (size 4) /usr/bin/libtool: internal link edit command failed make[2]: *** [libguile.la] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Regards, Jay ___ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel
Re: build error on my system (Mac OS 10.4.5)
Jay Cotton [EMAIL PROTECTED] writes: In file included from /usr/include/netinet/in.h:78, from /usr/include/netdb.h:86, from posix.c:122: /usr/include/sys/socket.h:99: error: two or more data types in declaration specifiers What does that offending sys/socket.h:99 line say? It's probably some extra header required before including netdb.h. See if the man page for gethostbyname says how it should look. ___ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel
Re: build error on my system (Mac OS 10.4.5)
I guess it is the socklen_t error, I reported earlier... Best regards Michael On Mar 29, 2006, at 2:34 AM, Kevin Ryde wrote: Jay Cotton [EMAIL PROTECTED] writes: In file included from /usr/include/netinet/in.h:78, from /usr/include/netdb.h:86, from posix.c:122: /usr/include/sys/socket.h:99: error: two or more data types in declaration specifiers What does that offending sys/socket.h:99 line say? It's probably some extra header required before including netdb.h. See if the man page for gethostbyname says how it should look. ___ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel ___ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel