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'
Rob Cermak wrote:
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'
Is this perhaps a typo? At least on Solaris, these function names are called (respectively): pthread_mutex_lock pthread_mutex_unlock -Chris -- Chris Mattingly | chris.mattingly@interpath.net Systems Engineer | (919) 253-6365 [tel] Interpath Communications, Inc. | (919) 253-7780 [fax]
Yup, looks like a typo in class.c --- Tried to fix it but make_class doesn't seem to operate correctly on this system...
head utils/make_class #! \ -e main -s !#
;; Reads a C source file on stdin. Comments of the form ;; ;; /* ;; CLASS: ;; expression # make make_class <center.c >center.c.x sh: make_class: not found make_class is definitely in my path... Clues? Rob
On Wed, Jun 09, 1999 at 05:04:04PM -0400, Rob Cermak wrote:
Yup, looks like a typo in class.c --- Tried to fix it but make_class doesn't seem to operate correctly on this system...
scsh (scheme shell) was not found on your system. You either install scsh, or if you have not changed class declarations simple touch center.c.x, so that make does not try to remake them. -- Bazsi PGP key: http://www.balabit.hu/pgpkey.txt, or finger bazsi@balabit.hu
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'
ooopss.. It is really a typo... The strange thing is that I tried to compile it, and it worked without problems. I try it again :) -- Bazsi PGP key: http://www.balabit.hu/pgpkey.txt, or finger bazsi@balabit.hu
participants (3)
-
Balazs Scheidler
-
Chris A. Mattingly
-
Rob Cermak