id:paxilさん。よろしくお願いします。解決時には500ptお支払いします。


Solaris10でstoneのコンパイルに挑戦していましたが、挫折しました。m(_ _)m
バージョンを2.2に下げればコンパイルがとおるかもしれませんが、本家のサイト
にも最新バージョンしか 見当たらないです。

エラーがぼこぼこでて、どこから手をつけていいか・・困りました。

エラー内容はコメントに記載します。よろしくお願いします。

回答の条件
  • 1人2回まで
  • 登録:2009/08/22 23:02:52
  • 終了:2009/08/28 03:48:27

ベストアンサー

id:tera-p No.1

tera-p回答回数92ベストアンサー獲得回数212009/08/26 02:12:55

ポイント500pt

paxilさんではないですが.

気になったので,Solaris (正確には opensolaris) で試してみました.後述のように少し手直しが

必要でしたが,私のところではコンパイルできて動きました.

ただ,下記のエラーを見ると (手直し以前に) 明らかに openssl の必要なファイルが正しくインストール

されていません.具体的には,/usr/include/openssl の下に,crypto.h など必要なファイルは入って

ますでしょうか.また,SSL証明書の作成などは正しくできているでしょうか.たとえば,/etc/openssl/

certs/stone.pem などはありますでしょうか.

なお,「ためしに…」のくだりで実行された,「make solaris ssl_stone」は,SSL 非対応版の stone を

コンパイルしてしまっています (正しくは,「make solaris-ssl」になります).SSL 非対応版 stone なので,

「/ssl」としても正常には動かないと思います.

また冒頭の「手直し」についてですが,少なくとも私の環境では stone.c に修正が必要でした.具体的には,

「sun」という変数名が他のところで定義済みだったので,そのままでは stone.c:8091-8139 のあたりで

エラーが起きました.対処として,上記 sun を s_un という名前に変更したところ (未定義の名前であれば

なんでも良いですが),正常にコンパイルできたようです.

以上,ご参考になりましたら.

id:meichi

大変参考になりました。自宅に帰ったらまた挑戦してみます。

結果はまた、コメントに記載します。よろしくお願いします。m(_ _)m

2009/08/26 08:45:17
  • id:meichi
    コンパイルのログです。よろしくお願いします。
    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% make solaris-ssl CC=gcc

    make TARGET=solaris ssl_stone
    make FLAGS="-DUSE_POP -DUSE_SSL " LIBS=" -lssl -lcrypto" solaris
    make CC=gcc FLAGS="-DPTHREAD -D_REENTRANT -DUSE_POP -DUSE_SSL" LIBS="-lnsl -lsocket -lpthread -lthread -lssl -lcrypto" stone
    gcc -DPTHREAD -D_REENTRANT -DUSE_POP -DUSE_SSL -o stone stone.c -lnsl -lsocket -lpthread -lthread -lssl -lcrypto
    stone.c:306:28: error: openssl/crypto.h: No such file or directory
    stone.c:307:26: error: openssl/x509.h: No such file or directory
    stone.c:308:28: error: openssl/x509v3.h: No such file or directory
    stone.c:309:25: error: openssl/ssl.h: No such file or directory
    stone.c:310:25: error: openssl/bio.h: No such file or directory
    stone.c:311:25: error: openssl/err.h: No such file or directory
    stone.c:312:28: error: openssl/pkcs12.h: No such file or directory
    stone.c:313:26: error: openssl/rand.h: No such file or directory
    stone.c:332: error: syntax error before 'SSL_CTX'
    stone.c:332: warning: no semicolon at end of struct or union
    stone.c:338: error: syntax error before '}' token
    stone.c:338: warning: data definition has no type or storage class
    stone.c:352: error: syntax error before 'SSL_METHOD'
    stone.c:352: warning: no semicolon at end of struct or union
    stone.c:353: error: syntax error before 'X509_STORE_CTX'
    stone.c:377: error: syntax error before '}' token
    stone.c:377: warning: data definition has no type or storage class
    stone.c:379: error: syntax error before 'ServerOpts'
    stone.c:379: warning: data definition has no type or storage class
    stone.c:380: error: syntax error before 'ClientOpts'
    stone.c:380: warning: data definition has no type or storage class
    stone.c:393:25: error: openssl/md5.h: No such file or directory
    stone.c:493: error: syntax error before 'StoneSSL'
    stone.c:493: warning: no semicolon at end of struct or union
    stone.c:494: warning: data definition has no type or storage class
    stone.c:498: error: syntax error before '}' token
    stone.c:498: warning: data definition has no type or storage class
    stone.c:527: error: syntax error before 'Stone'
    stone.c:527: warning: no semicolon at end of struct or union
    stone.c:529: warning: data definition has no type or storage class
    stone.c:533: error: 'clock' redeclared as different kind of symbol
    /usr/include/iso/time_iso.h:85: error: previous declaration of 'clock' was here
    stone.c:539: warning: built-in function 'log' declared as non-function
    stone.c:546: error: syntax error before '}' token
    stone.c:546: warning: data definition has no type or storage class
    stone.c:550: error: syntax error before 'Pair'
    stone.c:550: warning: no semicolon at end of struct or union
    stone.c:553: error: syntax error before '}' token
    stone.c:553: warning: data definition has no type or storage class
    stone.c:558: error: syntax error before 'Stone'
    stone.c:558: warning: no semicolon at end of struct or union
    stone.c:562: error: 'clock' redeclared as different kind of symbol
    /usr/include/iso/time_iso.h:85: error: previous declaration of 'clock' was here
    stone.c:563: error: conflicting types for 'next'
    stone.c:552: error: previous declaration of 'next' was here
    stone.c:564: error: syntax error before '}' token
    stone.c:564: warning: data definition has no type or storage class
    stone.c:570: error: syntax error before 'Origin'
    stone.c:570: warning: no semicolon at end of struct or union
    stone.c:574: error: syntax error before '}' token
    stone.c:574: warning: data definition has no type or storage class
    stone.c:578: error: syntax error before '*' token
    stone.c:581: error: syntax error before '*' token
    stone.c:581: warning: data definition has no type or storage class
    stone.c:582: error: syntax error before '*' token
    stone.c:582: warning: data definition has no type or storage class
    stone.c:593: error: syntax error before '*' token
    stone.c:593: warning: data definition has no type or storage class
    stone.c:594: error: syntax error before 'trash'
    stone.c:594: warning: data definition has no type or storage class
    stone.c:595: error: syntax error before '*' token
    stone.c:595: warning: data definition has no type or storage class
    stone.c:602: error: syntax error before 'conns'
    stone.c:602: warning: data definition has no type or storage class
    stone.c:603: error: syntax error before '*' token
    stone.c:603: warning: data definition has no type or storage class
    stone.c:605: error: syntax error before '*' token
    stone.c:605: warning: data definition has no type or storage class
    stone.c:962: error: syntax error before '*' token
    stone.c: In function 'message_time':
    stone.c:966: error: 'pair' undeclared (first use in this function)
    stone.c:966: error: (Each undeclared identifier is reported only once
    stone.c:966: error: for each function it appears in.)
    stone.c:971: error: 'fmt' undeclared (first use in this function)
    stone.c:978: error: 'pri' undeclared (first use in this function)
    stone.c:971: error: 'va_start' used in function with fixed args
    stone.c: At top level:
    stone.c:984: error: syntax error before '*' token
    stone.c: In function 'priority':
    stone.c:986: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:1047: error: syntax error before '*' token
    stone.c: In function 'message_buf':
    stone.c:1049: error: 'p' undeclared (first use in this function)
    stone.c:1049: error: 'pair' undeclared (first use in this function)
    stone.c:1054: error: 'str' undeclared (first use in this function)
    stone.c: In function 'host2sa':
    stone.c:1540: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'saDup':
    stone.c:1560: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'healthCheck':
    stone.c:1920: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'str2bin':
    stone.c:2203: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:2313: error: syntax error before '*' token
    stone.c: In function 'stone2str':
    stone.c:2316: error: 'stone' undeclared (first use in this function)
    stone.c:2321: error: 'str' undeclared (first use in this function)
    stone.c:2321: warning: passing argument 2 of 'snprintf' makes integer from pointer without a cast
    stone.c:2323: warning: passing argument 2 of 'snprintf' makes integer from pointer without a cast
    stone.c:2325: warning: passing argument 2 of 'snprintf' makes integer from pointer without a cast
    stone.c:2331: warning: passing argument 2 of 'snprintf' makes integer from pointer without a cast
    stone.c: At top level:
    stone.c:2410: error: syntax error before '*' token
    stone.c: In function 'getExData':
    stone.c:2411: error: 'pair' undeclared (first use in this function)
    stone.c:2415: error: 'type' undeclared (first use in this function)
    stone.c:2416: error: 'rmflag' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2428: error: syntax error before '*' token
    stone.c: In function 'newExData':
    stone.c:2431: error: 'type' undeclared (first use in this function)
    stone.c:2432: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2438: error: syntax error before '*' token
    stone.c: In function 'modPairDest':
    stone.c:2439: error: 'p2' undeclared (first use in this function)
    stone.c:2443: error: 'SSL' undeclared (first use in this function)
    stone.c:2445: error: 'p1' undeclared (first use in this function)
    stone.c:2450: error: 'SSL_SESSION' undeclared (first use in this function)
    stone.c:2450: error: 'sess' undeclared (first use in this function)
    stone.c:2454: error: 'SSL_MAX_SSL_SESSION_ID_LENGTH' undeclared (first use in this function)
    stone.c:2465: warning: assignment makes pointer from integer without a cast
    stone.c:2522: error: 'dstlenmax' undeclared (first use in this function)
    stone.c:2523: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:2523: error: 'dst' undeclared (first use in this function)
    stone.c:2534: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:2543: error: syntax error before 'Origin'
    stone.c: In function 'message_origin':
    stone.c:2548: error: 'stone' undeclared (first use in this function)
    stone.c:2552: error: 'origin' undeclared (first use in this function)
    stone.c:2576: error: 'pri' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2579: error: syntax error before '*' token
    stone.c: In function 'ungetPktBuf':
    stone.c:2580: error: 'pb' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2591: error: syntax error before '*' token
    stone.c: In function 'getPktBuf':
    stone.c:2592: error: 'ret' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2622: error: syntax error before '*' token
    stone.c: In function 'freeOrigin':
    stone.c:2623: error: 'origin' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2627: error: syntax error before '*' token
    stone.c:2627: error: syntax error before 'Stone'
    stone.c: In function 'getOrigins':
    stone.c:2628: error: 'origin' undeclared (first use in this function)
    stone.c:2629: error: 'origins' undeclared (first use in this function)
    stone.c:2629: error: syntax error before ')' token
    stone.c:2637: warning: passing argument 2 of 'saComp' from incompatible pointer type
    stone.c:2643: error: 'struct <anonymous>' has no member named 'sa_family'
    stone.c:2649: error: 'stone' undeclared (first use in this function)
    stone.c:2656: error: 'fromlen' undeclared (first use in this function)
    stone.c:2656: warning: passing argument 1 of 'addrport2str' from incompatible pointer type
    stone.c:2677: warning: passing argument 1 of 'saDup' from incompatible pointer type
    stone.c: At top level:
    stone.c:2705: error: syntax error before '*' token
    stone.c:2705: error: syntax error before '*' token
    stone.c: In function 'recvUDP':
    stone.c:2709: error: 'origin' undeclared (first use in this function)
    stone.c:2713: error: 'pb' undeclared (first use in this function)
    stone.c:2714: error: 'stone' undeclared (first use in this function)
    stone.c:2716: error: syntax error before ')' token
    stone.c: At top level:
    stone.c:2789: error: syntax error before '*' token
    stone.c: In function 'sendUDP':
    stone.c:2790: error: 'origin' undeclared (first use in this function)
    stone.c:2790: error: 'pb' undeclared (first use in this function)
    stone.c:2791: error: 'stone' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2841: error: syntax error before '*' token
    stone.c: In function 'docloseUDP':
    stone.c:2846: error: 'origin' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2862: error: syntax error before 'Origin'
    stone.c: In function 'scanUDP':
    stone.c:2864: error: 'origin' undeclared (first use in this function)
    stone.c:2864: error: 'prev' undeclared (first use in this function)
    stone.c:2869: error: 'origins' undeclared (first use in this function)
    stone.c:2883: error: 'old' undeclared (first use in this function)
    stone.c:2912: error: 'rop' undeclared (first use in this function)
    stone.c:2913: error: 'pb' undeclared (first use in this function)
    stone.c:2913: error: syntax error before ')' token
    stone.c: At top level:
    stone.c:2931: error: syntax error before '*' token
    stone.c: In function 'recvPairUDP':
    stone.c:2932: error: 'stone' undeclared (first use in this function)
    stone.c:2932: error: 'pair' undeclared (first use in this function)
    stone.c:2934: error: 'p' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3005: error: syntax error before '*' token
    stone.c: In function 'sendPairUDPbuf':
    stone.c:3009: error: 'pair' undeclared (first use in this function)
    stone.c:3011: error: 'p' undeclared (first use in this function)
    stone.c:3013: error: 'stone' undeclared (first use in this function)
    stone.c:3025: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:3057: error: syntax error before '*' token
    stone.c: In function 'sendPairUDP':
    stone.c:3058: error: 'stone' undeclared (first use in this function)
    stone.c:3058: error: 'pair' undeclared (first use in this function)
    stone.c:3068: error: 'p' undeclared (first use in this function)
    stone.c:3115: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:3142: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:3176: error: syntax error before 'Pair'
    stone.c: In function 'message_pair':
    stone.c:3181: error: 'p' undeclared (first use in this function)
    stone.c:3185: error: 'pair' undeclared (first use in this function)
    stone.c:3219: error: 'pri' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3225: error: syntax error before 'SSL'
    stone.c: In function 'printSSLinfo':
    stone.c:3226: error: 'X509' undeclared (first use in this function)
    stone.c:3226: error: 'peer' undeclared (first use in this function)
    stone.c:3229: error: 'pri' undeclared (first use in this function)
    stone.c:3233: error: 'ASN1_INTEGER' undeclared (first use in this function)
    stone.c:3233: error: 'n' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3244: error: syntax error before '*' token
    stone.c: In function 'doSSL_accept':
    stone.c:3247: error: 'SSL' undeclared (first use in this function)
    stone.c:3248: error: 'pair' undeclared (first use in this function)
    stone.c:3253: warning: assignment makes pointer from integer without a cast
    stone.c:3282: error: 'SSL_CTX' undeclared (first use in this function)
    stone.c:3282: error: 'ctx' undeclared (first use in this function)
    stone.c:3292: error: 'SSL_ERROR_WANT_READ' undeclared (first use in this function)
    stone.c:3295: error: 'SSL_ERROR_WANT_WRITE' undeclared (first use in this function)
    stone.c:3298: error: 'SSL_ERROR_SYSCALL' undeclared (first use in this function)
    stone.c:3328: error: 'SSL_ERROR_SSL' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3340: error: syntax error before '*' token
    stone.c: In function 'doSSL_connect':
    stone.c:3344: error: 'SSL' undeclared (first use in this function)
    stone.c:3345: error: 'pair' undeclared (first use in this function)
    stone.c:3350: warning: assignment makes pointer from integer without a cast
    stone.c:3371: error: 'p' undeclared (first use in this function)
    stone.c:3376: error: 'SSL_CTX' undeclared (first use in this function)
    stone.c:3376: error: 'ctx' undeclared (first use in this function)
    stone.c:3387: error: 'SSL_ERROR_WANT_READ' undeclared (first use in this function)
    stone.c:3390: error: 'SSL_ERROR_WANT_WRITE' undeclared (first use in this function)
    stone.c:3393: error: 'SSL_ERROR_SYSCALL' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3424: error: syntax error before '*' token
    stone.c: In function 'doSSL_shutdown':
    stone.c:3429: error: 'SSL' undeclared (first use in this function)
    stone.c:3430: error: 'ss' undeclared (first use in this function)
    stone.c:3431: error: 'pair' undeclared (first use in this function)
    stone.c:3436: error: 'how' undeclared (first use in this function)
    stone.c:3456: error: 'SSL_RECEIVED_SHUTDOWN' undeclared (first use in this function)
    stone.c:3464: error: 'SSL_ERROR_WANT_READ' undeclared (first use in this function)
    stone.c:3466: error: 'SSL_ERROR_WANT_WRITE' undeclared (first use in this function)
    stone.c:3468: error: 'SSL_ERROR_SYSCALL' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3517: error: syntax error before '*' token
    stone.c: In function 'doshutdown':
    stone.c:3519: error: 'SSL' undeclared (first use in this function)
    stone.c:3521: error: 'pair' undeclared (first use in this function)
    stone.c:3524: error: 'how' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3536: error: syntax error before '*' token
    stone.c: In function 'newPair':
    stone.c:3537: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3578: error: syntax error before '*' token
    stone.c: In function 'freePair':
    stone.c:3582: error: 'SSL' undeclared (first use in this function)
    stone.c:3585: error: 'pair' undeclared (first use in this function)
    stone.c:3606: error: 'SSL_CTX' undeclared (first use in this function)
    stone.c:3606: error: 'ctx' undeclared (first use in this function)
    stone.c:3610: error: 'SSL_RECEIVED_SHUTDOWN' undeclared (first use in this function)
    stone.c:3614: error: 'SSL_SENT_SHUTDOWN' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3662: error: syntax error before '*' token
    stone.c: In function 'insertPairs':
    stone.c:3663: error: 'p2' undeclared (first use in this function)
    stone.c:3663: error: 'p1' undeclared (first use in this function)
    stone.c:3664: error: 'stone' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3680: error: syntax error before '*' token
    stone.c: In function 'message_time_log':
    stone.c:3681: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3699: error: syntax error before '*' token
    stone.c: In function 'connected':
    stone.c:3700: error: 'p' undeclared (first use in this function)
    stone.c:3700: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3757: error: syntax error before 'Conn'
    stone.c: In function 'message_conn':
    stone.c:3759: error: 'p1' undeclared (first use in this function)
    stone.c:3759: error: 'p2' undeclared (first use in this function)
    stone.c:3764: error: 'conn' undeclared (first use in this function)
    stone.c:3777: error: 'pri' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3780: error: syntax error before '*' token
    stone.c: In function 'doconnect':
    stone.c:3785: error: 'p2' undeclared (first use in this function)
    stone.c:3794: error: 'p1' undeclared (first use in this function)
    stone.c:3798: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:3798: error: 'sa' undeclared (first use in this function)
    stone.c:3798: error: 'salen' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3892: error: syntax error before '*' token
    stone.c: In function 'freeConn':
    stone.c:3893: error: 'conn' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3897: error: syntax error before '*' token
    stone.c: In function 'reqconn':
    stone.c:3900: error: 'conn' undeclared (first use in this function)
    stone.c:3901: error: 'p' undeclared (first use in this function)
    stone.c:3901: error: 'pair' undeclared (first use in this function)
    stone.c:3912: error: 'dst' undeclared (first use in this function)
    stone.c:3912: error: 'dstlen' undeclared (first use in this function)
    stone.c:3940: error: request for member 'next' in something not a structure or union
    stone.c:3941: error: request for member 'next' in something not a structure or union
    stone.c: At top level:
    stone.c:3946: error: syntax error before '*' token
    stone.c: In function 'asyncConn':
    stone.c:3947: error: 'p1' undeclared (first use in this function)
    stone.c:3947: error: 'p2' undeclared (first use in this function)
    stone.c:3950: error: 'conn' undeclared (first use in this function)
    stone.c: In function 'scanConns':
    stone.c:3984: error: 'conn' undeclared (first use in this function)
    stone.c:3984: error: 'pconn' undeclared (first use in this function)
    stone.c:3985: error: 'p1' undeclared (first use in this function)
    stone.c:3985: error: 'p2' undeclared (first use in this function)
    stone.c:3988: error: request for member 'next' in something not a structure or union
    stone.c: At top level:
    stone.c:4021: error: syntax error before '*' token
    stone.c:4021: error: syntax error before '*' token
    stone.c: In function 'acceptPair':
    stone.c:4025: error: 'pair' undeclared (first use in this function)
    stone.c:4029: error: 'stone' undeclared (first use in this function)
    stone.c:4060: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'getident':
    stone.c:4104: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:4266: warning: incompatible implicit declaration of built-in function 'rindex'
    stone.c: At top level:
    stone.c:4279: error: syntax error before '*' token
    stone.c: In function 'acceptCheck':
    stone.c:4283: error: 'stone' undeclared (first use in this function)
    stone.c:4283: error: 'pair1' undeclared (first use in this function)
    stone.c:4284: error: 'pair2' undeclared (first use in this function)
    stone.c:4296: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:4489: error: syntax error before 'Pair'
    stone.c: In function 'strnUser':
    stone.c:4497: error: 'which' undeclared (first use in this function)
    stone.c:4497: error: 'pair' undeclared (first use in this function)
    stone.c:4563: error: 'limit' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:4568: error: syntax error before 'Pair'
    stone.c: In function 'strnparse':
    stone.c:4574: error: 'SSL' undeclared (first use in this function)
    stone.c:4574: error: 'pair' undeclared (first use in this function)
    stone.c:4575: error: 'SSL_SESSION' undeclared (first use in this function)
    stone.c:4575: error: 'sess' undeclared (first use in this function)
    stone.c:4578: error: 'pp' undeclared (first use in this function)
    stone.c:4579: error: 'limit' undeclared (first use in this function)
    stone.c:4582: error: 'term' undeclared (first use in this function)
    stone.c:4593: warning: assignment makes pointer from integer without a cast
    stone.c: At top level:
    stone.c:4671: error: syntax error before '*' token
    stone.c: In function 'scanClose':
    stone.c:4672: error: 'p1' undeclared (first use in this function)
    stone.c:4672: error: 'p2' undeclared (first use in this function)
    stone.c:4672: error: 'p' undeclared (first use in this function)
    stone.c:4676: error: 'pairs' undeclared (first use in this function)
    stone.c:4682: error: request for member 'next' in something not a structure or union
    stone.c:4740: error: request for member 'next' in something not a structure or union
    stone.c:4740: error: request for member 'next' in something not a structure or union
    stone.c:4744: error: request for member 'next' in something not a structure or union
    stone.c:4745: error: request for member 'next' in something not a structure or union
    stone.c: In function 'message_pairs':
    stone.c:4751: error: 'pair' undeclared (first use in this function)
    stone.c: In function 'message_origins':
    stone.c:4762: error: 'origin' undeclared (first use in this function)
    stone.c: In function 'message_conns':
    stone.c:4774: error: 'conn' undeclared (first use in this function)
    stone.c:4775: error: request for member 'next' in something not a structure or union
    stone.c: At top level:
    stone.c:4782: error: syntax error before '*' token
    stone.c: In function 'setclose':
    stone.c:4783: error: 'pair' undeclared (first use in this function)
    stone.c:4786: error: 'flag' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:4799: error: syntax error before '*' token
    stone.c: In function 'dowrite':
    stone.c:4800: error: 'pair' undeclared (first use in this function)
    stone.c:4801: error: 'p' undeclared (first use in this function)
    stone.c:4828: error: 'SSL_ERROR_NONE' undeclared (first use in this function)
    stone.c:4828: error: 'SSL_ERROR_WANT_WRITE' undeclared (first use in this function)
    stone.c:4834: error: 'SSL_ERROR_WANT_READ' undeclared (first use in this function)
    stone.c:4842: error: 'SSL_ERROR_SYSCALL' undeclared (first use in this function)
    stone.c:4866: error: 'SSL_ERROR_ZERO_RETURN' undeclared (first use in this function)
    stone.c: In function 'baseEncode':
    stone.c:4947: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:5022: error: syntax error before '*' token
    stone.c: In function 'doread':
    stone.c:5023: error: 'pair' undeclared (first use in this function)
    stone.c:5024: error: 'p' undeclared (first use in this function)
    stone.c:5085: error: 'SSL_ERROR_NONE' undeclared (first use in this function)
    stone.c:5085: error: 'SSL_ERROR_WANT_READ' undeclared (first use in this function)
    stone.c:5091: error: 'SSL_ERROR_WANT_WRITE' undeclared (first use in this function)
    stone.c:5099: error: 'SSL_ERROR_SYSCALL' undeclared (first use in this function)
    stone.c:5123: error: 'SSL_ERROR_ZERO_RETURN' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5215: error: syntax error before '*' token
    stone.c: In function 'commOutput':
    stone.c:5216: error: 'p' undeclared (first use in this function)
    stone.c:5216: error: 'pair' undeclared (first use in this function)
    stone.c:5239: error: 'fmt' undeclared (first use in this function)
    stone.c:5239: error: 'va_start' used in function with fixed args
    stone.c: At top level:
    stone.c:5330: error: syntax error before '*' token
    stone.c: In function 'doproxy':
    stone.c:5331: error: 'pair' undeclared (first use in this function)
    stone.c:5355: error: 'host' undeclared (first use in this function)
    stone.c:5355: error: 'serv' undeclared (first use in this function)
    stone.c:5384: error: 'p' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5446: error: syntax error before '*' token
    stone.c: In function 'proxyCONNECT':
    stone.c:5448: error: 'parm' undeclared (first use in this function)
    stone.c:5450: error: 'p' undeclared (first use in this function)
    stone.c:5451: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5471: error: syntax error before '*' token
    stone.c: In function 'proxyCommon':
    stone.c:5478: error: 'pair' undeclared (first use in this function)
    stone.c:5479: error: 'start' undeclared (first use in this function)
    stone.c:5481: error: 'parm' undeclared (first use in this function)
    stone.c:5508: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:5512: error: 'r' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5521: error: syntax error before '*' token
    stone.c: In function 'proxyGET':
    stone.c:5522: error: 'pair' undeclared (first use in this function)
    stone.c:5522: error: 'parm' undeclared (first use in this function)
    stone.c:5523: error: 'start' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5526: error: syntax error before '*' token
    stone.c: In function 'proxyHEAD':
    stone.c:5527: error: 'pair' undeclared (first use in this function)
    stone.c:5527: error: 'parm' undeclared (first use in this function)
    stone.c:5528: error: 'start' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5531: error: syntax error before '*' token
    stone.c: In function 'proxyPOST':
    stone.c:5532: error: 'pair' undeclared (first use in this function)
    stone.c:5532: error: 'parm' undeclared (first use in this function)
    stone.c:5533: error: 'start' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5536: error: syntax error before '*' token
    stone.c: In function 'proxyErr':
    stone.c:5537: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5550: error: syntax error before '*' token
    stone.c: In function 'popUSER':
    stone.c:5553: error: 'pair' undeclared (first use in this function)
    stone.c:5560: error: 'parm' undeclared (first use in this function)
    stone.c:5567: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:5577: error: syntax error before '*' token
    stone.c: In function 'popPASS':
    stone.c:5578: error: 'MD5_CTX' undeclared (first use in this function)
    stone.c:5578: error: syntax error before 'context'
    stone.c:5582: error: 'pair' undeclared (first use in this function)
    stone.c:5587: error: 'parm' undeclared (first use in this function)
    stone.c:5607: error: 'context' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5621: error: syntax error before '*' token
    stone.c: In function 'popAUTH':
    stone.c:5622: error: 'parm' undeclared (first use in this function)
    stone.c:5623: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5627: error: syntax error before '*' token
    stone.c: In function 'popCAPA':
    stone.c:5628: error: 'parm' undeclared (first use in this function)
    stone.c:5629: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5633: error: syntax error before '*' token
    stone.c: In function 'popAPOP':
    stone.c:5634: error: 'pair' undeclared (first use in this function)
    stone.c:5635: error: 'parm' undeclared (first use in this function)
    stone.c:5636: error: 'start' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5641: error: syntax error before '*' token
    stone.c: In function 'popErr':
    stone.c:5642: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5656: error: syntax error before '*' token
    stone.c: In function 'identd':
    stone.c:5660: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5680: error: syntax error before '*' token
    stone.c: In function 'identdQUERY':
    stone.c:5687: error: 'p' undeclared (first use in this function)
    stone.c:5687: error: 'pair' undeclared (first use in this function)
    stone.c:5691: error: 'parm' undeclared (first use in this function)
    stone.c:5703: error: 'stone' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5720: error: syntax error before '*' token
    stone.c: In function 'identdQUIT':
    stone.c:5721: error: 'parm' undeclared (first use in this function)
    stone.c: In function 'nStones':
    stone.c:5733: error: 'stone' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5738: error: syntax error before '*' token
    stone.c: In function 'nPairs':
    stone.c:5740: error: 'pair' undeclared (first use in this function)
    stone.c:5741: error: 'top' undeclared (first use in this function)
    stone.c: In function 'nConns':
    stone.c:5748: error: 'conn' undeclared (first use in this function)
    stone.c:5749: error: request for member 'next' in something not a structure or union
    stone.c: In function 'nOrigins':
    stone.c:5755: error: 'origin' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5761: error: syntax error before '*' token
    stone.c: In function 'limitCommon':
    stone.c:5762: error: 'str' undeclared (first use in this function)
    stone.c:5762: error: 'limit' undeclared (first use in this function)
    stone.c:5762: error: 'var' undeclared (first use in this function)
    stone.c:5764: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5772: error: syntax error before '*' token
    stone.c: In function 'limitPair':
    stone.c:5773: error: 'pair' undeclared (first use in this function)
    stone.c:5773: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5776: error: syntax error before '*' token
    stone.c: In function 'limitConn':
    stone.c:5777: error: 'pair' undeclared (first use in this function)
    stone.c:5777: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5780: error: syntax error before '*' token
    stone.c: In function 'limitEstablished':
    stone.c:5783: error: 'pair' undeclared (first use in this function)
    stone.c:5784: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5787: error: syntax error before '*' token
    stone.c: In function 'limitReadWrite':
    stone.c:5790: error: 'pair' undeclared (first use in this function)
    stone.c:5791: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5794: error: syntax error before '*' token
    stone.c: In function 'limitAsync':
    stone.c:5795: error: 'pair' undeclared (first use in this function)
    stone.c:5795: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5798: error: syntax error before '*' token
    stone.c: In function 'limitErr':
    stone.c:5799: error: 'parm' undeclared (first use in this function)
    stone.c:5800: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5813: error: syntax error before '*' token
    stone.c: In function 'healthHELO':
    stone.c:5817: error: request for member 'next' in something not a structure or union
    stone.c:5820: error: 'parm' undeclared (first use in this function)
    stone.c:5821: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5826: error: syntax error before '*' token
    stone.c: In function 'healthSTAT':
    stone.c:5834: error: 'parm' undeclared (first use in this function)
    stone.c:5835: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5840: error: syntax error before '*' token
    stone.c: In function 'healthFREE':
    stone.c:5846: error: 'parm' undeclared (first use in this function)
    stone.c:5847: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5852: error: syntax error before '*' token
    stone.c: In function 'healthCLOCK':
    stone.c:5860: error: 'parm' undeclared (first use in this function)
    stone.c:5861: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5866: error: syntax error before '*' token
    stone.c: In function 'healthCVS_ID':
    stone.c:5867: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5871: error: syntax error before '*' token
    stone.c: In function 'healthCONFIG':
    stone.c:5874: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5879: error: syntax error before '*' token
    stone.c: In function 'healthSTONE':
    stone.c:5880: error: 'stone' undeclared (first use in this function)
    stone.c:5883: error: 'child' undeclared (first use in this function)
    stone.c:5885: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5892: error: syntax error before '*' token
    stone.c: In function 'healthLIMIT':
    stone.c:5896: error: 'parm' undeclared (first use in this function)
    stone.c:5899: error: 'pair' undeclared (first use in this function)
    stone.c:5899: error: 'start' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5903: error: syntax error before '*' token
    stone.c: In function 'healthQUIT':
    stone.c:5904: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5908: error: syntax error before '*' token
    stone.c: In function 'healthErr':
    stone.c:5909: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5936: error: syntax error before '*' token
    stone.c: In function 'docomm':
    stone.c:5937: error: 'pair' undeclared (first use in this function)
    stone.c:5961: error: 'comm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5974: error: syntax error before '*' token
    stone.c: In function 'insheader':
    stone.c:5975: error: 'pair' undeclared (first use in this function)
    stone.c:5994: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:6006: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:6011: error: syntax error before '*' token
    stone.c: In function 'rmheader':
    stone.c:6012: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6040: error: syntax error before '*' token
    stone.c: In function 'first_read':
    stone.c:6041: error: 'pair' undeclared (first use in this function)
    stone.c:6043: error: 'p' undeclared (first use in this function)
    stone.c:6045: error: 'stone' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6163: error: syntax error before 'Pair'
    stone.c: In function 'proto2fdset':
    stone.c:6170: error: 'pair' undeclared (first use in this function)
    stone.c:6174: error: 'isthread' undeclared (first use in this function)
    stone.c:6183: error: 'routp' undeclared (first use in this function)
    stone.c:6184: error: 'woutp' undeclared (first use in this function)
    stone.c:6202: error: 'eoutp' undeclared (first use in this function)
    stone.c:6222: error: 'p' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6312: error: syntax error before '*' token
    stone.c: In function 'doReadWritePair':
    stone.c:6315: error: 'rPair' undeclared (first use in this function)
    stone.c:6315: error: 'wPair' undeclared (first use in this function)
    stone.c:6316: error: 'stone' undeclared (first use in this function)
    stone.c:6320: error: 'pair' undeclared (first use in this function)
    stone.c:6325: error: 'hangup' undeclared (first use in this function)
    stone.c:6325: error: 'ready_r' undeclared (first use in this function)
    stone.c:6327: error: 'ready_w' undeclared (first use in this function)
    stone.c:6327: error: 'ready_e' undeclared (first use in this function)
    stone.c:6339: error: 'opposite' undeclared (first use in this function)
    stone.c:6620: error: 'error' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6630: error: syntax error before '*' token
    stone.c: In function 'doReadWrite':
    stone.c:6632: error: 'p' undeclared (first use in this function)
    stone.c:6641: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6715: error: syntax error before '*' token
    stone.c: In function 'asyncReadWrite':
    stone.c:6717: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6721: error: syntax error before '*' token
    stone.c: In function 'doPair':
    stone.c:6723: error: 'p' undeclared (first use in this function)
    stone.c:6723: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6740: error: syntax error before '*' token
    stone.c: In function 'doAcceptConnect':
    stone.c:6741: error: 'stone' undeclared (first use in this function)
    stone.c:6741: error: 'p1' undeclared (first use in this function)
    stone.c:6742: error: 'p2' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6791: error: syntax error before '*' token
    stone.c: In function 'asyncAcceptConnect':
    stone.c:6793: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6797: error: syntax error before '*' token
    stone.c:6797: error: syntax error before 'Stone'
    stone.c: In function 'getPairUDP':
    stone.c:6798: error: 'pair' undeclared (first use in this function)
    stone.c:6801: error: 'stone' undeclared (first use in this function)
    stone.c:6802: error: 'p' undeclared (first use in this function)
    stone.c:6807: warning: passing argument 2 of 'saComp' from incompatible pointer type
    stone.c:6817: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:6817: error: 'fromlen' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6830: error: syntax error before '*' token
    stone.c: In function 'recvStoneUDP':
    stone.c:6831: error: 'stone' undeclared (first use in this function)
    stone.c:6832: error: 'pb' undeclared (first use in this function)
    stone.c:6843: error: 'rPair' undeclared (first use in this function)
    stone.c:6844: error: 'wPair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6976: error: syntax error before 'Pair'
    stone.c: In function 'scanPairs':
    stone.c:6978: error: 'pair' undeclared (first use in this function)
    stone.c:6982: error: 'pairs' undeclared (first use in this function)
    stone.c:7001: error: 'rop' undeclared (first use in this function)
    stone.c:7001: error: 'wop' undeclared (first use in this function)
    stone.c:7001: error: 'eop' undeclared (first use in this function)
    stone.c:7002: error: 'p' undeclared (first use in this function)
    stone.c: In function 'scanStones':
    stone.c:7031: error: 'stone' undeclared (first use in this function)
    stone.c:7045: error: 'pair' undeclared (first use in this function)
    stone.c:7051: error: syntax error before ')' token
    stone.c: At top level:
    stone.c:7063: error: syntax error before 'CRYPTO_EX_DATA'
    stone.c: In function 'newMatch':
    stone.c:7071: error: 'ad' undeclared (first use in this function)
    stone.c:7071: error: 'idx' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:7076: error: syntax error before 'CRYPTO_EX_DATA'
    stone.c: In function 'freeMatch':
    stone.c:7078: error: 'ptr' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:7107: error: syntax error before '*' token
    stone.c: In function 'hostcheck':
    stone.c:7108: error: 'X509_EXTENSION' undeclared (first use in this function)
    stone.c:7108: error: 'ext' undeclared (first use in this function)
    stone.c:7109: error: 'GENERAL_NAMES' undeclared (first use in this function)
    stone.c:7109: error: 'ialt' undeclared (first use in this function)
    stone.c:7111: error: 'cert' undeclared (first use in this function)
    stone.c:7111: error: 'NID_subject_alt_name' undeclared (first use in this function)
    stone.c:7117: error: 'GENERAL_NAME' undeclared (first use in this function)
    stone.c:7117: error: 'gen' undeclared (first use in this function)
    stone.c:7118: error: 'GEN_DNS' undeclared (first use in this function)
    stone.c:7123: error: 'host' undeclared (first use in this function)
    stone.c:7135: error: 'NID_commonName' undeclared (first use in this function)
    stone.c:7142: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:7150: error: syntax error before 'X509_STORE_CTX'
    stone.c: In function 'verify_callback':
    stone.c:7151: error: 'X509' undeclared (first use in this function)
    stone.c:7151: error: 'err_cert' undeclared (first use in this function)
    stone.c:7155: error: 'SSL' undeclared (first use in this function)
    stone.c:7156: error: 'pair' undeclared (first use in this function)
    stone.c:7157: error: 'ss' undeclared (first use in this function)
    stone.c:7160: error: 'ctx' undeclared (first use in this function)
    stone.c:7164: warning: assignment makes pointer from integer without a cast
    stone.c:7186: error: 'ASN1_INTEGER' undeclared (first use in this function)
    stone.c:7186: error: 'n' undeclared (first use in this function)
    stone.c:7204: error: 'preverify_ok' undeclared (first use in this function)
    stone.c:7205: warning: assignment makes pointer from integer without a cast
    stone.c:7211: error: 'X509_V_ERR_CERT_CHAIN_TOO_LONG' undeclared (first use in this function)
    stone.c:7247: error: 'SSL_SESSION' undeclared (first use in this function)
    stone.c:7247: error: 'sess' undeclared (first use in this function)
    stone.c:7255: warning: assignment makes pointer from integer without a cast
    stone.c: At top level:
    stone.c:7334: error: syntax error before '*' token
    stone.c:7334: error: syntax error before '*' token
    stone.c: In function 'mkStoneSSL':
    stone.c:7335: error: 'ss' undeclared (first use in this function)
    stone.c:7344: error: 'opts' undeclared (first use in this function)
    stone.c:7353: error: 'SSL_MODE_ENABLE_PARTIAL_WRITE' undeclared (first use in this function)
    stone.c:7373: error: 'PKCS12' undeclared (first use in this function)
    stone.c:7373: error: 'p12' undeclared (first use in this function)
    stone.c:7374: error: 'EVP_PKEY' undeclared (first use in this function)
    stone.c:7374: error: 'key' undeclared (first use in this function)
    stone.c:7375: error: 'X509' undeclared (first use in this function)
    stone.c:7375: error: 'cert' undeclared (first use in this function)
    stone.c:7422: error: 'X509_FILETYPE_PEM' undeclared (first use in this function)
    stone.c:7471: error: 'isserver' undeclared (first use in this function)
    stone.c:7483: error: 'SSL_MAX_SSL_SESSION_ID_LENGTH' undeclared (first use in this function)
    stone.c:7495: error: 'SSL_SESS_CACHE_SERVER' undeclared (first use in this function)
    stone.c:7495: error: 'SSL_SESS_CACHE_NO_AUTO_CLEAR' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:7504: error: syntax error before '*' token
    stone.c: In function 'rmStoneSSL':
    stone.c:7506: error: 'ss' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:7552: error: syntax error before '*' token
    stone.c: In function 'exPatOpts':
    stone.c:7553: error: 'opts' undeclared (first use in this function)
    stone.c:7555: error: 'src' undeclared (first use in this function)
    stone.c:7555: error: 'dst' undeclared (first use in this function)
    stone.c: In function 'rmoldstone':
    stone.c:7599: error: 'stone' undeclared (first use in this function)
    stone.c:7599: error: dereferencing pointer to incomplete type
    stone.c: In function 'repeater':
    stone.c:7641: error: 'pair' undeclared (first use in this function)
    stone.c:7671: error: request for member 'next' in something not a structure or union
    stone.c:7671: error: request for member 'next' in something not a structure or union
    stone.c:7728: error: request for member 'next' in something not a structure or union
    stone.c: At top level:
    stone.c:7748: error: syntax error before '*' token
    stone.c: In function 'reusestone':
    stone.c:7749: error: 's' undeclared (first use in this function)
    stone.c:7752: error: 'stone' undeclared (first use in this function)
    stone.c: In function 'mkXhosts':
    stone.c:7908: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:8040: error: syntax error before '*' token
    stone.c: In function 'getStone':
    stone.c:8041: error: 'stone' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:8053: error: syntax error before '*' token
    stone.c: In function 'mkstone':
    stone.c:8061: error: 'stone' undeclared (first use in this function)
    stone.c:8062: error: 'st' undeclared (first use in this function)
    stone.c: In function 'help':
    stone.c:8340: error: syntax error before 'OPENSSL_VERSION_TEXT'
    stone.c: In function 'getconfig':
    stone.c:8721: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:8728: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:8857: error: syntax error before '*' token
    stone.c: In function 'sslopts_default':
    stone.c:8859: error: 'opts' undeclared (first use in this function)
    stone.c:8861: error: 'SSL_VERIFY_NONE' undeclared (first use in this function)
    stone.c:8869: error: 'isserver' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:8911: error: syntax error before 'SSLOpts'
    stone.c: In function 'sslopts':
    stone.c:8912: error: 'argv' undeclared (first use in this function)
    stone.c:8912: error: 'argi' undeclared (first use in this function)
    stone.c:8913: error: 'opts' undeclared (first use in this function)
    stone.c:8913: error: 'isserver' undeclared (first use in this function)
    stone.c:8918: error: 'SSL_RECEIVED_SHUTDOWN' undeclared (first use in this function)
    stone.c:8922: error: 'SSL_SENT_SHUTDOWN' undeclared (first use in this function)
    stone.c:8927: error: 'SSL_VERIFY_NONE' undeclared (first use in this function)
    stone.c:8929: error: 'SSL_VERIFY_PEER' undeclared (first use in this function)
    stone.c:8929: error: 'SSL_VERIFY_FAIL_IF_NO_PEER_CERT' undeclared (first use in this function)
    stone.c:8932: error: 'SSL_VERIFY_CLIENT_ONCE' undeclared (first use in this function)
    stone.c:8943: error: 'X509_V_FLAG_CRL_CHECK' undeclared (first use in this function)
    stone.c:8946: error: 'X509_V_FLAG_CRL_CHECK_ALL' undeclared (first use in this function)
    stone.c:8968: error: 'SSL_OP_ALL' undeclared (first use in this function)
    stone.c:8985: error: 'SSL_OP_NO_TLSv1' undeclared (first use in this function)
    stone.c:8987: error: 'SSL_OP_NO_SSLv3' undeclared (first use in this function)
    stone.c:8989: error: 'SSL_OP_NO_SSLv2' undeclared (first use in this function)
    stone.c: In function 'sslthread_lock_callback':
    stone.c:9081: error: 'CRYPTO_LOCK' undeclared (first use in this function)
    stone.c: In function 'doargs':
    stone.c:9599: error: 'stone' undeclared (first use in this function)
    stone.c:9716: error: 'origin' undeclared (first use in this function)
    stone.c:9716: error: syntax error before ')' token
    stone.c:9722: warning: incompatible implicit declaration of built-in function 'bzero'
    stone.c:9742: error: request for member 'prev' in something not a structure or union
    stone.c: In function 'initialize':
    stone.c:9967: warning: incompatible implicit declaration of built-in function 'bzero'
    stone.c:9996: error: request for member 'next' in something not a structure or union
    stone.c:9997: error: request for member 'next' in something not a structure or union
    *** Error code 1
    make: Fatal error: Command failed for target `stone'
    Current working directory /usr/local/src/stone-2.3d-2.3.2.7
    *** Error code 1
    make: Fatal error: Command failed for target `solaris'
    Current working directory /usr/local/src/stone-2.3d-2.3.2.7
    *** Error code 1
    make: Fatal error: Command failed for target `ssl_stone'
    Current working directory /usr/local/src/stone-2.3d-2.3.2.7
    *** Error code 1
    make: Fatal error: Command failed for target `solaris-ssl'
  • id:Reiaru
    stone 2.2
    http://www.gcd.org/sengoku/stone/stone-2.2.tar.gz
    何だか分かりませんが、こちらは違うのですか?

    それから、質問文自体に id:Reiaru 等と書いても、何故か ID コールが掛からないという不思議があります。
    それ故、相手が気が付かないまま質問が埋もれる可能性もあります。
    (そもそも特定個人の回答のみを募集するというのがあれですが)
  • id:amalfi-0219
    openssl関連のヘッダファイルがない旨のエラーメッセージなので
    2.2にしたところで状況は変わらない気がしますね。
    インストール要件を今一度確認したほうがいいんじゃないでしょうか。

    たとえばこの辺とか↓
    http://www.hal.t.u-tokyo.ac.jp/~kunito/install/stone/
  • id:meichi
    amalfi-0219さん。
    大変参考になる 情報 をありがとうございました。
    自宅に帰ってからやってみます。解決した場合には500ptとまではいかないかも
    しれませんが、ポイントはお支払いします。
  • id:meichi
    すいません。http://www.hal.t.u-tokyo.ac.jp/~kunito/install/stone/ を参考にやってみましたが、まただめなような気がします。よろしくお願いします。m(_ _)m
    '
    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% make solaris-ssl

    make TARGET=solaris ssl_stone
    make FLAGS="-DUSE_POP -DUSE_SSL " LIBS=" -lssl -lcrypto" solaris
    make CC=gcc FLAGS="-DPTHREAD -D_REENTRANT -DUSE_POP -DUSE_SSL" LIBS="-lnsl -lsocket -lpthread -lthread -lssl -lcrypto" stone
    gcc -DPTHREAD -D_REENTRANT -DUSE_POP -DUSE_SSL -o stone stone.c -lnsl -lsocket -lpthread -lthread -lssl -lcrypto
    stone.c:306:28: error: openssl/crypto.h: No such file or directory
    stone.c:307:26: error: openssl/x509.h: No such file or directory
    stone.c:308:28: error: openssl/x509v3.h: No such file or directory
    stone.c:309:25: error: openssl/ssl.h: No such file or directory
    stone.c:310:25: error: openssl/bio.h: No such file or directory
    stone.c:311:25: error: openssl/err.h: No such file or directory
    stone.c:312:28: error: openssl/pkcs12.h: No such file or directory
    stone.c:313:26: error: openssl/rand.h: No such file or directory
    stone.c:332: error: syntax error before 'SSL_CTX'
    stone.c:332: warning: no semicolon at end of struct or union
    stone.c:338: error: syntax error before '}' token
    stone.c:338: warning: data definition has no type or storage class
    stone.c:352: error: syntax error before 'SSL_METHOD'
    stone.c:352: warning: no semicolon at end of struct or union
    stone.c:353: error: syntax error before 'X509_STORE_CTX'
    stone.c:377: error: syntax error before '}' token
    stone.c:377: warning: data definition has no type or storage class
    stone.c:379: error: syntax error before 'ServerOpts'
    stone.c:379: warning: data definition has no type or storage class
    stone.c:380: error: syntax error before 'ClientOpts'
    stone.c:380: warning: data definition has no type or storage class
    stone.c:393:25: error: openssl/md5.h: No such file or directory
    stone.c:493: error: syntax error before 'StoneSSL'
    stone.c:493: warning: no semicolon at end of struct or union
    stone.c:494: warning: data definition has no type or storage class
    stone.c:498: error: syntax error before '}' token
    stone.c:498: warning: data definition has no type or storage class
    stone.c:527: error: syntax error before 'Stone'
    stone.c:527: warning: no semicolon at end of struct or union
    stone.c:529: warning: data definition has no type or storage class
    stone.c:533: error: 'clock' redeclared as different kind of symbol
    /usr/include/iso/time_iso.h:85: error: previous declaration of 'clock' was here
    stone.c:539: warning: built-in function 'log' declared as non-function
    stone.c:546: error: syntax error before '}' token
    stone.c:546: warning: data definition has no type or storage class
    stone.c:550: error: syntax error before 'Pair'
    stone.c:550: warning: no semicolon at end of struct or union
    stone.c:553: error: syntax error before '}' token
    stone.c:553: warning: data definition has no type or storage class
    stone.c:558: error: syntax error before 'Stone'
    stone.c:558: warning: no semicolon at end of struct or union
    stone.c:562: error: 'clock' redeclared as different kind of symbol
    /usr/include/iso/time_iso.h:85: error: previous declaration of 'clock' was here
    stone.c:563: error: conflicting types for 'next'
    stone.c:552: error: previous declaration of 'next' was here
    stone.c:564: error: syntax error before '}' token
    stone.c:564: warning: data definition has no type or storage class
    stone.c:570: error: syntax error before 'Origin'
    stone.c:570: warning: no semicolon at end of struct or union
    stone.c:574: error: syntax error before '}' token
    stone.c:574: warning: data definition has no type or storage class
    stone.c:578: error: syntax error before '*' token
    stone.c:581: error: syntax error before '*' token
    stone.c:581: warning: data definition has no type or storage class
    stone.c:582: error: syntax error before '*' token
    stone.c:582: warning: data definition has no type or storage class
    stone.c:593: error: syntax error before '*' token
    stone.c:593: warning: data definition has no type or storage class
    stone.c:594: error: syntax error before 'trash'
    stone.c:594: warning: data definition has no type or storage class
    stone.c:595: error: syntax error before '*' token
    stone.c:595: warning: data definition has no type or storage class
    stone.c:602: error: syntax error before 'conns'
    stone.c:602: warning: data definition has no type or storage class
    stone.c:603: error: syntax error before '*' token
    stone.c:603: warning: data definition has no type or storage class
    stone.c:605: error: syntax error before '*' token
    stone.c:605: warning: data definition has no type or storage class
    stone.c:962: error: syntax error before '*' token
    stone.c: In function 'message_time':
    stone.c:966: error: 'pair' undeclared (first use in this function)
    stone.c:966: error: (Each undeclared identifier is reported only once
    stone.c:966: error: for each function it appears in.)
    stone.c:971: error: 'fmt' undeclared (first use in this function)
    stone.c:978: error: 'pri' undeclared (first use in this function)
    stone.c:971: error: 'va_start' used in function with fixed args
    stone.c: At top level:
    stone.c:984: error: syntax error before '*' token
    stone.c: In function 'priority':
    stone.c:986: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:1047: error: syntax error before '*' token
    stone.c: In function 'message_buf':
    stone.c:1049: error: 'p' undeclared (first use in this function)
    stone.c:1049: error: 'pair' undeclared (first use in this function)
    stone.c:1054: error: 'str' undeclared (first use in this function)
    stone.c: In function 'host2sa':
    stone.c:1540: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'saDup':
    stone.c:1560: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'healthCheck':
    stone.c:1920: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'str2bin':
    stone.c:2203: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:2313: error: syntax error before '*' token
    stone.c: In function 'stone2str':
    stone.c:2316: error: 'stone' undeclared (first use in this function)
    stone.c:2321: error: 'str' undeclared (first use in this function)
    stone.c:2321: warning: passing argument 2 of 'snprintf' makes integer from pointer without a cast
    stone.c:2323: warning: passing argument 2 of 'snprintf' makes integer from pointer without a cast
    stone.c:2325: warning: passing argument 2 of 'snprintf' makes integer from pointer without a cast
    stone.c:2331: warning: passing argument 2 of 'snprintf' makes integer from pointer without a cast
    stone.c: At top level:
    stone.c:2410: error: syntax error before '*' token
    stone.c: In function 'getExData':
    stone.c:2411: error: 'pair' undeclared (first use in this function)
    stone.c:2415: error: 'type' undeclared (first use in this function)
    stone.c:2416: error: 'rmflag' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2428: error: syntax error before '*' token
    stone.c: In function 'newExData':
    stone.c:2431: error: 'type' undeclared (first use in this function)
    stone.c:2432: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2438: error: syntax error before '*' token
    stone.c: In function 'modPairDest':
    stone.c:2439: error: 'p2' undeclared (first use in this function)
    stone.c:2443: error: 'SSL' undeclared (first use in this function)
    stone.c:2445: error: 'p1' undeclared (first use in this function)
    stone.c:2450: error: 'SSL_SESSION' undeclared (first use in this function)
    stone.c:2450: error: 'sess' undeclared (first use in this function)
    stone.c:2454: error: 'SSL_MAX_SSL_SESSION_ID_LENGTH' undeclared (first use in this function)
    stone.c:2465: warning: assignment makes pointer from integer without a cast
    stone.c:2522: error: 'dstlenmax' undeclared (first use in this function)
    stone.c:2523: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:2523: error: 'dst' undeclared (first use in this function)
    stone.c:2534: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:2543: error: syntax error before 'Origin'
    stone.c: In function 'message_origin':
    stone.c:2548: error: 'stone' undeclared (first use in this function)
    stone.c:2552: error: 'origin' undeclared (first use in this function)
    stone.c:2576: error: 'pri' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2579: error: syntax error before '*' token
    stone.c: In function 'ungetPktBuf':
    stone.c:2580: error: 'pb' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2591: error: syntax error before '*' token
    stone.c: In function 'getPktBuf':
    stone.c:2592: error: 'ret' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2622: error: syntax error before '*' token
    stone.c: In function 'freeOrigin':
    stone.c:2623: error: 'origin' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2627: error: syntax error before '*' token
    stone.c:2627: error: syntax error before 'Stone'
    stone.c: In function 'getOrigins':
    stone.c:2628: error: 'origin' undeclared (first use in this function)
    stone.c:2629: error: 'origins' undeclared (first use in this function)
    stone.c:2629: error: syntax error before ')' token
    stone.c:2637: warning: passing argument 2 of 'saComp' from incompatible pointer type
    stone.c:2643: error: 'struct <anonymous>' has no member named 'sa_family'
    stone.c:2649: error: 'stone' undeclared (first use in this function)
    stone.c:2656: error: 'fromlen' undeclared (first use in this function)
    stone.c:2656: warning: passing argument 1 of 'addrport2str' from incompatible pointer type
    stone.c:2677: warning: passing argument 1 of 'saDup' from incompatible pointer type
    stone.c: At top level:
    stone.c:2705: error: syntax error before '*' token
    stone.c:2705: error: syntax error before '*' token
    stone.c: In function 'recvUDP':
    stone.c:2709: error: 'origin' undeclared (first use in this function)
    stone.c:2713: error: 'pb' undeclared (first use in this function)
    stone.c:2714: error: 'stone' undeclared (first use in this function)
    stone.c:2716: error: syntax error before ')' token
    stone.c: At top level:
    stone.c:2789: error: syntax error before '*' token
    stone.c: In function 'sendUDP':
    stone.c:2790: error: 'origin' undeclared (first use in this function)
    stone.c:2790: error: 'pb' undeclared (first use in this function)
    stone.c:2791: error: 'stone' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2841: error: syntax error before '*' token
    stone.c: In function 'docloseUDP':
    stone.c:2846: error: 'origin' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:2862: error: syntax error before 'Origin'
    stone.c: In function 'scanUDP':
    stone.c:2864: error: 'origin' undeclared (first use in this function)
    stone.c:2864: error: 'prev' undeclared (first use in this function)
    stone.c:2869: error: 'origins' undeclared (first use in this function)
    stone.c:2883: error: 'old' undeclared (first use in this function)
    stone.c:2912: error: 'rop' undeclared (first use in this function)
    stone.c:2913: error: 'pb' undeclared (first use in this function)
    stone.c:2913: error: syntax error before ')' token
    stone.c: At top level:
    stone.c:2931: error: syntax error before '*' token
    stone.c: In function 'recvPairUDP':
    stone.c:2932: error: 'stone' undeclared (first use in this function)
    stone.c:2932: error: 'pair' undeclared (first use in this function)
    stone.c:2934: error: 'p' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3005: error: syntax error before '*' token
    stone.c: In function 'sendPairUDPbuf':
    stone.c:3009: error: 'pair' undeclared (first use in this function)
    stone.c:3011: error: 'p' undeclared (first use in this function)
    stone.c:3013: error: 'stone' undeclared (first use in this function)
    stone.c:3025: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:3057: error: syntax error before '*' token
    stone.c: In function 'sendPairUDP':
    stone.c:3058: error: 'stone' undeclared (first use in this function)
    stone.c:3058: error: 'pair' undeclared (first use in this function)
    stone.c:3068: error: 'p' undeclared (first use in this function)
    stone.c:3115: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:3142: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:3176: error: syntax error before 'Pair'
    stone.c: In function 'message_pair':
    stone.c:3181: error: 'p' undeclared (first use in this function)
    stone.c:3185: error: 'pair' undeclared (first use in this function)
    stone.c:3219: error: 'pri' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3225: error: syntax error before 'SSL'
    stone.c: In function 'printSSLinfo':
    stone.c:3226: error: 'X509' undeclared (first use in this function)
    stone.c:3226: error: 'peer' undeclared (first use in this function)
    stone.c:3229: error: 'pri' undeclared (first use in this function)
    stone.c:3233: error: 'ASN1_INTEGER' undeclared (first use in this function)
    stone.c:3233: error: 'n' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3244: error: syntax error before '*' token
    stone.c: In function 'doSSL_accept':
    stone.c:3247: error: 'SSL' undeclared (first use in this function)
    stone.c:3248: error: 'pair' undeclared (first use in this function)
    stone.c:3253: warning: assignment makes pointer from integer without a cast
    stone.c:3282: error: 'SSL_CTX' undeclared (first use in this function)
    stone.c:3282: error: 'ctx' undeclared (first use in this function)
    stone.c:3292: error: 'SSL_ERROR_WANT_READ' undeclared (first use in this function)
    stone.c:3295: error: 'SSL_ERROR_WANT_WRITE' undeclared (first use in this function)
    stone.c:3298: error: 'SSL_ERROR_SYSCALL' undeclared (first use in this function)
    stone.c:3328: error: 'SSL_ERROR_SSL' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3340: error: syntax error before '*' token
    stone.c: In function 'doSSL_connect':
    stone.c:3344: error: 'SSL' undeclared (first use in this function)
    stone.c:3345: error: 'pair' undeclared (first use in this function)
    stone.c:3350: warning: assignment makes pointer from integer without a cast
    stone.c:3371: error: 'p' undeclared (first use in this function)
    stone.c:3376: error: 'SSL_CTX' undeclared (first use in this function)
    stone.c:3376: error: 'ctx' undeclared (first use in this function)
    stone.c:3387: error: 'SSL_ERROR_WANT_READ' undeclared (first use in this function)
    stone.c:3390: error: 'SSL_ERROR_WANT_WRITE' undeclared (first use in this function)
    stone.c:3393: error: 'SSL_ERROR_SYSCALL' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3424: error: syntax error before '*' token
    stone.c: In function 'doSSL_shutdown':
    stone.c:3429: error: 'SSL' undeclared (first use in this function)
    stone.c:3430: error: 'ss' undeclared (first use in this function)
    stone.c:3431: error: 'pair' undeclared (first use in this function)
    stone.c:3436: error: 'how' undeclared (first use in this function)
    stone.c:3456: error: 'SSL_RECEIVED_SHUTDOWN' undeclared (first use in this function)
    stone.c:3464: error: 'SSL_ERROR_WANT_READ' undeclared (first use in this function)
    stone.c:3466: error: 'SSL_ERROR_WANT_WRITE' undeclared (first use in this function)
    stone.c:3468: error: 'SSL_ERROR_SYSCALL' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3517: error: syntax error before '*' token
    stone.c: In function 'doshutdown':
    stone.c:3519: error: 'SSL' undeclared (first use in this function)
    stone.c:3521: error: 'pair' undeclared (first use in this function)
    stone.c:3524: error: 'how' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3536: error: syntax error before '*' token
    stone.c: In function 'newPair':
    stone.c:3537: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3578: error: syntax error before '*' token
    stone.c: In function 'freePair':
    stone.c:3582: error: 'SSL' undeclared (first use in this function)
    stone.c:3585: error: 'pair' undeclared (first use in this function)
    stone.c:3606: error: 'SSL_CTX' undeclared (first use in this function)
    stone.c:3606: error: 'ctx' undeclared (first use in this function)
    stone.c:3610: error: 'SSL_RECEIVED_SHUTDOWN' undeclared (first use in this function)
    stone.c:3614: error: 'SSL_SENT_SHUTDOWN' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3662: error: syntax error before '*' token
    stone.c: In function 'insertPairs':
    stone.c:3663: error: 'p2' undeclared (first use in this function)
    stone.c:3663: error: 'p1' undeclared (first use in this function)
    stone.c:3664: error: 'stone' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3680: error: syntax error before '*' token
    stone.c: In function 'message_time_log':
    stone.c:3681: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3699: error: syntax error before '*' token
    stone.c: In function 'connected':
    stone.c:3700: error: 'p' undeclared (first use in this function)
    stone.c:3700: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3757: error: syntax error before 'Conn'
    stone.c: In function 'message_conn':
    stone.c:3759: error: 'p1' undeclared (first use in this function)
    stone.c:3759: error: 'p2' undeclared (first use in this function)
    stone.c:3764: error: 'conn' undeclared (first use in this function)
    stone.c:3777: error: 'pri' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3780: error: syntax error before '*' token
    stone.c: In function 'doconnect':
    stone.c:3785: error: 'p2' undeclared (first use in this function)
    stone.c:3794: error: 'p1' undeclared (first use in this function)
    stone.c:3798: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:3798: error: 'sa' undeclared (first use in this function)
    stone.c:3798: error: 'salen' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3892: error: syntax error before '*' token
    stone.c: In function 'freeConn':
    stone.c:3893: error: 'conn' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:3897: error: syntax error before '*' token
    stone.c: In function 'reqconn':
    stone.c:3900: error: 'conn' undeclared (first use in this function)
    stone.c:3901: error: 'p' undeclared (first use in this function)
    stone.c:3901: error: 'pair' undeclared (first use in this function)
    stone.c:3912: error: 'dst' undeclared (first use in this function)
    stone.c:3912: error: 'dstlen' undeclared (first use in this function)
    stone.c:3940: error: request for member 'next' in something not a structure or union
    stone.c:3941: error: request for member 'next' in something not a structure or union
    stone.c: At top level:
    stone.c:3946: error: syntax error before '*' token
    stone.c: In function 'asyncConn':
    stone.c:3947: error: 'p1' undeclared (first use in this function)
    stone.c:3947: error: 'p2' undeclared (first use in this function)
    stone.c:3950: error: 'conn' undeclared (first use in this function)
    stone.c: In function 'scanConns':
    stone.c:3984: error: 'conn' undeclared (first use in this function)
    stone.c:3984: error: 'pconn' undeclared (first use in this function)
    stone.c:3985: error: 'p1' undeclared (first use in this function)
    stone.c:3985: error: 'p2' undeclared (first use in this function)
    stone.c:3988: error: request for member 'next' in something not a structure or union
    stone.c: At top level:
    stone.c:4021: error: syntax error before '*' token
    stone.c:4021: error: syntax error before '*' token
    stone.c: In function 'acceptPair':
    stone.c:4025: error: 'pair' undeclared (first use in this function)
    stone.c:4029: error: 'stone' undeclared (first use in this function)
    stone.c:4060: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'getident':
    stone.c:4104: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:4266: warning: incompatible implicit declaration of built-in function 'rindex'
    stone.c: At top level:
    stone.c:4279: error: syntax error before '*' token
    stone.c: In function 'acceptCheck':
    stone.c:4283: error: 'stone' undeclared (first use in this function)
    stone.c:4283: error: 'pair1' undeclared (first use in this function)
    stone.c:4284: error: 'pair2' undeclared (first use in this function)
    stone.c:4296: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:4489: error: syntax error before 'Pair'
    stone.c: In function 'strnUser':
    stone.c:4497: error: 'which' undeclared (first use in this function)
    stone.c:4497: error: 'pair' undeclared (first use in this function)
    stone.c:4563: error: 'limit' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:4568: error: syntax error before 'Pair'
    stone.c: In function 'strnparse':
    stone.c:4574: error: 'SSL' undeclared (first use in this function)
    stone.c:4574: error: 'pair' undeclared (first use in this function)
    stone.c:4575: error: 'SSL_SESSION' undeclared (first use in this function)
    stone.c:4575: error: 'sess' undeclared (first use in this function)
    stone.c:4578: error: 'pp' undeclared (first use in this function)
    stone.c:4579: error: 'limit' undeclared (first use in this function)
    stone.c:4582: error: 'term' undeclared (first use in this function)
    stone.c:4593: warning: assignment makes pointer from integer without a cast
    stone.c: At top level:
    stone.c:4671: error: syntax error before '*' token
    stone.c: In function 'scanClose':
    stone.c:4672: error: 'p1' undeclared (first use in this function)
    stone.c:4672: error: 'p2' undeclared (first use in this function)
    stone.c:4672: error: 'p' undeclared (first use in this function)
    stone.c:4676: error: 'pairs' undeclared (first use in this function)
    stone.c:4682: error: request for member 'next' in something not a structure or union
    stone.c:4740: error: request for member 'next' in something not a structure or union
    stone.c:4740: error: request for member 'next' in something not a structure or union
    stone.c:4744: error: request for member 'next' in something not a structure or union
    stone.c:4745: error: request for member 'next' in something not a structure or union
    stone.c: In function 'message_pairs':
    stone.c:4751: error: 'pair' undeclared (first use in this function)
    stone.c: In function 'message_origins':
    stone.c:4762: error: 'origin' undeclared (first use in this function)
    stone.c: In function 'message_conns':
    stone.c:4774: error: 'conn' undeclared (first use in this function)
    stone.c:4775: error: request for member 'next' in something not a structure or union
    stone.c: At top level:
    stone.c:4782: error: syntax error before '*' token
    stone.c: In function 'setclose':
    stone.c:4783: error: 'pair' undeclared (first use in this function)
    stone.c:4786: error: 'flag' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:4799: error: syntax error before '*' token
    stone.c: In function 'dowrite':
    stone.c:4800: error: 'pair' undeclared (first use in this function)
    stone.c:4801: error: 'p' undeclared (first use in this function)
    stone.c:4828: error: 'SSL_ERROR_NONE' undeclared (first use in this function)
    stone.c:4828: error: 'SSL_ERROR_WANT_WRITE' undeclared (first use in this function)
    stone.c:4834: error: 'SSL_ERROR_WANT_READ' undeclared (first use in this function)
    stone.c:4842: error: 'SSL_ERROR_SYSCALL' undeclared (first use in this function)
    stone.c:4866: error: 'SSL_ERROR_ZERO_RETURN' undeclared (first use in this function)
    stone.c: In function 'baseEncode':
    stone.c:4947: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:5022: error: syntax error before '*' token
    stone.c: In function 'doread':
    stone.c:5023: error: 'pair' undeclared (first use in this function)
    stone.c:5024: error: 'p' undeclared (first use in this function)
    stone.c:5085: error: 'SSL_ERROR_NONE' undeclared (first use in this function)
    stone.c:5085: error: 'SSL_ERROR_WANT_READ' undeclared (first use in this function)
    stone.c:5091: error: 'SSL_ERROR_WANT_WRITE' undeclared (first use in this function)
    stone.c:5099: error: 'SSL_ERROR_SYSCALL' undeclared (first use in this function)
    stone.c:5123: error: 'SSL_ERROR_ZERO_RETURN' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5215: error: syntax error before '*' token
    stone.c: In function 'commOutput':
    stone.c:5216: error: 'p' undeclared (first use in this function)
    stone.c:5216: error: 'pair' undeclared (first use in this function)
    stone.c:5239: error: 'fmt' undeclared (first use in this function)
    stone.c:5239: error: 'va_start' used in function with fixed args
    stone.c: At top level:
    stone.c:5330: error: syntax error before '*' token
    stone.c: In function 'doproxy':
    stone.c:5331: error: 'pair' undeclared (first use in this function)
    stone.c:5355: error: 'host' undeclared (first use in this function)
    stone.c:5355: error: 'serv' undeclared (first use in this function)
    stone.c:5384: error: 'p' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5446: error: syntax error before '*' token
    stone.c: In function 'proxyCONNECT':
    stone.c:5448: error: 'parm' undeclared (first use in this function)
    stone.c:5450: error: 'p' undeclared (first use in this function)
    stone.c:5451: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5471: error: syntax error before '*' token
    stone.c: In function 'proxyCommon':
    stone.c:5478: error: 'pair' undeclared (first use in this function)
    stone.c:5479: error: 'start' undeclared (first use in this function)
    stone.c:5481: error: 'parm' undeclared (first use in this function)
    stone.c:5508: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:5512: error: 'r' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5521: error: syntax error before '*' token
    stone.c: In function 'proxyGET':
    stone.c:5522: error: 'pair' undeclared (first use in this function)
    stone.c:5522: error: 'parm' undeclared (first use in this function)
    stone.c:5523: error: 'start' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5526: error: syntax error before '*' token
    stone.c: In function 'proxyHEAD':
    stone.c:5527: error: 'pair' undeclared (first use in this function)
    stone.c:5527: error: 'parm' undeclared (first use in this function)
    stone.c:5528: error: 'start' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5531: error: syntax error before '*' token
    stone.c: In function 'proxyPOST':
    stone.c:5532: error: 'pair' undeclared (first use in this function)
    stone.c:5532: error: 'parm' undeclared (first use in this function)
    stone.c:5533: error: 'start' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5536: error: syntax error before '*' token
    stone.c: In function 'proxyErr':
    stone.c:5537: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5550: error: syntax error before '*' token
    stone.c: In function 'popUSER':
    stone.c:5553: error: 'pair' undeclared (first use in this function)
    stone.c:5560: error: 'parm' undeclared (first use in this function)
    stone.c:5567: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:5577: error: syntax error before '*' token
    stone.c: In function 'popPASS':
    stone.c:5578: error: 'MD5_CTX' undeclared (first use in this function)
    stone.c:5578: error: syntax error before 'context'
    stone.c:5582: error: 'pair' undeclared (first use in this function)
    stone.c:5587: error: 'parm' undeclared (first use in this function)
    stone.c:5607: error: 'context' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5621: error: syntax error before '*' token
    stone.c: In function 'popAUTH':
    stone.c:5622: error: 'parm' undeclared (first use in this function)
    stone.c:5623: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5627: error: syntax error before '*' token
    stone.c: In function 'popCAPA':
    stone.c:5628: error: 'parm' undeclared (first use in this function)
    stone.c:5629: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5633: error: syntax error before '*' token
    stone.c: In function 'popAPOP':
    stone.c:5634: error: 'pair' undeclared (first use in this function)
    stone.c:5635: error: 'parm' undeclared (first use in this function)
    stone.c:5636: error: 'start' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5641: error: syntax error before '*' token
    stone.c: In function 'popErr':
    stone.c:5642: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5656: error: syntax error before '*' token
    stone.c: In function 'identd':
    stone.c:5660: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5680: error: syntax error before '*' token
    stone.c: In function 'identdQUERY':
    stone.c:5687: error: 'p' undeclared (first use in this function)
    stone.c:5687: error: 'pair' undeclared (first use in this function)
    stone.c:5691: error: 'parm' undeclared (first use in this function)
    stone.c:5703: error: 'stone' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5720: error: syntax error before '*' token
    stone.c: In function 'identdQUIT':
    stone.c:5721: error: 'parm' undeclared (first use in this function)
    stone.c: In function 'nStones':
    stone.c:5733: error: 'stone' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5738: error: syntax error before '*' token
    stone.c: In function 'nPairs':
    stone.c:5740: error: 'pair' undeclared (first use in this function)
    stone.c:5741: error: 'top' undeclared (first use in this function)
    stone.c: In function 'nConns':
    stone.c:5748: error: 'conn' undeclared (first use in this function)
    stone.c:5749: error: request for member 'next' in something not a structure or union
    stone.c: In function 'nOrigins':
    stone.c:5755: error: 'origin' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5761: error: syntax error before '*' token
    stone.c: In function 'limitCommon':
    stone.c:5762: error: 'str' undeclared (first use in this function)
    stone.c:5762: error: 'limit' undeclared (first use in this function)
    stone.c:5762: error: 'var' undeclared (first use in this function)
    stone.c:5764: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5772: error: syntax error before '*' token
    stone.c: In function 'limitPair':
    stone.c:5773: error: 'pair' undeclared (first use in this function)
    stone.c:5773: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5776: error: syntax error before '*' token
    stone.c: In function 'limitConn':
    stone.c:5777: error: 'pair' undeclared (first use in this function)
    stone.c:5777: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5780: error: syntax error before '*' token
    stone.c: In function 'limitEstablished':
    stone.c:5783: error: 'pair' undeclared (first use in this function)
    stone.c:5784: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5787: error: syntax error before '*' token
    stone.c: In function 'limitReadWrite':
    stone.c:5790: error: 'pair' undeclared (first use in this function)
    stone.c:5791: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5794: error: syntax error before '*' token
    stone.c: In function 'limitAsync':
    stone.c:5795: error: 'pair' undeclared (first use in this function)
    stone.c:5795: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5798: error: syntax error before '*' token
    stone.c: In function 'limitErr':
    stone.c:5799: error: 'parm' undeclared (first use in this function)
    stone.c:5800: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5813: error: syntax error before '*' token
    stone.c: In function 'healthHELO':
    stone.c:5817: error: request for member 'next' in something not a structure or union
    stone.c:5820: error: 'parm' undeclared (first use in this function)
    stone.c:5821: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5826: error: syntax error before '*' token
    stone.c: In function 'healthSTAT':
    stone.c:5834: error: 'parm' undeclared (first use in this function)
    stone.c:5835: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5840: error: syntax error before '*' token
    stone.c: In function 'healthFREE':
    stone.c:5846: error: 'parm' undeclared (first use in this function)
    stone.c:5847: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5852: error: syntax error before '*' token
    stone.c: In function 'healthCLOCK':
    stone.c:5860: error: 'parm' undeclared (first use in this function)
    stone.c:5861: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5866: error: syntax error before '*' token
    stone.c: In function 'healthCVS_ID':
    stone.c:5867: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5871: error: syntax error before '*' token
    stone.c: In function 'healthCONFIG':
    stone.c:5874: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5879: error: syntax error before '*' token
    stone.c: In function 'healthSTONE':
    stone.c:5880: error: 'stone' undeclared (first use in this function)
    stone.c:5883: error: 'child' undeclared (first use in this function)
    stone.c:5885: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5892: error: syntax error before '*' token
    stone.c: In function 'healthLIMIT':
    stone.c:5896: error: 'parm' undeclared (first use in this function)
    stone.c:5899: error: 'pair' undeclared (first use in this function)
    stone.c:5899: error: 'start' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5903: error: syntax error before '*' token
    stone.c: In function 'healthQUIT':
    stone.c:5904: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5908: error: syntax error before '*' token
    stone.c: In function 'healthErr':
    stone.c:5909: error: 'parm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5936: error: syntax error before '*' token
    stone.c: In function 'docomm':
    stone.c:5937: error: 'pair' undeclared (first use in this function)
    stone.c:5961: error: 'comm' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:5974: error: syntax error before '*' token
    stone.c: In function 'insheader':
    stone.c:5975: error: 'pair' undeclared (first use in this function)
    stone.c:5994: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:6006: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:6011: error: syntax error before '*' token
    stone.c: In function 'rmheader':
    stone.c:6012: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6040: error: syntax error before '*' token
    stone.c: In function 'first_read':
    stone.c:6041: error: 'pair' undeclared (first use in this function)
    stone.c:6043: error: 'p' undeclared (first use in this function)
    stone.c:6045: error: 'stone' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6163: error: syntax error before 'Pair'
    stone.c: In function 'proto2fdset':
    stone.c:6170: error: 'pair' undeclared (first use in this function)
    stone.c:6174: error: 'isthread' undeclared (first use in this function)
    stone.c:6183: error: 'routp' undeclared (first use in this function)
    stone.c:6184: error: 'woutp' undeclared (first use in this function)
    stone.c:6202: error: 'eoutp' undeclared (first use in this function)
    stone.c:6222: error: 'p' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6312: error: syntax error before '*' token
    stone.c: In function 'doReadWritePair':
    stone.c:6315: error: 'rPair' undeclared (first use in this function)
    stone.c:6315: error: 'wPair' undeclared (first use in this function)
    stone.c:6316: error: 'stone' undeclared (first use in this function)
    stone.c:6320: error: 'pair' undeclared (first use in this function)
    stone.c:6325: error: 'hangup' undeclared (first use in this function)
    stone.c:6325: error: 'ready_r' undeclared (first use in this function)
    stone.c:6327: error: 'ready_w' undeclared (first use in this function)
    stone.c:6327: error: 'ready_e' undeclared (first use in this function)
    stone.c:6339: error: 'opposite' undeclared (first use in this function)
    stone.c:6620: error: 'error' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6630: error: syntax error before '*' token
    stone.c: In function 'doReadWrite':
    stone.c:6632: error: 'p' undeclared (first use in this function)
    stone.c:6641: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6715: error: syntax error before '*' token
    stone.c: In function 'asyncReadWrite':
    stone.c:6717: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6721: error: syntax error before '*' token
    stone.c: In function 'doPair':
    stone.c:6723: error: 'p' undeclared (first use in this function)
    stone.c:6723: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6740: error: syntax error before '*' token
    stone.c: In function 'doAcceptConnect':
    stone.c:6741: error: 'stone' undeclared (first use in this function)
    stone.c:6741: error: 'p1' undeclared (first use in this function)
    stone.c:6742: error: 'p2' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6791: error: syntax error before '*' token
    stone.c: In function 'asyncAcceptConnect':
    stone.c:6793: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6797: error: syntax error before '*' token
    stone.c:6797: error: syntax error before 'Stone'
    stone.c: In function 'getPairUDP':
    stone.c:6798: error: 'pair' undeclared (first use in this function)
    stone.c:6801: error: 'stone' undeclared (first use in this function)
    stone.c:6802: error: 'p' undeclared (first use in this function)
    stone.c:6807: warning: passing argument 2 of 'saComp' from incompatible pointer type
    stone.c:6817: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:6817: error: 'fromlen' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6830: error: syntax error before '*' token
    stone.c: In function 'recvStoneUDP':
    stone.c:6831: error: 'stone' undeclared (first use in this function)
    stone.c:6832: error: 'pb' undeclared (first use in this function)
    stone.c:6843: error: 'rPair' undeclared (first use in this function)
    stone.c:6844: error: 'wPair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:6976: error: syntax error before 'Pair'
    stone.c: In function 'scanPairs':
    stone.c:6978: error: 'pair' undeclared (first use in this function)
    stone.c:6982: error: 'pairs' undeclared (first use in this function)
    stone.c:7001: error: 'rop' undeclared (first use in this function)
    stone.c:7001: error: 'wop' undeclared (first use in this function)
    stone.c:7001: error: 'eop' undeclared (first use in this function)
    stone.c:7002: error: 'p' undeclared (first use in this function)
    stone.c: In function 'scanStones':
    stone.c:7031: error: 'stone' undeclared (first use in this function)
    stone.c:7045: error: 'pair' undeclared (first use in this function)
    stone.c:7051: error: syntax error before ')' token
    stone.c: At top level:
    stone.c:7063: error: syntax error before 'CRYPTO_EX_DATA'
    stone.c: In function 'newMatch':
    stone.c:7071: error: 'ad' undeclared (first use in this function)
    stone.c:7071: error: 'idx' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:7076: error: syntax error before 'CRYPTO_EX_DATA'
    stone.c: In function 'freeMatch':
    stone.c:7078: error: 'ptr' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:7107: error: syntax error before '*' token
    stone.c: In function 'hostcheck':
    stone.c:7108: error: 'X509_EXTENSION' undeclared (first use in this function)
    stone.c:7108: error: 'ext' undeclared (first use in this function)
    stone.c:7109: error: 'GENERAL_NAMES' undeclared (first use in this function)
    stone.c:7109: error: 'ialt' undeclared (first use in this function)
    stone.c:7111: error: 'cert' undeclared (first use in this function)
    stone.c:7111: error: 'NID_subject_alt_name' undeclared (first use in this function)
    stone.c:7117: error: 'GENERAL_NAME' undeclared (first use in this function)
    stone.c:7117: error: 'gen' undeclared (first use in this function)
    stone.c:7118: error: 'GEN_DNS' undeclared (first use in this function)
    stone.c:7123: error: 'host' undeclared (first use in this function)
    stone.c:7135: error: 'NID_commonName' undeclared (first use in this function)
    stone.c:7142: error: 'pair' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:7150: error: syntax error before 'X509_STORE_CTX'
    stone.c: In function 'verify_callback':
    stone.c:7151: error: 'X509' undeclared (first use in this function)
    stone.c:7151: error: 'err_cert' undeclared (first use in this function)
    stone.c:7155: error: 'SSL' undeclared (first use in this function)
    stone.c:7156: error: 'pair' undeclared (first use in this function)
    stone.c:7157: error: 'ss' undeclared (first use in this function)
    stone.c:7160: error: 'ctx' undeclared (first use in this function)
    stone.c:7164: warning: assignment makes pointer from integer without a cast
    stone.c:7186: error: 'ASN1_INTEGER' undeclared (first use in this function)
    stone.c:7186: error: 'n' undeclared (first use in this function)
    stone.c:7204: error: 'preverify_ok' undeclared (first use in this function)
    stone.c:7205: warning: assignment makes pointer from integer without a cast
    stone.c:7211: error: 'X509_V_ERR_CERT_CHAIN_TOO_LONG' undeclared (first use in this function)
    stone.c:7247: error: 'SSL_SESSION' undeclared (first use in this function)
    stone.c:7247: error: 'sess' undeclared (first use in this function)
    stone.c:7255: warning: assignment makes pointer from integer without a cast
    stone.c: At top level:
    stone.c:7334: error: syntax error before '*' token
    stone.c:7334: error: syntax error before '*' token
    stone.c: In function 'mkStoneSSL':
    stone.c:7335: error: 'ss' undeclared (first use in this function)
    stone.c:7344: error: 'opts' undeclared (first use in this function)
    stone.c:7353: error: 'SSL_MODE_ENABLE_PARTIAL_WRITE' undeclared (first use in this function)
    stone.c:7373: error: 'PKCS12' undeclared (first use in this function)
    stone.c:7373: error: 'p12' undeclared (first use in this function)
    stone.c:7374: error: 'EVP_PKEY' undeclared (first use in this function)
    stone.c:7374: error: 'key' undeclared (first use in this function)
    stone.c:7375: error: 'X509' undeclared (first use in this function)
    stone.c:7375: error: 'cert' undeclared (first use in this function)
    stone.c:7422: error: 'X509_FILETYPE_PEM' undeclared (first use in this function)
    stone.c:7471: error: 'isserver' undeclared (first use in this function)
    stone.c:7483: error: 'SSL_MAX_SSL_SESSION_ID_LENGTH' undeclared (first use in this function)
    stone.c:7495: error: 'SSL_SESS_CACHE_SERVER' undeclared (first use in this function)
    stone.c:7495: error: 'SSL_SESS_CACHE_NO_AUTO_CLEAR' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:7504: error: syntax error before '*' token
    stone.c: In function 'rmStoneSSL':
    stone.c:7506: error: 'ss' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:7552: error: syntax error before '*' token
    stone.c: In function 'exPatOpts':
    stone.c:7553: error: 'opts' undeclared (first use in this function)
    stone.c:7555: error: 'src' undeclared (first use in this function)
    stone.c:7555: error: 'dst' undeclared (first use in this function)
    stone.c: In function 'rmoldstone':
    stone.c:7599: error: 'stone' undeclared (first use in this function)
    stone.c:7599: error: dereferencing pointer to incomplete type
    stone.c: In function 'repeater':
    stone.c:7641: error: 'pair' undeclared (first use in this function)
    stone.c:7671: error: request for member 'next' in something not a structure or union
    stone.c:7671: error: request for member 'next' in something not a structure or union
    stone.c:7728: error: request for member 'next' in something not a structure or union
    stone.c: At top level:
    stone.c:7748: error: syntax error before '*' token
    stone.c: In function 'reusestone':
    stone.c:7749: error: 's' undeclared (first use in this function)
    stone.c:7752: error: 'stone' undeclared (first use in this function)
    stone.c: In function 'mkXhosts':
    stone.c:7908: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:8040: error: syntax error before '*' token
    stone.c: In function 'getStone':
    stone.c:8041: error: 'stone' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:8053: error: syntax error before '*' token
    stone.c: In function 'mkstone':
    stone.c:8061: error: 'stone' undeclared (first use in this function)
    stone.c:8062: error: 'st' undeclared (first use in this function)
    stone.c: In function 'help':
    stone.c:8340: error: syntax error before 'OPENSSL_VERSION_TEXT'
    stone.c: In function 'getconfig':
    stone.c:8721: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:8728: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: At top level:
    stone.c:8857: error: syntax error before '*' token
    stone.c: In function 'sslopts_default':
    stone.c:8859: error: 'opts' undeclared (first use in this function)
    stone.c:8861: error: 'SSL_VERIFY_NONE' undeclared (first use in this function)
    stone.c:8869: error: 'isserver' undeclared (first use in this function)
    stone.c: At top level:
    stone.c:8911: error: syntax error before 'SSLOpts'
    stone.c: In function 'sslopts':
    stone.c:8912: error: 'argv' undeclared (first use in this function)
    stone.c:8912: error: 'argi' undeclared (first use in this function)
    stone.c:8913: error: 'opts' undeclared (first use in this function)
    stone.c:8913: error: 'isserver' undeclared (first use in this function)
    stone.c:8918: error: 'SSL_RECEIVED_SHUTDOWN' undeclared (first use in this function)
    stone.c:8922: error: 'SSL_SENT_SHUTDOWN' undeclared (first use in this function)
    stone.c:8927: error: 'SSL_VERIFY_NONE' undeclared (first use in this function)
    stone.c:8929: error: 'SSL_VERIFY_PEER' undeclared (first use in this function)
    stone.c:8929: error: 'SSL_VERIFY_FAIL_IF_NO_PEER_CERT' undeclared (first use in this function)
    stone.c:8932: error: 'SSL_VERIFY_CLIENT_ONCE' undeclared (first use in this function)
    stone.c:8943: error: 'X509_V_FLAG_CRL_CHECK' undeclared (first use in this function)
    stone.c:8946: error: 'X509_V_FLAG_CRL_CHECK_ALL' undeclared (first use in this function)
    stone.c:8968: error: 'SSL_OP_ALL' undeclared (first use in this function)
    stone.c:8985: error: 'SSL_OP_NO_TLSv1' undeclared (first use in this function)
    stone.c:8987: error: 'SSL_OP_NO_SSLv3' undeclared (first use in this function)
    stone.c:8989: error: 'SSL_OP_NO_SSLv2' undeclared (first use in this function)
    stone.c: In function 'sslthread_lock_callback':
    stone.c:9081: error: 'CRYPTO_LOCK' undeclared (first use in this function)
    stone.c: In function 'doargs':
    stone.c:9599: error: 'stone' undeclared (first use in this function)
    stone.c:9716: error: 'origin' undeclared (first use in this function)
    stone.c:9716: error: syntax error before ')' token
    stone.c:9722: warning: incompatible implicit declaration of built-in function 'bzero'
    stone.c:9742: error: request for member 'prev' in something not a structure or union
    stone.c: In function 'initialize':
    stone.c:9967: warning: incompatible implicit declaration of built-in function 'bzero'
    stone.c:9996: error: request for member 'next' in something not a structure or union
    stone.c:9997: error: request for member 'next' in something not a structure or union
    *** Error code 1
    make: Fatal error: Command failed for target `stone'
    Current working directory /usr/local/src/stone-2.3d-2.3.2.7
    *** Error code 1
    make: Fatal error: Command failed for target `solaris'
    Current working directory /usr/local/src/stone-2.3d-2.3.2.7
    *** Error code 1
    make: Fatal error: Command failed for target `ssl_stone'
    Current working directory /usr/local/src/stone-2.3d-2.3.2.7
    *** Error code 1
    make: Fatal error: Command failed for target `solaris-ssl'
    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% make clean

    rm -f stone md5c.o stone.exe stone.obj md5c.obj stone.o logmsg.o MSG00001.bin logmsg.h logmsg.rc cryptoapi.o

     delegateをダウンロードして必要なファイルはコピーしました。 

    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% ls

    GPL.txt README.en.txt cryptoapi.c global.h logmsg.mc md5c.c stone.c stone.spec
    Makefile README.txt dummy.pem key.pem md5.h rand.dat stone.c-org

     OpneSSLはインストールしています。

    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% find / -name openssl -print

    /usr/local/src/10_Recommended/118822-30/SUNWopenssl-commands/reloc/usr/sfw/bin/openssl
    /usr/local/src/10_Recommended/121229-01/SUNWopenssl-include/reloc/usr/sfw/include/openssl
    /usr/local/src/10_SunAlert_Patch_Cluster/118822-30/SUNWopenssl-commands/reloc/usr/sfw/bin/openssl
    /usr/local/src/10_SunAlert_Patch_Cluster/121229-01/SUNWopenssl-include/reloc/usr/sfw/include/openssl
    /usr/local/src/openssl-0.9.8d/apps/openssl
    /usr/local/src/openssl-0.9.8d/include/openssl
    /usr/local/src/openssl-0.9.8e/apps/openssl
    /usr/local/src/openssl-0.9.8e/include/openssl
    /usr/local/src/openssl-0.9.8-stable-SNAP-20070809/apps/openssl
    /usr/local/src/openssl-0.9.8-stable-SNAP-20070809/include/openssl
    /usr/local/src/openssl-0.9.8f/apps/openssl
    /usr/local/src/openssl-0.9.8f/include/openssl
    /usr/local/src/openssl-0.9.8g/apps/openssl
    /usr/local/src/openssl-0.9.8g/include/openssl
    /usr/local/src/openssl-0.9.8h/apps/openssl
    /usr/local/src/openssl-0.9.8h/include/openssl
    /usr/local/src/openssl-0.9.8i/apps/openssl
    /usr/local/src/openssl-0.9.8i/include/openssl
    /usr/local/src/openssl-0.9.8j/apps/openssl
    /usr/local/src/openssl-0.9.8j/include/openssl
    /usr/local/src/openssl-0.9.8k/apps/openssl
    /usr/local/src/openssl-0.9.8k/include/openssl
    /usr/local/ssl/bin/openssl
    /usr/local/ssl/include/openssl
    /usr/sfw/bin/openssl
    /usr/sfw/include/openssl
    /etc/sfw/openssl

    ためしに下記でコンパイルはとおるのですが、

    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% make solaris ssl_stone

    make CC=gcc FLAGS="-DPTHREAD -D_REENTRANT " LIBS="-lnsl -lsocket -lpthread -lthread " stone
    gcc -DPTHREAD -D_REENTRANT -o stone stone.c -lnsl -lsocket -lpthread -lthread
    stone.c: In function 'host2sa':
    stone.c:1540: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'saDup':
    stone.c:1560: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'healthCheck':
    stone.c:1920: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'str2bin':
    stone.c:2203: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'modPairDest':
    stone.c:2523: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:2534: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'sendPairUDPbuf':
    stone.c:3025: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'sendPairUDP':
    stone.c:3115: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:3142: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'doconnect':
    stone.c:3798: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'acceptPair':
    stone.c:4060: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'getident':
    stone.c:4104: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:4266: warning: incompatible implicit declaration of built-in function 'rindex'
    stone.c: In function 'acceptCheck':
    stone.c:4296: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'baseEncode':
    stone.c:4947: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'proxyCommon':
    stone.c:5508: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'insheader':
    stone.c:5994: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:6006: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'getPairUDP':
    stone.c:6817: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'mkXhosts':
    stone.c:7908: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'getconfig':
    stone.c:8721: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:8728: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'doargs':
    stone.c:9722: warning: incompatible implicit declaration of built-in function 'bzero'
    stone.c: In function 'initialize':
    stone.c:9967: warning: incompatible implicit declaration of built-in function 'bzero'
    make FLAGS="-DUSE_POP -DUSE_SSL " LIBS=" -lssl -lcrypto"
    run make with one of the following arguments
    linux ; for Linux
    zaurus ; for Linux Zaurus
    fon ; for La Fonera
    bsd ; for FreeBSD or BSD/OS
    macosx ; for Mac OS X
    sun ; for SunOS 4.x with gcc
    solaris ; for Solaris with gcc
    hp ; for HP-UX with gcc
    irix ; for IRIX
    win ; for Windows 95/NT with VC++
    win-svc ; for Windows NT service with VC++
    mingw ; for Windows 95/NT with MinGW
    mingw-svc ; for Windows NT service with MinGW
    emx ; for OS/2 with EMX
    using POP -> APOP conv., add '-pop' (example: linux-pop)
    using above conv. and OpenSSL, add '-ssl' (example: linux-ssl)
    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% ls

    GPL.txt README.en.txt cryptoapi.c global.h logmsg.mc md5c.c stone stone.c-org
    Makefile README.txt dummy.pem key.pem md5.h rand.dat stone.c stone.spec
    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% stostone local

     stoneコマンドが一応できるのですが、実際に実行してみても動いてるように見えないです。

    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% /usr/local/src/stone-2.3d-2.3.2.7/stone localhost:22 443/ssl

    Aug 24 21:39:00.204491 1 start (2.3e) [26969]
    Aug 24 21:39:00.206469 1 Invalid <sport>: 443/ssl
    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% ps -ef

    UID PID PPID C STIME TTY TIME CMD
    root 0 0 0 Aug 03 ? 0:15 sched
    root 1 0 0 Aug 03 ? 0:44 /sbin/init
    root 2 0 0 Aug 03 ? 0:00 pageout
    root 3 0 2 Aug 03 ? 1408:21 fsflush
    root 155 1 0 Aug 03 ? 0:00 /usr/sbin/mdmonitord
    root 7 1 0 Aug 03 ? 11:40 /lib/svc/bin/svc.startd
    root 9 1 0 Aug 03 ? 3:01 /lib/svc/bin/svc.configd
    root 405 387 0 Aug 03 ? 0:00 htt_server -port 9010 -syslog -message_locale C
    root 509 508 0 - ? 0:00 <defunct>
    root 92 1 0 Aug 03 ? 10:47 /usr/sbin/nscd
    www 26343 549 0 13:50:36 ? 0:00 /usr/local/apache2/bin/httpd -k start
    root 231 1 0 Aug 03 ? 0:02 /usr/sbin/cron
    root 202 1 0 Aug 03 ? 24:36 /usr/lib/inet/xntpd
    smmsp 510 1 0 Aug 03 ? 0:19 /usr/lib/sendmail -Ac -q15m
    daemon 234 1 0 Aug 03 ? 0:00 /usr/sbin/rpcbind
    root 99 1 0 Aug 03 ? 7:44 /usr/lib/picl/picld
    root 100 1 0 Aug 03 ? 0:00 /usr/lib/sysevent/syseventd
    root 272 1 0 Aug 03 ? 0:00 /usr/lib/autofs/automountd
    root 126 1 0 Aug 03 ? 0:00 /usr/lib/power/powerd
    daemon 117 1 0 Aug 03 ? 0:00 /usr/lib/crypto/kcfd
    root 112 1 0 Aug 03 ? 0:00 devfsadmd
    root 280 1 0 Aug 03 ? 2:28 /usr/lib/fm/fmd/fmd
    root 269 1 0 Aug 03 ? 0:18 /usr/sbin/syslogd
    root 472 1 0 Aug 03 ? 0:00 /usr/lib/dmi/dmispd
    root 368 1 0 Aug 03 ? 0:00 /usr/lib/locale/ja/wnn/dpkeyserv
    root 329 1 0 Aug 03 ? 7:22 /usr/local/sbin/named
    root 268 1 0 Aug 03 ? 0:28 /usr/lib/utmpd
    root 363 1 0 Aug 03 ? 0:00 /usr/sadm/lib/smc/bin/smcboot
    root 273 272 0 Aug 03 ? 0:36 /usr/lib/autofs/automountd
    root 387 1 0 Aug 03 ? 0:00 /usr/lib/im/htt -port 9010 -syslog -message_locale C
    root 264 252 0 Aug 03 ? 0:04 /usr/lib/saf/ttymon
    root 252 7 0 Aug 03 ? 0:06 /usr/lib/saf/sac -t 300
    root 274 7 0 Aug 03 console 0:00 /usr/lib/saf/ttymon -g -d /dev/console -l console -T sun -m ldterm,ttcompat -h
    root 259 1 0 Aug 03 ? 2:42 /usr/lib/inet/inetd start
    root 364 363 0 Aug 03 ? 0:00 /usr/sadm/lib/smc/bin/smcboot
    root 365 363 0 Aug 03 ? 0:00 /usr/sadm/lib/smc/bin/smcboot
    root 374 1 0 Aug 03 ? 0:00 /usr/lib/locale/ja/wnn/jserver
    root 375 374 0 Aug 03 ? 0:00 /usr/lib/locale/ja/wnn/jserver_m
    root 386 1 0 Aug 03 ? 0:00 /usr/lib/locale/ja/atokserver/atokmngdaemon
    root 412 408 0 Aug 03 ? 62:35 /usr/openwin/bin/Xsun :0 -defdepth 24 -nobanner -auth /var/dt/A:0-SXaaZa
    root 413 1 0 Aug 03 ? 0:00 /usr/local/sbin/sshd
    root 490 408 0 Aug 03 ? 0:00 /usr/dt/bin/dtlogin -daemon
    root 511 1 0 Aug 03 ? 7:41 /usr/lib/sendmail -bd -q15m
    root 408 1 0 Aug 03 ? 0:00 /usr/dt/bin/dtlogin -daemon
    root 491 408 0 Aug 03 ?? 0:00 /usr/openwin/bin/fbconsole -d :0
    www 26341 549 0 13:50:06 ? 0:00 /usr/local/apache2/bin/httpd -k start
    root 477 1 0 Aug 03 ? 0:00 /usr/sbin/vold
    root 508 490 0 Aug 03 ? 67:50 dtgreet -display :0
    root 494 1 0 Aug 03 ? 2:23 /usr/sfw/sbin/snmpd
    root 549 1 0 Aug 03 ? 12:51 /usr/local/apache2/bin/httpd -k start
    root 26570 26566 0 20:32:29 pts/2 0:00 sh
    root 26571 26570 0 20:32:34 pts/2 0:01 tcsh
    www 26357 549 0 13:53:20 ? 0:00 /usr/local/apache2/bin/httpd -k start
    www 26334 549 0 13:48:31 ? 0:00 /usr/local/apache2/bin/httpd -k start
    susumu 26566 26564 0 20:32:28 pts/2 0:00 -tcsh
    www 26345 549 0 13:50:43 ? 0:00 /usr/local/apache2/bin/httpd -k start
    www 26355 549 0 13:53:19 ? 0:00 /usr/local/apache2/bin/httpd -k start
    root 26970 26571 0 21:39:10 pts/2 0:00 ps -ef
    www 26344 549 0 13:50:42 ? 0:00 /usr/local/apache2/bin/httpd -k start
    www 26337 549 0 13:49:17 ? 0:00 /usr/local/apache2/bin/httpd -k start
    www 26356 549 0 13:53:20 ? 0:00 /usr/local/apache2/bin/httpd -k start
    root 26562 413 0 20:32:00 ? 0:01 /usr/local/sbin/sshd -R
    www 26346 549 0 13:50:43 ? 0:00 /usr/local/apache2/bin/httpd -k start
    susumu 26564 26562 0 20:32:27 ? 0:05 /usr/local/sbin/sshd -R
    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% maek

    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% make clean

    rm -f stone md5c.o stone.exe stone.obj md5c.obj stone.o logmsg.o MSG00001.bin logmsg.h logmsg.rc cryptoapi.o
  • id:meichi
    すいません。やってみました。opensslを/usr/include配下にインストールしなおすのに
    時間がかかりました。。。。。ですが。。。起動に失敗しました。ログを下記に記載します。
    よろしくお願いします。

    @ns[/usr/local/src/stone-2.3d-2.3.2.7]% make solaris-ssl

    make TARGET=solaris ssl_stone
    make FLAGS="-DUSE_POP -DUSE_SSL " LIBS=" -lssl -lcrypto" solaris
    make CC=gcc FLAGS="-DPTHREAD -D_REENTRANT -DUSE_POP -DUSE_SSL" LIBS="-lnsl -lsocket -lpthread -lthread -lssl -lcrypto" stone
    gcc -DPTHREAD -D_REENTRANT -DUSE_POP -DUSE_SSL -o stone stone.c -lnsl -lsocket -lpthread -lthread -lssl -lcrypto
    stone.c: In function 'host2sa':
    stone.c:1540: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'saDup':
    stone.c:1560: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'healthCheck':
    stone.c:1920: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'str2bin':
    stone.c:2203: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'modPairDest':
    stone.c:2523: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:2534: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'sendPairUDPbuf':
    stone.c:3025: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'sendPairUDP':
    stone.c:3115: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:3142: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'doconnect':
    stone.c:3798: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'acceptPair':
    stone.c:4060: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'getident':
    stone.c:4104: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:4266: warning: incompatible implicit declaration of built-in function 'rindex'
    stone.c: In function 'acceptCheck':
    stone.c:4296: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'baseEncode':
    stone.c:4947: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'proxyCommon':
    stone.c:5508: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'popUSER':
    stone.c:5567: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'insheader':
    stone.c:5994: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:6006: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'getPairUDP':
    stone.c:6817: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'mkXhosts':
    stone.c:7908: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'getconfig':
    stone.c:8721: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c:8728: warning: incompatible implicit declaration of built-in function 'bcopy'
    stone.c: In function 'doargs':
    stone.c:9722: warning: incompatible implicit declaration of built-in function 'bzero'
    stone.c: In function 'initialize':
    stone.c:9967: warning: incompatible implicit declaration of built-in function 'bzero'
    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% ls

    GPL.txt README.en.txt cryptoapi.c global.h logmsg.mc md5c.c stone stone.c-org
    Makefile README.txt dummy.pem key.pem md5.h rand.dat stone.c stone.spec
    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% stocp stone /usr/local/sbin/

    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% which stone

    stone: Command not found.
    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% rehash

    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% which stone

    stone: Command not found.
    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% /usr/local/ssl/bin/openssl md5 * > rand.dat

    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% /usr/local/ssl/bin/openssl genrsa -rand rand.dat >ke key.pem

    774 semi-random bytes loaded
    Generating RSA private key, 512 bit long modulus
    ....++++++++++++
    ......++++++++++++
    e is 65537 (0x10001)
    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% acat dummy.pem key.pem ?> /usr/local/ssl/certs/stone.pem

    root@ns[/usr/local/src/stone-2.3d-2.3.2.7]% /usr/local/sbin/stone localhost:22 443/ssl

    Aug 27 05:37:22.604899 1 start (2.3e) [10017]
    Aug 27 05:37:22.611298 1 SSL_CTX_use_PrivateKey_file(/usr/ssl/certs/stone.pem) error:02001002:system library:fopen:No such file or directory
  • id:tera-p
    SSL_CTX_use_PrivateKey_file(/usr/ssl/certs/stone.pem) error:02001002:system library:fopen:No such file or directory

    というエラーですので,/usr/ssl/certs/stone.pem がない,という話ではないでしょうか(上記の操作履歴を見ると,/usr/***local***/ssl/serts/stone.pem を作ってしまっているようですが).
  • id:meichi
    大変ありがとうございました。m(_ _)m 解決しました。

この質問への反応(ブックマークコメント)

「あの人に答えてほしい」「この質問はあの人が答えられそう」というときに、回答リクエストを送ってみてましょう。

これ以上回答リクエストを送信することはできません。制限について

絞り込み :
はてなココの「ともだち」を表示します。
回答リクエストを送信したユーザーはいません