Share

Cntlm Authentication Proxy

Tracker: Bugs

5 Fails to compile on Mac OS X 10.5.1 [fixed in 0.35+] - ID: 1835218
Last Update: Settings changed ( mavey )

tanjucataltepe@gmail.com

$ ./configure
Checking endian... little endian
Checking strdup... yes
Checking gethostname... tanju-macbookpro.local
$ make
Compiling socket.c
socket.c: In function ‘so_resolv’:
socket.c:48: error: ‘struct hostent’ has no member named ‘h_addr’
socket.c: At top level:
utils.h:107: warning: inline function ‘new’ declared but never defined
utils.h:106: warning: inline function ‘unicode’ declared but never
defined
utils.h:103: warning: inline function ‘head_ok’ declared but never
defined
make: *** [socket.o] Error 1

I edited socket.c line 48 to read h_addr_list[0], then it failed at a
different place:

$ make
Compiling socket.c
utils.h:107: warning: inline function ‘new’ declared but never defined
utils.h:106: warning: inline function ‘unicode’ declared but never
defined
utils.h:103: warning: inline function ‘head_ok’ declared but never
defined
utils.h:107: warning: inline function ‘new’ declared but never defined
utils.h:106: warning: inline function ‘unicode’ declared but never
defined
utils.h:103: warning: inline function ‘head_ok’ declared but never
defined
Compiling acl.c
utils.h:107: warning: inline function ‘new’ declared but never defined
utils.h:106: warning: inline function ‘unicode’ declared but never
defined
utils.h:103: warning: inline function ‘head_ok’ declared but never
defined
utils.h:107: warning: inline function ‘new’ declared but never defined
utils.h:106: warning: inline function ‘unicode’ declared but never
defined
utils.h:103: warning: inline function ‘head_ok’ declared but never
defined
Compiling auth.c
utils.h:107: warning: inline function ‘new’ declared but never defined
utils.h:106: warning: inline function ‘unicode’ declared but never
defined
utils.h:103: warning: inline function ‘head_ok’ declared but never
defined
utils.h:107: warning: inline function ‘new’ declared but never defined
utils.h:106: warning: inline function ‘unicode’ declared but never
defined
utils.h:103: warning: inline function ‘head_ok’ declared but never
defined
Compiling http.c
utils.h:107: warning: inline function ‘new’ declared but never defined
utils.h:106: warning: inline function ‘unicode’ declared but never
defined
utils.h:103: warning: inline function ‘head_ok’ declared but never
defined
utils.h:107: warning: inline function ‘new’ declared but never defined
utils.h:106: warning: inline function ‘unicode’ declared but never
defined
utils.h:103: warning: inline function ‘head_ok’ declared but never
defined
Compiling proxy.c
proxy.c: In function ‘listen_add’:
proxy.c:306: error: ‘INADDR_LOOPBACK’ undeclared (first use in this
function)
proxy.c:306: error: (Each undeclared identifier is reported only once
proxy.c:306: error: for each function it appears in.)
proxy.c: In function ‘tunnel_add’:
proxy.c:348: error: ‘INADDR_LOOPBACK’ undeclared (first use in this
function)
proxy.c: In function ‘main’:
proxy.c:2590: error: ‘INADDR_LOOPBACK’ undeclared (first use in this
function)
proxy.c: At top level:
utils.h:107: warning: inline function ‘new’ declared but never defined
utils.h:106: warning: inline function ‘unicode’ declared but never
defined
utils.h:103: warning: inline function ‘head_ok’ declared but never
defined
make: *** [proxy.o] Error 1


Nobody/Anonymous ( nobody ) - 2007-11-20 15:44

5

Closed

Fixed

David Kubicek

None

None

Public


Comment ( 1 )




Date: 2007-11-20 23:06
Sender: maveyProject Admin


Apparently, there was a change in Mac OS X from 10.3 to 10.4, which makes
hostent.h_addr hidden if _POSIX_C_SOURCE is defined. I've changed the code
to use newer hostent.h_addr_list, and if that causes problems with older
OS'es, I'll arrange for a conditional #defines.

Inlines warnings were correct, some util routines used to be inline and
their prototypes still had it. Removed.

INADDR_LOOPBACK eludes me, it should be in netinet/in.h. As a quick fix,
I've added a conditional #define, but would like to handle it properly when
I learn where it is on Mac OS X. Check out the new version in your mail.

I've read somewhere that socklen_t is also missing on some Macs, so
there's a new configure macro added for that and a cond. #define in
socket.h.

Regards,
Dave


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 6 )

Field Old Value Date By
assigned_to nobody 2007-11-20 23:07 mavey
summary Fails to compile on Mac OS X 10.5.1 2007-11-20 23:06 mavey
status_id Open 2007-11-20 23:06 mavey
resolution_id None 2007-11-20 23:06 mavey
summary fails to compile on Mac OS X 10.5.1 2007-11-20 23:06 mavey
close_date - 2007-11-20 23:06 mavey