Apache OpenOffice (AOO) Bugzilla – Issue 16191
build failure with kernel 2.2.x in module desktop
Last modified: 2004-03-18 15:18:57 UTC
Kernel 2.2.x does not support read ahead with MADV_WILLNEED: A patch follows also eliminating the gotos in the code Making: ../../unxlngi4.pro/obj/file_image_unx.obj /u/ooo-gcc-3.0.4/bin/gcc -fmessage-length=0 -c -I. -I. -I../inc -I../../inc -I../../unx/inc -I../../unxlngi4.pro/inc -I. -I/mnt/ooo/cws_srx645_ooo11rc/solver/645/unxlngi4.pro/inc/dont_use_stl -I/mnt/ooo/cws_srx645_ooo11rc/solver/645/unxlngi4.pro/inc/external -I/mnt/ooo/cws_srx645_ooo11rc/solver/645/unxlngi4.pro/inc -I/mnt/ooo/cws_srx645_ooo11rc/solenv/unxlngi4/inc -I/mnt/ooo/cws_srx645_ooo11rc/solenv/inc -I/mnt/ooo/cws_srx645_ooo11rc/res -I/mnt/ooo/cws_srx645_ooo11rc/solver/645/unxlngi4.pro/inc/dont_use_stl -I/mnt/ooo/cws_srx645_ooo11rc/solenv/inc/Xp31 -I/u/j2sdk1.4.1_02/include -I/u/j2sdk1.4.1_02/include/linux -I/u/j2sdk1.4.1_02/include/native_threads/include -I/usr/X11R6/include -I. -I../../res -I. -O1 -pipe -mcpu=pentiumpro -DLINUX -DUNX -DVCL -DGCC -DC300 -DINTEL -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=645 -DBUILD=8639 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX645 -DMULTITHREAD -o ../../unxlngi4.pro/obj/file_image_unx.o file_image_unx.c file_image_unx.c:70:1: warning: "__USE_BSD" redefined /usr/include/features.h:215:1: warning: this is the location of the previous definition file_image_unx.c: In function `file_image_pagein': file_image_unx.c:134: `MADV_WILLNEED' undeclared (first use in this function) file_image_unx.c:134: (Each undeclared identifier is reported only once file_image_unx.c:134: for each function it appears in.) dmake: Error code 1, while making '../../unxlngi4.pro/obj/file_image_unx.obj' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /mnt/ooo/cws_srx645_ooo11rc/desktop/source/pagein e/app /mnt/ooo/cws_srx645_ooo11rc/desktop/scripts /mnt/ooo/cws_srx645_ooo11rc/desktop/source/splash /mnt/ooo/cws_srx645_ooo11rc/desktop/source/so_comp /mnt/ooo/cws_srx645_ooo11rc/desktop/source/pagein dmake: Error code 1, while making 'build_all' ---* TG_SLO.MK *---
Created attachment 7207 [details] file_image_unx_kernel_2_2_x_build.patch
Is this the same as: http://www.openoffice.org/issues/show_bug.cgi?id=16207 ?
Yes, it's the same. Marked it as duplicate of your issue. Your solution redefining MADV_WILLNEED if undefined seems better; because pagein could be compiled on a glibc 2.1.3 system and would work as intended on a glibc 2.2 system. If causing trouble, glibc-version could be determined at runtime and madvice() be called if it's 2.2 or higher afterwards. *** This issue has been marked as a duplicate of 16207 ***
.