You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Alona Rossen <ar...@opentext.com> on 2010/01/21 20:34:10 UTC
configure fails on HP-UX 11.11 on RISC
Hello,
I run the following configure command on HP-UX11 on RISC:
./configure CXX=aCC CC=aCC CFLAGS=-mt CXXFLAGS=-mt -AA +Z +DA2.0W +DS2.0
LDFLAGS=-mt -L/usr/lib/pa20_64
checking size of wchar_t... configure: error: cannot compute sizeof
(wchar_t)
In fact, it cannot compute size of any type.
Please advise.
Thank you,
Alona
RE: configure fails on HP-UX 11.11 on RISC
Posted by Alona Rossen <ar...@opentext.com>.
Hi Dave,
It was +DD64 flag for compiler and linker.
Regards,
Alona
-----Original Message-----
From: David Bertoni [mailto:dbertoni@apache.org]
Sent: January 21, 2010 3:08 PM
To: c-users@xerces.apache.org
Subject: Re: configure fails on HP-UX 11.11 on RISC
On 1/21/2010 11:34 AM, Alona Rossen wrote:
> Hello,
>
> I run the following configure command on HP-UX11 on RISC:
>
> ./configure CXX=aCC CC=aCC CFLAGS=-mt CXXFLAGS=-mt -AA +Z +DA2.0W
+DS2.0
> LDFLAGS=-mt -L/usr/lib/pa20_64
It would be better to specify the C compiler as "cc" rather than using
aCC.
>
> checking size of wchar_t... configure: error: cannot compute sizeof
> (wchar_t)
What does the config.log show? I tried your configure line, and I see
the following:
configure:21427: aCC -Ae -o conftest -mt -mt -L/usr/lib/pa20_64
conftest.c >&5
/usr/ccs/bin/ld: /usr/lib/pa20_64/libpthread.sl: Mismatched ABI. 64-bit
PA shared library found in 32-bit link.
So I suspect you need to add both +DA2.0W and +DS2.0 to the LDFLAGS.
> In fact, it cannot compute size of any type.
Check the config.log.
Dave
Re: configure fails on HP-UX 11.11 on RISC
Posted by David Bertoni <db...@apache.org>.
On 1/21/2010 11:34 AM, Alona Rossen wrote:
> Hello,
>
> I run the following configure command on HP-UX11 on RISC:
>
> ./configure CXX=aCC CC=aCC CFLAGS=-mt CXXFLAGS=-mt -AA +Z +DA2.0W +DS2.0
> LDFLAGS=-mt -L/usr/lib/pa20_64
It would be better to specify the C compiler as "cc" rather than using aCC.
>
> checking size of wchar_t... configure: error: cannot compute sizeof
> (wchar_t)
What does the config.log show? I tried your configure line, and I see
the following:
configure:21427: aCC -Ae -o conftest -mt -mt -L/usr/lib/pa20_64
conftest.c >&5
/usr/ccs/bin/ld: /usr/lib/pa20_64/libpthread.sl: Mismatched ABI. 64-bit
PA shared library found in 32-bit link.
So I suspect you need to add both +DA2.0W and +DS2.0 to the LDFLAGS.
> In fact, it cannot compute size of any type.
Check the config.log.
Dave
RE: configure fails on HP-UX 11.11 on RISC
Posted by Alona Rossen <ar...@opentext.com>.
Please ignore. +DD64 flag was missing.
-----Original Message-----
From: Alona Rossen [mailto:arossen@opentext.com]
Sent: January 21, 2010 2:34 PM
To: c-users@xerces.apache.org
Subject: configure fails on HP-UX 11.11 on RISC
Hello,
I run the following configure command on HP-UX11 on RISC:
./configure CXX=aCC CC=aCC CFLAGS=-mt CXXFLAGS=-mt -AA +Z +DA2.0W +DS2.0
LDFLAGS=-mt -L/usr/lib/pa20_64
checking size of wchar_t... configure: error: cannot compute sizeof
(wchar_t)
In fact, it cannot compute size of any type.
Please advise.
Thank you,
Alona