[MacPorts] #15844: cgdb 0.6.4 Build failure
MacPorts
noreply at macports.org
Thu Jul 3 08:54:59 PDT 2008
#15844: cgdb 0.6.4 Build failure
--------------------------------+-------------------------------------------
Reporter: nacho319 at gmail.com | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Keywords: cgdb curses |
--------------------------------+-------------------------------------------
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
}}}
--
Ticket URL: <http://trac.macports.org/ticket/15844>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list