[syslog-ng] compile problem

Rob Cermak cermak@ahab.Rutgers.EDU
Wed, 9 Jun 1999 16:34:55 -0400 (EDT)


I'd love to trash my current syslogd on Solaris.  I'd like to see
this work and transmit logging back to a Linux box to collate all
the messages.  

Let me know if you need anything else...willing to take
patches to test.

I'll see what changed between version .22 and .23...

uname -a
SunOS magellan1 5.6 Generic_105181-03 sun4m sparc SUNW,SPARCstation-20

System: Solaris 2.6 /
# gcc -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)

syslog-ng-1.1.23 / libol-0.1.19

I compiled the prior release fine, but it core dumped
once it was started and I forced a message to the syslog.

Compiling the new version I hit this:

gcc -DHAVE_CONFIG_H -I. -I/h0/cermak/src/syslog-ng-1.1.23/src -I.     -O2
-Wall -I/usr/local/include/libol -c center.c
center.c:72: warning: missing braces around initializer for
`loglock.__pthread_mutex_flags'
center.c: In function `do_distribute_log':
center.c:101: warning: implicit declaration of function
`pthread_lock_mutex'
center.c:105: warning: implicit declaration of function
`pthread_unlock_mutex'

gcc  -O2 -Wall -I/usr/local/include/libol  -o syslog-ng  main.o sources.o
center.o filters.o destinations.o  log.o cfgfile.o cfg-grammar.o cfg-lex.o
affile.o afsocket.o afinter.o  afuser.o afdoor.o utils.o syslog-names.o
getopt.c getopt1.c  -lpthread -ldoor  -ll /usr/local/lib/libol.a -lsocket
-lnsl -lxnet
Undefined                       first referenced
 symbol                             in file
pthread_lock_mutex                  center.o
pthread_unlock_mutex                center.o
ld: fatal: Symbol referencing errors. No output written to syslog-ng
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `syslog-ng'
Current working directory /h0/cermak/src/syslog-ng-1.1.23/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'