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

3.14.1 on FreeBSD #1901

Closed
czanik opened this issue Feb 28, 2018 · 6 comments · Fixed by #1904
Closed

3.14.1 on FreeBSD #1901

czanik opened this issue Feb 28, 2018 · 6 comments · Fixed by #1904
Assignees

Comments

@czanik
Copy link
Contributor

czanik commented Feb 28, 2018

syslog-ng

Version of syslog-ng

syslog-ng 3.14.1 release

Platform

FreeBSD 11.1

Issue

Compilation of syslog-ng on FreeBSD 11.1 fails with the following error:

cc -DHAVE_CONFIG_H -I.  -I./lib -I./modules -I./lib -I./modules -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -pthread  -I./lib/eventlog/src -I./lib/eventlog/src -I/usr/local/include  -I/usr/include   -I./lib/ivykis/src/include -I./lib/ivykis/src/include -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall -pthread -MT syslog-ng-ctl/syslog-ng-ctl.o -MD -MP -MF $depbase.Tpo -c -o syslog-ng-ctl/syslog-ng-ctl.o syslog-ng-ctl/syslog-ng-ctl.c &&\
mv -f $depbase.Tpo $depbase.Po
syslog-ng-ctl/syslog-ng-ctl.c:35:10: fatal error: 'sgtty.h' file not found
#include <sgtty.h>
         ^~~~~~~~~
1 error generated.
gmake[4]: *** [Makefile:11708: syslog-ng-ctl/syslog-ng-ctl.o] Error 1
gmake[3]: *** [Makefile:17482: all-recursive] Error 1
gmake[2]: *** [Makefile:6791: all] Error 2
@lbudai
Copy link
Collaborator

lbudai commented Feb 28, 2018

@czanik: thanks for reporting the issue.
We will fix it soon. When we have the fix, is it possible to apply the patch or should we create a new release?

@czanik
Copy link
Contributor Author

czanik commented Feb 28, 2018

If it does not need autotools running after the patch then a simple patch works. I just need to put the patch under the "files" directory in the port and it is automatically applied before compilation.

@norberttak
Copy link
Contributor

Hi,
I think it is an unneeded include in the code. To be 100% sure, could you please do a quick test on your freebsd build?
Open the syslog-ng-ctl/syslog-ng-ctl.c file and delete the line 35 (#include <sgtty.h>).
If the code is able to build I'll commit a patch so syslog-ng.
Thanks,
Norbi

@czanik
Copy link
Contributor Author

czanik commented Mar 1, 2018

Hi,
Just tested, compilation went fine after commenting out the offending line.
Peter

@norberttak
Copy link
Contributor

Hi Peter,
Thanks for the test! I created the PR.
,Norbi

norberttak pushed a commit to norberttak/syslog-ng that referenced this issue Mar 2, 2018
sgtty.h doesn't need and cause compile error on freebsd.

Signed-off-by: norberttakacs <norbert.takacs@balabit.com>
Kokan pushed a commit that referenced this issue Mar 2, 2018
Fix compile issue #1901 on freebsd
@Kokan Kokan removed the in progress label Mar 2, 2018
@czanik
Copy link
Contributor Author

czanik commented Mar 2, 2018

Thank you. Patch added to the port and it compiles fine. Now comes the "fun" part: fixing pkg-plist :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants