[Mono-list] build problem with Mono 0.24

Jim Kerr jbkerr@sonic.net
08 May 2003 08:11:51 +0800


Lupus,

  Here is the section of config.log that checks for libsocket. Hope this
helps!

Thanks,
  Jim
-----------
configure:9686: checking for socket in -lsocket
configure:9717: gcc -o conftest -g -Wall -Wunused -Wmissing-prototypes
-Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes
-Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align
-Wwrite-strings  -DGC_LINUX_THREADS -DMONO_USE_EXC_TABLES -D_GNU_SOURCE
-D_REENTRANT -fexceptions  conftest.c -lsocket   -lgc -ldl >&5
configure:9732: warning: function declaration isn't a prototype
configure:9735: warning: function declaration isn't a prototype
/usr/bin/ld: cannot find -lsocket
collect2: ld returned 1 exit status
configure:9720: $? = 1
configure: failed program was:
| #line 9693 "configure"
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mono"
| #define VERSION "0.24"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_SEMAPHORE_H 1
| #define HAVE_SYS_UN_H 1
| #define HAVE_ELF_H 1
| #define HAVE_WCHAR_H 1
| #define SIZEOF_VOID_P 4
| #define HAVE_GC_H 1
| #define HAVE_GC_GC_H 1
| #define HAVE_BOEHM_GC 1
| #define HAVE_GC_GCJ_MALLOC 1
| /* end confdefs.h.  */
|
| /* Override any gcc2 internal prototype to avoid an error.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
|    builtin and then its argument prototype would still apply.  */
| char socket ();
| int
| main ()
| {
| socket ();
|   ;
|   return 0;
| }
configure:9738: result: no

On Thu, 2003-05-08 at 17:41, Paolo Molaro wrote:
> On 05/07/03 Jim Kerr wrote:
> >   I can't build with the 0.24 release. When I run configure, it inserts
> > this little complaint into config.h:
> > 
> >    #error configure failed to discover size of unix socket path
> > 
> > An inspection of config.log shows that the problem appears to be a
> > missing library file (libsocket, to be precise).
> 
> Can you post the relevant output in config.log?
> 
> lupus
> 
> -- 
> -----------------------------------------------------------------
> lupus@debian.org                                     debian/rules
> lupus@ximian.com                             Monkeys do it better
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>