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 "<string>", line 1, in ? File "/home/pengy/download/linux/openoffice/OOO310_m19/solver/310/unxlngx6.pro/lib/python/compileall.py", line 15, in ? import os File "/home/pengy/download/linux/openoffice/OOO310_m19/solver/310/unxlngx6.pro/lib/python/os.py", line 757 bs = b"" ^ SyntaxError: invalid syntax 'import site' failed; use -v for traceback Traceback (most recent call last): File "<string>", line 1, in ? File "/home/pengy/download/linux/openoffice/OOO310_m19/solver/310/unxlngx6.pro/lib/python/compileall.py", line 15, in ? import os File "/home/pengy/download/linux/openoffice/OOO310_m19/solver/310/unxlngx6.pro/lib/python/os.py", line 757 bs = b"" ^ SyntaxError: invalid syntax error: Bad exit status from /var/tmp/rpm-tmp.28295 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.28295 (%install) dmake: Error code 1, while making '/home/pengy/download/linux/openoffice/OOO310_m19/sysui/unxlngx6.pro/bin/desktop-integration/openoffice.org-redhat-menus-3.1-9420.noarch.rpm' ERROR: Error 65280 occurred while making /home/pengy/download/linux/openoffice/OOO310_m19/sysui/desktop/redhat rmdir /tmp/22258 make: *** [all] Error 1 On Thu, Sep 24, 2009 at 9:27 PM, Woods Yan <loveinn...@gmail.com> wrote: > You add the cups.h path "-I/home/pengy/utility/linux/include" into > LinuxX86-64Env.Set.sh <http://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 <pengyu...@gmail.com> 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 <http://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/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:113: >> error: 'cups_option_t' has not been declared >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:116: >> error: 'cups_option_t' has not been declared >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:119: >> error: 'cups_option_t' has not been declared >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:122: >> error: ISO C++ forbids declaration of 'ppd_file_t' with no type >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:122: >> error: expected ';' before '*' token >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:125: >> error: expected `;' before 'void' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:125: >> error: 'ppd_file_t' has not been declared >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:140: >> error: 'cups_option_t' has not been declared >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx: >> In constructor 'psp::CUPSWrapper::CUPSWrapper()': >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:186: >> error: expected primary-expression before 'int' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:186: >> error: expected `)' before 'int' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:188: >> error: expected primary-expression before 'int' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:188: >> error: expected `)' before 'int' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:190: >> error: expected primary-expression before 'void' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:190: >> error: expected `)' before 'void' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:192: >> error: expected primary-expression before 'void' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:192: >> error: expected `)' before 'void' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:196: >> error: expected primary-expression before 'int' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:196: >> error: expected `)' before 'int' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:198: >> error: expected primary-expression before 'int' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:198: >> error: expected `)' before 'int' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:200: >> error: expected primary-expression before 'void' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:200: >> error: expected `)' before 'void' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:202: >> error: 'm_pppdOpenFile' was not declared in this scope >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:202: >> error: 'ppd_file_t' was not declared in this scope >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:202: >> error: expected primary-expression before ')' token >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:202: >> error: expected primary-expression before 'const' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:203: >> error: expected `;' before 'loadSymbol' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:204: >> error: expected primary-expression before 'void' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:204: >> error: expected `)' before 'void' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:214: >> error: expected primary-expression before 'const' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:214: >> error: expected `)' before 'const' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx: >> In destructor 'virtual psp::CUPSManager::~CUPSManager()': >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:424: >> error: 'cups_dest_t' was not declared in this scope >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:424: >> error: expected primary-expression before ')' token >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx: >> In member function 'void psp::CUPSManager::runDests()': >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:450: >> error: 'cups_dest_t' was not declared in this scope >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:450: >> error: 'pDests' was not declared in this scope >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx: >> In member function 'virtual void psp::CUPSManager::initialize()': >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:534: >> error: 'cups_dest_t' was not declared in this scope >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:534: >> error: 'pDest' was not declared in this scope >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:534: >> error: expected primary-expression before ')' token >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:534: >> error: expected `)' before 'm_pDests' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:552: >> error: expected primary-expression before ')' token >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:552: >> error: expected `)' before 'm_pDests' >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx: >> At global scope: >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:630: >> error: variable or field 'updatePrinterContextInfo' declared void >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:630: >> error: 'ppd_group_t' was not declared in this scope >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:630: >> error: 'pPPDGroup' was not declared in this scope >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:630: >> error: expected primary-expression before '&' token >> >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer/cupsmgr.cxx:630: >> error: 'rContext' was not declared in this scope >> dmake: Error code 1, while making '../../unxlngx6.pro/slo/cupsmgr.obj' >> >> ERROR: Error 65280 occurred while making >> /home/pengy/download/linux/openoffice/OOO310_m19/psprint/source/printer >> rmdir /tmp/5758 >> make: *** [all] Error 1 >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@openoffice.org >> For additional commands, e-mail: dev-h...@openoffice.org >> >> > > > -- > ----- > Woods Yan > Learning programming in OOo! > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.org For additional commands, e-mail: dev-h...@openoffice.org