NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
DBG-CLI on OS X


Joined: 13 Apr 2004
Posts: 6
Reply with quote
Has anyone managed to get dbg-cli to compile on OS X? Any tips would be much appreciated. Smile

Thanks.
View user's profileFind all posts by basskiwiSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Feel free to post the problems you encoutnered here Smile
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Apr 2004
Posts: 6
Reply with quote
./configure - works fine
on make -

Making all in dbg
source='command.cpp' object='dbg_cli-command.o' libtool=no \
depfile='.deps/dbg_cli-command.Po' tmpdepfile='.deps/dbg_cli-command.TPo' \
depmode=gcc3 /bin/sh ../config/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../dbgbase -I../getopt -g -O2 -c -o dbg_cli-command.o `test -f 'command.cpp' || echo './'`command.cpp
command.cpp:42:31: readline/readline.h: No such file or directory
command.cpp:43:30: readline/history.h: No such file or directory
command.cpp: In function `CmdProcResult chkShortArg(char*, bool)':
command.cpp:306: error: `rl_outstream' undeclared (first use this function)
command.cpp:306: error: (Each undeclared identifier is reported only once for
each function it appears in.)
command.cpp: In function `void process_line(char*)':
command.cpp:484: error: `add_history' undeclared (first use this function)
command.cpp: In function `BP_ACTION WaitUI(RequestorBase*, tagBR_REASON)':
command.cpp:505: error: `readline' undeclared (first use this function)
command.cpp: In function `void process_loop(short unsigned int, char*, char*)':
command.cpp:1377: error: `rl_initialize' undeclared (first use this function)
make[2]: *** [dbg_cli-command.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Looks as simple as libreadline missing or something. Used to linux and it being there Wink

Thanks.
View user's profileFind all posts by basskiwiSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
I think the post below is relevant to the problem
problems-compiling-dbg-cli-t514.html
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Apr 2004
Posts: 6
Reply with quote
I think its just a matter of specifying where the libs are

i have readline.h and history.h in /sw/include/readline/

How do i tell configure where to look?

Thanks
View user's profileFind all posts by basskiwiSend private message


Joined: 13 Apr 2004
Posts: 6
Reply with quote
Grrr. I've changed the code to use an absolute path to readline and history

/sw/include/readline/...

and now i get a whole bunch of

/sw/include/readline/history.h:120: error: syntax error before `(' token
/sw/include/readline/history.h:124: error: syntax error before `(' token
/sw/include/readline/history.h:129: error: syntax error before `(' token
/sw/include/readline/history.h:134: error: syntax error before `(' token
/sw/include/readline/history.h:139: error: syntax error before `(' token
/sw/include/readline/history.h:149: error: syntax error before `(' token
/sw/include/readline/history.h:154: error: syntax error before `(' token
/sw/include/readline/history.h:161: error: syntax error before `(' token
/sw/include/readline/history.h:168: error: syntax error before `(' token
/sw/include/readline/history.h:175: error: syntax error before `(' token
/sw/include/readline/history.h:180: error: syntax error before `(' token
/sw/include/readline/history.h:184: error: syntax error before `(' token
/sw/include/readline/history.h:187: error: syntax error before `(' token
/sw/include/readline/history.h:203: error: syntax error before `(' token
/sw/include/readline/history.h:208: error: syntax error before `(' token
/sw/include/readline/history.h:216: error: syntax error before `(' token
/sw/include/readline/history.h:220: error: syntax error before `(' token
/sw/include/readline/history.h:240: error: syntax error before `*' token

Help! Smile
View user's profileFind all posts by basskiwiSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
must be a broken readline, then Smile
Where did you take it from ?
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Apr 2004
Posts: 6
Reply with quote
readline is fine. It's part of the fink os x tree and it is used in other stuff which compiles fine with it.

I've just downloaded and built readline from elsewhere. Still the same problem.
View user's profileFind all posts by basskiwiSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
if readline is fine, why there are so many errors in its file ?
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Apr 2004
Posts: 6
Reply with quote
If there are so many errors why does it build properly and other stuff which uses it build properly Wink
View user's profileFind all posts by basskiwiSend private message


Joined: 10 May 2004
Posts: 3
Reply with quote
I am having problems as well. After fixing the path issues for finding readline, etc. in /sw and not /usr, I know get the following:

Code:

Making all in dbg
source='main.cpp' object='dbg_cli-main.o' libtool=no \
depfile='.deps/dbg_cli-main.Po' tmpdepfile='.deps/dbg_cli-main.TPo' \
depmode=gcc3 /bin/sh ../config/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I..   -I/sw/include -L/sw/lib -I../dbgbase -I../getopt -g -O2 -c -o dbg_cli-main.o `test -f 'main.cpp' || echo './'`main.cpp
In file included from main.cpp:38:
../getopt/getopt.h:108: error: declaration of C function `int getopt()'
   conflicts with
/usr/include/unistd.h:183: error: previous declaration `int getopt(int, char*
   const*, const char*)' here
make[2]: *** [dbg_cli-main.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


I have tried reordering the -I flags, but to no avail. Any help out there?

Thanks!
View user's profileFind all posts by ecantuSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Since there is getopt() available with unistd.h, it's easier to remove #include getopt.h from all the dbg-cli sources Smile
View user's profileFind all posts by dmitriSend private messageVisit poster's website
DBG-CLI on OS X
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 2  

  
  
 Reply to topic