swftools
swftools copied to clipboard
compile failed on Fedora 31 64bits
Hi Matthias,
Could you please tell me what's the issue?
making all in m4...
cd m4;make all
make[1]: Entering directory '/home/src/swftools/m4'
make[1]: Leaving directory '/home/src/swftools/m4'
making all in lib...
cd lib;make all
make[1]: Entering directory '/home/src/swftools/lib'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/src/swftools/lib'
making all in lib/pdf...
cd lib/pdf;make all
make[1]: Entering directory '/home/src/swftools/lib/pdf'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/src/swftools/lib/pdf'
making all in lib...
cd lib;make all
make[1]: Entering directory '/home/src/swftools/lib'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/src/swftools/lib'
making all in lib/python...
cd lib/python;make all
make[1]: Entering directory '/home/src/swftools/lib/python'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/src/swftools/lib/python'
making all in lib/ruby...
cd src;make all
make[1]: Entering directory '/home/src/swftools/src'
g++ -DHAVE_CONFIG_H pdf2pdf.o -o pdf2pdf ../lib/libgfxswf.a ../lib/librfxswf.a ../lib/libgfxpdf.a ../lib/libgfx.a ../lib/libbase.a -L/usr/local/lib -lzzip -lgif -ljpeg -lpdf -lz -lm -lfontconfig -lfreetype -lfftw3f -lstdc++
/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/sr
Is there missing any libraries? thanks
This is odd. I wonder where that rogue libpdf.a comes from?
Try running configure as
DISABLEPDF2PDF=true ./configure
?
bingo!, compiles well now thanks! libpdf.a comes from pdflib, a library used by my php compilation with pdf extension. how swftools can pay attention to this library since this name does not match any swftools need?
bingo!, compiles well now thanks! libpdf.a comes from pdflib, a library used by my php compilation with pdf extension. how swftools can pay attention to this library since this name does not match any swftools need?
We'll need an AC_CHECK_LIB check in configure.in for pdflib, making sure that the library has the functions we expect.
ok, does it need to check all requested functions or only one or a few?
ok, does it need to check all requested functions or only one or a few?