swftools icon indicating copy to clipboard operation
swftools copied to clipboard

Cannot compile

Open ROBERT-MCDOWELL opened this issue 4 years ago • 6 comments

Hi Mathias, on Fedora 30 64bits it complains that gcc is to old (huuuhuuh?)

./configure: line 3852: RFX_CHECK_OLDGCC: command not found


  • Your gcc is too old to compile this!
  • The last version compileable by this compiler is
  • swftools 0.7.0, which you can download from
  • http://www.swftools.org/swftools-0.7.0.tar.gz
  • .
  • Newer versions require at least gcc 3.0.0

PS: Please join the wonderful never die SWF project called ruffle (Flash replacement in rust / webassembly) https://github.com/ruffle-rs/ruffle

ROBERT-MCDOWELL avatar May 09 '20 23:05 ROBERT-MCDOWELL

That's weird. Did you regenerate ./configure? It seems it was generated without the files in m4/.

matthiaskramm avatar May 11 '20 14:05 matthiaskramm

how do you regenerate configure? cause I tried to run autoconf but no success

ROBERT-MCDOWELL avatar May 12 '20 13:05 ROBERT-MCDOWELL

mmmhmm, that's weird, I have 4 nodes with the same git folder, 3 nodes are compiling ok but one is failing, even if I removed completely the git folder and cloned it again....

ROBERT-MCDOWELL avatar May 12 '20 13:05 ROBERT-MCDOWELL

anyhow other 3 nodes failed to compile with /usr/bin/ld: warning: size of symbol voidclass' changed from 104 in ../lib/librfxswf.a(abc.o) to 112 in ../lib/librfxswf.a(registry.o) /usr/bin/ld: ../lib/libgfx.a(pdf.o): in function pdf_startpage': pdf.c:(.text+0x245): undefined reference to PDF_begin_page_ext' /usr/bin/ld: pdf.c:(.text+0x38e): undefined reference to PDF_begin_document' /usr/bin/ld: ../lib/libgfx.a(pdf.o): in function pdf_fillbitmap': pdf.c:(.text+0xc5d): undefined reference to PDF_load_image' /usr/bin/ld: pdf.c:(.text+0xcb2): undefined reference to PDF_load_image' /usr/bin/ld: pdf.c:(.text+0xe6d): undefined reference to PDF_load_image' /usr/bin/ld: ../lib/libgfx.a(pdf.o): in function pdf_addfont': pdf.c:(.text+0x10a3): undefined reference to PDF_load_font' /usr/bin/ld: ../lib/libgfx.a(pdf.o): in function pdf_finish': pdf.c:(.text+0x1570): undefined reference to PDF_end_document' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:126: pdf2pdf] Error 1 make[1]: Leaving directory '/home/src/swftools/src' make: *** [Makefile:18: all] Error 2

ROBERT-MCDOWELL avatar May 12 '20 13:05 ROBERT-MCDOWELL

joined the make log result build.log

ROBERT-MCDOWELL avatar May 12 '20 13:05 ROBERT-MCDOWELL

I stumbled upon this issue as well, I was able to successfully reconfigure with:

autoreconf --install --force --include=m4

It is also worth mentioning that the release archives on the official website are missing a few of the files in the m4 folder, so the configure script that gets generated from those archives has issues, but it still runs successfully.

EliaGeretto avatar Dec 22 '21 10:12 EliaGeretto