dear [EMAIL PROTECTED],
i found a bug(maybe a bug), pls refer to following steps.
1. start kdevelop.
2. open an existing C++ project.
3. build the project.
4. select menu item "\Project\Project Options" and "Project Options"
dialog pops up.
5. in "Debugger" pane, check on "Enable separate terminal for application IO".
6. click "OK" button to close "Project Options" dialog.
7. select menu item "\Debug\Start" to start debug.
8. can't start debug and the following error message pops up.
--------------------------------------------------------------
GDB cannot use the tty* or pty* devices
Check the settings on /dev/tty* and /dev/pty*
As root you may need to "chmod ug+rw\" tty* and pty* devices
and/or add the user to the tty group using
"usermod -G tty username".
--------------------------------------------------------------
i had some debug and found that there's something wrong in
stty.cpp(cpp/java/ruby folder of kdevelop-3.3.1/languages/) in
kdevelop source.
in function "bool STTY::findExternalTTY(const QString &termApp)",
------------------------------------------------------------
// create a fifo that will pass in the tty name
#ifdef HAVE_MKFIFO
if (::mkfifo(fifo, S_IRUSR|S_IWUSR) < 0)
#else
if (::mknod(fifo, S_IFIFO | S_IRUSR|S_IWUSR, 0) < 0)
#endif
return false;
------------------------------------------------------------
because macro "HAVE_MKFIFO" isn't defined, ::mknod is executed. but
::mknod failed with errno 22(EINVAL).
it seems that mknod dosen't work for fifo on freebsd. pls refer to
http://lists.freebsd.org/pipermail/freebsd-bugs/2003-November/004281.html
my solution is add "HAVE_MKFIFO" macro when configure(by modify
"configure" script) or manually add "#define HAVE_MKFIFO 1" to
config.h.
because i'm a green hand to freebsd programming, would you pls let me
know your investigation result if you have time.
best regards!
redrett
_______________________________________________
kde-freebsd mailing list
[email protected]
http://freebsd.kde.org/mailman/listinfo/kde-freebsd