ICU54 on solaris 9

Dagobert Michelsen dam at opencsw.org
Wed Feb 11 09:33:25 CET 2015


Hi Riccardo,

> Am 10.02.2015 um 18:46 schrieb Riccardo Mottola <rmottola at opencsw.org>:
> 
> Hi,
> 
> since I am stubborn of nature, I tried to compile ICU 54 on solaris 9 to see if by miracle it would just work.
> 
> I get this build error:
> 
> make[1]: Leaving directory `/home/rmottola/opencsw/libicu54/trunk/work/build-isa-sparcv8/icu/source/layout'
> gmake[1]: Entering directory `/home/rmottola/opencsw/libicu54/trunk/work/build-isa-sparcv8/icu/source/layout'
> /opt/SUNWspro/bin/CC   -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=0  -I. -I./.. -I../common -I./unicode  -DU_ATTRIBUTE_DEPRECATED= -DU_LAYOUT_IMPLEMENTATION -xO3 -m32 -xarch=v8 -mt   -c -DPIC -KPIC -o LEFontInstance.o LEFontInstance.cpp
> /opt/SUNWspro/bin/CC   -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=0  -I. -I./.. -I../common -I./unicode  -DU_ATTRIBUTE_DEPRECATED= -DU_LAYOUT_IMPLEMENTATION -xO3 -m32 -xarch=v8 -mt   -c -DPIC -KPIC -o OpenTypeLayoutEngine.o OpenTypeLayoutEngine.cpp
> "LETableReference.h", line 68: Error: Expected an expression.
> "LETableReference.h", line 100: Error: Badly formed expression.
> "LETableReference.h", line 104: Error: Operand expected instead of ")".
> "LETableReference.h", line 122: Error: Operand expected instead of ";".
> "LETableReference.h", line 144: Error: "icu_54::LETableReference::ptrToOffset(const void*, LEErrorCode&) const" is expected to return a value.
> "LETableReference.h", line 149: Error: "icu_54::LETableReference::ptrToOffset(const void*, LEErrorCode&) const" is expected to return a value.
> "LETableReference.h", line 151: Warning: There are returns from icu_54::LETableReference::ptrToOffset(const void*, LEErrorCode&) const with and without values.
> "LETableReference.h", line 158: Error: Badly formed expression.
> "LETableReference.h", line 171: Error: Badly formed expression.
> "LETableReference.h", line 172: Error: A statement (even if empty) is required here.
> "LETableReference.h", line 383: Error: Expected an expression.
> 
> 
> Looking at line 68, I see:
>   LETableReference(const le_uint8* data, size_t length = LE_UINTPTR_MAX) :
> 
> I suppose hat is the ugly problem I already found in gnustep base.
> 
> I can patch that, put I'd prefer to apply the pach only for solaris9, because otherwise the ifdef's are hard to write. Stupid solaris doesn't have versions.
> 
> How can I apply a patch only for solaris <= 9 ?

See this example here:
  https://buildfarm.opencsw.org/source/xref/opencsw/csw/mgar/pkg/glib2/trunk/Makefile#46

PATCHFILES_5.9 += 0001-mypatch
PATCHFILES += $(PATCHFILES_$(GAROSREL))


Best regards

  — Dago

-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2418 bytes
Desc: not available
URL: <http://lists.opencsw.org/pipermail/maintainers/attachments/20150211/c8b2471e/attachment.p7s>


More information about the maintainers mailing list