[syslog-ng] Antwort: Re: Antwort: Re: syslog-ng-2.0.5 on HP-UX 11.11
Balazs Scheidler
bazsi at balabit.hu
Fri Aug 3 09:40:41 CEST 2007
On Thu, 2007-08-02 at 18:42 +0200, Uwe Martin wrote:
> The compiler error is solve. I get now the following error :
> # make
> No suffix list.
> make all-recursive
> No suffix list.
> Making all in src
> gcc -U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED -D_HPUX_SOURCE -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:
> strtoll (first referenced in libsyslog-ng.a(affile.o)) (code)
> collect2: ld returned 1 exit status
> *** Error exit code 1
--- a/src/affile.c
+++ b/src/affile.c
@@ -166,7 +166,7 @@ affile_sd_init(LogPipe *s, GlobalConfig *cfg, PersistentConfig *persist)
str = persist_config_fetch(persist, affile_sd_format_persist_name(self));
if (str)
{
- cur_pos = strtoll(str, NULL, 10);
+ cur_pos = g_ascii_strtoll(str, NULL, 10);
log_reader_set_pos((LogReader *) self->reader, cur_pos);
g_free(str);
}
--- a/src/cfg-lex.l
+++ b/src/cfg-lex.l
@@ -226,9 +226,9 @@ word [^ \#'"\(\)\{\}\\;\n\t,|\.]
\n { linenum++; }
{white}+ ;
\.\. { return DOTDOT; }
-0x{digit}+ { yylval.num = strtoll(yytext, NULL, 16); return NUMBER; }
-0{digit}+ { yylval.num = strtoll(yytext, NULL, 8); return NUMBER; }
-(-|\+)?{digit}+ { yylval.num = strtoll(yytext, NULL, 10); return NUMBER; }
+0x{digit}+ { yylval.num = g_ascii_strtoll(yytext, NULL, 16); return NUMBER; }
+0{digit}+ { yylval.num = g_ascii_strtoll(yytext, NULL, 8); return NUMBER; }
+(-|\+)?{digit}+ { yylval.num = g_ascii_strtoll(yytext, NULL, 10); return NUMBER; }
({word}+(\.)?)*{word}+ { return check_reserved_words(yytext); }
\( { return '('; }
\) { return ')'; }
After this, I get a linking error, but that might be a local issue, I'm
still trying to solve.
--
Bazsi
More information about the syslog-ng
mailing list