Hi,

follow up and maybe easier to understand, here is the patchfiles I needed:
 # cat ../SOURCES/rsyslog-8.35.0-aix.patch
--- ./configure_original        2018-05-15 08:31:30 +0000
+++ ./configure 2018-05-17 09:46:14 +0000
@@ -3109,13 +3109,13 @@
 if test "$unamestr" = "AIX"; then
        export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/lib/pkgconfig"
        LIBS="-lbsd -lsrc"
-       CPPFLAGS="-D_THREAD_SAFE -D_BSD43 -D_AIX"
-       CFLAGS="-D_AIX"
-       LDFLAGS="-qcpluscmt -brtl -bexpall -bE:strippedsymbols.exp "
-       LIBESTR_LIBS="-L/usr/lib/ -lestr"
-       LIBESTR_CFLAGS="-I/usr/include"
-       LIBLOGGING_STDLOG_LIBS="-L/usr/lib/ -llogging-stdlog"
-       LIBLOGGING_STDLOG_CFLAGS="-I/usr/include"
+       CPPFLAGS="-g -D_THREAD_SAFE -qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 
-D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 
-D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include"
+       CFLAGS="-g -qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 
-D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_ALL_SOURCE -DFUNCPROTO=15 
-O -I/opt/freeware/include"
+       LDFLAGS="-qcpluscmt -brtl -bexpall -L/opt/freeware/lib64 
-L/opt/freeware/lib 
-Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib 
-Wl,-bmaxdata:0x80000000" #-bE:strippedsymbols.exp "
+       # LIBESTR_LIBS="-L/usr/lib/ -lestr"
+       # LIBESTR_CFLAGS="-I/usr/include"
+       # LIBLOGGING_STDLOG_LIBS="-L/usr/lib/ -llogging-stdlog"
+       # LIBLOGGING_STDLOG_CFLAGS="-I/usr/include"
        GNUTLS_LIBS="-L/usr/lib/ -lgnutls"
        GNUTLS_CFLAGS="-I/usr/include"
        RELP_LIBS="-L/usr/lib/ -lrelp"
--- ./tools/rsyslogd.c_original 2018-05-14 17:06:48 +0000
+++ ./tools/rsyslogd.c  2018-05-17 14:57:45 +0000
@@ -1821,8 +1821,11 @@
                        {
                                fprintf(stderr,"%s: ERROR: '%d' 
recvfrom\n", progname,errno);
                                exit(1);
-                       } else  /* punt on short read */
+                       }
+#ifndef _AIX
+                       else  /* punt on short read */
                                continue;
+#endif /* AIXPORT : src end */

                        switch(srcpacket.subreq.action)
                        {
--- ./runtime/Makefile.in_original      2018-05-15 08:31:37 +0000
+++ ./runtime/Makefile.in       2018-06-11 14:46:41 +0000
@@ -745,7 +745,7 @@
 #
 @ENABLE_INET_TRUE@lmnet_la_SOURCES = net.c net.h
 @ENABLE_INET_TRUE@lmnet_la_CPPFLAGS = $(PTHREADS_CFLAGS) $(RSRT_CFLAGS) 
$(LIBLOGGING_STDLOG_CFLAGS)
-@ENABLE_INET_TRUE@lmnet_la_LDFLAGS = -module -avoid-version 
../compat/compat_la-getifaddrs.lo $(LIBLOGGING_STDLOG_LIBS)
+@ENABLE_INET_TRUE@lmnet_la_LDFLAGS = -module -avoid-version 
../compat/compat_la-getifaddrs.lo $(LIBLOGGING_STDLOG_LIBS) $(RSRT_LIBS)
 @ENABLE_INET_TRUE@lmnet_la_LIBADD =

 # network stream master class and stream factory
@@ -766,7 +766,7 @@
 @ENABLE_INET_TRUE@                     nsdpoll_ptcp.c nsdpoll_ptcp.h

 @ENABLE_INET_TRUE@lmnsd_ptcp_la_CPPFLAGS = $(PTHREADS_CFLAGS) 
$(RSRT_CFLAGS) $(LIBLOGGING_STDLOG_CFLAGS)
-@ENABLE_INET_TRUE@lmnsd_ptcp_la_LDFLAGS = -module -avoid-version 
$(LIBLOGGING_STDLOG_LIBS)
+@ENABLE_INET_TRUE@lmnsd_ptcp_la_LDFLAGS = -module -avoid-version 
$(LIBLOGGING_STDLOG_LIBS) $(RSRT_LIBS)
 @ENABLE_INET_TRUE@lmnsd_ptcp_la_LIBADD =
 @ENABLE_GNUTLS_TRUE@lmnsd_gtls_la_SOURCES = nsd_gtls.c nsd_gtls.h 
nsdsel_gtls.c  nsdsel_gtls.h
 @ENABLE_GNUTLS_TRUE@lmnsd_gtls_la_CPPFLAGS = $(PTHREADS_CFLAGS) 
$(RSRT_CFLAGS) $(GNUTLS_CFLAGS)
--- ./plugins/imuxsock/Makefile.in_original     2018-05-15 08:31:35 +0000
+++ ./plugins/imuxsock/Makefile.in      2018-06-11 14:47:29 +0000
@@ -417,7 +417,7 @@
 pkglib_LTLIBRARIES = imuxsock.la
 imuxsock_la_SOURCES = imuxsock.c
 imuxsock_la_CPPFLAGS = -DSD_EXPORT_SYMBOLS -I$(top_srcdir) 
$(PTHREADS_CFLAGS) $(RSRT_CFLAGS) $(LIBLOGGING_STDLOG_CFLAGS)
-imuxsock_la_LDFLAGS = -module -avoid-version $(LIBLOGGING_STDLOG_LIBS)
+imuxsock_la_LDFLAGS = -module -avoid-version $(LIBLOGGING_STDLOG_LIBS) 
$(RSRT_LIBS)
 imuxsock_la_LIBADD =
 all: all-am

---------------------------------------------------------------------------

 # cat ../SOURCES/libestr-0.1.10-aix.patch
--- ./configure_original        2014-12-09 11:37:47 +0000
+++ ./configure 2018-05-17 11:44:07 +0000
@@ -11574,6 +11574,10 @@
 fi
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 
$ac_cv_func_malloc_0_nonnull" >&5
 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
+
+        export  ac_cv_func_malloc_0_nonnull=yes
+        export ac_cv_func_realloc_0_nonnull=yes
+
 if test $ac_cv_func_malloc_0_nonnull = yes; then :

 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
--- ./include/libestr.h_original        2014-12-09 11:32:32 +0000
+++ ./include/libestr.h 2018-05-11 09:13:46 +0000
@@ -31,6 +31,9 @@
 #ifndef LIBESTR_H_INCLUDED
 #define        LIBESTR_H_INCLUDED

+#ifdef _AIX
+#define inline
+#endif

 /**
  * Data type for string sizes.
----------------------------------------------------------------------------

 # cat ../SOURCES/libfastjson-0.99.8-aix.patch
--- ./Makefile.in_original      2017-12-18 12:04:52 +0000
+++ ./Makefile.in       2018-06-12 16:34:34 +0000
@@ -418,7 +418,7 @@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 EXTRA_DIST = README.html
-SUBDIRS = . tests
+SUBDIRS = .
 lib_LTLIBRARIES = libfastjson.la
 noinst_LTLIBRARIES = libfastjson-internal.la
 pkgconfigdir = $(libdir)/pkgconfig
---------------------------------------------------------------------------

Hope this helps even more.

Kind regards
        Frank
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to