Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AIX vsyslog #1116

Open
AIIleG opened this issue Oct 22, 2024 · 0 comments
Open

AIX vsyslog #1116

AIIleG opened this issue Oct 22, 2024 · 0 comments

Comments

@AIIleG
Copy link

AIIleG commented Oct 22, 2024

AIX neither has vsyslog nor vsyslog_r.

ld: 0711-317 ERROR: Undefined symbol: .vsyslog_r

This happens with 4.0.0 as well as 3.9.2 and likely others. Adding the following to crypto/cryptlib.c worked for me:

#ifdef _AIX
#ifdef HAVE_SYSLOG
void vsyslog(int facility_priority, const char *format, va_list arglist) {
	char *msg = NULL;
	vasprintf(&msg, format, arglist);

	if (!msg)
		return;

	syslog(facility_priority, "%s", msg);
	free(msg);
}
#endif /* HAVE_SYSLOG */

void vsyslog_r(int pri, struct syslog_data *data, const char *fmt, va_list ap) {
	vsyslog(pri, fmt, ap);
}
#endif /* AIX */
@AIIleG AIIleG changed the title AIX build exports incomplete AIX vsyslog Oct 22, 2024
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

No branches or pull requests

1 participant