#68 ODF-Converter does not compile on Linux 64bit

Must_Fix
open
5
2014-08-26
2010-07-21
Samuele Kaplun
No

I am trying to compile ODF-Converter from sources on Linux (Ubuntu 10.4), using mono 2.4
The compilation fails with this error:

[...]

gcc -o OdfConverter -Wall `pkg-config --cflags mono` main.c \ \ \ bundle.o \ -Wl,--export-dynamic \ -Wl,--undefined=zipOpen -Wl,--undefined=unzOpen \ `pkg-config --libs-only-L mono` `pkg-config --libs-only-L libgdiplus` -L -L../../AdditionalTools/zlib123/contrib/minizip \ -Wl,-Bstatic -lmono -lzlibwapi -Wl,--whole-archive -lgdiplus -Wl,--no-whole-archive -Wl,-Bdynamic \ `pkg-config --libs-only-l mono | sed -e "s/\-lmono //"` \ `pkg-config --libs-only-l libgdiplus | sed -e "s/\-lgdiplus //"` \ -lz
main.c: In function ‘install_dll_config_files’:
main.c:61: warning: pointer targets in passing argument 2 of ‘mono_register_config_for_assembly’ differ in signedness
/usr/include/mono-1.0/mono/metadata/assembly.h:95: note: expected ‘const char *’ but argument is of type ‘const unsigned char *’
main.c:63: warning: implicit declaration of function ‘mono_config_parse_memory’
main.c:65: warning: pointer targets in passing argument 1 of ‘mono_register_machine_config’ differ in signedness
/usr/include/mono-1.0/mono/metadata/assembly.h:96: note: expected ‘const char *’ but argument is of type ‘const unsigned char *’
/usr/bin/ld: cannot find -lzlibwapi
collect2: ld returned 1 exit status
make[2]: *** [OdfConverter] Errore 1
make[2]: uscita dalla directory «/tmp/source/Shell/OdfConverter»
make[1]: *** [do-all] Errore 2
make[1]: uscita dalla directory «/tmp/source/Shell/OdfConverter»
make: *** [all-recursive] Errore 1

Discussion