/ Zope / Apsis / Pound Mailing List / Archive / 2003 / 2003-09 / Pound on OS-X

[ << ] [ >> ]

[ Release / Robert Segall <roseg(at)apsis.ch> ] [ GroupDirectives: Session: URL /and/ COOKIE? / ... ]

Pound on OS-X
Roland <list-pound(at)openrbl.org>
2003-09-23 10:47:28 [ FULL ]
I am remotely assisting someone setting up pound on OS-X 10.2.
After installing OpenSSL configure went fine, but make complains
in a weird way.
Anybody recognize the cause for this errors:

[mac128-60:/pound] admin% make
gcc -DF_CONF=\"/usr/local/etc/pound.cfg\" -g -O2 -DAEMON
-I/usr/local/ssl/include    -c -o pound.o pound.c
pound.c:253: illegal function call, found `sizeof'
pound.c:404: illegal function call, found `sizeof'
pound.c:404: illegal expression, found `)'
pound.c:422: illegal external declaration, found `if'
pound.c:425: illegal external declaration, missing `;' after `*'
pound.c:425: illegal external declaration, missing `;' after `int'
pound.c:429: illegal external declaration, missing `;' after `*'
pound.c:429: illegal external declaration, missing `;' after `*'
pound.c:447: illegal external declaration, missing `;' after `u_int32_t'
pound.c:456: illegal external declaration, missing `;' after `in_port_t'
pound.c:456: illegal method definition, found `['
pound.c:456: illegal method definition, missing `{' after `)'
pound.c:458: illegal external declaration, found `if'
pound.c:458: illegal external declaration, missing `;' after `u_int32_t'
pound.c:459: illegal method definition, found `['
pound.c:459: illegal method definition, missing `{' after `)'
pound.c:461: illegal external declaration, found `else'
pound.c:465: illegal external declaration, found `if'
pound.c:472: illegal external declaration, missing `;' after `*'
pound.c:473: illegal external declaration, missing `;' after `*'
pound.c:521: illegal external declaration, found `if'
pound.c:532: illegal external declaration, found `if'
pound.c:549: illegal method selector, found `1'
pound.c:550: illegal method definition, missing `{' after `)'
pound.c:551: illegal function prototype, found `1'
pound.c:551: illegal function definition, found `)'
pound.c:593: illegal external declaration, found `while'
pound.c:595: illegal external declaration, missing `;' after `*'
pound.c:596: illegal external declaration, missing `;' after `*'
pound.c:597: illegal external declaration, missing `;' after `*'
pound.c:597: illegal external declaration, missing `;' after `*'
pound.c:598: illegal external declaration, missing `;' after `*'
pound.c:631: illegal external declaration, missing `;' after `fd_mask'
pound.c:631: illegal external declaration, missing `;' after `fd_mask'
pound.c:634: illegal external declaration, missing `;' after `fd_mask'
pound.c:634: illegal external declaration, missing `;' after `fd_mask'
pound.c:639: illegal external declaration, missing `;' after `fd_mask'
pound.c:639: illegal external declaration, missing `;' after `fd_mask'
pound.c:642: illegal external declaration, missing `;' after `*'
pound.c:643: undefined type, found `socklen_t'
pound.c:643: illegal external declaration, missing `;' after `*'
pound.c:652: illegal external declaration, found `if'
pound.c:652: illegal external declaration, missing `;' after `*'
pound.c:652: illegal external declaration, missing `;' after `thr_arg'
pound.c:659: illegal external declaration, missing `;' after `*'
pound.c:661: illegal external declaration, missing `;' after `*'
pound.c:671: illegal external declaration, missing `;' after `fd_mask'
pound.c:671: illegal external declaration, missing `;' after `fd_mask'
pound.c:674: illegal external declaration, missing `;' after `*'
pound.c:675: undefined type, found `socklen_t'
pound.c:675: illegal external declaration, missing `;' after `*'
pound.c:684: illegal external declaration, found `if'
pound.c:684: illegal external declaration, missing `;' after `*'
pound.c:684: illegal external declaration, missing `;' after `thr_arg'
pound.c:691: illegal external declaration, missing `;' after `*'
pound.c:693: illegal external declaration, missing `;' after `*'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
pound.c: In function `addr_in_use':
pound.c:253: `socklen_t' undeclared (first use in this function)
pound.c:253: (Each undeclared identifier is reported only once
pound.c:253: for each function it appears in.)
pound.c:253: parse error before "sizeof"
pound.c: In function `main':
pound.c:404: `socklen_t' undeclared (first use in this function)
pound.c:404: parse error before "sizeof"
pound.c: At top level:
pound.c:414: conflicting types for `ERR_load_crypto_strings'
/usr/local/ssl/include/openssl/err.h:272: previous declaration of
`ERR_load_crypto_strings'
pound.c:414: warning: data definition has no type or storage class
pound.c:415: conflicting types for `ERR_load_SSL_strings'
/usr/local/ssl/include/openssl/ssl.h:1474: previous declaration of
`ERR_load_SSL_strings'
pound.c:415: warning: data definition has no type or storage class
pound.c:416: conflicting types for `OPENSSL_add_all_algorithms_noconf'
/usr/local/ssl/include/openssl/evp.h:721: previous declaration of
`OPENSSL_add_all_algorithms_noconf'
pound.c:416: warning: data definition has no type or storage class
pound.c:417: conflicting types for `l_init'
pound.c:201: previous declaration of `l_init'
pound.c:417: warning: data definition has no type or storage class
pound.c:418: warning: parameter names (without types) in function
declaration
pound.c:418: conflicting types for `CRYPTO_set_id_callback'
/usr/local/ssl/include/openssl/crypto.h:338: previous declaration of
`CRYPTO_set_id_callback'
pound.c:418: warning: data definition has no type or storage class
pound.c:419: warning: parameter names (without types) in function
declaration
pound.c:419: conflicting types for `CRYPTO_set_locking_callback'
/usr/local/ssl/include/openssl/crypto.h:331: previous declaration of
`CRYPTO_set_locking_callback'
pound.c:419: warning: data definition has no type or storage class
pound.c:422: parse error before "if"
pound.c:423: `i' undeclared here (not in a function)
pound.c:423: conflicting types for `https'
pound.c:154: previous declaration of `https'
pound.c:423: warning: data definition has no type or storage class
pound.c:423: parse error before '++' token
pound.c:427: parse error before numeric constant
pound.c:427: conflicting types for `exit'
/usr/include/stdlib.h:119: previous declaration of `exit'
pound.c:427: warning: data definition has no type or storage class
pound.c:431: parse error before numeric constant
pound.c:431: warning: data definition has no type or storage class
pound.c:433: `i' undeclared here (not in a function)
pound.c:433: conflicting types for `https'
pound.c:423: previous declaration of `https'
pound.c:433: warning: data definition has no type or storage class
pound.c:433: parse error before '++' token
pound.c:440: parse error before numeric constant
pound.c:440: warning: data definition has no type or storage class
pound.c:442: `i' undeclared here (not in a function)
pound.c:442: `matches' undeclared here (not in a function)
pound.c:442: conflicting types for `https'
pound.c:433: previous declaration of `https'
pound.c:442: warning: data definition has no type or storage class
pound.c:443: parse error before "if"
pound.c:451: parse error before numeric constant
pound.c:451: warning: data definition has no type or storage class
pound.c:453: parse error before '&' token
pound.c:460: `i' undeclared here (not in a function)
pound.c:460: warning: data definition has no type or storage class
pound.c:461: parse error before '}' token
pound.c:467: parse error before numeric constant
pound.c:467: warning: data definition has no type or storage class
pound.c:471: warning: data definition has no type or storage class
pound.c:472: parse error before '[' token
pound.c:475: parse error before numeric constant
pound.c:475: warning: data definition has no type or storage class
pound.c:477: parse error before '[' token
pound.c:477: warning: data definition has no type or storage class
pound.c:482: parse error before numeric constant
pound.c:482: warning: data definition has no type or storage class
pound.c:487: parse error before numeric constant
pound.c:487: warning: data definition has no type or storage class
pound.c:491: parse error before numeric constant
pound.c:491: warning: data definition has no type or storage class
pound.c:496: parse error before numeric constant
pound.c:496: warning: data definition has no type or storage class
pound.c:506: parse error before '[' token
pound.c:506: conflicting types for `SSL_CTX_set_verify_depth'
/usr/local/ssl/include/openssl/ssl.h:1283: previous declaration of
`SSL_CTX_set_verify_depth'
pound.c:506: warning: data definition has no type or storage class
pound.c:507: parse error before '(' token
pound.c:507: conflicting types for `SSL_CTX_ctrl'
/usr/local/ssl/include/openssl/ssl.h:1321: previous declaration of
`SSL_CTX_ctrl'
pound.c:508: parse error before '(' token
pound.c:523: parse error before numeric constant
pound.c:523: warning: data definition has no type or storage class
pound.c:525: `pw' undeclared here (not in a function)
pound.c:525: warning: data definition has no type or storage class
pound.c:526: parse error before '}' token
pound.c:534: parse error before numeric constant
pound.c:534: warning: data definition has no type or storage class
pound.c:536: `gr' undeclared here (not in a function)
pound.c:536: warning: data definition has no type or storage class
pound.c:537: parse error before '}' token
pound.c:545: parse error before numeric constant
pound.c:545: warning: data definition has no type or storage class
pound.c:546: parse error before numeric constant
pound.c:546: warning: data definition has no type or storage class
pound.c:551: parse error before numeric constant
pound.c:551: warning: data definition has no type or storage class
pound.c:558: parse error before string constant
pound.c:561: warning: parameter names (without types) in function
declaration
pound.c:561: warning: data definition has no type or storage class
pound.c:562: parse error before '}' token
pound.c:569: parse error before numeric constant
pound.c:569: warning: data definition has no type or storage class
pound.c:573: parse error before numeric constant
pound.c:573: warning: data definition has no type or storage class
pound.c:580: parse error before numeric constant
pound.c:580: warning: data definition has no type or storage class
pound.c:585: parse error before numeric constant
pound.c:585: warning: data definition has no type or storage class
pound.c:604: parse error before '&' token
pound.c:604: warning: data definition has no type or storage class
pound.c:617: parse error before numeric constant
pound.c:617: warning: data definition has no type or storage class
pound.c:623: parse error before numeric constant
pound.c:623: warning: data definition has no type or storage class
pound.c:629: `i' undeclared here (not in a function)
pound.c:629: conflicting types for `http'
pound.c:153: previous declaration of `http'
pound.c:629: warning: data definition has no type or storage class
pound.c:629: parse error before '++' token
pound.c:632: `i' undeclared here (not in a function)
pound.c:632: conflicting types for `https'
pound.c:442: previous declaration of `https'
pound.c:632: warning: data definition has no type or storage class
pound.c:632: parse error before '++' token
pound.c:638: `i' undeclared here (not in a function)
pound.c:638: conflicting types for `http'
pound.c:629: previous declaration of `http'
pound.c:638: warning: data definition has no type or storage class
pound.c:638: parse error before '++' token
pound.c:641: `clnt_addr' undeclared here (not in a function)
pound.c:641: warning: data definition has no type or storage class
pound.c:642: parse error before "if"
pound.c:648: warning: parameter names (without types) in function
declaration
pound.c:648: warning: data definition has no type or storage class
pound.c:649: parse error before '}' token
pound.c:654: warning: parameter names (without types) in function
declaration
pound.c:654: warning: data definition has no type or storage class
pound.c:655: parse error before '}' token
pound.c:658: parse error before '&' token
pound.c:659: parse error before '[' token
pound.c:663: warning: parameter names (without types) in function
declaration
pound.c:663: conflicting types for `free'
/usr/include/stdlib.h:120: previous declaration of `free'
pound.c:663: warning: data definition has no type or storage class
pound.c:664: warning: parameter names (without types) in function
declaration
pound.c:664: warning: data definition has no type or storage class
pound.c:665: parse error before '}' token
pound.c:670: `i' undeclared here (not in a function)
pound.c:670: conflicting types for `https'
pound.c:632: previous declaration of `https'
pound.c:670: warning: data definition has no type or storage class
pound.c:670: parse error before '++' token
pound.c:673: redefinition of `clnt_length'
pound.c:641: `clnt_length' previously defined here
pound.c:673: `clnt_addr' undeclared here (not in a function)
pound.c:673: warning: data definition has no type or storage class
pound.c:674: parse error before "if"
pound.c:680: warning: parameter names (without types) in function
declaration
pound.c:680: warning: data definition has no type or storage class
pound.c:681: parse error before '}' token
pound.c:686: warning: parameter names (without types) in function
declaration
pound.c:686: warning: data definition has no type or storage class
pound.c:687: parse error before '}' token
pound.c:690: parse error before '&' token
pound.c:691: parse error before '[' token
pound.c:695: warning: parameter names (without types) in function
declaration
pound.c:695: warning: data definition has no type or storage class
pound.c:696: warning: parameter names (without types) in function
declaration
pound.c:696: warning: data definition has no type or storage class
pound.c:697: parse error before '}' token
pound.c:707: parse error before numeric constant
pound.c:707: warning: data definition has no type or storage class
pound.c:638: storage size of `http' isn't known
pound.c:670: storage size of `https' isn't known
pound.c:460: storage size of `https_sock' isn't known
make: *** [pound.o] Error 1

---------- End Forwarded Message ----------

Re: Pound on OS-X
Robert Segall <roseg(at)apsis.ch>
2003-09-23 12:41:36 [ FULL ]
On Tuesday 23 September 2003 10:47, Roland wrote:[...]

This is usually a symptom of problems with the definitions of in_addr_t 
and/or in_port_t. On some systems the definition seems to be missing or bad.

We have not tested this with OS/X, but have encountered the problem on an old 
RedHat. Look in /usr/include/netinet/in.h and make sure both the types and 
(possibly) the super-types u_int16_t and u_int32_t are defined. You may need 
to add -DNEED_INADDRT and/or -DNEED_INPORTT to your Makefile manually.[...]

MailBoxer