[syslog-ng] SSL compile errors even when configured without ssl support

Chris Fabri fabric at northwestern.edu
Mon Jan 26 20:53:42 CET 2009


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

chris


More information about the syslog-ng mailing list