Skip to content

Instantly share code, notes, and snippets.

@canadaduane
Created July 25, 2012 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save canadaduane/3173840 to your computer and use it in GitHub Desktop.
Save canadaduane/3173840 to your computer and use it in GitHub Desktop.
Trouble with netrap on a Mac
$ make
gcc -c -std=gnu99 -O2 -fdata-sections -ffunction-sections -Wall -o netrap-controller.o netrap-controller.c
netrap-controller.c: In function ‘sockport’:
netrap-controller.c:151: warning: unused variable ‘port’
netrap-controller.c: In function ‘new_listen_socket’:
netrap-controller.c:410: error: ‘buf’ undeclared (first use in this function)
netrap-controller.c:410: error: (Each undeclared identifier is reported only once
netrap-controller.c:410: error: for each function it appears in.)
netrap-controller.c:414: error: ‘listen_socket’ has no member named ‘protocol’
netrap-controller.c: In function ‘new_http_socket’:
netrap-controller.c:459: error: ‘newhs’ undeclared (first use in this function)
netrap-controller.c:458: warning: unused variable ‘newcs’
netrap-controller.c: In function ‘main’:
netrap-controller.c:692: warning: unused variable ‘i’
netrap-controller.c:761: error: ‘listen_socket’ has no member named ‘protocol’
netrap-controller.c:764: error: ‘listen_socket’ has no member named ‘protocol’
make: *** [netrap-controller.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment