Issue 17612 - IRIX: std::sqrt() is ambigous apparently.
Summary: IRIX: std::sqrt() is ambigous apparently.
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC
Hardware: SGI IRIX
: P3 Trivial (vote)
Target Milestone: OOo 1.1.1
Assignee: Martin Hollmichel
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks: 809
  Show dependency tree
 
Reported: 2003-07-30 08:46 UTC by nickb
Modified: 2004-02-05 12:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description nickb 2003-07-30 08:46:18 UTC
Well, MipsPro is nothing if not pedantic!
CC -c -I.  -I. -I../inc -I../../inc -I../../unx/inc -I../../unxirxm3.pro/inc -I.
-I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/stl
-I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/external
-I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc
-I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solenv/unxirxm3/inc
-I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solenv/inc
-I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/res
-I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/stl
-I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solenv/inc/Xp31
-I/usr/java2/include -I/usr/java2/include/irix
-I/usr/java2/include/native_threads/include     -I. -I../../res -I. -O2  
-LANG:ansi-for-init-scope=OFF -LANG:std -LANG:libc_in_namespace_std=ON
-LANG:exceptions=OFF   -KPIC -DIRIX -DUNX -DVCL -DC730 -DC730 -DMIPS -DCVER=C730
-D_USE_NAMESPACE -DSTLPORT_VERSION=0x450 -D_USE_NAMESPACE=1 -DNEW_SOLAR
-DSGI_STL -D__STL_THROW_RANGE_ERRORS -D__DMAKE -DUNIX -DCPPU_ENV=MipsPro
-DSUPD=645 -DBUILD=8639 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0
-DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX645 -DUSE_BUILTIN_RASTERIZER
-DENABLE_CTL -DSHAREDLIB -D_DLL_  -DMULTITHREAD  -w -o
../../unxirxm3.pro/slo/bitmap4.o
/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/vcl/source/gdi/bitmap4.cxx
cc-1282 CC: ERROR File =
/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/vcl/source/gdi/bitmap4.cxx,
Line = 511
  More than one instance of overloaded function "sqrt" matches the argument list.

            Function symbol function "std::sqrt(long double)" is ambiguous by
                      inheritance.
            Function symbol function "std::sqrt(float)" is ambiguous by
                      inheritance.
            Function symbol function "std::sqrt(double)" is ambiguous by
                      inheritance.
            The argument types are:  (long).
                                                nSum1 = (long) sqrt( ( nSum1 *
nSum1 + nSum2 * nSum2 ) );

I guessing I just cast and be on my way...  whats appropriate tho? double? guess
float should be big enough.

For some reason the server I am building on is not letting me make diffs now..
*sigh*, still, two casts in this file, and away we go.
Comment 1 nickb 2003-07-30 08:50:33 UTC
vcl/source/gdi/pdfwriter_impl.cxx - pow is ambiguous, adding (float) cast.
Comment 2 nickb 2003-07-30 09:15:51 UTC
vcl/unx/source/app/saldisp.cxx - sqrt
Comment 3 jens-heiner.rechtien 2003-07-30 16:07:12 UTC
Fixed on ooo11rc3. I choosed casts to double because this doesn't
change  the precision for the other platforms. Shouldn't matter anyway.

Please reopen if more of this kind pops up.
Comment 4 nickb 2003-07-31 00:29:13 UTC
source/helper/strhelper.cxx - pow

likely to be more coming.
Comment 5 nickb 2003-08-01 08:43:08 UTC
/svx/source/svdraw/impgrfll.cxx - cos, sin
Comment 6 nickb 2003-08-04 01:59:39 UTC
xmloff/source/core/xmluconv.cxx - log10()
Comment 7 nickb 2003-08-05 05:40:49 UTC
sc/source/core/tool/interpr2.cxx - pow
Comment 8 nickb 2003-08-07 01:36:18 UTC
scaddins/source/analysis/bessel.cxx - pow
Comment 9 Martin Hollmichel 2003-08-07 15:56:27 UTC
set target milestone to 1.1.1
Comment 10 sander_traveling 2003-10-16 22:39:40 UTC
commited in ooo111fix1 - please reopen if there are more
Comment 11 Martin Hollmichel 2004-02-05 12:28:58 UTC
mark as verified.
Comment 12 Martin Hollmichel 2004-02-05 12:40:03 UTC
closing issue, feel free to reopen in case a problem is left.