Re: [dev] OOO310_m19 compile error

2009-09-25 Thread Peng Yu
Hi,

I still get the following error when I run make. It sounds like the
problem is rpm and I don't have root permission on my machine. How
should I fix the problem?

Regards,
Peng

Creating GNOME .applications file for broffice.org ..
-
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/desktop/redhat
-
rm -f 
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/bin/desktop-integration/openoffice.org-redhat-menus-*
rpmbuild -bb redhat-menus.spec --define "_rpmdir
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/bin/desktop-integration"
--define "_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm"
\
--buildroot 
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/misc/openoffice.org-redhat-menus-3.1-9420.noarch
\
--define "_builddir
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/misc/openoffice.org"
\
--define "productname OpenOffice.org" \
--define "pkgprefix openoffice.org3.1" \
--define "unixfilename openoffice.org3" \
--define "iconprefix openofficeorg3" \
--define "version 3.1" \
--define "release 9420"
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.28295
+ umask 022
+ cd 
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/misc/openoffice.org
+ LANG=C
+ export LANG
+ unset DISPLAY
+ export NO_BRP_STALE_LINK_ERROR=yes
+ NO_BRP_STALE_LINK_ERROR=yes
+ mkdir -p 
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/misc/openoffice.org-redhat-menus-3.1-9420.noarch
+ export 
DESTDIR=/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/misc/openoffice.org-redhat-menus-3.1-9420.noarch
+ 
DESTDIR=/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/misc/openoffice.org-redhat-menus-3.1-9420.noarch
+ export KDEMAINDIR=/usr
+ KDEMAINDIR=/usr
+ export GNOMEDIR=/usr
+ GNOMEDIR=/usr
+ export GNOME_MIME_THEME=hicolor
+ GNOME_MIME_THEME=hicolor
+ ./create_tree.sh
Copying icons ..
Copying GNOME icons ..
Creating legacy mimetype symlinks for GNOME ..
+ mkdir -p 
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/misc/openoffice.org-redhat-menus-3.1-9420.noarch/usr/share/applnk-redhat/Office
++ cat launcherlist
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/writer.desktop
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/misc/openoffice.org-redhat-menus-3.1-9420.noarch/usr/share/applnk-redhat/Office/openoffice.org3-writer.desktop
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/calc.desktop
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/misc/openoffice.org-redhat-menus-3.1-9420.noarch/usr/share/applnk-redhat/Office/openoffice.org3-calc.desktop
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/draw.desktop
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/misc/openoffice.org-redhat-menus-3.1-9420.noarch/usr/share/applnk-redhat/Office/openoffice.org3-draw.desktop
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/impress.desktop
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/misc/openoffice.org-redhat-menus-3.1-9420.noarch/usr/share/applnk-redhat/Office/openoffice.org3-impress.desktop
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/math.desktop
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/misc/openoffice.org-redhat-menus-3.1-9420.noarch/usr/share/applnk-redhat/Office/openoffice.org3-math.desktop
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/base.desktop
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/misc/openoffice.org-redhat-menus-3.1-9420.noarch/usr/share/applnk-redhat/Office/openoffice.org3-base.desktop
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/printeradmin.desktop
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/misc/openoffice.org-redhat-menus-3.1-9420.noarch/usr/share/applnk-redhat/Office/openoffice.org3-printeradmin.desktop
+ for i in '`cat launcherlist`'
+ ln -sf /opt/openoffice.org3/share/xdg/startcenter.desktop
/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/misc/openoffice.org-redhat-menus-3.1-9420.noarch/usr/share/applnk-redhat/Office/openoffice.org3-startcenter.desktop
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile
'import site' failed; use -v for traceback
Traceback (most recent call last):
 File "", line 1, in ?
 File 
"/home/pengy/download/linux/openoffice/OOO310_m19/solver/310/unxlngx6.pro/lib/python/compileall.py",
line 15, in ?
   imp

Re: [dev] OOO310_m19 compile error

2009-09-24 Thread Woods Yan
You add the cups.h path "-I/home/pengy/utility/linux/include" into
LinuxX86-64Env.Set.sh  to set SOLARINC.
You'd better learn related compile knowledge at first.

On Fri, Sep 25, 2009 at 9:16 AM, Peng Yu  wrote:

> Hi,
>
> I downloaded the following packages and decompressed them.
>
> OOo_3.1.1_src_core.tar.bz2
> OOo_3.1.1_src_system.tar.bz2
>
> ./configure --prefix=/home/pengy/utility/linux --with-use-shell=bash
> ./bootstrap; source LinuxX86-64Env.Set.sh ;
> make -j6
>
> But, I end up with the following error. Can somebody let me know what
> the problem is? I have cups.h at
> /home/pengy/utility/linux/include/cups/cups.h. I am wondering how to
> fix the problem?
>
> Regards,
> Peng
>
>
>
> --
> Making: ../../unxlngx6.pro/slo/cupsmgr.obj
> g++  -Wreturn-type -fmessage-length=0 -c -O2 -fno-strict-aliasing
> -Wuninitialized   -I.  -I../../unxlngx6.pro/inc/printer -I../inc
> -I../../inc/pch -I../../inc -I../../unx/inc -I../../unxlngx6.pro/inc
> -I. -I/home/pengy/download/linux/openoffice/OOO310_m19/solver/310/
> unxlngx6.pro/inc/stl
>
> -I/home/pengy/download/linux/openoffice/OOO310_m19/solver/310/unxlngx6.pro/inc/external
>
> -I/home/pengy/download/linux/openoffice/OOO310_m19/solver/310/unxlngx6.pro/inc
> -I/home/pengy/download/linux/openoffice/OOO310_m19/solenv/unxlngx6/inc
> -I/home/pengy/download/linux/openoffice/OOO310_m19/solenv/inc
> -I/home/pengy/download/linux/openoffice/OOO310_m19/res
>
> -I/home/pengy/download/linux/openoffice/OOO310_m19/solver/310/unxlngx6.pro/inc/stl
> -I/home/pengy/download/linux/openoffice/OOO310_m19/solenv/inc/Xp31
> -I/home/pengy/utility/linux/opt/jdk1.6.0_16/include
> -I/home/pengy/utility/linux/opt/jdk1.6.0_16/include/linux
> -I/home/pengy/utility/linux/opt/jdk1.6.0_16/include/native_threads/include
> -I/usr/include
>
> -I/home/pengy/download/linux/openoffice/OOO310_m19/solver/310/unxlngx6.pro/inc/offuh
> -I. -I../../res -I. -pipe  -Wno-ctor-dtor-privacy -fno-use-cxa-atexit
> -fvisibility-inlines-hidden -Wall -Wextra -Wendif-labels -Wshadow
> -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor   -fpic -DLINUX -DUNX
> -DVCL -DGCC -DC341 -DX86_64 -DCVER=C341 -DNPTL -DGLIBC=2 -DX86_64
> -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1
> -DSTLPORT_VERSION=400 -DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX
> -DCPPU_ENV=gcc3
>
> -DGXX_INCLUDE_PATH=/home/pengy/utility/linux/opt/gcc-4.3.4/lib/gcc/x86_64-unknown-linux-gnu/4.3.4/../../../../include/c++/4.3.4
> -DSUPD=310 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0
> -DOPTIMIZE -DCUI -DSOLAR_JAVA   -DENABLE_CUPS -DSHAREDLIB -D_DLL_
> -fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON  -o
> ../../unxlngx6.pro/slo/cupsmgr.o
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:35:23
> :
> error: cups/cups.h: No such file or directory
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:36:22:
> error: cups/ppd.h: No such file or directory
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:72:
> error: 'cups_option_t' has not been declared
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:73:
> error: 'cups_dest_t' has not been declared
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:74:
> error: 'cups_dest_t' has not been declared
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:75:
> error: 'cups_dest_t' has not been declared
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:77:
> error: 'ppd_file_t' has not been declared
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:77:
> error: 'cups_option_t' has not been declared
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:78:
> error: 'cups_option_t' has not been declared
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:79:
> error: 'cups_option_t' has not been declared
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:80:
> error: ISO C++ forbids declaration of 'ppd_file_t' with no type
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:80:
> error: expected ';' before '*' token
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:81:
> error: 'ppd_file_t' has not been declared
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:86:
> error: 'cups_option_t' has not been declared
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:95:
> error: 'cups_dest_t' has not been declared
>
> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/print

[dev] OOO310_m19 compile error

2009-09-24 Thread Peng Yu
Hi,

I downloaded the following packages and decompressed them.

OOo_3.1.1_src_core.tar.bz2
OOo_3.1.1_src_system.tar.bz2

./configure --prefix=/home/pengy/utility/linux --with-use-shell=bash
./bootstrap; source LinuxX86-64Env.Set.sh; make -j6

But, I end up with the following error. Can somebody let me know what
the problem is? I have cups.h at
/home/pengy/utility/linux/include/cups/cups.h. I am wondering how to
fix the problem?

Regards,
Peng



--
Making: ../../unxlngx6.pro/slo/cupsmgr.obj
g++  -Wreturn-type -fmessage-length=0 -c -O2 -fno-strict-aliasing
-Wuninitialized   -I.  -I../../unxlngx6.pro/inc/printer -I../inc
-I../../inc/pch -I../../inc -I../../unx/inc -I../../unxlngx6.pro/inc
-I. 
-I/home/pengy/download/linux/openoffice/OOO310_m19/solver/310/unxlngx6.pro/inc/stl
-I/home/pengy/download/linux/openoffice/OOO310_m19/solver/310/unxlngx6.pro/inc/external
-I/home/pengy/download/linux/openoffice/OOO310_m19/solver/310/unxlngx6.pro/inc
-I/home/pengy/download/linux/openoffice/OOO310_m19/solenv/unxlngx6/inc
-I/home/pengy/download/linux/openoffice/OOO310_m19/solenv/inc
-I/home/pengy/download/linux/openoffice/OOO310_m19/res
-I/home/pengy/download/linux/openoffice/OOO310_m19/solver/310/unxlngx6.pro/inc/stl
-I/home/pengy/download/linux/openoffice/OOO310_m19/solenv/inc/Xp31
-I/home/pengy/utility/linux/opt/jdk1.6.0_16/include
-I/home/pengy/utility/linux/opt/jdk1.6.0_16/include/linux
-I/home/pengy/utility/linux/opt/jdk1.6.0_16/include/native_threads/include
-I/usr/include
-I/home/pengy/download/linux/openoffice/OOO310_m19/solver/310/unxlngx6.pro/inc/offuh
-I. -I../../res -I. -pipe  -Wno-ctor-dtor-privacy -fno-use-cxa-atexit
-fvisibility-inlines-hidden -Wall -Wextra -Wendif-labels -Wshadow
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor   -fpic -DLINUX -DUNX
-DVCL -DGCC -DC341 -DX86_64 -DCVER=C341 -DNPTL -DGLIBC=2 -DX86_64
-D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1
-DSTLPORT_VERSION=400 -DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX
-DCPPU_ENV=gcc3
-DGXX_INCLUDE_PATH=/home/pengy/utility/linux/opt/gcc-4.3.4/lib/gcc/x86_64-unknown-linux-gnu/4.3.4/../../../../include/c++/4.3.4
-DSUPD=310 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0
-DOPTIMIZE -DCUI -DSOLAR_JAVA   -DENABLE_CUPS -DSHAREDLIB -D_DLL_
-fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON  -o
../../unxlngx6.pro/slo/cupsmgr.o
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:35:23:
error: cups/cups.h: No such file or directory
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:36:22:
error: cups/ppd.h: No such file or directory
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:72:
error: 'cups_option_t' has not been declared
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:73:
error: 'cups_dest_t' has not been declared
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:74:
error: 'cups_dest_t' has not been declared
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:75:
error: 'cups_dest_t' has not been declared
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:77:
error: 'ppd_file_t' has not been declared
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:77:
error: 'cups_option_t' has not been declared
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:78:
error: 'cups_option_t' has not been declared
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:79:
error: 'cups_option_t' has not been declared
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:80:
error: ISO C++ forbids declaration of 'ppd_file_t' with no type
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:80:
error: expected ';' before '*' token
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:81:
error: 'ppd_file_t' has not been declared
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:86:
error: 'cups_option_t' has not been declared
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:95:
error: 'cups_dest_t' has not been declared
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:98:
error: 'cups_dest_t' has not been declared
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:101:
error: 'cups_dest_t' has not been declared
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:108:
error: 'cups_option_t' has not been declared
/home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:113:
error: 'ppd_file_t' has not been declared
/home/pengy/download/lin