NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
cli compile error on mac


Joined: 14 Aug 2005
Posts: 3
Reply with quote
hello,

first, much thanks to dmitri for this much needed package!

no problems compiling/installing dbg-2.11.32 (and shows up in phpinfo).

however, attempt to compile the cli-2.11.32 yields:

Code:
...
dbgbase_globals.cpp: In function 'int dbh_check_new_client_connect(int, sockaddr*, int)':
dbgbase_globals.cpp:699: error: invalid conversion from 'int*' to 'socklen_t*'
dbgbase_globals.cpp:699: error:   initializing argument 3 of 'int accept(int, sockaddr*, socklen_t*)'
make[2]: *** [dbgbase_globals.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


(buildconf & configure seem to run without a hitch)

im running os 10.4.2 with
glibtool 1.5.16
automake 1.6.3
autoconf 2.59
gcc 4.0.0
glibc 2.4.6

thanks,
emory
View user's profileFind all posts by emorySend private messageAIM Address
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
Thanks for the report. I'll take care to fix it.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 14 Aug 2005
Posts: 3
Reply with quote
is there anything i can do to compile the 2.11.32 cli or do i need to wait for a newer version?

thanks, emory
View user's profileFind all posts by emorySend private messageAIM Address


Joined: 20 May 2004
Posts: 81
Reply with quote
Edit dbgbase/dbgbase_globals.cpp. The line 699 should read:
Code:
ret_val = accept(listen_socket, &laddr, (socklen_t *)&siz);


Also, you would need to edit dbg/Makefile: find the following line:
Code:
DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. 


You'll need to add "-D__GNU_LIBRARY__" to the end of it (don't forget to put a space before "-D").

After that, just run "make", and it should compile.
View user's profileFind all posts by mblshaSend private message


Joined: 14 Aug 2005
Posts: 3
Reply with quote
thank you mblsha, worked perfectly.

emory
View user's profileFind all posts by emorySend private messageAIM Address
cli compile error on mac
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic