[syslog-ng] Can't compile 2.0.8 on Solaris 10
Jerry Litteer
gerald.litteer at inl.gov
Thu Mar 13 15:12:34 CET 2008
Note the -L/opt/sfw/lib on the command line. If flex is indeed
installed in /usr/sfw/bin, then the libraries are installed in
/_*usr*_/sfw/lib. You need to check the configure and fix the
library... OR add /usr/sfw/lib to your LD_LIBRARY_PATH environment variable.
Ralf Weber wrote:
> Moin!
>
> On Mar 12, 2008, at 14:17 , Balazs Scheidler wrote:
>
>> Hmm. this seems to be ok, although the yylex() symbol is listed as an
>> external reference in your libfl.so file.
>>
>> If you have flex installed, can you please remove the cfg-lex.c file
>> as
>> supplied in the tarball of syslog-ng, and let the makefile
>> regenerate it
>> from the lex file (cfg-lex.l) during compilation?
>>
> Hmm that didn't help. I do have flex installed:
> rw at bh2:~/source/syslog-ng-2.0.8$ which flex
> /usr/sfw/bin/flex
>
> and the build also regenerated the file without problems:
> flex `test -f cfg-lex.l || echo './'`cfg-lex.l
> sed '/^#/ s|lex.yy\.c|cfg-lex.c|' lex.yy.c >cfg-lex.c
> rm -f lex.yy.c
> if /usr/sfw/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/
> glib-2.0 -I/usr/lib/glib-2.0/include -I/opt/sfw/include/eventlog -
> D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wall -
> MT cfg-lex.o -MD -MP -MF ".deps/cfg-lex.Tpo" \
> -c -o cfg-lex.o `test -f 'cfg-lex.c' || echo './'`cfg-lex.c; \
> then mv -f ".deps/cfg-lex.Tpo" ".deps/cfg-lex.Po"; \
> else rm -f ".deps/cfg-lex.Tpo"; exit 1; \
> fi
>
> but it still failed with the same error:
>
> /usr/sfw/bin/gcc -g -O2 -Wall -o loggen loggen.o -lpthread -
> lresolv -lnsl -lrt -lsocket -ldoor -lfl -lglib-2.0 -L/opt/sfw/lib -
> levtlog
> Undefined first referenced
> symbol in file
> yylex /usr/sfw/lib/gcc/sparc-sun-
> solaris2.10/3.4.3/../../../libfl.so
> ld: fatal: Symbol referencing errors. No output written to loggen
>
> Any more ideas?
>
> So long
> -Ralf
>
>
>
> _______________________________________________
> syslog-ng maillist - syslog-ng at lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
>
>
--
------------------------------------------------------------------
Jerry Litteer
Cyber Security Office e-mail: gll at inel.gov or
Idaho National Laboratory (INL) gerald.litteer at inl.gov
PO 1625 M.S. 2604 Phone: (208) 526-9117
Idaho Falls, Id. 83415-2604 FAX: (208) 526-5700
More information about the syslog-ng
mailing list