Re: [dev] Fwd: DEV300_m29/solver/300/unxlngi6.pro/inc/com/sun/star/uno/Any.hxx:268

2008-08-21 Thread Caolan McNamara
On Thu, 2008-08-21 at 22:17 +0900, Hung Nguyen Vu wrote:
> Where is the patch or src.rpm?

http://cvs.fedora.redhat.com/viewvc/devel/openoffice.org/openoffice.org.2.0.3-ooo66018.cppuhelper.dangerousvisibility.patch?hideattic=0&revision=1.2&view=markup

> As you recomended,I am compiling gcc 4.3.1 on my machine which
> will keep me busy for a while until I get back.

Well, personally I'd recommend just building it with what you've got and
worry about the visibility bug if you ever actually encounter the
crash :-)

C.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Fwd: DEV300_m29/solver/300/unxlngi6.pro/inc/com/sun/star/uno/Any.hxx:268

2008-08-21 Thread Hung Nguyen Vu
On Thu, Aug 21, 2008 at 6:09 PM, Caolan McNamara <[EMAIL PROTECTED]> wrote:

> Those actual warnings are basically spurious, ignore them.

Thanks. It is simple.

But, I know that your particular compiler, given as it is equivalent to
> the RHEL-5 gcc, actually probably *does* has a bug with visibility which
> IIRC may cause OOo to crash when it loads some old .sdw files, the
> workaround it to disable visibility or to apply the
> openoffice.org.2.0.3-dangerousvisibility.patch patch found in the
> RHEL-4/CentOS openoffice.org src.rpm. It's pretty uncommon, but it can
> happen. If you are just building OOo for hacking around with, then I
> wouldn't bother changing your compiler for it.

Where is the patch or src.rpm?


> I don't think I've met a compiler yet that doesn't have *some* bug that
> has affected openoffice.org in some way:-), but I'm pretty happy with
> gcc 4.3.0/4.3.1 whose only known bug that has affected me is with
> -fasynchronous-unwind-tables on i386 which isn't enabled by default on
> that architecture anyway.

As you recomended,I am compiling gcc 4.3.1 on my machine which
will keep me busy for a while until I get back.

In this way, I will have someone to bug when 4.3.1 does not work well :P.


-- 
Best Regards,
Nguyen Hung Vu ( Nguyễn Vũ Hưng )
[EMAIL PROTECTED]
<[EMAIL PROTECTED]>, YIM: vuhung16 , Skype:
vuhung16dg
Japan through an eye of a gaijin:
http://www.flickr.com/photos/vuhung/tags/fav/


Re: [dev] Fwd: DEV300_m29/solver/300/unxlngi6.pro/inc/com/sun/star/uno/Any.hxx:268

2008-08-21 Thread Caolan McNamara
On Thu, 2008-08-21 at 17:34 +0900, Hung Nguyen Vu wrote:
> Should I upgrade my gcc?
> What version of gcc is recommended for building OOo 3?

Those actual warnings are basically spurious, ignore them. 

But, I know that your particular compiler, given as it is equivalent to
the RHEL-5 gcc, actually probably *does* has a bug with visibility which
IIRC may cause OOo to crash when it loads some old .sdw files, the
workaround it to disable visibility or to apply the
openoffice.org.2.0.3-dangerousvisibility.patch patch found in the
RHEL-4/CentOS openoffice.org src.rpm. It's pretty uncommon, but it can
happen. If you are just building OOo for hacking around with, then I
wouldn't bother changing your compiler for it.

I don't think I've met a compiler yet that doesn't have *some* bug that
has affected openoffice.org in some way:-), but I'm pretty happy with
gcc 4.3.0/4.3.1 whose only known bug that has affected me is with
-fasynchronous-unwind-tables on i386 which isn't enabled by default on
that architecture anyway.

C.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Fwd: DEV300_m29/solver/300/unxlngi6.pro/inc/com/sun/star/uno/Any.hxx:268

2008-08-21 Thread Hung Nguyen Vu
On Thu, Aug 21, 2008 at 5:29 PM, Caolan McNamara <[EMAIL PROTECTED]> wrote:

> > /home/vuhung/public_html/foss/src/DEV300_m29/solver/300/
> > unxlngi6.pro/inc/com/sun/star/uno/Any.hxx:268:
> > warning: lowering visibility of 'sal_Bool
> > com::sun::star::uno::operator==(const com::sun::star::uno::Any&, const
> > C&) [with C = bool]' to match its type
> >
> > Is that safe to ignore the warning?
>
> Basically "yes", it is safe to ignore the warning. What is your compiler
> version, i.e. gcc -v.

It is 4.1.2 as I said in the OP.

>
> Now in gcc 4.3.0 things have settled down visibility-wise and such a
> compiler shouldn't warn about this.

Should I upgrade my gcc?
What version of gcc is recommended for building OOo 3?

Thanks for you answer!!!


-- 
Best Regards,
Nguyen Hung Vu ( Nguyễn Vũ Hưng )
[EMAIL PROTECTED]
<[EMAIL PROTECTED]>, YIM: vuhung16 , Skype:
vuhung16dg
Japan through an eye of a gaijin:
http://www.flickr.com/photos/vuhung/tags/fav/


Re: [dev] Fwd: DEV300_m29/solver/300/unxlngi6.pro/inc/com/sun/star/uno/Any.hxx:268

2008-08-21 Thread Caolan McNamara
On Thu, 2008-08-21 at 17:14 +0900, Hung Nguyen Vu wrote:
> Sorry for cross-posting but I seems that I have asked in a wrong mailing
> list.
> So I forward this email.
> 

> When I compile DEV300_m29 with dmake, I get the following *warning*:
> 
> /home/vuhung/public_html/foss/src/DEV300_m29/solver/300/
> unxlngi6.pro/inc/com/sun/star/uno/Any.hxx:268:
> warning: lowering visibility of 'sal_Bool
> com::sun::star::uno::operator==(const com::sun::star::uno::Any&, const
> C&) [with C = bool]' to match its type
> 
> Is that safe to ignore the warning?

Basically "yes", it is safe to ignore the warning. What is your compiler
version, i.e. gcc -v. Some various vendors gcc versions between about >
4.1.X and < 4.3.0 had various slightly different experimental visibility
features in them. One of them was sort of an attempt (IIUC) to make
visibility markup a sort of C++ language extension and so giving these
sort of warnings when (what was felt to be) logical inconsistencies in
markup was detected

Now in gcc 4.3.0 things have settled down visibility-wise and such a
compiler shouldn't warn about this.

*some* gcc variant's visibility stuff doesn't always work right, and can
cause horrific hard-to-find crashes. But I think that if your compiler
gets past the configure tests for common visibility brokenness then you
should be safe regardless of those warnings.

C.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] Fwd: DEV300_m29/solver/300/unxlngi6.pro/inc/com/sun/star/uno/Any.hxx:268

2008-08-21 Thread Hung Nguyen Vu
Sorry for cross-posting but I seems that I have asked in a wrong mailing
list.
So I forward this email.

-- Forwarded message --
From: Hung Nguyen Vu
<[EMAIL PROTECTED]<[EMAIL PROTECTED]>
>
Date: Mon, Aug 18, 2008 at 3:08 PM
Subject: DEV300_m29/solver/300/unxlngi6.pro/inc/com/sun/star/uno/Any.hxx:268
To: [EMAIL PROTECTED]


Hi all,

When I compile DEV300_m29 with dmake, I get the following *warning*:

/home/vuhung/public_html/foss/src/DEV300_m29/solver/300/
unxlngi6.pro/inc/com/sun/star/uno/Any.hxx:268:
warning: lowering visibility of 'sal_Bool
com::sun::star::uno::operator==(const com::sun::star::uno::Any&, const
C&) [with C = bool]' to match its type

Is that safe to ignore the warning?
I am just curious  because the template Any seems to be used quite
office, and the warning looks annoying.

My environment:
Cent OS 5, g++ 4.1.2,

cd config_office
export JAVA_HOME=/usr/local/jdk1.6.0_07/
export PATH=$PATH:/usr/local/jdk1.6.0_07/bin

export CLASSPATH=$CLASSPATH:/usr/local/junit4.5/junit-4.5.jar

export ANT_HOME=/usr/local/ant
export PATH=$PATH:$ANT_HOME/bin

PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig/

./configure --prefix=$HOME \
   --disable-cups \
   --disable-pam \
   --with-jdk-home=/usr/local/jdk1.6.0_07/ \
   --disable-mozilla \
   --disable-qadevooo \
   --without-system-stdlibs \
   --disable-odk \
   --with-use-shell=bash \
   --with-vendor="Vietnamese Localization Build" \
   --with-lang=vi \
   --without-java \
   --disable-vba

sleep 3
cd ..
./bootstrap
sleep 3
source LinuxX86Env.Set.sh
rehash

export SOLENV=`pwd`/solenv/
./solenv/unxlngi6/bin/dmake


Full warning:
Making: ../../../unxlngi6.pro/slo/unoidx.obj
g++  -fmessage-length=0 -c -Os -fno-strict-aliasing
-fvisibility=hidden -I.  -I../../../unxlngi6.pro/inc/unocore -I../inc
-I../../../inc/pch -I../../../inc -I../../../unx/inc
-I../../../unxlngi6.pro/inc -I.
-I/home/vuhung/public_html/foss/src/DEV300_m29/solver/300/
unxlngi6.pro/inc/stl
-I/home/vuhung/public_html/foss/src/DEV300_m29/solver/300/unxlngi6.pro/inc/external
-I/home/vuhung/public_html/foss/src/DEV300_m29/solver/300/unxlngi6.pro/inc
-I/home/vuhung/public_html/foss/src/DEV300_m29/solenv/unxlngi6/inc
-I/home/vuhung/public_html/foss/src/DEV300_m29/solenv/inc
-I/home/vuhung/public_html/foss/src/DEV300_m29/res
-I/home/vuhung/public_html/foss/src/DEV300_m29/solver/300/unxlngi6.pro/inc/stl
-I/home/vuhung/public_html/foss/src/DEV300_m29/solenv/inc/Xp31
-INO_JAVA_HOME/include-INO_JAVA_HOME/include/linux
-INO_JAVA_HOME/include/native_threads/include -I/usr/include
-I/home/vuhung/public_html/foss/src/DEV300_m29/solver/300/
unxlngi6.pro/inc/offuh
-I . -I../../../res -I. -pipe
-mtune=pentiumpro
-fvisibility-inlines-hidden -Wall -Wextra -Wendif-labels -Wshadow
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor   -fpic -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/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2
-DSUPD=300 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0
-DOPTIMIZE -DCUI   -DACCESSIBLE_LAYOUT -DSW_DLLIMPLEMENTATION
-DSHAREDLIB -D_DLL_   -fexceptions -fno-enforce-eh-specs
-DEXCEPTIONS_ON  -o ../../../unxlngi6.pro/slo/unoidx.o
/home/vuhung/public_html/foss/src/DEV300_m29/sw/source/core/unocore/unoidx.cxx
/home/vuhung/public_html/foss/src/DEV300_m29/solver/300/unxlngi6.pro/inc/com/sun/star/uno/Type.h:459
:
warning: lowering visibility of 'const com::sun::star::uno::Type&
getCppuType() [with T = short unsigned int]' to match its type
/home/vuhung/public_html/foss/src/DEV300_m29/solver/300/
unxlngi6.pro/inc/com/sun/star/uno/Any.h:277:
warning: lowering visibility of 'com::sun::star::uno::Any
com::sun::star::uno::makeAny(const C&) [with C = bool]' to match its
type
/home/vuhung/public_html/foss/src/DEV300_m29/solver/300/
unxlngi6.pro/inc/com/sun/star/uno/Any.h:337:
warning: lowering visibility of 'sal_Bool
com::sun::star::uno::operator>>=(const com::sun::star