Hrvoje Niksic <hniksic(a)srce.hr> wrote:
Andrew J Cosgriff <ajc(a)bing.wattle.id.au> writes:
> >>>>> "ajc" == Andrew J Cosgriff
<ajc(a)bing.wattle.id.au> writes:
>
> ajc> Not only can I build without --gung-ho, but
> ajc> open-network-stream-internal has reappeared, letting Gnus work again.
>
> ...of course, I may have spoken too soon on the second point.
Have you tried inserting debugging printf's at various places in
temacs, so that we see when the function disappears exactly? The
debugging printf should look like this (untested):
printf ("open-network-stream-internal %s\n",
!NILP (Ffboundp (intern ("open-network-stream-internal")))
? "ok" : "MISSING!");
I was about to do this when I realised that I'd already done an nm on the two
binaries to see if open-network-stream-internal (or the C function for it, at
least) was defined at all, and it wasn't in the cc-generated one.
checking process.c it looks like it needs HAVE_SOCKETS defined.
...guess what ?
config.log sez :
configure:9510: checking for arpa/inet.h
configure:9518: cc -E -I/usr/local/include -I/net/users/ajc/test/giflib/include
-I/net/users/ajc/test/nas/usr/include -I/net/local/include -D_BSD -I/usr/dt/
include -I/usr/include conftest.c >/dev/null 2>conftest.out
cc: Warning: /usr/local/include/sys/cdefs.h, line 93: The redefinition of the macro
"inline" conflicts with a current definition because the replacement lists
differ. The redefinition is now in effect.
#define inline
--------------^
configure: failed program was:
#line 9513 "configure"
#include "confdefs.h"
#include <arpa/inet.h>
the relevant part of sys/cdefs.h (which is part of the Bezerkely DB library)
sez :
/*
* In non-ANSI C environments, new programs will want ANSI-only C keywords
* deleted from the program and old programs will want them left alone.
* When using a compiler other than gcc, programs using the ANSI C keywords
* const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
* When using "gcc -traditional", we assume that this is the intent; if
* __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
*/
#ifndef NO_ANSI_KEYWORDS
#define const /* delete ANSI C keywords */
#define inline
#define signed
#define volatile
#endif
...so adding a -DNO_ANSI_KEYWORDS should make it all happy (perhaps there's a
better fix ?), but...
configure:9444: checking for socket
configure:9470: cc -o conftest -O -g3 -DNO_ANSI_KEYWORDS -I/usr/local/include
-I/net/users/ajc/test/giflib/include -I/net/users/ajc/test/nas/usr/include
-I/net/local/include -D_BSD -I/usr/dt/include -I/usr/include -L/usr/local/lib
-L/net/users/ajc/test/giflib/lib -L/net/users/ajc/test/nas/usr/lib -L/net/local/lib
-L/usr/ccs/lib -L/usr/dt/lib -L/usr/lib conftest.c -call_shared -ldnet_stub -lXm
-lcompface -lpng -ljpeg -lz -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE -lldap -llber -lm
-lbsd 1>&5
configure:9485: checking for netinet/in.h
configure:9493: cc -E -I/usr/local/include -I/net/users/ajc/test/giflib/include
-I/net/users/ajc/test/nas/usr/include -I/net/local/include -D_BSD -I/usr/dt/include
-I/usr/include conftest.c >/dev/null 2>conftest.out
configure:9510: checking for arpa/inet.h
configure:9518: cc -E -I/usr/local/include -I/net/users/ajc/test/giflib/include
-I/net/users/ajc/test/nas/usr/include -I/net/local/include -D_BSD -I/usr/dt/include
-I/usr/include conftest.c >/dev/null 2>conftest.out
cc: Warning: /usr/local/include/sys/cdefs.h, line 93: The redefinition of the macro
"inline" conflicts with a current definition because the replacement lists
differ. The redefinition is now in effect.
#define inline
--------------^
configure: failed program was:
#line 9513 "configure"
#include "confdefs.h"
#include <arpa/inet.h>
configure:9617: checking for msgget
configure:9643: cc -o conftest -O -g3 -DNO_ANSI_KEYWORDS -I/usr/local/include
-I/net/users/ajc/test/giflib/include -I/net/users/ajc/test/nas/usr/include
-I/net/local/include -D_BSD -I/usr/dt/include -I/usr/include -L/usr/local/lib
-L/net/users/ajc/test/giflib/lib -L/net/users/ajc/test/nas/usr/lib -L/net/local/lib
-L/usr/ccs/lib -L/usr/dt/lib -L/usr/lib conftest.c -call_shared -ldnet_stub -lXm
-lcompface -lpng -ljpeg -lz -lXpm -lXmu -lXt -lXext -lX11 -lSM -lICE -lldap -llber -lm
-lbsd 1>&5
...but for that particular test, configure doesn't use the
-DNO_ANSI_KEYWORDS et al. that I'd put as --cflags in configure :-(
nearly there !
--
Andrew J Cosgriff <ajc(a)bing.wattle.id.au> exterminate all rational thought !
obsession tango alone technology eclipse