NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Need help with Mac OS X install


Joined: 06 Sep 2004
Posts: 2
Reply with quote
Any and all help appreciated getting Debugger DBG installed. I hope to be able to use it with the PHPeclipse plugin.

./configure works, make errors:

g5:~/download/in/dbg-2.11.26-src mcollins$ sudo make
/bin/sh /Users/mcollins/download/in/dbg-2.11.26-src/libtool --mode=compile gcc -I. -I/Users/mcollins/download/in/dbg-2.11.26-src -DPHP_ATOM_INC -I/Users/mcollins/download/in/dbg-2.11.26-src/include -I/Users/mcollins/download/in/dbg-2.11.26-src/main -I/Users/mcollins/download/in/dbg-2.11.26-src -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /Users/mcollins/download/in/dbg-2.11.26-src/dbg_cmd.c -o dbg_cmd.lo
gcc -I. -I/Users/mcollins/download/in/dbg-2.11.26-src -DPHP_ATOM_INC -I/Users/mcollins/download/in/dbg-2.11.26-src/include -I/Users/mcollins/download/in/dbg-2.11.26-src/main -I/Users/mcollins/download/in/dbg-2.11.26-src -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /Users/mcollins/download/in/dbg-2.11.26-src/dbg_cmd.c -fno-common -DPIC -o .libs/dbg_cmd.o
/Users/mcollins/download/in/dbg-2.11.26-src/dbg_cmd.c: In function `dbg_lookup_hostname':
/Users/mcollins/download/in/dbg-2.11.26-src/dbg_cmd.c:47: warning: assignment makes pointer from integer without a cast
/Users/mcollins/download/in/dbg-2.11.26-src/dbg_cmd.c:51: error: dereferencing pointer to incomplete type
make: *** [dbg_cmd.lo] Error 1

Mac OS X 10.3.5, gcc3.3
View user's profileFind all posts by mcollinsSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
take a look at this please
problems-compiling-dbg-under-linux-fedora-t761.html
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Re: Need help with Mac OS X install


Joined: 06 Sep 2004
Posts: 2
Reply with quote
That worked for me, thanks!

BTW, the other post says:

try to add

before the first include statement in dbg_cmd.c
View user's profileFind all posts by mcollinsSend private message


Joined: 08 Sep 2004
Posts: 3
Reply with quote
I'm getting this error on make for the dbg_client-2.11.30 on macosx:


Quote:

Making all in dbg
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../getopt -I../pcre -I../ -g -O2 -c command.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../getopt -I../pcre -I../ -g -O2 -c dbgclient_classes.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../getopt -I../pcre -I../ -g -O2 -c main.cpp

In file included from main.cpp:37:
../getopt/getopt.h:108: error: declaration of C function `int getopt()'
conflicts with
/usr/include/unistd.h:142: error: previous declaration `int getopt(int, char*
const*, const char*)' here
make[2]: *** [main.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2



Any ideas?
View user's profileFind all posts by fahrvergnuugenSend private messageAIM Address
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
1. remove -lgetopt from dbg/Makefile.in, dbg/Makefile.am and dbg/Makefile
2. comment out #include <getopt.h> in dbg/main.cpp
3. add the following lines at the top of dbg/main.cpp
Code:
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#if HAVE_UNISTD_H
#include <unistd.h>
#endif
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Need help with Mac OS X install
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