Skip to content

Conversation

furiel
Copy link
Collaborator

@furiel furiel commented Jun 26, 2019

This PR is based on #2678, adding a few changes.

Please check the individual commits. One inconvenience comes from the difference from cmake and autotools: AC_CHECK_FUNCS only define a compiler switch if the symbol is found. However #cmakedefine01 defines it unconditionally to 0 or 1. The resolution is to use #cmakedefine instead of #cmakedefine01. Inside the code, we need to use #if(n)def instead if #if in those cases.

@kira-syslogng
Copy link
Contributor

Build FAILURE

@folti
Copy link
Contributor

folti commented Jun 26, 2019

@kira-syslogng retest this please

@kira-syslogng
Copy link
Contributor

Build FAILURE

@furiel furiel force-pushed the undefined-warnings branch from 18771db to 2a32fba Compare June 26, 2019 12:02
@kira-syslogng
Copy link
Contributor

Build FAILURE

@furiel furiel force-pushed the undefined-warnings branch from 2a32fba to 3b6ecd9 Compare June 27, 2019 03:40
@kira-syslogng
Copy link
Contributor

Build FAILURE

@furiel furiel force-pushed the undefined-warnings branch from 3b6ecd9 to 18c6a3e Compare June 27, 2019 06:12
@kira-syslogng
Copy link
Contributor

Build SUCCESS

@furiel furiel force-pushed the undefined-warnings branch 2 times, most recently from 072f8f7 to 1f6160e Compare June 28, 2019 05:35
@furiel
Copy link
Collaborator Author

furiel commented Jun 28, 2019

Thanks @bazsi for the info! I eliminated the dlsym related code.

@furiel furiel force-pushed the undefined-warnings branch from 1f6160e to 58b7ec7 Compare June 28, 2019 05:37
@kira-syslogng
Copy link
Contributor

Build SUCCESS

@furiel furiel force-pushed the undefined-warnings branch from 58b7ec7 to ca24c13 Compare July 2, 2019 20:11
@kira-syslogng
Copy link
Contributor

Build SUCCESS

furiel added 11 commits July 3, 2019 10:23
The idea has been that eventlog would become a useful library on its
own that can be LD_PRELOADed into any executable and make logging more
verbose. After merging evtlog into syslog-ng, it functionality is not
relevant anymore.

Signed-off-by: Antal Nemes <[email protected]>
Signed-off-by: Antal Nemes <[email protected]>
AC_CHECK_FUNCS only define SYSLOG_NG_HAVE_... if condition the symbol
is found. cmakedefine01 defines something in any case, hence a
conflict.

The correct way of handling the problem is not to use cmakedefine01
but cmakedefine, and use if(n)def inside the code.

AC_DEFINE_UNQUOTED(HAVE_GETRANDOM) can/need be removed because it is
also detected by AC_CHECK_FUNCS too.

Signed-off-by: Antal Nemes <[email protected]>
Signed-off-by: Mehul Prajapati <[email protected]>
Signed-off-by: Mehul Prajapati <[email protected]>
@furiel furiel force-pushed the undefined-warnings branch from ca24c13 to 504b185 Compare July 3, 2019 08:23
@kira-syslogng
Copy link
Contributor

Build SUCCESS

@alltilla alltilla merged commit 17838fd into syslog-ng:master Jul 10, 2019
furiel added a commit to furiel/syslog-ng that referenced this pull request Jul 12, 2019
Regression from syslog-ng#2806.

cmakedefine01 and add_definitions both define the same identifier.

Signed-off-by: Antal Nemes <[email protected]>
@furiel furiel deleted the undefined-warnings branch November 5, 2019 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants