Dear friends, Anyone success to compile syslog-ng-1.5.18 on Solaris 8. I've try to search from mailing list, I've add stdio.h to cfg-grammar.c already (otherwise, error in make time) But after I passed that error. I still faced with the below error. Please suggest me to deal with the below error messages. Thanks in advance Pat. [..snipped..] D_GNU_SOURCE -c getopt.c gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/syslog-ng-1.5.18/src -I. -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c getopt1.c gcc -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -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 afunix.o afinet.o afinter.o afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o syslog-names.o getopt.o getopt1.o -lpthread -ldoor -ll /usr/local/lib/libol.a -lsocket -lnsl -lxnet Undefined first referenced symbol in file request_init afinet.o sock_host afinet.o hosts_access afinet.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 /usr/local/src/syslog-ng-1.5.18/src *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /usr/local/src/syslog-ng-1.5.18/src *** Error code 1 make: Fatal error: Command failed for target `all-recursive-am' Current working directory /usr/local/src/syslog-ng-1.5.18/src *** Error code 1 make: Fatal error: Command failed for target `all-recursive
On Thu, Jul 18, 2002 at 04:43:24PM +0700, Sangbutsarakum, Patai wrote:
Dear friends,
Anyone success to compile syslog-ng-1.5.18 on Solaris 8. I've try to search from mailing list, I've add stdio.h to cfg-grammar.c already (otherwise, error in make time) But after I passed that error. I still faced with the below error. Please suggest me to deal with the below error messages.
Thanks in advance Pat.
[..snipped..]
D_GNU_SOURCE -c getopt.c gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/syslog-ng-1.5.18/src -I. -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c getopt1.c gcc -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -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 afunix.o afinet.o afinter.o afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o syslog-names.o getopt.o getopt1.o -lpthread -ldoor -ll /usr/local/lib/libol.a -lsocket -lnsl -lxnet Undefined first referenced symbol in file request_init afinet.o sock_host afinet.o hosts_access afinet.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 /usr/local/src/syslog-ng-1.5.18/src *** Error code 1 make: Fatal error: Command failed for target `all-recursive' Current working directory /usr/local/src/syslog-ng-1.5.18/src *** Error code 1 make: Fatal error: Command failed for target `all-recursive-am' Current working directory /usr/local/src/syslog-ng-1.5.18/src *** Error code 1 make: Fatal error: Command failed for target `all-recursive
you enabled tcp wrapper support, and the configure script didn't detect -lwrap, you might want to change the generated Makefile, and add -lwrap to LDFLAGS -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
you enabled tcp wrapper support, and the configure script didn't
detect
-lwrap, you might want to change the generated Makefile, and add -lwrap to LDFLAGS
Should not configure disable tcp_wrappers if -lwrap was not found? Or, better, if needed functions are missing? -andrej
On Fri, Jul 19, 2002 at 12:50:55PM +0400, Borsenkow Andrej wrote:
you enabled tcp wrapper support, and the configure script didn't
detect
-lwrap, you might want to change the generated Makefile, and add -lwrap to LDFLAGS
Should not configure disable tcp_wrappers if -lwrap was not found? Or, better, if needed functions are missing?
it should, however as I don't use tcp wrappers at all, configure checks for the tcp wrapper has some problems. I've just commited a change, which should help some: Index: configure.in =================================================================== RCS file: /var/cvs/syslog-ng/syslog-ng/configure.in,v retrieving revision 1.51 retrieving revision 1.52 diff -u -r1.51 -r1.52 --- configure.in 18 Jul 2002 13:18:01 -0000 1.51 +++ configure.in 19 Jul 2002 09:15:33 -0000 1.52 @@ -196,10 +196,13 @@ AC_MSG_CHECKING(whether to enable TCP wrapper support) if test "x$enable_tcp_wrapper" = "xyes"; then - if test "x$ac_cv_header_tcpd_h" = "xyes"; then + if test "x$ac_cv_header_tcpd_h" = "xyes" -a "x$blb_cv_c_lwrap" = "xyes"; then AC_DEFINE(ENABLE_TCP_WRAPPER) enable_tcp_wrapper=yes AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + enable_tcp_wrapper=no fi else AC_MSG_RESULT(no) -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
At 16:43 18.07.2002 +0700, you wrote:
Dear friends,
Anyone success to compile syslog-ng-1.5.18 on Solaris 8.
Taken from http://www.tuxedo.org/~esr/faqs/smart-questions.html#ASKING : Send plain text mail, not HTML. (It's not hard to turn off HTML.) --- Regarding cfg-grammar.y: gcc -DHAVE_CONFIG_H -I. -I/usr/share/src/syslog-ng-1.5.18/src -I. -g -O2 -Wall -I/usr/src/libol-0.3.3/src -D_GNU_SOURCE -c cfg-grammar.c cfg-grammar.y: In function `yyerror': cfg-grammar.y:703: warning: implicit declaration of function `fprintf' cfg-grammar.y:703: `stderr' undeclared (first use in this function) cfg-grammar.y:703: (Each undeclared identifier is reported only once cfg-grammar.y:703: for each function it appears in.) make[3]: *** [cfg-grammar.o] Error 1 Bazsi, he's right, syslog-ng 1.5.18 won't compile on Sol8 without adding a '#include "stdio.h"'. Maybe you should add this to the sources if it doesn't break anything else. After fixing that syslog-ng compiles/links/runs fine, your problem has been explained by Bazsi already. mfg/best regards -- Inode Telekommunikationsdienstleistungs GmbH - http://www.inode.at/ Michael Renner - Junior System Engineer m.renner@inode.at, Tel.: +43 59999 0 Fax.: +43 59999 6599 Buero Wien - Millennium Tower Handelskai 94-96/43 - A-1200 Wien Buero Graz - Schmiedlstrasse 1 - A-8042 Graz Buero Sbg - Schillerstrasse 30 - A-5020 Salzburg Buero Ibk - Eduard Bodem Gasse 5-7 - A-6020 Innsbruck
participants (4)
-
Balazs Scheidler
-
Borsenkow Andrej
-
Michael Renner
-
Sangbutsarakum, Patai