Skip site navigation (1)Skip section navigation (2)
Date:      26 Jun 2002 14:50:34 -0700
From:      Sean McNeil <sean@mcneil.com>
To:        gnome@FreeBSD.org
Subject:   gdm2 compile failure
Message-ID:  <1025128234.96394.4.camel@blue.mcneil.com>

next in thread | raw e-mail | index | archive | help
I am not sure how to fix this, but I'm getting a failure trying to build
this port now.  I just upgraded to 4.6-STABLE and this is what I get:

In file included from /usr/include/sys/time.h:40,
                 from /usr/include/signal.h:45,
                 from gdm.c:21:
/usr/include/sys/types.h:82: warning: useless keyword or type name in
empty declaration
/usr/include/sys/types.h:82: warning: empty declaration
In file included from gdm.c:26:
/usr/include/sys/socket.h:54: redefinition of `size_t'
/usr/include/stddef.h:53: `size_t' previously declared here
gmake[2]: *** [gdm.o] Error 1
gmake[2]: Leaving directory
`/usr/ports/x11/gdm2/work/gdm-2.4.0.0/daemon'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/x11/gdm2/work/gdm-2.4.0.0'
gmake: *** [all-recursive-am] Error 2
*** Error code 2

Stop in /usr/ports/x11/gdm2.

This is because of the following configure failure:

configure:8525: checking for socklen_t
configure:8546: cc -c -O -pipe -march=k6 -I/usr/local/include
-I/usr/X11R6/include conftest.c >&5
configure: In function `main':
configure:8569: `socklen_t' undeclared (first use in this function)
configure:8569: (Each undeclared identifier is reported only once
configure:8569: for each function it appears in.)
configure:8569: syntax error before `)'
configure:8549: $? = 1
configure: failed program was:
#line 8531 "configure"
#include "confdefs.h"
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
int
main ()
{
if ((socklen_t *) 0)
  return 0;
if (sizeof (socklen_t))
  return 0;
  ;
  return 0;
}
configure:8565: result: no

It should be getting the sys/socket.h include file in order to test this
in 4.6.  I don't know if this is a change in FreeBSD or what.

Cheers,
Sean



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1025128234.96394.4.camel>