Re: [syslog-ng] Compiling on HP/UX 11.11
I will try and remove it and reinstall. Are there any other workarounds if I can't make flex work ?
Thanks
Well I tried to compile flex from scratch, but that was a disaster. So I removed Flex and reinstalled and the configure completed without error. Then I tried make and got this gcc -g -O2 -Wall -g -o syslog-ng main.o libsyslog-ng.a -lnsl -lrt -lfl -L/usr/local/lib -lglib-2.0 -lintl -liconv -L/usr/local/lib -levtlog -lnet /usr/ccs/bin/ld: Unsatisfied symbols: linenum (first referenced in libsyslog-ng.a(cfg-grammar.o)) (data) lookup_parse_flag (first referenced in libsyslog-ng.a(cfg-grammar.o)) (code) strtoll (first referenced in libsyslog-ng.a(affile.o)) (code) yylex (first referenced in libsyslog-ng.a(cfg-grammar.o)) (code) lex_init (first referenced in libsyslog-ng.a(cfg.o)) (code) collect2: ld returned 1 exit status Any ideas of what to try next ?? THanks ____________________________________________________________________________________ Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV. http://tv.yahoo.com/
On Thu, 2007-09-27 at 08:46 -0700, C Wells wrote:
I will try and remove it and reinstall. Are there any other workarounds if I can't make flex work ?
Thanks
Well I tried to compile flex from scratch, but that was a disaster. So I removed Flex and reinstalled and the configure completed without error. Then I tried make and got this
gcc -g -O2 -Wall -g -o syslog-ng main.o libsyslog-ng.a -lnsl -lrt -lfl -L/usr/local/lib -lglib-2.0 -lintl -liconv -L/usr/local/lib -levtlog -lnet /usr/ccs/bin/ld: Unsatisfied symbols: linenum (first referenced in libsyslog-ng.a(cfg-grammar.o)) (data) lookup_parse_flag (first referenced in libsyslog-ng.a(cfg-grammar.o)) (code) strtoll (first referenced in libsyslog-ng.a(affile.o)) (code) yylex (first referenced in libsyslog-ng.a(cfg-grammar.o)) (code) lex_init (first referenced in libsyslog-ng.a(cfg.o)) (code) collect2: ld returned 1 exit status
Your generated cfg-lex.c file is probably empty again. Am I Right? I wrote a message about the use of the generated files from the release tarball, did you try that? -- Bazsi
So I pulled down the Oct17 version of 2.0.5 and it compiled fine. Produced man pages and a syslog-ng executable in /usr/local/sbin/ I used the syslog-ng.conf file that I had working on another system. I am only interested in receiving UDP syslog and TCP syslog. I configured HPUX syslogd to not listen on udp. When I run syslog-ng it will work if I only specify a tcp listener. If I also specify a udp listener it dies and says this line is in error 'syntax error in 15' line15: udp(ip(0.0.0.0) port(514) max_connections(1000)); NOTHING is running on udp 514. Here is the whole conf file. options { long_hostnames(on); sync(0); stats(43200); dns_cache(yes); use_fqdn(no); keep_hostname(yes); use_dns(yes); log_msg_size(8192); log_fifo_size(2048); }; source udpgw { internal(); udp(ip(0.0.0.0) port(514) max_connections(1000)); }; source tcpgw { internal(); tcp(ip(0.0.0.0) port(1514) max_connections(1000)); }; destination udplocalhost { file("/var/tmp/syslog.udp"); }; destination tcplocalhost { file("/var/tmp/syslog.tcp"); }; log { source(tcpgw); destination(tcplocalhost); source(udpgw); destination(udplocalhost); }; Ideas ? Thanks On 9/28/07, Balazs Scheidler <bazsi@balabit.hu> wrote:
Your generated cfg-lex.c file is probably empty again. Am I Right?
I wrote a message about the use of the generated files from the release tarball, did you try that?
You are not permitted to specify a max_connections for a udp listener because udp is connectionless. Evan. Blurry wrote:
So I pulled down the Oct17 version of 2.0.5 and it compiled fine. Produced man pages and a syslog-ng executable in /usr/local/sbin/
I used the syslog-ng.conf file that I had working on another system. I am only interested in receiving UDP syslog and TCP syslog. I configured HPUX syslogd to not listen on udp.
When I run syslog-ng it will work if I only specify a tcp listener. If I also specify a udp listener it dies and says this line is in error
'syntax error in 15'
line15: udp(ip(0.0.0.0) port(514) max_connections(1000));
wow so dumb. This malconfigured config file works fine on Linux. Receives UDP traffic no problem. No matter, I'd rather have a sensible config file. It does work now. Thanks to you Evan and thanks to Mr Sheidler. On 10/17/07, Evan Rempel <erempel@uvic.ca> wrote:
You are not permitted to specify a max_connections for a udp listener because udp is connectionless.
Evan.
On Wed, 2007-10-17 at 15:09 -0400, Blurry wrote:
wow so dumb. This malconfigured config file works fine on Linux. Receives UDP traffic no problem. No matter, I'd rather have a sensible config file. It does work now.
It's great to hear. -- Bazsi
participants (4)
-
Balazs Scheidler
-
Blurry
-
C Wells
-
Evan Rempel