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

Can't Compile on OpenBSD 5.4 #47

Open
renaudallard opened this issue Jan 22, 2014 · 1 comment
Open

Can't Compile on OpenBSD 5.4 #47

renaudallard opened this issue Jan 22, 2014 · 1 comment

Comments

@renaudallard
Copy link

Hello,

It seems the code is not compatible with recent OpenBSD version (note that I didn't try with older versions).

cc -g -O2 -std=gnu99 -Wall -c -o parser.o parser.c
parser.c: In function 'vp_in_addr':
parser.c:304: error: 'AI_ADDRCONFIG' undeclared (first use in this function)
parser.c:304: error: (Each undeclared identifier is reported only once
parser.c:304: error: for each function it appears in.)
gmake: *** [parser.o] Error 1

@renaudallard
Copy link
Author

If I add:
#ifndef AI_ADDRCONFIG
#define AI_ADDRCONFIG 0
#endif

to parser.h
cc -g -O2 -std=gnu99 -Wall -c -o redsocks.o redsocks.c
In file included from redsocks.c:29:
list.h:34:1: warning: "LIST_HEAD" redefined
In file included from /usr/include/event.h:166,
from redsocks.c:28:
/usr/include/sys/queue.h:167:1: warning: this is the location of the previous definition
redsocks.c:76: error: expected declaration specifiers or '...' before 'evutil_socket_t'
redsocks.c:77: error: expected ')' before 'short'
redsocks.c:77: error: expected ';', ',' or ')' before 'void'
redsocks.c: In function 'redsocks_debug_dump_instance':
redsocks.c:753: warning: format '%li' expects type 'long int', but argument 17 has type 'time_t'
redsocks.c:753: warning: format '%li' expects type 'long int', but argument 18 has type 'time_t'
redsocks.c: In function 'redsocks_init_instance':
redsocks.c:817: warning: implicit declaration of function 'tracked_event_set'
gmake: *** [redsocks.o] Error 1

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

No branches or pull requests

2 participants