Compilation error on SunOS #28

Open
marccampbell opened this Issue Jan 24, 2012 · 3 comments

2 participants

@marccampbell

Trying to run make on sunos results in the following:

Compiling c_src/erlzmq_nif.c
c_src/erlzmq_nif.c:40:3: error: expected specifier-qualifier-list before 'int64_t'
c_src/erlzmq_nif.c:51:3: error: expected specifier-qualifier-list before 'int64_t'
c_src/erlzmq_nif.c: In function 'erlzmq_nif_context':
c_src/erlzmq_nif.c:149:10: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:150:3: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:153:31: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:160:10: error: 'erlzmq_context_t' has no member named 'socket_index'
c_src/erlzmq_nif.c:163:54: error: 'erlzmq_context_t' has no member named 'polling_tid'
c_src/erlzmq_nif.c: In function 'erlzmq_nif_socket':
c_src/erlzmq_nif.c:200:9: error: 'erlzmq_socket_t' has no member named 'socket_index'
c_src/erlzmq_nif.c:200:33: error: 'erlzmq_context_t' has no member named 'socket_index'
c_src/erlzmq_nif.c:201:9: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:202:14: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:205:9: error: 'erlzmq_socket_t' has no member named 'active'
c_src/erlzmq_nif.c:206:9: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:207:3: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:209:10: error: 'erlzmq_socket_t' has no member named 'socket_index'
c_src/erlzmq_nif.c: In function 'erlzmq_nif_bind':
c_src/erlzmq_nif.c:234:25: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:235:22: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:236:29: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:241:29: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:243:15: error: 'erlzmq_socket_t' has no member named 'active'
c_src/erlzmq_nif.c: In function 'erlzmq_nif_connect':
c_src/erlzmq_nif.c:272:25: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:273:25: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:274:29: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:279:29: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:281:15: error: 'erlzmq_socket_t' has no member named 'active'
c_src/erlzmq_nif.c: In function 'erlzmq_nif_setsockopt':
c_src/erlzmq_nif.c:320:27: error: 'int64_t' undeclared (first use in this function)
c_src/erlzmq_nif.c:320:27: note: each undeclared identifier is reported only once for each function it appears in
c_src/erlzmq_nif.c:357:25: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:358:28: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:360:29: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:364:29: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c: In function 'erlzmq_nif_getsockopt':
c_src/erlzmq_nif.c:384:3: error: 'int64_t' undeclared (first use in this function)
c_src/erlzmq_nif.c:384:11: error: expected ';' before 'value_int64'
c_src/erlzmq_nif.c:385:11: error: expected ';' before 'value_uint64'
c_src/erlzmq_nif.c:397:29: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:398:32: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:399:27: error: 'value_int64' undeclared (first use in this function)
c_src/erlzmq_nif.c:400:33: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:403:31: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:411:29: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:412:32: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:413:27: error: 'value_uint64' undeclared (first use in this function)
c_src/erlzmq_nif.c:414:33: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:417:31: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:422:29: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:423:32: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:425:33: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:428:31: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:440:29: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:441:32: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:443:33: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:446:31: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c: In function 'erlzmq_nif_send':
c_src/erlzmq_nif.c:480:15: error: 'erlzmq_socket_t' has no member named 'active'
c_src/erlzmq_nif.c:481:27: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:482:24: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:484:31: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:493:31: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:514:36: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:516:40: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:520:40: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:528:40: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c: In function 'erlzmq_nif_recv':
c_src/erlzmq_nif.c:558:13: error: 'erlzmq_socket_t' has no member named 'active'
c_src/erlzmq_nif.c:569:25: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:570:22: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:571:29: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:592:36: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:594:40: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:598:40: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:605:40: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:615:29: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c: In function 'erlzmq_nif_close':
c_src/erlzmq_nif.c:652:34: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:655:27: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:657:21: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:658:29: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:659:30: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:661:38: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:665:38: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:671:38: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c: In function 'erlzmq_nif_term':
c_src/erlzmq_nif.c:702:26: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:704:30: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:710:30: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c: In function 'polling_thread':
c_src/erlzmq_nif.c:767:35: error: 'int64_t' undeclared (first use in this function)
c_src/erlzmq_nif.c:768:17: error: expected ';' before 'flag_value'
c_src/erlzmq_nif.c:775:44: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:776:41: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:778:33: error: 'erlzmq_socket_t' has no member named 'active'
c_src/erlzmq_nif.c:779:47: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:780:35: error: 'flag_value' undeclared (first use in this function)
c_src/erlzmq_nif.c:782:48: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:783:34: error: 'erlzmq_socket_t' has no member named 'active'
c_src/erlzmq_nif.c:785:15: error: 'erlzmq_socket_t' has no member named 'socket_index'
c_src/erlzmq_nif.c:801:48: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:809:32: error: 'erlzmq_socket_t' has no member named 'active'
c_src/erlzmq_nif.c:820:13: error: 'erlzmq_socket_t' has no member named 'socket_index'
c_src/erlzmq_nif.c:852:44: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:853:41: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:855:48: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:861:48: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:883:30: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:885:32: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:893:55: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:902:55: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:914:51: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:940:45: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:941:39: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:942:47: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:943:48: error: 'erlzmq_socket_t' has no member named 'mutex'
c_src/erlzmq_nif.c:954:32: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:958:34: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:966:46: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:972:46: error: 'erlzmq_socket_t' has no member named 'socket_zmq'
c_src/erlzmq_nif.c:976:32: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:979:34: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:981:32: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:982:34: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c:983:35: error: 'erlzmq_context_t' has no member named 'mutex'
c_src/erlzmq_nif.c: In function 'add_active_req':
c_src/erlzmq_nif.c:1006:9: error: 'erlzmq_socket_t' has no member named 'active'
c_src/erlzmq_nif.c: In function 'erlzmq_nif_recv':
c_src/erlzmq_nif.c:626:1: warning: control reaches end of non-void function
c_src/erlzmq_nif.c: In function 'erlzmq_nif_setsockopt':
c_src/erlzmq_nif.c:367:1: warning: control reaches end of non-void function
c_src/erlzmq_nif.c: In function 'erlzmq_nif_connect':
c_src/erlzmq_nif.c:288:1: warning: control reaches end of non-void function
c_src/erlzmq_nif.c: In function 'erlzmq_nif_bind':
c_src/erlzmq_nif.c:250:1: warning: control reaches end of non-void function
c_src/erlzmq_nif.c: In function 'erlzmq_nif_socket':
c_src/erlzmq_nif.c:212:1: warning: control reaches end of non-void function
ERROR: $CC -c $CFLAGS $DRV_CFLAGS c_src/erlzmq_nif.c -o c_src/erlzmq_nif.o failed with error: 1
make: *** [compile] Error 1
@yrashk
The ZeroMQ project member

I don't have SunOS at my disposal right now, but can you tell me what's the version that you're using?

@marccampbell

uname -a reports SunOS 5.11 32bit machine.

@yrashk
The ZeroMQ project member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment