configuration issues

Kelly G Le Kelly.Le at Colorado.EDU
Sun Jan 10 17:49:10 PST 1999


Our current installation of Bro on Solaris 2.6 only logs to the bro.log
file.  Other log files such as ftp.log are created but not written to 
even when events should have been logged.  While troubleshooting this, we  
reviewed the attached config.log file and discovered a couple of errors
that could be the cause of our problem:  

- Line 43, there are declaration conflicts for openlog, syslog and
closelog
- Line 65-70, contains several type conflicts
- Line 87, contains a declaration conflict for gettimeofday
- Line 101, there is an undefined symbol gethostbyname
- Line 135, there is an undefined symbol socket
- Line 169, the str library is not found -- where can we download this
library?

These errors all seem to be related to the conftest.c file.  Has anyone
else had these problems?  How were you able to resolve them?

Thanks.

Kelly
-------------- next part --------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:572: checking host system type
configure:593: checking target system type
configure:611: checking build system type
configure:719: checking for gcc
configure:796: checking whether the C compiler (gcc  ) works
configure:810: gcc -o conftest    conftest.c  1>&5
configure:830: checking whether the C compiler (gcc  ) is a cross-compiler
configure:835: checking whether we are using GNU C
configure:844: gcc -E conftest.c
configure:859: checking whether gcc accepts -g
configure:1017: checking for bison
configure:1051: checking for c++
configure:1082: checking whether the C++ compiler (c++  ) works
configure:1096: c++ -o conftest    conftest.C  1>&5
configure:1122: checking whether the C++ compiler (c++  ) is a cross-compiler
configure:1127: checking whether we are using GNU C++
configure:1136: c++ -E conftest.C
configure:1151: checking whether c++ accepts -g
configure:1181: checking for flex
configure:1214: checking for yywrap in -lfl
configure:1233: gcc -o conftest -g -O2   conftest.c -lfl   1>&5
configure:1266: checking for a BSD compatible install
configure:1316: checking whether make sets ${MAKE}
configure:1347: checking for gzip
configure:1447: checking how to run the C preprocessor
configure:1468: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1508: checking for ANSI C header files
configure:1521: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1588: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1613: checking return type of signal handlers
configure:1635: gcc -c -g -O2  conftest.c 1>&5
configure:1677: checking for sigset
configure:1705: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1789: checking whether time.h and sys/time.h may both be included
configure:1803: gcc -c -g -O2  conftest.c 1>&5
configure:1828: checking for memory.h
configure:1838: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1873: checking if syslog returns int
configure:1892: c++ -c -g -O2  conftest.C 1>&5
configure:1883: declaration of C function `int openlog(const char *, int, int)' conflicts with
/usr/include/syslog.h:23: previous declaration `void openlog(const char *, int, int)' here
configure:1884: declaration of C function `int syslog(int, const char * ...)' conflicts with
/usr/include/syslog.h:24: previous declaration `void syslog(int, const char * ...)' here
configure:1885: declaration of C function `int closelog(...)' conflicts with
/usr/include/syslog.h:25: previous declaration `void closelog()' here
configure: failed program was:
#line 1878 "configure"
#include "confdefs.h"

#	include <stdlib.h>
#	include <syslog.h>
	    extern "C" {
		int openlog(const char* ident, int logopt, int facility);
		int syslog(int priority, const char* message_fmt, ...);
		int closelog();
	    }
int main() {

; return 0; }
configure:1919: checking if we should declare socket and friends
configure:1938: gcc -c -g -O2  conftest.c 1>&5
configure:1929: conflicting types for `connect'
/usr/include/sys/socket.h:335: previous declaration of `connect'
configure:1930: conflicting types for `send'
/usr/include/sys/socket.h:355: previous declaration of `send'
configure:1931: conflicting types for `recvfrom'
/usr/include/sys/socket.h:353: previous declaration of `recvfrom'
configure: failed program was:
#line 1924 "configure"
#include "confdefs.h"

#	include <sys/types.h>
#	include <sys/socket.h>
	extern int socket(int, int, int);
	extern int connect(int, const struct sockaddr *, int);
	extern int send(int, const void *, int, int);
	extern int recvfrom(int, void *, int, int, struct sockaddr *, int *);
	    
int main() {

; return 0; }
configure:1965: checking if we should declare gettimeofday
configure:1980: c++ -c -g -O2  conftest.C 1>&5
configure:1973: declaration of C function `int gettimeofday(struct timeval *, struct timezone *)' conflicts with
/usr/include/sys/time.h:389: previous declaration `int gettimeofday(struct timeval *, void *)' here
configure: failed program was:
#line 1970 "configure"
#include "confdefs.h"

#	include <sys/time.h>
	extern "C" int gettimeofday(struct timeval* tp, struct timezone* tzp);
	    
int main() {

; return 0; }
configure:2004: checking for gethostbyname
configure:2035: c++ -o conftest -g -O2   conftest.C  1>&5
Undefined			first referenced
 symbol  			    in file
gethostbyname                       /var/tmp/cc_trDD_1.o
ld: fatal: Symbol referencing errors. No output written to conftest
configure: failed program was:
#line 2009 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostbyname(); below.  */
#include <assert.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 gethostbyname();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
gethostbyname();
#endif

; return 0; }
configure:2054: checking for gethostbyname in -lnsl
configure:2076: c++ -o conftest -g -O2   conftest.C -lnsl   1>&5
configure:2253: checking for socket
configure:2284: c++ -o conftest -g -O2   conftest.C -lnsl  1>&5
Undefined			first referenced
 symbol  			    in file
socket                              /var/tmp/ccYuD6T_1.o
ld: fatal: Symbol referencing errors. No output written to conftest
configure: failed program was:
#line 2258 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char socket(); below.  */
#include <assert.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() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_socket) || defined (__stub___socket)
choke me
#else
socket();
#endif

; return 0; }
configure:2302: checking for socket in -lsocket
configure:2324: c++ -o conftest -g -O2   conftest.C -lsocket  -lnsl  1>&5
configure:2398: checking for putmsg in -lstr
configure:2420: c++ -o conftest -g -O2   conftest.C -lstr  -lsocket -lnsl  1>&5
ld: fatal: library -lstr: not found
ld: fatal: File processing errors. No output written to conftest
configure: failed program was:
#line 2406 "configure"
#include "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 putmsg();

int main() {
putmsg()
; return 0; }
configure:2516: checking for local pcap library
configure:2651: checking for 8-bit clean memcmp
configure:2672: c++ -o conftest -g -O2   conftest.C ../libpcap-0.4/libpcap.a -lsocket -lnsl  1>&5
configure:2690: checking for strftime
configure:2721: c++ -o conftest -g -O2   conftest.C ../libpcap-0.4/libpcap.a -lsocket -lnsl  1>&5
configure:2794: checking for strerror
configure:2825: c++ -o conftest -g -O2   conftest.C ../libpcap-0.4/libpcap.a -lsocket -lnsl  1>&5


More information about the Bro mailing list