Apache OpenOffice (AOO) Bugzilla – Issue 85606
FreeBSD porting : build failuer at writerfilter module: wprintf was not decleared.
Last modified: 2017-05-20 11:33:42 UTC
SRC680_m243+FreeBSD 7 Build failed at writerfilter module like following. ccache c++ -fmessage-length=0 -c -Os -fno-strict-aliasing -I. -I../../../unxfbsdi.pro/inc/debugservices_rtftok -I../inc -I../../../inc/pch -I../../../inc -I../../../unx/inc -I../../../unxfbsdi.pro/inc -I. -I/work/OOO/debussy7i386/SRC680_m243/ports/editors/openoffice.org-2-devel/work/SRC680_m243/solver/680/unxfbsdi.pro/inc/stl -I/work/OOO/debussy7i386/SRC680_m243/ports/editors/openoffice.org-2-devel/work/SRC680_m243/solver/680/unxfbsdi.pro/inc/external -I/work/OOO/debussy7i386/SRC680_m243/ports/editors/openoffice.org-2-devel/work/SRC680_m243/solver/680/unxfbsdi.pro/inc -I/work/OOO/debussy7i386/SRC680_m243/ports/editors/openoffice.org-2-devel/work/SRC680_m243/solenv/unxfbsdi/inc -I/work/OOO/debussy7i386/SRC680_m243/ports/editors/openoffice.org-2-devel/work/SRC680_m243/solenv/inc -I/work/OOO/debussy7i386/SRC680_m243/ports/editors/openoffice.org-2-devel/work/SRC680_m243/res -I/work/OOO/debussy7i386/SRC680_m243/ports/editors/openoffice.org-2-devel/work/SRC680_m243/solver/680/unxfbsdi.pro/inc/stl -I/work/OOO/debussy7i386/SRC680_m243/ports/editors/openoffice.org-2-devel/work/SRC680_m243/solenv/inc/Xp31 -I/usr/local/jdk1.5.0/include -I/usr/local/jdk1.5.0/include/freebsd -I/usr/local/jdk1.5.0/include/bsd -I/usr/local/jdk1.5.0/include/linux -I/usr/local/jdk1.5.0/include/native_threads/include -I/usr/local/include -I/work/OOO/debussy7i386/SRC680_m243/ports/editors/openoffice.org-2-devel/work/SRC680_m243/solver/680/unxfbsdi.pro/inc/offuh -I. -I../../../res -I. -pipe -mtune=pentiumpro -fvisibility-inlines-hidden -g1 -Wall -Wextra -Wendif-labels -Wshadow -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -fpic -DFREEBSD -DUNX -DVCL -DGCC -DC341 -DINTEL -DCVER=C341 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=450 -DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/c++/4.2 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DCUI -DSOLAR_JAVA -DSRC680=SRC680 -DSHAREDLIB -D_DLL_ -fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON -o ../../../unxfbsdi.pro/slo/ScannerTestService.o /work/OOO/debussy7i386/SRC680_m243/ports/editors/openoffice.org-2-devel/work/SRC680_m243/writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx /work/OOO/debussy7i386/SRC680_m243/ports/editors/openoffice.org-2-devel/work/SRC680_m243/writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx: In member function 'virtual void writerfilter::rtftok::MyRtfScannerHandler::rbrace()': /work/OOO/debussy7i386/SRC680_m243/ports/editors/openoffice.org-2-devel/work/SRC680_m243/writerfilter/unocomponent/debugservices/rtftok/ScannerTestService.cxx:178: error: 'wprintf' was not declared in this scope dmake: Error code 1, while making '../../../unxfbsdi.pro/slo/ScannerTestService.obj' ---* tg_merge.mk *---
Bit strange as unocomponent/debugservices/rtftok/ScannerTestService.cxx contains #include <wchar.h>, and according to man page of FBSD7 is following. NAME wprintf, fwprintf, swprintf, vwprintf, vfwprintf, vswprintf -- formatted wide character output conversion LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include <stdio.h> #include <wchar.h> int fwprintf(FILE * restrict stream, const wchar_t * restrict format, ...); int swprintf(wchar_t * restrict ws, size_t n, const wchar_t * restrict format, ...); int wprintf(const wchar_t * restrict format, ...);
Reset assigne to the default "issues@openoffice.apache.org".