Re: [dev] Build with Ubuntu 9.10

2009-11-19 Thread Zhu Lihua
Hi Rene,

Thanks for the reply and the workaround.

But it really strange that I built the source with other linux OS, This
error didn't happened. And they have the same stdio.h conflict
getline(). How the build process avoided the conflict?

Thanks again.

Best regards,
Lihua

在 2009-11-19四的 08:50 +0100,Rene Engelhard写道:
 Hi,
 
 On Thu, Nov 19, 2009 at 11:24:55AM +0800, Zhu Lihua wrote:
  In file mkdepend/def.h:157
  char*getline();
  
  But in file /usr/include/stdio.h:651
  extern _IO_ssize_t getline (char **__restrict __lineptr,
  size_t *__restrict __n,
  FILE *__restrict __stream) __wur;
  
  Why this happened?
 
 Becausse there is a copnflict with that getline and glibcs.
 As the error says:
 
 [...]
 def.h:157: error: conflicting types for 'getline' 
   
 /usr/include/stdio.h:651: note: previous declaration of 'getline' was here 
 [...]
 
  And why this not happend before?
 
 because you eithere upgraded your system or reinstalled a new version
 and it gets a new glibc. OOo 3.1.1 does not build with it because of
 the above.
 
 Workaround: 
 http://cgit.freedesktop.org/ooo-build/ooo-build/tree/patches/dev300/soltools-mkdepend-getline.diff?h=ooo-build-3-1-1
 (afaik upstream too already, but of course not for 3.1.1 because it
 was dfound after the release...)
 
 Grüße/Regards,
 
 Rene
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
 For additional commands, e-mail: dev-h...@openoffice.org
 



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



[dev] Build with Ubuntu 9.10

2009-11-18 Thread Zhu Lihua
Hi all,

I'm trying to build under ubuntu 9.10.

After:
./configure  --disable-odk --with-lang=zh-CN --disable-build-mozilla
./bootstrap
build --all

It stopped at module soltools:

mkout -- version: 1.8
--
Making: ../unxlngi6.pro/obj/cppsetup.obj
gcc -fmessage-length=0 -c -Os -fno-strict-aliasing   -I.  
-I../unxlngi6.pro/inc/make_makedepend -I../inc -I../inc/pch -I../inc 
-I../unx/inc -I../unxlngi6.pro/inc -I. 
-I/media/source/RO45-OTH-M30-TestControl/solver/300/unxlngi6.pro/incdont_use_stl
 -I/media/source/RO45-OTH-M30-TestControl/solver/300/unxlngi6.pro/inc/external 
-I/media/source/RO45-OTH-M30-TestControl/solver/300/unxlngi6.pro/inc 
-I/media/source/RO45-OTH-M30-TestControl/solenv/unxlngi6/inc 
-I/media/source/RO45-OTH-M30-TestControl/solenv/inc 
-I/media/source/RO45-OTH-M30-TestControl/res 
-I/media/source/RO45-OTH-M30-TestControl/solver/300/unxlngi6.pro/incdont_use_stl
 -I/media/source/RO45-OTH-M30-TestControl/solenv/inc/Xp31 
-I/usr/lib/jvm/java-6-sun/include -I/usr/lib/jvm/java-6-sun/include/linux 
-I/usr/lib/jvm/java-6-sun/include/native_threads/include -I/usr/include  
-I/media/source/RO45-OTH-M30-TestControl/solver/300/unxlngi6.pro/inc/offuh -I. 
-I../res -I. -pipe -mtune=pentiumpro -Wall -Wextra -Wendif-labels  -DLINUX 
-DUNX -DVCL -DGCC -DC341 -DINTEL -DCVER=C341 -DNPTL -DGLIBC=2 -DX86 -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=/usr/include/c++/4.4 -DSUPD=300 -DPRODUCT -DNDEBUG 
-DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DCUI -DSOLAR_JAVA   -DNO_X11 
-DXP_PC -DHW_THREADS-o ../unxlngi6.pro/obj/cppsetup.o cppsetup.c
In file included from cppsetup.c:29:
def.h:157: error: conflicting types for 'getline'
/usr/include/stdio.h:651: note: previous declaration of 'getline' was here
cppsetup.c: In function '_my_if_errors':
cppsetup.c:122: warning: unused parameter 'ip'
cppsetup.c:123: warning: unused parameter 'cp'
cppsetup.c:124: warning: unused parameter 'expecting'
cppsetup.c: In function '_lookup_variable':
cppsetup.c:159: warning: unused variable 'pd'
dmake:  Error code 1, while making '../unxlngi6.pro/obj/cppsetup.obj'


In file mkdepend/def.h:157
char*getline();

But in file /usr/include/stdio.h:651
extern _IO_ssize_t getline (char **__restrict __lineptr,
size_t *__restrict __n,
FILE *__restrict __stream) __wur;

Why this happened? And why this not happend before?

Thank you very much.

Best regards,
Lihua



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Re: [qa-dev] Re: [dev] How to split VCL testtool out?

2009-10-28 Thread Zhu Lihua
Hi Gregor,

Thank you very much for the script.

I tried, sorry, but it doesn't work.

First, some how, build command dosen't work in a script. So I run this
script manually. And when I got the list, and deleted all the .so files
it contained in the basis3.1/program directory. Testtool.bin shows me
segment error. Finally I even tried to use ldd command to find out all
the depend libs, and copy them back to basis3.1/program directory.
testtool.bin still doesn't work.


Do you have any other ideas? Or like tbo said in
http://qa.openoffice.org/source/browse/qa/qatesttool/tools/standaloneTestTool/?hideattic=0#dirlist
:
DEL: standalone TestTool is dead and won't be alive again due to CWS
sb87/83.


Thank you and best regards,
Lihua


在 2009-10-27二的 13:04 +0100,Gregor Hartmann写道:
 Hi,
 
 here is a script that outputs a list of filenames.
 
 - start
 
 cd $SRC_ROOT
 
 cd automation
 build --all --show | grep Building module | sed s/Building module // 
   ../ttmodules
 cd $SRC_ROOT
 
 cd instsetoo_native
 build --all --show | grep Building module | sed s/Building module // 
   ../allmodules
 cd $SRC_ROOT
 
 grep -v -f ttmodules -x  allmodules  modules
 
 xargs -I {} cat $SOLARVER/$INPATH/inc/\{\}/deliver.log  modules | cut 
 -d  -f3 | sed s,.*/,, | sort -u
 
 -- end
 
 I won't attach it as I don't know if it will be stripped or not. Please 
 be careful reassembling the lines.
 
 You need a sourcetree which is completely compiled a shell with set 
 environment and then source the script. (should work with bash and tcsh 
 and the like)
 
 After removing the listed files from the installed office the testtool 
 might still run. I did not try it, so no guarantee at all.
 
 
 Please let us know if it works.
 
 
 hth
 Gregor
 
 
 
 
 
 Zhu Lihua schrieb:
  Hi Gregor,
  
  It's great that you are back. I'll wait for your script then. Thank you
  very much for the effort!
  
  Best regards,
  Lihua
  
  在 2009-10-27二的 10:14 +0100,Gregor Hartmann写道:
  Hi,
 
  never thought of removing unneeded files but a good startingpoint would 
  be to remove everything that was built after module automation (which 
  contains the vcltesttool).
 
  so one would need to get a list of the modules needed and get all files 
  delevered from the remaining modules. Then remove these files in the 
  installed office.
 
  One exception is the hid.lst but there might be others like some of the 
  *.rdb files.
 
  I will try to post a script which gets the filenames later.
 
  Gregor
 
  Andre Schnabel schrieb:
  Hi,
 
   Original-Nachricht 
  Von: Zhu Lihua zhuli...@redoffice.com
 
  I've built the openoffice.org on a loongson machine, include testtool.
  I wonder how to split testtool out from the installation set? I need a
  stand alone testtool.
  There once was a set of scripts in CVS:
  http://qa.openoffice.org/source/browse/qa/qatesttool/tools/standaloneTestTool/?hideattic=0
 
  Unfortunately it seems, as standalone testtool is not supported anymore.
  (What is somewhat strange, as it is the preferred way to use testtool
  even for the QA-team).
 
  Maybe someone at the qa project has an idea.
 
  André
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
  For additional commands, e-mail: dev-h...@openoffice.org
 
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
 For additional commands, e-mail: dev-h...@openoffice.org
 
-- 
Lihua


北京红旗贰仟软件技术有限公司
Beijing Redflag 2000 Software Co., Ltd.
Building No.2, Block A, Huilongsen, 18 Xihuan Nanlu
Beijing Economic-Technological Development Area
Beijing - P.R.China

Tel:+86-10-51570010 ext.6141
http://www.RedOffice.com



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Re: [qa-dev] Re: [dev] How to split VCL testtool out?

2009-10-28 Thread Zhu Lihua
Maybe we can build the source code before that CWS was integrated, that
is DEV300m3, and then, use the perl script tbo provided.

在 2009-10-28三的 16:09 +0800,Zhu Lihua写道:
 Hi Gregor,
 
 Thank you very much for the script.
 
 I tried, sorry, but it doesn't work.
 
 First, some how, build command dosen't work in a script. So I run this
 script manually. And when I got the list, and deleted all the .so files
 it contained in the basis3.1/program directory. Testtool.bin shows me
 segment error. Finally I even tried to use ldd command to find out all
 the depend libs, and copy them back to basis3.1/program directory.
 testtool.bin still doesn't work.
 
 
 Do you have any other ideas? Or like tbo said in
 http://qa.openoffice.org/source/browse/qa/qatesttool/tools/standaloneTestTool/?hideattic=0#dirlist
 :
 DEL: standalone TestTool is dead and won't be alive again due to CWS
 sb87/83.
 
 
 Thank you and best regards,
 Lihua
 
 
 在 2009-10-27二的 13:04 +0100,Gregor Hartmann写道:
  Hi,
  
  here is a script that outputs a list of filenames.
  
  - start
  
  cd $SRC_ROOT
  
  cd automation
  build --all --show | grep Building module | sed s/Building module // 
../ttmodules
  cd $SRC_ROOT
  
  cd instsetoo_native
  build --all --show | grep Building module | sed s/Building module // 
../allmodules
  cd $SRC_ROOT
  
  grep -v -f ttmodules -x  allmodules  modules
  
  xargs -I {} cat $SOLARVER/$INPATH/inc/\{\}/deliver.log  modules | cut 
  -d  -f3 | sed s,.*/,, | sort -u
  
  -- end
  
  I won't attach it as I don't know if it will be stripped or not. Please 
  be careful reassembling the lines.
  
  You need a sourcetree which is completely compiled a shell with set 
  environment and then source the script. (should work with bash and tcsh 
  and the like)
  
  After removing the listed files from the installed office the testtool 
  might still run. I did not try it, so no guarantee at all.
  
  
  Please let us know if it works.
  
  
  hth
  Gregor
  
  
  
  
  
  Zhu Lihua schrieb:
   Hi Gregor,
   
   It's great that you are back. I'll wait for your script then. Thank you
   very much for the effort!
   
   Best regards,
   Lihua
   
   在 2009-10-27二的 10:14 +0100,Gregor Hartmann写道:
   Hi,
  
   never thought of removing unneeded files but a good startingpoint would 
   be to remove everything that was built after module automation (which 
   contains the vcltesttool).
  
   so one would need to get a list of the modules needed and get all files 
   delevered from the remaining modules. Then remove these files in the 
   installed office.
  
   One exception is the hid.lst but there might be others like some of the 
   *.rdb files.
  
   I will try to post a script which gets the filenames later.
  
   Gregor
  
   Andre Schnabel schrieb:
   Hi,
  
    Original-Nachricht 
   Von: Zhu Lihua zhuli...@redoffice.com
  
   I've built the openoffice.org on a loongson machine, include testtool.
   I wonder how to split testtool out from the installation set? I need a
   stand alone testtool.
   There once was a set of scripts in CVS:
   http://qa.openoffice.org/source/browse/qa/qatesttool/tools/standaloneTestTool/?hideattic=0
  
   Unfortunately it seems, as standalone testtool is not supported anymore.
   (What is somewhat strange, as it is the preferred way to use testtool
   even for the QA-team).
  
   Maybe someone at the qa project has an idea.
  
   André
  
   -
   To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
   For additional commands, e-mail: dev-h...@openoffice.org
  
  
  -
  To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
  For additional commands, e-mail: dev-h...@openoffice.org
  
 -- 
 Lihua
 
 
 北京红旗贰仟软件技术有限公司
 Beijing Redflag 2000 Software Co., Ltd.
 Building No.2, Block A, Huilongsen, 18 Xihuan Nanlu
 Beijing Economic-Technological Development Area
 Beijing - P.R.China
 
 Tel:+86-10-51570010 ext.6141
 http://www.RedOffice.com
 
 
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
 For additional commands, e-mail: dev-h...@openoffice.org
 
-- 
Lihua


北京红旗贰仟软件技术有限公司
Beijing Redflag 2000 Software Co., Ltd.
Building No.2, Block A, Huilongsen, 18 Xihuan Nanlu
Beijing Economic-Technological Development Area
Beijing - P.R.China

Tel:+86-10-51570010 ext.6141
http://www.RedOffice.com



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] How to split VCL testtool out?

2009-10-27 Thread Zhu Lihua
Hi Caolán,

Thank you very much for the replay.

But it needs much more than those. It needs libs from URE also, and many
libs in the current directory.

BTW, your name sounds very much like a Chinese name, such as 曹兰. :-)

Best regards,
Lihua

在 2009-10-27二的 08:24 +,Caolán McNamara写道:
 On Tue, 2009-10-27 at 16:01 +0800, Zhu Lihua wrote:
  Hi all,
  
  I've built the openoffice.org on a loongson machine, include testtool.
  I wonder how to split testtool out from the installation set? I need a
  stand alone testtool.
 
 Don't you just need to package...
 
 path/to/openoffice.org/basis3.X/program/hid.lst
 path/to/openoffice.org/basis3.X/program/libcommunili.so
 path/to/openoffice.org/basis3.X/program/libsimplecmli.so
 path/to/openoffice.org/basis3.X/program/resource/stten-US.res
 path/to/openoffice.org/basis3.X/program/testtool.bin
 path/to/openoffice.org/basis3.X/program/testtoolrc
 
 (replacing li with the mips equivalent suffix)
 
 C.
 
 
 
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
 For additional commands, e-mail: dev-h...@openoffice.org
 
-- 
Lihua


北京红旗贰仟软件技术有限公司
Beijing Redflag 2000 Software Co., Ltd.
Building No.2, Block A, Huilongsen, 18 Xihuan Nanlu
Beijing Economic-Technological Development Area
Beijing - P.R.China

Tel:+86-10-51570010 ext.6141
http://www.RedOffice.com



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] How to split VCL testtool out?

2009-10-27 Thread Zhu Lihua
Hi Gregor,

It's great that you are back. I'll wait for your script then. Thank you
very much for the effort!

Best regards,
Lihua

在 2009-10-27二的 10:14 +0100,Gregor Hartmann写道:
 Hi,
 
 never thought of removing unneeded files but a good startingpoint would 
 be to remove everything that was built after module automation (which 
 contains the vcltesttool).
 
 so one would need to get a list of the modules needed and get all files 
 delevered from the remaining modules. Then remove these files in the 
 installed office.
 
 One exception is the hid.lst but there might be others like some of the 
 *.rdb files.
 
 I will try to post a script which gets the filenames later.
 
 Gregor
 
 Andre Schnabel schrieb:
  Hi,
  
   Original-Nachricht 
  Von: Zhu Lihua zhuli...@redoffice.com
 
  I've built the openoffice.org on a loongson machine, include testtool.
  I wonder how to split testtool out from the installation set? I need a
  stand alone testtool.
  
  There once was a set of scripts in CVS:
  http://qa.openoffice.org/source/browse/qa/qatesttool/tools/standaloneTestTool/?hideattic=0
  
  Unfortunately it seems, as standalone testtool is not supported anymore.
  (What is somewhat strange, as it is the preferred way to use testtool
  even for the QA-team).
  
  Maybe someone at the qa project has an idea.
  
  André
 
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
 For additional commands, e-mail: dev-h...@openoffice.org
 
-- 
Lihua


北京红旗贰仟软件技术有限公司
Beijing Redflag 2000 Software Co., Ltd.
Building No.2, Block A, Huilongsen, 18 Xihuan Nanlu
Beijing Economic-Technological Development Area
Beijing - P.R.China

Tel:+86-10-51570010 ext.6141
http://www.RedOffice.com



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Re: What is a SLOT and What is a WHICH?

2009-08-06 Thread Zhu Lihua
Hi,

Thank you, Joost, Niklas and Bjoern.

It's still abit abstract for me. I know SlotIDs are constants defined
in .hrc files, e.g., sc.hrc. What about WhichIDs?
Could you please give me a simple example to illustrate the relationship
between module, item, whichId and SlotId?

From Niklas' explanation, I sense each module have a range of WhichIDs.
What does module means here? Does it mean the application module? ie,
Writer, calc, impress and so on. an ItemPool can define a Slot-ID for
each Which-ID. The same Slot-ID is then used for an item across the
modules, I can't understand the above explanation. Different module
have different WhichIDs. How can it use same SlotID? Does it define the
same SlotID for different WhichID in different modules?

I havn't finised reading the article Bjoern provided. Maybe I can get
more from the article.

Thank you again for the help. I just dig into the source code and know
very little about it now. Please don't feel boring.

Best regards,
Lihua

在 2009-08-05三的 09:30 +,Bjoern Michaelsen写道:
 Zhu Lihua zhulihua at redoffice.com writes:
 
  
  Hi all,
  
  I read the following code in OOo source code(itempool.hxx):
  
  #define SFX_WHICH_MAX 4999
  
  static int  IsWhich(USHORT nId) {
  return nId  nId = SFX_WHICH_MAX; }
  static int  IsSlot(USHORT nId) {
  return nId  nId  SFX_WHICH_MAX; }
  
  I think: if nId  4999, it's a Slot. if nId = 4999 and nId !=0 , it's a
 Which. 
  
  What are the terms slot and which mean?
  Thank you!
 
 A WhichId is the id by which items are stored in SfxItemSets and SfxItemPools.
 You cannot have two items with the same WhichId in on SfxItemSet. However,
 there are multiple uses for WhichIds: SfxSlotIds are only one and they are
 required to start at 5000. In writer for example HintIds can also be used
 as WhichIds. To make sure those do not collide, HintIds must be 5000.
 
 SlotIds are used in the Sfx2 framework. see:
 
  
 http://wiki.services.openoffice.org/wiki/Framework/Article/Implementation_of_the_Dispatch_API_In_SFX2
 
 SlotIds are at least unique per Shell (*).
 
 There are some fine differences in the way SfxItemSets/SfxPropertySets handle
 ids 5000 and ids =5000. For example, the Changed(..)-Callback in SfxItemSet
 only gets called for WhichIds 5000. For more details, Im afraid you will have
 to dig into the code.
 
 Have Fun,
 
 Bjoern
 
 
 (*) I guess, they might even be unique OOo-wide, but Im not sure about that.
 
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
 For additional commands, e-mail: dev-h...@openoffice.org
 
-- 
Lihua


北京红旗贰仟软件技术有限公司
Beijing Redflag 2000 Software Co., Ltd.
Building No.2, Block A, Huilongsen, 18 Xihuan Nanlu
Beijing Economic-Technological Development Area
Beijing - P.R.China

Tel:+86-10-51570010 ext.6141
http://www.RedOffice.com



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



[dev] What is a SLOT and What is a WHICH?

2009-08-04 Thread Zhu Lihua
Hi all,

I read the following code in OOo source code(itempool.hxx):

#define SFX_WHICH_MAX 4999

static int  IsWhich(USHORT nId) {
return nId  nId = SFX_WHICH_MAX; }
static int  IsSlot(USHORT nId) {
return nId  nId  SFX_WHICH_MAX; }


I think: if nId  4999, it's a Slot. if nId = 4999 and nId !=0 , it's a 
Which. 

What are the terms slot and which mean?
Thank you!
-- 
Best regards,
Lihua


北京红旗贰仟软件技术有限公司
Beijing Redflag 2000 Software Co., Ltd.
Building No.2, Block A, Huilongsen, 18 Xihuan Nanlu
Beijing Economic-Technological Development Area
Beijing - P.R.China

Tel:+86-10-51570010 ext.6141
http://www.RedOffice.com



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



[dev] A question about Class StateCommand.

2009-06-23 Thread Zhu Lihua
Hi all,
I'm new to this list. Greeting to all.
When I read the defination of Class StateCommand in statement.hxx in 
automation/source/server/:

class StatementCommand : public StatementList   // Befehl ausfhren (wintree, 
resetaplication ...)
352 {
353 friend class ImplRemoteControl;
354 protected:
355 USHORT nMethodId;
356 SmartId aSmartMethodId;
357 USHORT nParams;
358 comm_USHORT nNr1,nNr2,nNr3,nNr4;
359 comm_ULONG nLNr1;
360 String aString1,aString2;
361 BOOL bBool1,bBool2;
362 
...
382 
383 };

There are:
nNr1,nNr2,nNr3,nNr4;
nLNr1;
bBool1,bBool2;

my question is, What they defined for? I can't guess their useage by names. And 
I saw them used in some functions. for example:


1462 BOOL StatementCommand::DisplayHID()
   1463 {
   1464 // Return TRUE - reexecute command
   1465 
   1466 if ( !bBool2 )  // Wird auf FALSE initialisiert
   1467 {
   1468 bBool2 = TRUE;  // Wir sind 
initialisiert.
   1469 GetTTSettings()-pDisplayInstance = this;   // Und 
haben die Macht (Alle anderen beenden sich)
   1470 ...


I wonder why the function check bBool2 at the begining? and why set it to True. 
The similar questions will arise when I
come to the code with the other variables.

Thanks in advance!

Best regards,
 
-- 
Lihua


北京红旗贰仟软件技术有限公司
Beijing Redflag 2000 Software Co., Ltd.
Building No.2, Block A, Huilongsen, 18 Xihuan Nanlu
Beijing Economic-Technological Development Area
Beijing - P.R.China

Tel:+86-10-51570010 ext.6141
http://www.RedOffice.com



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org