bug-zile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-zile] Comments on zile-2.2.59


From: Nelson H. F. Beebe
Subject: [Bug-zile] Comments on zile-2.2.59
Date: Wed, 14 May 2008 19:39:29 -0600 (MDT)

I've built and installed zile-2.2.59 (and also its predecessor,
zile-2.2.58) on about 25 flavors of Unix in my test laboratory.

On 18 of them, the build and validation was problem free.

On 8 more, I was able to fiddle the build procedure to get a
successful validation and installation.

On 2 others, the builds have failed.

Here is a problem summary.  Complete logs are available on request
from a zile developer, but I won't post them to a list for reasons of
volume and privacy.

------------------------------------------------------------------------
Sun Solaris 7 SPARC:

Compilation and linking with native cc fails because alloca is
undefined.  Change the build procedure to

        env CC=gcc \
            LIBS='-ldl -liberty -lncurses'  \
            LDFLAGS='-L/usr/local/lib -R/usr/local/lib' \
            ./configure && make all check
------------------------------------------------------------------------
GNU/Linux MIPS (Gentoo Base System version 1.4.16):

configure fails with
        checking for getch in -lcurses... no
        configure: error: cannot find either libncurses or libcurses

This system HAS both -lcurses and -lncurses.  The problem is that -ldl
is also needed.  This works:

        env LIBS=-ldl \
            LDFLAGS='-L/usr/local/lib -Wl,-rpath,/usr/local/lib' \
            ./configure && make all check

------------------------------------------------------------------------
Sun Solaris 10 AMD64, IA-32, and SPARC:

Compilation with c99 fails:

        /opt/SUNWspro/bin/c99 -DHAVE_CONFIG_H -I. -I..  
-DPATH_DATA="\"/usr/local/share/zile\""   -I/usr/local/include -c funcs.c
"funcs.c", line 1549: warning: implicit function declaration: popen
"funcs.c", line 1549: warning: improper pointer/integer combination: op "="
"funcs.c", line 1565: warning: implicit function declaration: pclose
"funcs.c", line 1607: undefined symbol: P_tmpdir
"funcs.c", line 1607: warning: {}-enclosed initializer required
"funcs.c", line 1607: syntax error before or at: "/zileXXXXXX"
"funcs.c", line 1608: invalid type combination
"funcs.c", line 1645: warning: improper pointer/integer combination: op "="
"funcs.c", line 1699: cannot recover from previous errors
c99: acomp failed for funcs.c

This works:

        set path=(/usr/bin /bin /usr/ccs/bin /usr/sfw/bin /usr/local/bin)
        env CC=/usr/sfw/bin/gcc LIBS='-lcurses -liberty' \
            ./configure && /usr/local/bin/make all check

------------------------------------------------------------------------
GNU/Linux on PowerPC (Gentoo Base System version 1.12.6)

Same failure as on Gentoo MIPS: same fix too.

------------------------------------------------------------------------
GNU/Linux on IA-32 (Fedora Core 5);

Same failure as on Gentoo MIPS: same fix too.

------------------------------------------------------------------------
GNU/Linux on SPARC (Gentoo Base System version 1.12.6)

Same failure as on Gentoo MIPS: same fix too.

------------------------------------------------------------------------
Compaq/DEC Alpha OSF/1 4.0:

cc -std -c -I../doc -I.. -I../src -ieee -I/usr/local/include ./mkdoc.c
cc: Info: ../src/vasprintf.c, line 490: In this statement, type long double has 
the same representation as type double on this platform. (longdoublenyi)
                           va_arg (s->vargs, long double));
---------------------------^
cc: Error: ../src/vasprintf.c, line 628: In this statement, "vargs" is of type 
"struct declared without a tag", and cannot be converted to "pointer to const 
void". (noconvert)
  memcpy (&s.vargs, vargs, sizeof (va_list));
--------------------^
make[2]: *** [mkdoc.o] Error 1

No zile build has yet succeeded on this system.

------------------------------------------------------------------------
SGI IRIX 6.5 MIPS R10000:

gcc -DHAVE_CONFIG_H -I. -I..  -DPATH_DATA="\"/usr/local/share/zile\""   -g -O2 
-Wall -W -Wmissing-prototypes -Wstrict-prototypes -pedantic -MT term_ncurses.o 
-MD -MP -MF .deps/term_ncurses.Tpo -c -o term_ncurses.o term_ncurses.c
In file included from 
/export/local/indigo-irix6/bin/../lib/gcc/mips-sgi-irix6.5/3.4.3/include/curses.h:759,
                 from term_ncurses.c:33:
/usr/local/include/unctrl.h:57: error: syntax error before "char"
/usr/local/include/unctrl.h:57: error: conflicting types for 'unctrl'
/export/local/indigo-irix6/bin/../lib/gcc/mips-sgi-irix6.5/3.4.3/include/curses.h:267:
 error: previous declaration of 'unctrl' was here
/usr/local/include/unctrl.h:57: error: conflicting types for 'unctrl'
/export/local/indigo-irix6/bin/../lib/gcc/mips-sgi-irix6.5/3.4.3/include/curses.h:267:
 error: previous declaration of 'unctrl' was here
make[2]: *** [term_ncurses.o] Error 1

No zile build has yet succeeded on this system.

------------------------------------------------------------------------
Warnings on Sun Solaris 7 SPARC:

        ../src/vasprintf.c:238: warning: subscript has type `char'
        ../src/vasprintf.c:335: warning: subscript has type `char'
        ../src/vasprintf.c:354: warning: subscript has type `char'

        editfns.c:89: warning: subscript has type `char'

        funcs.c:1349: warning: subscript has type `char'
        funcs.c:1361: warning: subscript has type `char'
        funcs.c:1363: warning: subscript has type `char'

        line.c:247: warning: subscript has type `char'
        line.c:251: warning: subscript has type `char'

        search.c:74: warning: subscript has type `char'

        term_redisplay.c:285: warning: subscript has type `char'

        vasprintf.c:238: warning: subscript has type `char'
        vasprintf.c:335: warning: subscript has type `char'
        vasprintf.c:354: warning: subscript has type `char'
        vasprintf.c:617: warning: no previous prototype for `vasprintf'

Since char can be signed or unsigned, it should not be used as a
subscript unless first cast to unsigned int.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: address@hidden  -
- 155 S 1400 E RM 233                       address@hidden  address@hidden -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]