Ticket #15844 (closed defect: fixed)
cgdb 0.6.4 Build failure
| Reported by: | nacho319@… | Owned by: | macsforever2000@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.6.0 |
| Keywords: | cgdb curses | Cc: | bob_rossi@…, mike@…, christophe.laferriere@… |
| Port: | cgdb |
Description
It seems that cgdb's build flags choose the wrong OS for curses compatibility, leading to a compile error:
Making all in various Making all in util Making all in src if gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I/opt/local/include -I./../include -O2 -MT pseudo.o -MD -MP -MF ".deps/pseudo.Tpo" -c -o pseudo.o pseudo.c; \ then mv -f ".deps/pseudo.Tpo" ".deps/pseudo.Po"; else rm -f ".deps/pseudo.Tpo"; exit 1; fi pseudo.c: In function ‘pty_open’: pseudo.c:338: error: ‘I_PUSH’ undeclared (first use in this function) pseudo.c:338: error: (Each undeclared identifier is reported only once pseudo.c:338: error: for each function it appears in.) pseudo.c: At top level: pseudo.c:736: fatal error: opening dependency file .deps/pseudo.Tpo: Permission denied compilation terminated. make[4]: *** [pseudo.o] Error 1
which corresponds to this snippet of code for cgdb getting a pseudo tty I believe:
/* Turn the slave into a terminal */
#ifndef HAVE_CYGWIN
#ifndef HAVE_LINUX /* linux does not use the streams module */
/*
* Push the appropriate streams modules, as described in Solaris pts(7).
* HP-UX pts(7) doesn't have ttcompat module.
*/
if (ioctl(*slavefd, I_PUSH, "ptem") == -1)
{
close(*masterfd);
close(*slavefd);
return -1;
}
if (ioctl(*slavefd, I_PUSH, "ldterm") == -1)
{
close(*masterfd);
close(*slavefd);
return -1;
}
#ifndef __hpux
if (ioctl(*slavefd, I_PUSH, "ttcompat") == -1)
{
close(*masterfd);
close(*slavefd);
return -1;
}
#endif
#endif
#endif
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


