Created
December 6, 2013 14:22
-
-
Save TomHoenderdos/7825322 to your computer and use it in GitHub Desktop.
Tinc Smartos Error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make[2]: Entering directory `/tmp/nix-build-tinc-1.1pre9.drv-1/tinc-1.1pre9/src' | |
gcc -std=gnu99 -DHAVE_CONFIG_H -DCONFDIR=\"/etc\" -DLOCALSTATEDIR=\"/var\" -DSBINDIR=\"/nix/store/hy6w7jpyp657mrpydaknxlh7plyglbbn-tinc-1.1pre9/sbin\" -g -O2 -c -o control.o control.c | |
control.c: In function 'init_control': | |
control.c:185:21: error: expected identifier or '(' before numeric constant | |
struct sockaddr_un sun; | |
^ | |
control.c:186:5: error: request for member 'sun_family' in something not a structure or union | |
sun.sun_family = AF_UNIX; | |
^ | |
control.c:187:13: error: request for member 'sun_path' in something not a structure or union | |
strncpy(sun.sun_path, unixsocketname, sizeof sun.sun_path); | |
^ | |
control.c:187:50: error: request for member 'sun_path' in something not a structure or union | |
strncpy(sun.sun_path, unixsocketname, sizeof sun.sun_path); | |
^ | |
control.c:189:41: error: lvalue required as unary '&' operand | |
if(connect(unix_fd, (struct sockaddr *)&sun, sizeof sun) >= 0) { | |
^ | |
control.c:197:48: error: lvalue required as unary '&' operand | |
int result = bind(unix_fd, (struct sockaddr *)&sun, sizeof sun); | |
^ | |
make[2]: *** [control.o] Error 1 | |
make[2]: Leaving directory `/tmp/nix-build-tinc-1.1pre9.drv-1/tinc-1.1pre9/src' | |
make[1]: *** [all-recursive] Error 1 | |
make[1]: Leaving directory `/tmp/nix-build-tinc-1.1pre9.drv-1/tinc-1.1pre9' | |
make: *** [all] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment