On Thu, Sep 17, 2009 at 4:28 PM, Gabriel troisgros <gabole...@hotmail.fr> wrote: > Hi all > > i'm trying to install the latest version on my linux red hat 7.2 server, but > there is an error durin the make: > > bash-2.05# make > making all in m4... > cd m4;make all > make[1]: Entre dans le répertoire `/usr/local/swftools-0.9.0/m4' > make[1]: Quitte le répertoire `/usr/local/swftools-0.9.0/m4' > making all in lib... > cd lib;make all > make[1]: Entre dans le répertoire `/usr/local/swftools-0.9.0/lib'
> ../librfxswf.a(pool.o): In function `pool_lookup_float': > pool.o(.text+0x2602): undefined reference to `__builtin_nan' > collect2: ld returned 1 exit status > make[1]: *** [pdf2swf] Erreur 1 > make[1]: Quitte le répertoire `/usr/local/swftools-0.9.0/lib/pdf' > make: *** [all] Erreur 2 you have __builtin_nan in this 3 files: ./lib/as3/pool.c: if(!i) return __builtin_nan(""); ./lib/as3/builtin.c: _NaN_constant.f = __builtin_nan(""); ./lib/as3/parser.tab.c: {(yyval.constant) = constant_new_float(__builtin_nan(""));} try replace the __builtin_nan("") call with 0 (zero). for example, in lib/as3/pool.c: replace: if(!i) return __builtin_nan(""); with: if(!i) return 0; I'm not sure if this will work, and if it works, I don't know if it is the correct way, and probably you will find some more problems, because you system (redhat 72) is very, very old. Ricardo