• Bug#265645: FTBFS on Alpha: `CIBAUD' undeclared

    From Falk Hueffner@1:229/2 to All on Sat Aug 14 11:10:08 2004
    From: [email protected]

    Package: termpkg
    Version: 3.3-1
    Severity: important
    Justification: fails to build from source

    dpkg-buildpackage: source package is termpkg
    dpkg-buildpackage: source version is 3.3-1
    dpkg-buildpackage: host architecture is alpha
    fakeroot debian/rules clean
    dh_testdir
    dh_testroot
    rm -f build-*-stamp
    # Add here commands to clean up after the build process.
    [ -d linux ] && /usr/bin/make -C linux clean || true
    rm -rf linux
    dh_clean
    debian/rules build
    dh_testdir
    dh_testdir
    # Add here command to compile/build the package.
    ./configure

    Building with the following options:
    LINUX

    /usr/bin/make -C linux
    make[1]: Entering directory `/home/mrvn/build/termpkg/termpkg-3.3/linux'
    set -e; for i in libtn termnet termnetd; do cd $i; /usr/bin/make LEX="flex" CC="gcc" CFLAGS="-I../libtn -DLINUX -Wall" LIBS="" -f $i.mk; cd ..; done
    make[2]: Entering directory `/home/mrvn/build/termpkg/termpkg-3.3/linux/libtn' gcc -I../libtn -DLINUX -Wall -c -o tnlInit.o tnlInit.c
    gcc -I../libtn -DLINUX -Wall -c -o tnlSelect.o tnlSelect.c
    tnlSelect.c: In function `tnlSelect':
    tnlSelect.c:84: warning: cast to pointer from integer of different size tnlSelect.c:92: warning: cast to pointer from integer of different size
    gcc -I../libtn -DLINUX -Wall -c -o tnlSocket.o tnlSocket.c
    gcc -I../libtn -DLINUX -Wall -c -o tnlOptions.o tnlOptions.c
    tnlOptions.c: In function `doOption':
    tnlOptions.c:63: warning: cast to pointer from integer of different size tnlOptions.c: In function `willOption':
    tnlOptions.c:99: warning: cast to pointer from integer of different size
    gcc -I../libtn -DLINUX -Wall -c -o tnlSubOptions.o tnlSubOptions.c
    gcc -I../libtn -DLINUX -Wall -c -o tnlVars.o tnlVars.c
    gcc -I../libtn -DLINUX -Wall -c -o SocketIO.o SocketIO.c
    gcc -I../libtn -DLINUX -Wall -c -o tnlCallBack.o tnlCallBack.c
    gcc -I../libtn -DLINUX -Wall -c -o tnlMisc.o tnlMisc.c
    gcc -I../libtn -DLINUX -Wall -c -o fsminit.o fsminit.c
    ar -rc libtn.a tnlInit.o tnlSelect.o tnlSocket.o tnlOptions.o tnlSubOptions.o tnlVars.o SocketIO.o tnlCallBack.o tnlMisc.o fsminit.o
    make[2]: Leaving directory `/home/mrvn/build/termpkg/termpkg-3.3/linux/libtn' make[2]: Entering directory `/home/mrvn/build/termpkg/termpkg-3.3/linux/termnet'
    gcc -I../libtn -DLINUX -Wall -c -o termnet.o termnet.c
    termnet.c: In function `handleTelNetErrors':
    termnet.c:149: warning: cast from pointer to integer of different size termnet.c: In function `handleDoOptions':
    termnet.c:245: warning: cast from pointer to integer of different size termnet.c:247: warning: cast from pointer to integer of different size termnet.c:255: warning: cast from pointer to integer of different size termnet.c:258: warning: cast from pointer to integer of different size termnet.c:266: warning: cast from pointer to integer of different size termnet.c:269: warning: cast from pointer to integer of different size termnet.c:285: warning: cast from pointer to integer of different size
    gcc -I../libtn -DLINUX -Wall -c -o trnVars.o trnVars.c
    gcc -I../libtn -DLINUX -Wall -c -o trnParse.o trnParse.c
    gcc -I../libtn -DLINUX -Wall -c -o trnTerminal.o trnTerminal.c
    trnTerminal.c: In function `doCommands':
    trnTerminal.c:470: warning: int format, different type arg (arg 3) trnTerminal.c: In function `procCommand':
    trnTerminal.c:542: warning: int format, different type arg (arg 3)
    gcc -o termnet termnet.o trnVars.o trnParse.o trnTerminal.o -L../libtn -ltn
    gcc -I../libtn -DLINUX -Wall -c -o ttyd.o ttyd.c
    ttyd.c: In function `handleTelNetErrors':
    ttyd.c:155: warning: cast from pointer to integer of different size
    ttyd.c: In function `handleDoOptions':
    ttyd.c:221: warning: cast from pointer to integer of different size
    ttyd.c:222: warning: cast from pointer to integer of different size
    ttyd.c:230: warning: cast from pointer to integer of different size
    ttyd.c:232: warning: cast from pointer to integer of different size
    ttyd.c:240: warning: cast from pointer to integer of different size
    ttyd.c:242: warning: cast from pointer to integer of different size
    ttyd.c:257: warning: cast from pointer to integer of different size
    gcc -o ttyd ttyd.o trnVars.o trnParse.o trnTerminal.o -L../libtn -ltn
    make[2]: Leaving directory `/home/mrvn/build/termpkg/termpkg-3.3/linux/termnet' make[2]: Entering directory `/home/mrvn/build/termpkg/termpkg-3.3/linux/termnetd'
    gcc -I../libtn -DLINUX -Wall -c -o termnetd.o termnetd.c
    termnetd.c: In function `handleTelNetErrors':
    termnetd.c:216: warning: cast from pointer to integer of different size
    flex -t tndCfgParse.l > tndCfgParse.c
    gcc -I../libtn -DLINUX -Wall -c -o tndCfgParse.o tndCfgParse.c
    <stdout>:1679: warning: `yyunput' defined but not used
    gcc -I../libtn -DLINUX -Wall -c -o tndCfgParser.o tndCfgParser.c tndCfgParser.c:86: error: `CIBAUD' undeclared here (not in a function) tndCfgParser.c:86: error: initializer element is not constant tndCfgParser.c:86: error: (near initialization for `xlate_cflag[9]')
    make[2]: *** [tndCfgParser.o] Error 1
    rm tndCfgParse.c
    make[2]: Leaving directory `/home/mrvn/build/termpkg/termpkg-3.3/linux/termnetd'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/mrvn/build/termpkg/termpkg-3.3/linux'
    make: *** [build-arch-stamp] Error 2


    -- System Information:
    Debian Release: 3.1
    APT prefers unstable
    APT policy: (500, 'unstable')
    Architecture: alpha
    Kernel: Linux 2.6.8-rc3
    Locale: LANG=C, LC_CTYPE=de_DE@euro


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Oliver Kurth@1:229/2 to Falk Hueffner on Mon Aug 16 02:00:18 2004
    From: [email protected]

    On Sat, 2004-08-14 at 01:47, Falk Hueffner wrote:

    gcc -I../libtn -DLINUX -Wall -c -o tndCfgParser.o tndCfgParser.c tndCfgParser.c:86: error: `CIBAUD' undeclared here (not in a function) tndCfgParser.c:86: error: initializer element is not constant tndCfgParser.c:86: error: (near initialization for `xlate_cflag[9]')
    make[2]: *** [tndCfgParser.o] Error 1
    rm tndCfgParse.c
    make[2]: Leaving directory `/home/mrvn/build/termpkg/termpkg-3.3/linux/termnetd'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/mrvn/build/termpkg/termpkg-3.3/linux'
    make: *** [build-arch-stamp] Error 2

    Can you please check if using
    #define __USE_MISC

    just before
    #include <termios.h>

    in tndCfgParser.c

    helps? I cannot reproduce the bug here. Also, all the other warnings
    look frightening, I do not get those on i386 either.

    Greetings,
    Oliver


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)

    iD8DBQBBH/IfUmVSJkUeqxsRAgLAAKCDA5OO16bAiMdy518rV9npMdqKcACePHzG wUdsUlRPbWv7MKWi0raYd+Y=
    =A2Xo
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Falk Hueffner@1:229/2 to Oliver Kurth on Mon Aug 16 08:10:10 2004
    From: [email protected]

    Oliver Kurth <[email protected]> writes:

    On Sat, 2004-08-14 at 01:47, Falk Hueffner wrote:

    gcc -I../libtn -DLINUX -Wall -c -o tndCfgParser.o tndCfgParser.c
    tndCfgParser.c:86: error: `CIBAUD' undeclared here (not in a function)
    tndCfgParser.c:86: error: initializer element is not constant
    tndCfgParser.c:86: error: (near initialization for `xlate_cflag[9]')
    make[2]: *** [tndCfgParser.o] Error 1
    rm tndCfgParse.c
    make[2]: Leaving directory `/home/mrvn/build/termpkg/termpkg-3.3/linux/termnetd'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/mrvn/build/termpkg/termpkg-3.3/linux'
    make: *** [build-arch-stamp] Error 2

    Can you please check if using
    #define __USE_MISC

    just before
    #include <termios.h>

    in tndCfgParser.c

    helps?

    No, it doesn't. Where is CIBAUD supposed to be defined, anyway? It's
    not in the sources or any header on my system.

    Also, all the other warnings look frightening

    Some are harmless, and for some the authors clearly have been on
    crack:

    void *pArg1
    [...]
    if ((int)pArg1)

    WTF?

    --
    Falk


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Oliver Kurth@1:229/2 to Falk Hueffner on Mon Aug 16 19:00:11 2004
    From: [email protected]

    On Sun, 2004-08-15 at 22:57, Falk Hueffner wrote:
    Oliver Kurth <[email protected]> writes:

    On Sat, 2004-08-14 at 01:47, Falk Hueffner wrote:

    gcc -I../libtn -DLINUX -Wall -c -o tndCfgParser.o tndCfgParser.c
    tndCfgParser.c:86: error: `CIBAUD' undeclared here (not in a function)
    tndCfgParser.c:86: error: initializer element is not constant
    tndCfgParser.c:86: error: (near initialization for `xlate_cflag[9]')
    make[2]: *** [tndCfgParser.o] Error 1
    rm tndCfgParse.c
    make[2]: Leaving directory `/home/mrvn/build/termpkg/termpkg-3.3/linux/termnetd'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/home/mrvn/build/termpkg/termpkg-3.3/linux'
    make: *** [build-arch-stamp] Error 2

    Can you please check if using
    #define __USE_MISC

    just before
    #include <termios.h>

    in tndCfgParser.c

    helps?

    No, it doesn't. Where is CIBAUD supposed to be defined, anyway? It's
    not in the sources or any header on my system.

    Strange:

    nimrod:/usr/include# grep -r CIBAUD .
    ./asm/termbits.h:#define CIBAUD 002003600000 /* input baud rate (not
    used) */
    ./bits/termios.h:# define CIBAUD 002003600000 /* input
    baud rate (not used) */
    ./diet/termios.h:#define CIBAUD 002003600000 /* input baud rate (not
    used) */
    ./linux/tty.h:#define C_CIBAUD(tty) _C_FLAG((tty),CIBAUD) nimrod:/usr/include#

    and in /usr/include/bits/termios.h
    ...
    #ifdef __USE_MISC
    # define CIBAUD 002003600000 /* input baud rate (not used) */
    # define CRTSCTS 020000000000 /* flow control */
    #endif
    ...

    That's why I thought __USE_MISC would help.

    Also, all the other warnings look frightening

    Some are harmless, and for some the authors clearly have been on
    crack:

    void *pArg1
    [...]
    if ((int)pArg1)

    WTF?

    Sigh. That's awful. I sometimes think it was a mistake to package
    this...

    Greetings,
    Oliver



    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)

    iD8DBQBBIOB8UmVSJkUeqxsRAgonAJ9cfr5RXnGBUHSdNkM35SIDGn7zTwCgtqr9 Z1trP/ez4ybYt8vMIMuAe7Q=
    =TYEe
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Falk Hueffner@1:229/2 to Oliver Kurth on Mon Aug 16 19:10:11 2004
    From: [email protected]

    Oliver Kurth <[email protected]> writes:

    No, it doesn't. Where is CIBAUD supposed to be defined, anyway?
    It's not in the sources or any header on my system.

    Strange:

    nimrod:/usr/include# grep -r CIBAUD .
    ./asm/termbits.h:#define CIBAUD 002003600000 /* input baud rate (not
    used) */
    ./bits/termios.h:# define CIBAUD 002003600000 /* input
    baud rate (not used) */
    ./diet/termios.h:#define CIBAUD 002003600000 /* input baud rate (not
    used) */
    ./linux/tty.h:#define C_CIBAUD(tty) _C_FLAG((tty),CIBAUD) nimrod:/usr/include#

    and in /usr/include/bits/termios.h
    ...
    #ifdef __USE_MISC
    # define CIBAUD 002003600000 /* input baud rate (not used) */
    # define CRTSCTS 020000000000 /* flow control */
    #endif
    ...

    That's why I thought __USE_MISC would help.

    The Alpha termios.h apparently doesn't contain it:

    falk@juist:/usr/include% grep -r CIBAUD .
    ./linux/tty.h:#define C_CIBAUD(tty) _C_FLAG((tty),CIBAUD) falk@juist:/usr/include%

    --
    Falk


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)