Compile error on Ubuntu 8.04
Hello everyone, I'm attempting to compile and install the latest syslog-ng 3.0 from source (downloaded from the git repository). I believe I have installed all the dependencies (configure does not complain). However, I am receiving the following error when running make. /bin/bash ../ylwrap cfg-lex.l .c cfg-lex.c -- /bin/bash /home/nhausrath/packages/syslog-ng.git/missing --run flex make[2]: *** [cfg-lex.c] Error 1 make[2]: Leaving directory `/home/nhausrath/packages/syslog-ng.git/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/nhausrath/packages/syslog-ng.git' make: *** [all] Error 2 It seems the error is in cfg-lex.l, but I can't tell what exactly is causing the problem. Of course, it may be something completely different that I am not familiar with. Thanks for any help! -Nate
On Thu, 2009-05-07 at 10:04 -0400, Nate Hausrath wrote:
Hello everyone,
I'm attempting to compile and install the latest syslog-ng 3.0 from source (downloaded from the git repository). I believe I have installed all the dependencies (configure does not complain). However, I am receiving the following error when running make.
/bin/bash ../ylwrap cfg-lex.l .c cfg-lex.c -- /bin/bash /home/nhausrath/packages/syslog-ng.git/missing --run flex make[2]: *** [cfg-lex.c] Error 1 make[2]: Leaving directory `/home/nhausrath/packages/syslog-ng.git/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/nhausrath/packages/syslog-ng.git' make: *** [all] Error 2
It seems the error is in cfg-lex.l, but I can't tell what exactly is causing the problem. Of course, it may be something completely different that I am not familiar with.
you don't have flex installed. -- Bazsi
So it turns out that I did have flex installed, but it still gave me the same error. So I removed the git directory and started a new one. When I ran autogen.sh, I noticed this time that it said: tests/functional/Makefile.am:5: blank line following trailing backslash I opened that file and removed the backslash at the end of line 5 and ran it again. It didn't give me any errors, so I proceeded with ./configure and make. Everything worked this time! I'm not sure if that Makefile had anything to do with it or not. However, I wanted to post this in case someone else ran across the same problem. - Nate On Fri, May 8, 2009 at 9:17 AM, Balazs Scheidler <bazsi@balabit.hu> wrote:
On Thu, 2009-05-07 at 10:04 -0400, Nate Hausrath wrote:
Hello everyone,
I'm attempting to compile and install the latest syslog-ng 3.0 from source (downloaded from the git repository). I believe I have installed all the dependencies (configure does not complain). However, I am receiving the following error when running make.
/bin/bash ../ylwrap cfg-lex.l .c cfg-lex.c -- /bin/bash /home/nhausrath/packages/syslog-ng.git/missing --run flex make[2]: *** [cfg-lex.c] Error 1 make[2]: Leaving directory `/home/nhausrath/packages/syslog-ng.git/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/nhausrath/packages/syslog-ng.git' make: *** [all] Error 2
It seems the error is in cfg-lex.l, but I can't tell what exactly is causing the problem. Of course, it may be something completely different that I am not familiar with.
you don't have flex installed.
-- Bazsi
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
On Mon, 2009-05-11 at 11:27 -0400, Nate Hausrath wrote:
So it turns out that I did have flex installed, but it still gave me the same error. So I removed the git directory and started a new one. When I ran autogen.sh, I noticed this time that it said:
tests/functional/Makefile.am:5: blank line following trailing backslash
I opened that file and removed the backslash at the end of line 5 and ran it again. It didn't give me any errors, so I proceeded with ./configure and make. Everything worked this time!
I'm not sure if that Makefile had anything to do with it or not. However, I wanted to post this in case someone else ran across the same problem.
I've fixed this problem in the Makefile.am earlier. I guess that you needed to rerun configure and that the solution to the problem. -- Bazsi
participants (3)
-
Balazs Scheidler
-
Nate Hausrath
-
okapareeya@hotmail.com