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

Scheidler, Balázs balazs.scheidler at balabit.com
Mon Jun 29 14:04:56 CEST 2015


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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20150629/ff090d9e/attachment.htm 


More information about the syslog-ng mailing list