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

chris packham chris.packham at alliedtelesis.co.nz
Tue Jan 27 00:23:17 CET 2009


OK I've successfully compiled and run without ssl with the 3.0.1 tarball and the relevant patches applied.

For anyone trying to compile the tarball I've attached the patches I used but these are just cut and paste straight from the mailing list.
 
>>> "chris packham" <chris.packham at alliedtelesis.co.nz> 01/27/09 11:23 AM >>> 
Hi Bazsi ,

I've got a development environment I can kill libssl on.

I'll try to get up to date with the patches you've already sent.
 
>>> Chris Fabri <fabric at northwestern.edu> 01/27/09 8:53 AM >>> 
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
______________________________________________________________________________
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


______________________________________________________________________________
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


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: syslog-ng_3.0.1_010_ssl-compile-fix-bazsi.patch
Url: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20090127/767fb6c6/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: syslog-ng_3.0.1_020_ssl-compile-fix-joe.patch
Url: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20090127/767fb6c6/attachment-0001.txt 


More information about the syslog-ng mailing list