[syslog-ng] Problems trying to compile syslog-ng 3.6.4 on Solaris 11.2 (SPARC)

Budai, László laszlo.budai at balabit.com
Tue Jun 30 12:35:53 CEST 2015


Hi,

it seems to me a credential passing related problem.
Maybe the way how syslog-ng decides whether credential passing is supported
or not is wrong...
I'll check it on a solaris-11/x86.

regards,
Laszlo Budai


On Tue, Jun 30, 2015 at 11:59 AM, Cottington-Bray, Ian <
ian.cottington-bray at mclaren.com> wrote:

>  Extract from make log below;
>
>
>
> /bin/sh ./libtool  --tag=CC   --mode=compile gcc -std=gnu99
> -DHAVE_CONFIG_H -I.  -I./lib -I./modules -I./lib -I./modules
> -I./modules/afsocket -I./modules/afsocket -D_REENTRANT -D_PTHREADS
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/local/syslog-ng/include/eventlog   -I/usr/include/pcre
> -I./lib/ivykis/src/include -I./lib/ivykis/src/include -D_GNU_SOURCE
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -g -O2 -Wall -pthread -MT
> modules/afsocket/modules_afsocket_libafsocket_notls_la-transport-unix-socket.lo
> -MD -MP -MF
> modules/afsocket/.deps/modules_afsocket_libafsocket_notls_la-transport-unix-socket.Tpo
> -c -o
> modules/afsocket/modules_afsocket_libafsocket_notls_la-transport-unix-socket.lo
> `test -f 'modules/afsocket/transport-unix-socket.c' || echo
> './'`modules/afsocket/transport-unix-socket.c
>
> libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I./lib -I./modules
> -I./lib -I./modules -I./modules/afsocket -I./modules/afsocket -D_REENTRANT
> -D_PTHREADS -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
> -I/usr/local/syslog-ng/include/eventlog -I/usr/include/pcre
> -I./lib/ivykis/src/include -I./lib/ivykis/src/include -D_GNU_SOURCE
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Wall -pthread -MT
> modules/afsocket/modules_afsocket_libafsocket_notls_la-transport-unix-socket.lo
> -MD -MP -MF
> modules/afsocket/.deps/modules_afsocket_libafsocket_notls_la-transport-unix-socket.Tpo
> -c modules/afsocket/transport-unix-socket.c  -fPIC -DPIC -o
> modules/afsocket/.libs/modules_afsocket_libafsocket_notls_la-transport-unix-socket.o
>
> modules/afsocket/transport-unix-socket.c: In function
> â_format_proc_file_nameâ:
>
> modules/afsocket/transport-unix-socket.c:50:3: warning: format â%dâ
> expects argument of type âintâ, but argument 4 has type âpid_tâ [-Wformat=]
>
>    g_snprintf(buf, buflen, "/proc/%d/%s", pid, proc_file);
>
>    ^
>
> modules/afsocket/transport-unix-socket.c: In function â_unix_socket_readâ:
>
> modules/afsocket/transport-unix-socket.c:219:6: error: âstruct msghdrâ has
> no member named âmsg_controlâ
>
>    msg.msg_control = ctlbuf;
>
>       ^
>
> modules/afsocket/transport-unix-socket.c:220:6: error: âstruct msghdrâ has
> no member named âmsg_controllenâ
>
>    msg.msg_controllen = sizeof(ctlbuf);
>
>       ^
>
> modules/afsocket/transport-unix-socket.c: In function
> âlog_transport_unix_dgram_socket_newâ:
>
> modules/afsocket/transport-unix-socket.c:261:3: warning: implicit
> declaration of function âsocket_set_pass_credentialsâ
> [-Wimplicit-function-declaration]
>
>    socket_set_pass_credentials(fd);
>
>    ^
>
> modules/afsocket/transport-unix-socket.c: At top level:
>
> modules/afsocket/transport-unix-socket.c:36:1: warning: â_add_nv_pair_intâ
> defined but not used [-Wunused-function]
>
> _add_nv_pair_int(LogTransportAuxData *aux, const gchar *name, gint value)
>
> ^
>
> modules/afsocket/transport-unix-socket.c:102:1: warning:
> â_add_nv_pair_proc_read_unless_unsetâ defined but not used
> [-Wunused-function]
>
> _add_nv_pair_proc_read_unless_unset(LogTransportAuxData *aux, const gchar
> *name, pid_t pid, const gchar *proc_file, const gchar *unset_value)
>
> ^
>
> modules/afsocket/transport-unix-socket.c:115:1: warning:
> â_add_nv_pair_proc_read_argvâ defined but not used [-Wunused-function]
>
> _add_nv_pair_proc_read_argv(LogTransportAuxData *aux, const gchar *name,
> pid_t pid, const gchar *proc_file)
>
> ^
>
> modules/afsocket/transport-unix-socket.c:135:1: warning:
> â_add_nv_pair_proc_readlinkâ defined but not used [-Wunused-function]
>
> _add_nv_pair_proc_readlink(LogTransportAuxData *aux, const gchar *name,
> pid_t pid, const gchar *proc_file)
>
> ^
>
> gmake[2]: ***
> [modules/afsocket/modules_afsocket_libafsocket_notls_la-transport-unix-socket.lo]
> Error 1
>
> gmake[1]: *** [all-recursive] Error 1
>
> gmake: *** [all] Error 2
>
>
>
>
>
> Attached config.h
>
>
>
> Ian
>
>
>
> *From:* syslog-ng-bounces at lists.balabit.hu [mailto:
> syslog-ng-bounces at lists.balabit.hu] *On Behalf Of *Balazs Scheidler
> *Sent:* 30 June 2015 08:17
> *To:* Syslog-ng users' and developers' mailing list
> *Subject:* Re: [syslog-ng] Problems trying to compile syslog-ng 3.6.4 on
> Solaris 11.2 (SPARC)
>
>
>
> Hi,
>
> btw you could also upload it to pastebin.com and post the link.
>
>
>
> On Tue, Jun 30, 2015 at 9:14 AM, Cottington-Bray, Ian <
> ian.cottington-bray at mclaren.com> wrote:
>
>  Tried to send the log of the make and the config.h files as attachments
> in a reply yesterday – however the eMail was rejected.
>
>
>
> Is there a standard method to upload files ?
>
>
>
> Ian
>
>
>
> *From:* syslog-ng-bounces at lists.balabit.hu [mailto:
> syslog-ng-bounces at lists.balabit.hu] *On Behalf Of *Scheidler, Balázs
> *Sent:* 29 June 2015 13:05
> *To:* Syslog-ng users' and developers' mailing list
> *Subject:* Re: [syslog-ng] Problems trying to compile syslog-ng 3.6.4 on
> Solaris 11.2 (SPARC)
>
>
>
> Can you run make with V=1 argument so that we can see the exact CFLAGS
> arguments used when compiling the source?
>
> Also, the contents of config.h would be useful (which is generated in the
> root of your build directory).
>
>
>
> thanks.
>
>
>   --
> Bazsi
>
>
>
> On Thu, Jun 25, 2015 at 11:59 AM, Cottington-Bray, Ian <
> ian.cottington-bray at mclaren.com> wrote:
>
>  Thanks – I really don’t understand what you mean, and more crucially how
> I would fix the issue.
>
>
>
> The link provided suggests setting extra options on the CFLAGS field in
> the Makefile – I did that and it breaks lots of other things.   I also
> tried setting just the TEST_CFLAGS and that didn’t work either …
>
>
>
> Any further advice would be appreciated.
>
>
>
> Ian
>
>
>
> *From:* syslog-ng-bounces at lists.balabit.hu [mailto:
> syslog-ng-bounces at lists.balabit.hu] *On Behalf Of *Scheidler, Balázs
> *Sent:* 25 June 2015 09:53
> *To:* Syslog-ng users' and developers' mailing list
> *Subject:* Re: [syslog-ng] Problems trying to compile syslog-ng 3.6.4 on
> Solaris 11.2 (SPARC)
>
>
>
> It probably has to do something with a feature test macro not defined,
> thus we lack a few fields from the struct.
>
>
> http://stackoverflow.com/questions/1034587/how-does-xpg4-2-and-other-defines-work-on-solaris
>
> On Jun 23, 2015 12:28 PM, "Cottington-Bray, Ian" <
> ian.cottington-bray at mclaren.com> wrote:
>
>  Have compiled and installed eventlog-0.2.12  (into /usr/local/syslog-ng).
>
>
>
> Now trying to compile syslog-ng I’m hitting the error shown at the end.
>
>
>
> Following commands were used to configure the environment for the compile
>
>
>
> export PKG_CONFIG_PATH=/usr/local/syslog-ng/lib/pkgconfig
>
> ./configure --prefix=/usr/local/syslog-ng --enable-sun-streams
> --enable-tcp-wrapper --enable-ipv6 --enable-sql --enable-ssh
> --with-ld-library-path=/usr/local/syslog-ng/lib --disable-amqp
> --enable-sun-door
>
>
>
> Any suggestions ?
>
>
>
> Thanks
>
>
> Ian
>
>
>
>   CC
> modules/afsocket/modules_afsocket_libafsocket_notls_la-transport-mapper-unix.lo
>
>   CC
> modules/afsocket/modules_afsocket_libafsocket_notls_la-transport-unix-socket.lo
>
> modules/afsocket/transport-unix-socket.c: In function
> â_format_proc_file_nameâ:
>
> modules/afsocket/transport-unix-socket.c:50:3: warning: format â%dâ
> expects argument of type âintâ, but argument 4 has type âpid_tâ [-Wformat=]
>
>    g_snprintf(buf, buflen, "/proc/%d/%s", pid, proc_file);
>
>    ^
>
> modules/afsocket/transport-unix-socket.c: In function â_unix_socket_readâ:
>
> modules/afsocket/transport-unix-socket.c:219:6: error: âstruct msghdrâ has
> no member named âmsg_controlâ
>
>    msg.msg_control = ctlbuf;
>
>       ^
>
> modules/afsocket/transport-unix-socket.c:220:6: error: âstruct msghdrâ has
> no member named âmsg_controllenâ
>
>    msg.msg_controllen = sizeof(ctlbuf);
>
>       ^
>
> modules/afsocket/transport-unix-socket.c: In function
> âlog_transport_unix_dgram_socket_newâ:
>
> modules/afsocket/transport-unix-socket.c:261:3: warning: implicit
> declaration of function âsocket_set_pass_credentialsâ
> [-Wimplicit-function-declaration]
>
>    socket_set_pass_credentials(fd);
>
>    ^
>
> modules/afsocket/transport-unix-socket.c: At top level:
>
> modules/afsocket/transport-unix-socket.c:36:1: warning: â_add_nv_pair_intâ
> defined but not used [-Wunused-function]
>
> _add_nv_pair_int(LogTransportAuxData *aux, const gchar *name, gint value)
>
> ^
>
> modules/afsocket/transport-unix-socket.c:102:1: warning:
> â_add_nv_pair_proc_read_unless_unsetâ defined but not used
> [-Wunused-function]
>
> _add_nv_pair_proc_read_unless_unset(LogTransportAuxData *aux, const gchar
> *name, pid_t pid, const gchar *proc_file, const gchar *unset_value)
>
> ^
>
> modules/afsocket/transport-unix-socket.c:115:1: warning:
> â_add_nv_pair_proc_read_argvâ defined but not used [-Wunused-function]
>
> _add_nv_pair_proc_read_argv(LogTransportAuxData *aux, const gchar *name,
> pid_t pid, const gchar *proc_file)
>
> ^
>
> modules/afsocket/transport-unix-socket.c:135:1: warning:
> â_add_nv_pair_proc_readlinkâ defined but not used [-Wunused-function]
>
> _add_nv_pair_proc_readlink(LogTransportAuxData *aux, const gchar *name,
> pid_t pid, const gchar *proc_file)
>
> ^
>
> gmake[2]: ***
> [modules/afsocket/modules_afsocket_libafsocket_notls_la-transport-unix-socket.lo]
> Error 1
>
> gmake[1]: *** [all-recursive] Error 1
>
> gmake: *** [all] Error 2
>
>
> The contents of this e-mail are confidential and for the exclusive use of
> the intended recipient. If you are not the intended recipient you should
> not read, copy, retransmit or disclose its contents. If you have received
> this email in error please delete it from your system immediately and
> notify us either by email or telephone. The views expressed in this
> communication may not necessarily be the views held by McLaren Technology
> Group Limited.
> McLaren Technology Group Limited | McLaren Technology Centre | Chertsey
> Road | Woking | Surrey | GU21 4YH | UK | Company Number: 01967715
>
>
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation:
> http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>
>
> The contents of this e-mail are confidential and for the exclusive use of
> the intended recipient. If you are not the intended recipient you should
> not read, copy, retransmit or disclose its contents. If you have received
> this email in error please delete it from your system immediately and
> notify us either by email or telephone. The views expressed in this
> communication may not necessarily be the views held by McLaren Technology
> Group Limited.
> McLaren Technology Group Limited | McLaren Technology Centre | Chertsey
> Road | Woking | Surrey | GU21 4YH | UK | Company Number: 01967715
>
>
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation:
> http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>
>
>
>
> The contents of this e-mail are confidential and for the exclusive use of
> the intended recipient. If you are not the intended recipient you should
> not read, copy, retransmit or disclose its contents. If you have received
> this email in error please delete it from your system immediately and
> notify us either by email or telephone. The views expressed in this
> communication may not necessarily be the views held by McLaren Technology
> Group Limited.
> McLaren Technology Group Limited | McLaren Technology Centre | Chertsey
> Road | Woking | Surrey | GU21 4YH | UK | Company Number: 01967715
>
>
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation:
> http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>
>
>
>
> --
>
> Bazsi
>
> The contents of this e-mail are confidential and for the exclusive use of
> the intended recipient. If you are not the intended recipient you should
> not read, copy, retransmit or disclose its contents. If you have received
> this email in error please delete it from your system immediately and
> notify us either by email or telephone. The views expressed in this
> communication may not necessarily be the views held by McLaren Technology
> Group Limited.
> McLaren Technology Group Limited | McLaren Technology Centre | Chertsey
> Road | Woking | Surrey | GU21 4YH | UK | Company Number: 01967715
>
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation:
> http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20150630/c74b33b3/attachment-0001.htm 


More information about the syslog-ng mailing list