Menu

#1 compilation error

closed
nobody
5
2004-09-14
2004-01-02
Tomek
No

On my RedHat 7.3 platform:

zech@root:/tomek/install/libytnef-1.2 # make
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-am
make[1]: Entering directory `/tomek/install/libytnef-1.2'
source='ytnef.c' object='ytnef.o' libtool=no \
depfile='.deps/ytnef.Po' tmpdepfile='.deps/ytnef.TPo' \
depmode=gcc3 /bin/sh ./depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c `test -f
'ytnef.c' || echo './'`ytnef.c
ytnef.c: In function `IsCompressedRTF':
ytnef.c:1300: parse error before `unsigned'
ytnef.c:1302: parse error before `unsigned'
ytnef.c:1304: parse error before `unsigned'
ytnef.c:1306: parse error before `unsigned'
ytnef.c:1309: `magic' undeclared (first use in this
function)
ytnef.c:1309: (Each undeclared identifier is reported
only once
ytnef.c:1309: for each function it appears in.)
ytnef.c: In function `DecompressRTF':
ytnef.c:1333: parse error before `unsigned'
ytnef.c:1335: parse error before `unsigned'
ytnef.c:1337: parse error before `unsigned'
ytnef.c:1339: parse error before `unsigned'
ytnef.c:1343: `compressedSize' undeclared (first use in
this function)
ytnef.c:1349: `magic' undeclared (first use in this
function)
ytnef.c:1351: `uncompressedSize' undeclared (first use
in this function)
ytnef.c:1358: parse error before `int'
ytnef.c:1362: `flags' undeclared (first use in this
function)
ytnef.c:1362: `flagCount' undeclared (first use in this
function)
ytnef.c:1378: parse error before `int'
ytnef.c:1379: `end' undeclared (first use in this function)
make[1]: *** [ytnef.o] Error 1
make[1]: Leaving directory `/tomek/install/libytnef-1.2'
make: *** [all] Error 2

Discussion

  • Randall Hand

    Randall Hand - 2004-01-29

    Logged In: YES
    user_id=677608

    What version of GCC are you running? (gcc -v).

    I'm running gcc 3.2 and don't have this problem, although I
    just heard from someone else running with 2.96 that has this
    same problem.

     
  • Tomek

    Tomek - 2004-01-30

    Logged In: YES
    user_id=940410

    Hi
    I've got gcc version 2.96 - gcc bundled with RH 7.3 distribution

     
  • Randall Hand

    Randall Hand - 2004-05-31

    Logged In: YES
    user_id=162166

    The current setup requires gcc3.2 or higher.. 2.96 doesn't
    support the type of variable declarations I'm using.

     
  • Nobody/Anonymous

    Logged In: NO

    Hi Tomek,

    just move the few declarations in ytnef.c at the beginning of the functions and it will compile. (tested with gcc version 2.7.0)

    Stefan

     
  • Randall Hand

    Randall Hand - 2004-09-14

    Logged In: YES
    user_id=677608

    A patch has been integrated into the latest release
    (libytnef v1.5).

     
  • Randall Hand

    Randall Hand - 2004-09-14
    • status: open --> closed
     

Log in to post a comment.

Auth0 Logo