bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems compiling guile on a Cobalt mips (qube 2)


From: Dale P. Smith
Subject: Re: Problems compiling guile on a Cobalt mips (qube 2)
Date: Fri, 04 May 2001 15:40:02 -0400

Gary Houston wrote:
> 
> > From: "Dale P. Smith" <address@hidden>
> > Date: Thu, 03 May 2001 15:01:43 -0400
> >
> > This is from cvs guile, around May 1st.
> >
> > First off, even though AF_INET6 is defined, I don't relly believe there
> > is and real support for it. To get socket.c to compile, I #undef'ed
> > AF_INET6.  Also, uint32_t isn't defined anywhere, so I just used:
> >
> > typedef u_int32_t uint32_t;
> 
> Thanks, I've added a check for missing uint32_t.  However I'm not sure
> what to use instead of AF_INET6 for detecting IPv6 support.  If you
> could post a log of socket.c failing to compile, after fixing uint32_t,
> it may help.

Here is where compiling guile stops with cvs guile, morning of May 4th
(which contains your check).
Note: I do a cvs update on my Linux latop running Debian Potato, build
and install Guile there, then do a "make dist" and copy the .tar.gz to
the Cobalt box.

Just to make sure you understand, AF_INET6 *is* defined, but the
structures for aren't there.  There is a pointer to the structure, but
no size information.  The structures *are* defined in <linux/in.h>, but
so are a boatload of #define's that conflict with other .h files.   I
tried using #include <linux/in.h> and not #including others, but I
couldn't resolve the conflicts.

The structure that the compiler doesn't know the sizeof is sockaddr_in6.


gcc -DHAVE_CONFIG_H -I.. -I./.. -I../libltdl -g -O2 -Wall
-Wmissing-prototypes -c socket.c  -fPIC -DPIC -o .libs/socket.lo
socket.c: In function `scm_fill_sockaddr':
socket.c:740: sizeof applied to an incomplete type
socket.c:746: dereferencing pointer to incomplete type
socket.c:747: dereferencing pointer to incomplete type
socket.c:748: dereferencing pointer to incomplete type
socket.c:749: dereferencing pointer to incomplete type
socket.c:753: sizeof applied to an incomplete type
socket.c: In function `scm_addr_vector':
socket.c:944: dereferencing pointer to incomplete type
socket.c:945: dereferencing pointer to incomplete type
socket.c:946: dereferencing pointer to incomplete type
socket.c: In function `scm_accept':
socket.c:1014: sizeof applied to an incomplete type
socket.c:1014: sizeof applied to an incomplete type
socket.c:1014: sizeof applied to an incomplete type
socket.c:1014: sizeof applied to an incomplete type
socket.c:1015: sizeof applied to an incomplete type
socket.c:1015: sizeof applied to an incomplete type
socket.c:1015: sizeof applied to an incomplete type
socket.c:1015: sizeof applied to an incomplete type
socket.c: In function `scm_getsockname':
socket.c:1038: sizeof applied to an incomplete type
socket.c:1038: sizeof applied to an incomplete type
socket.c:1038: sizeof applied to an incomplete type
socket.c:1038: sizeof applied to an incomplete type
socket.c:1039: sizeof applied to an incomplete type
socket.c:1039: sizeof applied to an incomplete type
socket.c:1039: sizeof applied to an incomplete type
socket.c:1039: sizeof applied to an incomplete type
socket.c: In function `scm_getpeername':
socket.c:1060: sizeof applied to an incomplete type
socket.c:1060: sizeof applied to an incomplete type
socket.c:1060: sizeof applied to an incomplete type
socket.c:1060: sizeof applied to an incomplete type
socket.c:1061: sizeof applied to an incomplete type
socket.c:1061: sizeof applied to an incomplete type
socket.c:1061: sizeof applied to an incomplete type
socket.c:1061: sizeof applied to an incomplete type
socket.c: In function `scm_recvfrom':
socket.c:1174: sizeof applied to an incomplete type
socket.c:1174: sizeof applied to an incomplete type
socket.c:1174: sizeof applied to an incomplete type
socket.c:1174: sizeof applied to an incomplete type
socket.c:1175: sizeof applied to an incomplete type
socket.c:1175: sizeof applied to an incomplete type
socket.c:1175: sizeof applied to an incomplete type
socket.c:1175: sizeof applied to an incomplete type
make[1]: *** [socket.lo] Error 1
make[1]: Leaving directory `/home/users/dsmith/src/guile-1.5.0/libguile'
make: *** [all-recursive] Error 1


I also tried  to build --disable-networking.  It compiles and builds
fine, but still core dumps.

address@hidden guile-1.5.0]$ gdb /usr/local/bin/guile
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "mipsel-redhat-linux"...
(gdb) r
Starting program: /usr/local/bin/guile

Program received signal SIGSEGV, Segmentation fault.
0x2ad2fdf0 in chunk_free (ar_ptr=0x2adde954, p=0x100260b0) at
malloc.c:2959
malloc.c:2959: No such file or directory.
(gdb) bt
#0  0x2ad2fdf0 in chunk_free (ar_ptr=0x2adde954, p=0x100260b0) at
malloc.c:2959
#1  0x2ad30880 in chunk_realloc (ar_ptr=0x2adde954, oldp=0x100260b0,
    oldsize=12008, nb=18008) at malloc.c:3243
#2  0x2ad30308 in __libc_realloc (oldmem=0x2adde954, bytes=18000)
    at malloc.c:3097
#3  0x2aafb028 in scm_must_realloc (where=0x100260b8, old_size=12000,
    size=18000, what=0x2aac93f0 "scm_subr_table") at gc.c:1931
#4  0x2ab3236c in scm_make_subr_opt (name=0x2aac6eb4 "nil-while",
type=101,
    fcn=0x2ab14d18 <scm_m_while>, set=0) at procs.c:81
#5  0x2ab190f8 in scm_make_synt (name=0x10034f08 "address@hidden",
    macroizer=0x2ab18b40 <scm_makacro>, fcn=0x2ab14d18 <scm_m_while>)
    at macros.c:224
#6  0x2ab1505c in scm_init_lang () at lang.c:162
#7  0x2ab1337c in scm_init_guile_1 (base=0x7ffffd98) at init.c:578
#8  0x2ab13480 in scm_boot_guile_1 (base=0x18, closure=0x7ffffd88)
    at init.c:611
#9  0x2ab12a78 in scm_boot_guile (argc=24, argv=0x100260b0,
    main_func=0x2abb2110 <leaf_environment_funcs>, closure=0x2974)
    at init.c:442
#10 0x400e24 in main (argc=1, argv=0x7ffffde4) at guile.c:76
(gdb) The program is running.  Exit anyway? (y or n) y


> I may not have time to fix it myself right now though, I'm leaving for
> a 2 week holiday on Saturday.

Have a great time!


> > After those changes to socket.c, guile compiles and installs, but
> > segfaults when executed. Here is what it looks like with gdb:
> 
> Looks like socket.c may not be to blame, this one time.

No, I don't think so.

-Dale
-- 
Dale P. Smith
Treasurer, Cleveland Linux Users Group http://cleveland.lug.net
Senior Systems Consultant, Altus Technologies Corporation
address@hidden
440-746-9000 x309



reply via email to

[Prev in Thread] Current Thread [Next in Thread]