Package: goldencheetah
Version: 2.0.0-1
Severity: serious

The build log seems that the package fails to build from source on
kfreebsd-*.

On May 6, 2011 at 1:45AM +0000,
noreply (at buildd.debian.org) wrote:

>  * Source package: goldencheetah
>  * Version: 2.0.0-1
>  * Architecture: kfreebsd-amd64
>  * State: failed
>  * Suite: sid
>  * Builder: fasch.debian.org
>  * Build log: 
> https://buildd.debian.org/fetch.cgi?pkg=goldencheetah&arch=kfreebsd-amd64&ver=2.0.0-1&stamp=1304645807&file=log

| Computrainer.cpp: In member function 'int Computrainer::openPort()':
| Computrainer.cpp:806:15: error: 'N_TTY' was not declared in this scope
| make[2]: *** [Computrainer.o] Error 1

src/Computrainer.cpp:
| int Computrainer::openPort()
| {
| #ifndef WIN32
|
|     // LINUX AND MAC USES TERMIO / IOCTL / STDIO
|
| #if defined(Q_OS_MACX)
|     int ldisc=TTYDISC;
| #else
|     int ldisc=N_TTY; // LINUX
| #endif

The error seems that N_TTY is not defined on kfreebsd-*.

I've skimmed through the header files and noticed that TTYDISC is
defined in /usr/include/sys/ttycom.h on kfreebsd-*, provided by the
kfreebsd-kernel-headers package.

So, if the condition `|| defined(__FreeBSD_kernel__)' is added to
the Q_OS_MACX line, the error might be prevented.

Satoru, please consider this issue for the next update.

Thanks,
--
Tatsuya Kinoshita

Attachment: pgpUSMiXhdubx.pgp
Description: PGP signature

Reply via email to