[kde-freebsd] Problems compiling koffice-kde4
Axel Gonzalez
loox at e-shell.net
Thu Jul 14 21:44:05 CEST 2011
While compiling koffice:
-- wv2 depends on a modern iconv installation, supporting UNICODELITTLE and
-- UNICODEBIG. The detected iconv version doesn't support these conversions.
This means no wv2 support is compiled in (msdoc)
The problem is in:
filters/kword/CMakeLists.txt
I added some debugs:
TRY_RUN( MODERN_ICONV_RUN MODERN_ICONV_COMPILE
${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp
${CMAKE_SOURCE_DIR}/cmake/TestModernIconv.c COMPILE_DEFINITIONS
${ICONV_COMPILE_DEFINITIONS} COMPILE_OUTPUT_VARIABLE COMP)
MESSAGE (STATUS ${COMP})
MESSAGE (STATUS ${MODERN_ICONV_RUN})
MESSAGE (STATUS ${MODERN_ICONV_COMPILE})
MESSAGE (STATUS "${CMAKE_CURRENT_BINARY_DIR}/CMakeTmp
${CMAKE_SOURCE_DIR}/cmake/TestModernIconv.c COMPILE_DEFINITIONS
${ICONV_COMPILE_DEFINITIONS}")
The result is:
-- Looking for sys/iconv.h
-- Looking for sys/iconv.h - not found
-- Change Dir: /mnt/tmp/usr/ports/editors/koffice-
kde4/work/.build/filters/kword/CMakeTmp/CMakeFiles/CMakeTmp
Run Build Command:/usr/local/bin/gmake "cmTryCompileExec/fast"
/usr/local/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/mnt/tmp/usr/ports/editors/koffice-
kde4/work/.build/filters/kword/CMakeTmp/CMakeFiles/CMakeTmp'
/usr/local/bin/cmake -E cmake_progress_report
/mnt/tmp/usr/ports/editors/koffice-
kde4/work/.build/filters/kword/CMakeTmp/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/TestModernIconv.c.o
/usr/bin/cc -DHAVE_ICONV_H -I/usr/local/include -L/usr/local/lib -liconv -
Wl,-rpath -Wl,/usr/local/lib -liconv -o
CMakeFiles/cmTryCompileExec.dir/TestModernIconv.c.o -c
/mnt/tmp/usr/ports/editors/koffice-
kde4/work/koffice-2.3.3/cmake/TestModernIconv.c
cc: -liconv: linker input file unused because linking not done
cc: -rpath: linker input file unused because linking not done
cc: /usr/local/lib: linker input file unused because linking not done
cc: -liconv: linker input file unused because linking not done
Linking C executable cmTryCompileExec
/usr/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1
/usr/bin/cc -L/usr/local/lib -L/usr/local/lib
CMakeFiles/cmTryCompileExec.dir/TestModernIconv.c.o -o cmTryCompileExec
CMakeFiles/cmTryCompileExec.dir/TestModernIconv.c.o(.text+0x14): In function
`check':
: undefined reference to `libiconv_open'
CMakeFiles/cmTryCompileExec.dir/TestModernIconv.c.o(.text+0x28): In function
`check':
: undefined reference to `libiconv_close'
gmake[1]: *** [cmTryCompileExec] Error 1
gmake[1]: Leaving directory `/mnt/tmp/usr/ports/editors/koffice-
kde4/work/.build/filters/kword/CMakeTmp/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2
--
-- FALSE
The compile stage works, but the link fails (cmake change?)
Since the compile fails, wv2 module is disabled.
Removing the TRY_RUN/IF should make this work, but how to make it in a port-
friendly way ?
Thanks in advance!
A
--
Thu Jul 14 14:36:13 2011 GMT
****
**********
**************
****************
****************
**************
**********
**** 14.
More information about the kde-freebsd
mailing list