Opened 7 years ago

Last modified 2 years ago

#43231 assigned update

[update] syslog-ng 3.0.8 to 3.19.1

Reported by: jul_bsd@… Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: syslog-ng

Description

sadly not compiling anymore. it fails on

"ld: unknown option: --whole-archive"

tested w cland or mp-gcc-4.9

  • have reviewed some options and add variant for different db backend.
  • put config as post-activate
  • livecheck

Attachments (3)

patch-syslogng-Portfile.diff (3.7 KB) - added by jul_bsd@… 7 years ago.
patch-configure.ac.diff (3.3 KB) - added by jul_bsd@… 6 years ago.
patch-syslog-ng-Portfile.diff (10.8 KB) - added by jul_bsd@… 6 years ago.

Download all attachments as: .zip

Change History (14)

Changed 7 years ago by jul_bsd@…

comment:1 Changed 7 years ago by jul_bsd@…

  • port lint --nitpick
  • livecheck
  • /tab/spacex4/

comment:2 Changed 7 years ago by jul_bsd@…

  • mode line
  • indent

comment:3 Changed 7 years ago by mf2k (Frank Schima)

Please do not mix functional changes with whitespace changes. It makes it hard to evaluate the changes you are proposing and makes your patch much less likely to be committed.

comment:4 Changed 7 years ago by jul_bsd@…

the first patch is without spaces changes. the second got refinements from the remarks I got from other tickets and over time, so you can check them separately. After, I think, it's better to share the most advanced changeset else it suspends too many things for other people who could be interested by the whole update.

I would be more interested on the technical error solving for now.

comment:5 Changed 7 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to markd@…

comment:6 Changed 6 years ago by jul_bsd@…

  • bump to 3.5.5
  • search issue and found a patch but have another problem

opened a ticket in balabit github https://github.com/balabit/syslog-ng/issues/173

Changed 6 years ago by jul_bsd@…

Attachment: patch-configure.ac.diff added

comment:7 Changed 6 years ago by jul_bsd@…

  • bump to 3.5.6
  • build fails here (same than previous)
  CCLD     lib/libsyslog-ng.la
syslog-ng/syslog-ng-ctl.c:98:60: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
      if ((len = read(control_socket, buff, BUFF_LEN - 1)) < 0)
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
1 warning generated.
  CCLD     tests/loggen/loggen
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
duplicate symbol _last_parser in:
    lib/.libs/lib_libsyslog_ng_la-cfg-grammar.o
    lib/parser/.libs/lib_libsyslog_ng_la-parser-expr-grammar.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:3682: recipe for target 'lib/libsyslog-ng.la' failed
gmake[2]: *** [lib/libsyslog-ng.la] Error 1
Makefile:7687: recipe for target 'all-recursive' failed

comment:8 Changed 6 years ago by mf2k (Frank Schima)

Owner: changed from markd@… to macports-tickets@…

markd has retired. See #44782.

comment:9 Changed 6 years ago by jul_bsd@…

update, some changes coming w uptstream https://github.com/balabit/syslog-ng/issues/173

  • switch partially to github
  • new dependencies: libivykis #47365, libmongo-client #47366
  • temporary variant devel: fails on
    error: only weak aliases are supported on darwin
    
  • temporary variant develgreg: fails on
:info:build modules/dbparser/patterndb.c:565:8: note: place parentheses around the '&&' expression to silence this warning
:info:build   CC       modules/dbparser/modules_dbparser_libsyslog_ng_patterndb_la-timerwheel.lo
:info:build               && pdb_rule_check_rate_limit(self, db, action, msg, buffer)))
:info:build               ^   
:info:build 1 warning generated.
:info:build   CC       modules/dbparser/modules_dbparser_libsyslog_ng_patterndb_la-patternize.lo
:info:build   GEN      doc/man/syslog-ng.8
:info:build   GEN      doc/man/syslog-ng.conf.5
:info:build warning: failed to load external entity "/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl"
:info:build cannot parse /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl
:info:build warning: failed to load external entity "/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl"
:info:build cannot parse /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl
:info:build Makefile:11366: recipe for target 'doc/man/syslog-ng.conf.5' failed
:info:build gmake[2]: *** [doc/man/syslog-ng.conf.5] Error 4

Changed 6 years ago by jul_bsd@…

comment:10 Changed 2 years ago by markwmark (Mark Dickelman)

syslog-ng has posted instructions for compiling for macOS, see:

https://syslog-ng.gitbooks.io/getting-started/content/chapters/chapter_0/section_3.html

Latest released is 3.16.1.

It would be great to have this working in MacPorts again.

comment:11 Changed 2 years ago by l2dy (Zero King)

Owner: macports-tickets@… deleted
Status: newassigned
Summary: [update] syslog-ng 3.0.8 to 3.5.4.1[update] syslog-ng 3.0.8 to 3.19.1
Note: See TracTickets for help on using tickets.