[syslog-ng] SSL compile errors even when configured without ssl support
Balazs Scheidler
bazsi at balabit.hu
Tue Jan 27 11:32:59 CET 2009
On Mon, 2009-01-26 at 13:53 -0600, Chris Fabri wrote:
> On Mon, Jan 26, 2009 at 3:35 AM, Balazs Scheidler <bazsi at balabit.hu> wrote:
>
> >
> > Sorry, that it takes this much effort, but I don't want to mess up my
> > development computer while removing the libssl headers. New errors, new
> > patch:
> >
> > diff --git a/src/tlstransport.c b/src/tlstransport.c
> > index 608a427..2f07625 100644
> > --- a/src/tlstransport.c
> > +++ b/src/tlstransport.c
> > @@ -1,5 +1,7 @@
> > #include "tlstransport.h"
> >
> > +#if ENABLE_SSL
> > +
> > #include "messages.h"
> >
> > #include <openssl/ssl.h>
> > @@ -149,4 +151,4 @@ log_transport_tls_free_method(LogTransport *s)
> > log_transport_free_method(s);
> > }
> >
> > -
> > +#endif
> >
> >
> > --
> > Bazsi
> >
>
>
> Here's what I get now:
>
> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-2.0
> -I/usr/local/lib/glib-2.0/include -I/usr/local/include/eventlog
> -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wall
> -MT tlstransport.o -MD -MP -MF ".deps/tlstransport.Tpo" -c -o
> tlstransport.o tlstransport.c; \
> then mv -f ".deps/tlstransport.Tpo" ".deps/tlstransport.Po"; else rm
> -f ".deps/tlstransport.Tpo"; exit 1; fi
> In file included from tlstransport.c:1:
> tlstransport.h:12: syntax error before '*' token
> make[2]: *** [tlstransport.o] Error 1
> make[2]: Leaving directory `/home/fabric/syslog-ng-3.0.1/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/fabric/syslog-ng-3.0.1'
> make: *** [all] Error 2
And a new patch again:
http://git.balabit.hu/?p=bazsi/syslog-ng-3.0.git;a=commit;h=0a7e892b1a045f9dadeb6650f94639b4f8f22cbe
This time, I've compiled with --disable-ssl and tried to check if it
uses headers from openssl. Hope this patch solves this issue now.
--
Bazsi
More information about the syslog-ng
mailing list