unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* build error on my system (Mac OS 10.4.5)
@ 2006-03-28 21:55 Jay Cotton
  2006-03-29  0:34 ` Kevin Ryde
  0 siblings, 1 reply; 7+ messages in thread
From: Jay Cotton @ 2006-03-28 21:55 UTC (permalink / raw)


Hello all,

Apologies if this is the wrong forum for addressing this problem. I'm  
not an experienced guile user. Last week I tried upgrading to 1.8.0,  
but ran into the following error during the make process. So I  
thought I'd send a report.

I'm using an iBook G3/800 running Mac OS 10.4.5 (the latest release).  
I'd be happy to send complete transcripts of the configure and make  
output.

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -g -O2 -Wall -Wmissing- 
prototypes -Werror -MT posix.lo -MD -MP -MF .deps/posix.Tpo -c  
posix.c  -fno-common -DPIC -o .libs/posix.o
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
make[2]: *** [posix.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I appreciate all the work going into guile. I hope someday I'm able  
to contribute.
Jay



_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: build error on my system (Mac OS 10.4.5)
  2006-03-28 21:55 build error on my system (Mac OS 10.4.5) Jay Cotton
@ 2006-03-29  0:34 ` Kevin Ryde
  2006-03-29  7:23   ` Michael Tuexen
  2006-03-29 15:01   ` Jay Cotton
  0 siblings, 2 replies; 7+ messages in thread
From: Kevin Ryde @ 2006-03-29  0:34 UTC (permalink / raw)
  Cc: guile-devel

Jay Cotton <jay@fleeingrabbit.com> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: build error on my system (Mac OS 10.4.5)
  2006-03-29  0:34 ` Kevin Ryde
@ 2006-03-29  7:23   ` Michael Tuexen
       [not found]     ` <FBE8E503-00A6-4CFE-AB12-8A7FEA0B1657@fleeingrabbit.com>
  2006-03-29 15:01   ` Jay Cotton
  1 sibling, 1 reply; 7+ messages in thread
From: Michael Tuexen @ 2006-03-29  7:23 UTC (permalink / raw)
  Cc: guile-devel

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 <jay@fleeingrabbit.com> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: build error on my system (Mac OS 10.4.5)
       [not found]     ` <FBE8E503-00A6-4CFE-AB12-8A7FEA0B1657@fleeingrabbit.com>
@ 2006-03-29 14:35       ` Michael Tuexen
  2006-03-29 21:28         ` Kevin Ryde
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Tuexen @ 2006-03-29 14:35 UTC (permalink / raw)
  Cc: guile-devel

Hi Jay,

line 99 of socket.h reads

typedef __darwin_socklen_t      socklen_t;

and this is the problem. The configure script tests for socklen_t in
the wrong way. It must do something like I posted some weeks ago.
A pretty common mistake...

It was decided that the fix is not that important and will come (maybe)
in a future version of guile...

Best regards
Michael

On Mar 29, 2006, at 4:07 PM, Jay Cotton wrote:

> Michael,
>
> Were you able to learn any more about this error? I am not familiar  
> with this error message: two or more data types declaration  
> specifiers. Is it perhaps new in gcc 4.0?
>
> Thanks,
> Jay
>
> On Mar 29, 2006, at 2:23 AM, Michael Tuexen wrote:
>
>> 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 <jay@fleeingrabbit.com> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: build error on my system (Mac OS 10.4.5)
  2006-03-29  0:34 ` Kevin Ryde
  2006-03-29  7:23   ` Michael Tuexen
@ 2006-03-29 15:01   ` Jay Cotton
  1 sibling, 0 replies; 7+ messages in thread
From: Jay Cotton @ 2006-03-29 15:01 UTC (permalink / raw)



On Mar 28, 2006, at 7:34 PM, Kevin Ryde wrote:

> Jay Cotton <jay@fleeingrabbit.com> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: build error on my system (Mac OS 10.4.5)
  2006-03-29 14:35       ` Michael Tuexen
@ 2006-03-29 21:28         ` Kevin Ryde
  2006-03-30  0:11           ` Jay Cotton
  0 siblings, 1 reply; 7+ messages in thread
From: Kevin Ryde @ 2006-03-29 21:28 UTC (permalink / raw)
  Cc: guile-devel

[-- Attachment #1: Type: text/plain, Size: 278 bytes --]

Michael Tuexen <Michael.Tuexen@lurchi.franken.de> 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.


[-- Attachment #2: configure.in.socklen_t.diff --]
[-- Type: text/plain, Size: 750 bytes --]

--- configure.in.~1.268.2.4.~	2006-03-28 09:52:36.000000000 +1100
+++ configure.in	2006-03-30 08:16:14.000000000 +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

[-- Attachment #3: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: build error on my system (Mac OS 10.4.5)
  2006-03-29 21:28         ` Kevin Ryde
@ 2006-03-30  0:11           ` Jay Cotton
  0 siblings, 0 replies; 7+ messages in thread
From: Jay Cotton @ 2006-03-30  0:11 UTC (permalink / raw)


On Mar 29, 2006, at 4:28 PM, Kevin Ryde wrote:

> Michael Tuexen <Michael.Tuexen@lurchi.franken.de> 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-03-30  0:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-28 21:55 build error on my system (Mac OS 10.4.5) Jay Cotton
2006-03-29  0:34 ` Kevin Ryde
2006-03-29  7:23   ` Michael Tuexen
     [not found]     ` <FBE8E503-00A6-4CFE-AB12-8A7FEA0B1657@fleeingrabbit.com>
2006-03-29 14:35       ` Michael Tuexen
2006-03-29 21:28         ` Kevin Ryde
2006-03-30  0:11           ` Jay Cotton
2006-03-29 15:01   ` Jay Cotton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).