editors/openoffice.org-2.0 compilation on recent RELENG_6
Matthew Seaman
m.seaman at infracaninophile.co.uk
Thu Aug 3 14:16:54 UTC 2006
Dear port maintainers,
The editors/openoffice.org-2.0 port is failing to compile on a recently
updated RELENG_6 machine. The symptoms will occur on a machine with
% sysctl kern.osreldate
kern.osreldate: 601103
because of this preprocessor construct in files/patch-i65512:
#if !defined(FREEBSD) || (__FreeBSD_version < 700015) || (__FreeBSD_version < 601103)
Of course, this evaluates to true on any machine with osreldate == 601103,
because 601103 < 700015. Yet the purpose of this construct is to identify the
system versions before UME's MFC of include/netdb.h to version 1.38.2.2,
introducing a conflicting prototype for gethostbyname_r() -- returning an int
rather than the struct pointer OOo seems to be expecting.
Perhaps it should say
#if !defined(FREEBSD) || (__FreeBSD_version >= 700000 && __FreeBSD_version < 700015) || (__FreeBSD_version < 601103)
Here's the tail of the build output. This is with -DLOCALIZED_LANG=en-GB:
/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/sal/osl/unx
------------------------------
Making: ../../unxfbsdi.pro/misc/cpposl.dpc
dmake subdmake=true -f makefile.mk product="full" depend=t ALLDPC
Making : Dependencies
touch ../../unxfbsdi.pro/misc/cpposl.dpc
------------------------------
Making: ../../unxfbsdi.pro/obj/backtrace.obj
gcc-ooo -Wreturn-type -fmessage-length=0 -c -I. -I. -I../inc -I../../inc -I../../unx/inc -I../../unxfbsdi.pro/inc -I. -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/solver/680/unxfbsdi.pro/inc/dont_use_stl -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/solver/680/unxfbsdi.pro/inc/external -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/solver/680/unxfbsdi.pro/inc -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/solenv/unxfbsdi/inc -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/solenv/inc -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/res -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/solver/680/unxfbsdi.pro/inc/dont_use_stl -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/solenv/inc/Xp31 -I/usr/local/diablo-jdk1.5.0/include -I/usr/local/diablo-jdk1.5.0/include/freebsd -I/usr/local/diablo-jdk1.5.0/include/bsd -I/usr/local/diablo-jdk1.5.0/include/linux -I/usr/local/diablo-jdk1.5.0/include/native_threads/include -I/usr/
X11R6/include -I. -I../../res -I. -Os -fno-strict-aliasing -Wuninitialized -pipe -mtune=pentiumpro -g1 -DFREEBSD -DUNX -DVCL -DGCC -DC341 -DINTEL -DCVER=C341 -D_USE_NAMESPACE -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/local/gcc-ooo/i386-portbld-freebsd6.1/3.4.1/include/c++ -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DOOC680=OOC680 -DMULTITHREAD -o ../../unxfbsdi.pro/obj/backtrace.o backtrace.c
if ( -e ../../unxfbsdi.pro/obj/backtrace.o) touch ../../unxfbsdi.pro/obj/backtrace.obj
------------------------------
Making: ../../unxfbsdi.pro/obj/conditn.obj
gcc-ooo -Wreturn-type -fmessage-length=0 -c -I. -I. -I../inc -I../../inc -I../../unx/inc -I../../unxfbsdi.pro/inc -I. -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/solver/680/unxfbsdi.pro/inc/dont_use_stl -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/solver/680/unxfbsdi.pro/inc/external -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/solver/680/unxfbsdi.pro/inc -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/solenv/unxfbsdi/inc -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/solenv/inc -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/res -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/solver/680/unxfbsdi.pro/inc/dont_use_stl -I/usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/solenv/inc/Xp31 -I/usr/local/diablo-jdk1.5.0/include -I/usr/local/diablo-jdk1.5.0/include/freebsd -I/usr/local/diablo-jdk1.5.0/include/bsd -I/usr/local/diablo-jdk1.5.0/include/linux -I/usr/local/diablo-jdk1.5.0/include/native_threads/include -I/usr/
X11R6/include -I. -I../../res -I. -Os -fno-strict-aliasing -Wuninitialized -pipe -mtune=pentiumpro -g1 -DFREEBSD -DUNX -DVCL -DGCC -DC341 -DINTEL -DCVER=C341 -D_USE_NAMESPACE -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/local/gcc-ooo/i386-portbld-freebsd6.1/3.4.1/include/c++ -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DOOC680=OOC680 -DMULTITHREAD -o ../../unxfbsdi.pro/obj/conditn.o conditn.c
In file included from conditn.c:37:
system.h:548: error: conflicting types for 'gethostbyname_r'
/usr/include/netdb.h:228: error: previous declaration of 'gethostbyname_r' was here
system.h:548: error: conflicting types for 'gethostbyname_r'
/usr/include/netdb.h:228: error: previous declaration of 'gethostbyname_r' was here
dmake: Error code 1, while making '../../unxfbsdi.pro/obj/conditn.obj'
'---* tg_merge.mk *---'
ERROR: Error 65280 occurred while making /usr/ports/editors/openoffice.org-2.0/work/OOC680_m7/sal/osl/unx
dmake: Error code 1, while making 'build_instsetoo_native'
'---* *---'
*** Error code 255
Stop in /usr/ports/editors/openoffice.org-2.0.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall97036.0 env make PORT_UPGRADE=yes
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! editors/openoffice.org-2.0 (compiler error)
---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
Script done, output file is /tmp/ooo-install.txt
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-openoffice/attachments/20060803/ebb7b9e0/signature.pgp
More information about the freebsd-openoffice
mailing list