[omniORB] Re: HP-UX 11 build problem

Pierre Pacchioni pierre.pacchioni at avisto.com
Tue Sep 16 15:26:37 BST 2003


Thanks for your feedback.
I'm just wondering if it will be possible to compile omniORB with aCC in the
future.
Pierre.

-----Original Message-----
From: Harri Pasanen [mailto:harri.pasanen at trema.com]
Sent: mardi 16 septembre 2003 10:07
To: Pierre Pacchioni; Christophe Goua; Omniorb-List at Omniorb-Support. Com
Subject: Re: [omniORB] Re: HP-UX 11 build problem


I've compiled it with gcc 3.2 + some patches.   Earlier versions of
gcc did not work for HP-UX.

bash-2.05a$ /opt/gcc32/bin/gcc -v
Reading specs from
/opt/gcc32/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.2/specs
Configured with: ../gcc-3.2/configure --prefix=/opt/gcc32 -with-gnu-as
--with-as=/usr/gnu/bin/as --enable-threads=posix
--enable-languages=c,c++

There are some problem with gcc 3.2 out of the box on HP-UX.   I have
some patches I can provide to that.  Then I had another issues with
gcc 3.3 not grokking then current version of omniORB source.

Sorry I'm not being more specific, as it has been some months...

In summary, I would try getting the very latest gcc (3.3.x) and
binutils configuring it as above, and trying with omniORB CVS source.
Those might work out of the box.

If not, I can provide the patches I have for gcc 3.2


Harri



On Tuesday 16 September 2003 09:13, Pierre Pacchioni wrote:
> Which one?
> I also tried with gcc 3.0.4
> And I got some errors (see trace below)
>
> My env is:
> HPUX 11.00
> aCC A.03.33 OR gcc 3.0.4
> Python 2.3 compile on HPUX 11.00 with aCC
>
> Any help would be appreciated,
> Pierre.
>
> $ make
> making export in ./src...
> make[1]: Entering directory `/local/omniORB-4.0.2/build/src'
> making export in src/tool...
> make[2]: Entering directory `/local/omniORB-4.0.2/build/src/tool'
> making export in src/tool/omkdepend...
> make[3]: Entering directory
> `/local/omniORB-4.0.2/build/src/tool/omkdepend' File omkdepend
> hasn't changed.
> make[3]: Leaving directory
> `/local/omniORB-4.0.2/build/src/tool/omkdepend' making export in
> src/tool/omniidl...
> make[3]: Entering directory
> `/local/omniORB-4.0.2/build/src/tool/omniidl' making export in
> src/tool/omniidl/cxx...
> make[4]: Entering directory
> `/local/omniORB-4.0.2/build/src/tool/omniidl/cxx'
> making export in src/tool/omniidl/cxx/cccp...
> make[5]: Entering directory
> `/local/omniORB-4.0.2/build/src/tool/omniidl/cxx/cccp'
> File omnicpp hasn't changed.
> make[5]: Leaving directory
> `/local/omniORB-4.0.2/build/src/tool/omniidl/cxx/cccp'
> g++ -c -O2 -fhandle-exceptions -Wall -Wno-unused -D_CMA_NOWRAPPERS_
> -DIDLMOD ULE_VERSION="\"0x2420\"" -I/usr/local/python
> -I/usr/local/python/Include -DP YTHON_INCLUDE="<Python.h>" -fPIC
> -I. -I../../../../../src/tool/omniidl/cxx - I../../../../include
> -I../../../../../include -D__OSVERSION__=11 -D__hpux__ -D__hppa__
> -o idlpython.o ../../../../../src/tool/omniidl/cxx/idlpython.cc
> cc1plus: warning: -fhandle-exceptions has been renamed to
> -fexceptions (and is now on by default)
> In file included from /usr/include/sys/param.h:25,
>                  from /usr/include/limits.h:397,
>                  from
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/limits.h
>:125, from
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/syslimit
>s.h:7, from
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/limits.h
>:11, from /usr/local/python/Include/Python.h:19, from
> ../../../../../src/tool/omniidl/cxx/idlpython.cc:178:
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/sys/type
>s.h:90: syntax
>    error before `;' token
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/sys/type
>s.h:111: syntax
>    error before `;' token
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/sys/type
>s.h:133: syntax
>    error before `;' token
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/sys/type
>s.h:155: syntax
>    error before `;' token
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/sys/type
>s.h:177: syntax
>    error before `;' token
> In file included from /usr/local/python/Include/Python.h:28,
>                  from
> ../../../../../src/tool/omniidl/cxx/idlpython.cc:178:
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>218: type specifier omitted for parameter
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>218: parse
>    error before `*' token
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>219: parse
>    error before `*' token
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>600: syntax
>    error before `(' token
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>601: type specifier omitted for parameter
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>608: syntax
>    error before `(' token
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>613: type specifier omitted for parameter
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>614: type specifier omitted for parameter
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>614: parse
>    error before `*' token
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>615: parse
>    error before `*' token
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>620: syntax
>    error before `(' token
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>622: type specifier omitted for parameter
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>622: parse
>    error before `,' token
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
> In function
>    `int fseeko(...)':
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>623: `__a'
>    undeclared (first use this function)
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>623: (Each
>    undeclared identifier is reported only once for each function it
> appears in.)
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>623: `__b'
>    undeclared (first use this function)
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>623: `__c'
>    undeclared (first use this function)
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
> At global
>    scope:
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>633: type specifier omitted for parameter
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>633: parse
>    error before `*' token
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>635: parse
>    error before `*' token
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdio.h:
>671: parse
>    error before `}' token
> In file included from /usr/include/sys/resource.h:39,
>                  from /usr/include/sys/wait.h:83,
>                  from
> /usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.4/include/stdlib.h
>:265, from /usr/local/python/Include/Python.h:36, from
> ../../../../../src/tool/omniidl/cxx/idlpython.cc:178:
> /usr/include/sys/_rlimit_body.h:13: 'rlim_t' is used as a type, but
> is not defined as a type.
> /usr/include/sys/_rlimit_body.h:14: 'rlim_t' is used as a type, but
> is not defined as a type.
> In file included from /usr/include/unistd.h:11,
>                  from /usr/local/python/Include/Python.h:39,
>                  from
> ../../../../../src/tool/omniidl/cxx/idlpython.cc:178:
> /usr/include/sys/unistd.h:123: syntax error before `(' token
> /usr/include/sys/unistd.h:128: type specifier omitted for parameter
> /usr/include/sys/unistd.h:148: type specifier omitted for parameter
> /usr/include/sys/unistd.h:223: type specifier omitted for parameter
> /usr/include/sys/unistd.h:224: type specifier omitted for parameter
> /usr/include/sys/unistd.h:276: type specifier omitted for parameter
> /usr/include/sys/unistd.h:309: type specifier omitted for parameter
> /usr/include/sys/unistd.h:373: type specifier omitted for parameter
> /usr/include/sys/unistd.h:374: type specifier omitted for parameter
> /usr/include/sys/unistd.h:375: type specifier omitted for parameter
> /usr/include/sys/unistd.h:376: type specifier omitted for parameter
> /usr/include/sys/unistd.h:377: syntax error before `(' token
> /usr/include/sys/unistd.h:379: type specifier omitted for parameter
> /usr/include/sys/unistd.h:379: parse error before `)' token
> /usr/include/sys/unistd.h: In function `int truncate(...)':
> /usr/include/sys/unistd.h:380: declaration of C function `int
> truncate(...)' conflicts with
> /usr/include/sys/unistd.h:224: previous declaration `int
> truncate(const char*)'
>    here
> /usr/include/sys/unistd.h: In function `int truncate(...)':
> /usr/include/sys/unistd.h:380: `a' undeclared (first use this
> function) /usr/include/sys/unistd.h:380: `b' undeclared (first use
> this function) /usr/include/sys/unistd.h: At global scope:
> /usr/include/sys/unistd.h:381: type specifier omitted for parameter
> /usr/include/sys/unistd.h:381: parse error before `)' token
> /usr/include/sys/unistd.h: In function `int prealloc(...)':
> /usr/include/sys/unistd.h:382: declaration of C function `int
> prealloc(...)' conflicts with
> /usr/include/sys/unistd.h:309: previous declaration `int
> prealloc(int)' here /usr/include/sys/unistd.h: At global scope:
> /usr/include/sys/unistd.h:383: type specifier omitted for parameter
> /usr/include/sys/unistd.h:383: parse error before `)' token
> /usr/include/sys/unistd.h: In function `int lockf(...)':
> /usr/include/sys/unistd.h:384: declaration of C function `int
> lockf(...)' conflicts with
> /usr/include/sys/unistd.h:276: previous declaration `int lockf(int,
> int)' here
> /usr/include/sys/unistd.h: In function `int lockf(...)':
> /usr/include/sys/unistd.h:384: `c' undeclared (first use this
> function) /usr/include/sys/unistd.h: At global scope:
> /usr/include/sys/unistd.h:385: type specifier omitted for parameter
> /usr/include/sys/unistd.h:385: parse error before `)' token
> /usr/include/sys/unistd.h: In function `int ftruncate(...)':
> /usr/include/sys/unistd.h:386: declaration of C function `int
> ftruncate(...)'
>    conflicts with
> /usr/include/sys/unistd.h:223: previous declaration `int
> ftruncate(int)' here
> /usr/include/sys/unistd.h: At global scope:
> /usr/include/sys/unistd.h:387: syntax error before `(' token
> In file included from /usr/include/sys/stat.h:33,
>                  from /usr/local/python/Include/pyport.h:157,
>                  from /usr/local/python/Include/Python.h:48,
>                  from
> ../../../../../src/tool/omniidl/cxx/idlpython.cc:178:
> /usr/include/sys/_stat_body.h:21: 'off_t' is used as a type, but is
> not defined
>    as a type.
> /usr/include/sys/_stat_body.h:29: 'blkcnt_t' is used as a type, but
> is not defined as a type.
> ../../../../../src/tool/omniidl/cxx/idlpython.cc: In method
> `virtual void PythonVisitor::visitInterface(Interface*)':
> ../../../../../src/tool/omniidl/cxx/idlpython.cc:451: warning:
> `PyObject*pyobj'
>    might be used uninitialized in this function
> ../../../../../src/tool/omniidl/cxx/idlpython.cc: In method
> `virtual void PythonVisitor::visitConst(Const*)':
> ../../../../../src/tool/omniidl/cxx/idlpython.cc:519: warning:
> `PyObject*pyv'
>    might be used uninitialized in this function
> ../../../../../src/tool/omniidl/cxx/idlpython.cc: In method
> `virtual void PythonVisitor::visitCaseLabel(CaseLabel*)':
> ../../../../../src/tool/omniidl/cxx/idlpython.cc:759: warning:
> `PyObject*pyv'
>    might be used uninitialized in this function
> ../../../../../src/tool/omniidl/cxx/idlpython.cc: In method
> `virtual void PythonVisitor::visitValueAbs(ValueAbs*)':
> ../../../../../src/tool/omniidl/cxx/idlpython.cc:1127: warning:
> `PyObject*pyobj
>    ' might be used uninitialized in this function
> ../../../../../src/tool/omniidl/cxx/idlpython.cc: In method
> `virtual void PythonVisitor::visitValue(Value*)':
> ../../../../../src/tool/omniidl/cxx/idlpython.cc:1192: warning:
> `PyObject*pyobj
>    ' might be used uninitialized in this function
> make[4]: *** [idlpython.o] Error 1
> make[4]: Leaving directory
> `/local/omniORB-4.0.2/build/src/tool/omniidl/cxx' make[3]: ***
> [export] Error 1
> make[3]: Leaving directory
> `/local/omniORB-4.0.2/build/src/tool/omniidl' make[2]: *** [export]
> Error 1
> make[2]: Leaving directory `/local/omniORB-4.0.2/build/src/tool'
> make[1]: *** [export] Error 1
> make[1]: Leaving directory `/local/omniORB-4.0.2/build/src'
> make: *** [all] Error 1
> $
>
> -----Original Message-----
> From: omniorb-list-bounces at omniorb-support.com
> [mailto:omniorb-list-bounces at omniorb-support.com]On Behalf Of Harri
> Pasanen
> Sent: mardi 16 septembre 2003 08:49
> To: Christophe Goua; Omniorb-List at Omniorb-Support. Com
> Subject: Re: [omniORB] Re: HP-UX 11 build problem
>
>
> Yes, I have, using gcc 3.x
>
> Harri
>
> On Monday 15 September 2003 19:32, Christophe Goua wrote:
> > I've been trying to deal with these issues for a while now, but
> > with no result...
> > I too would be glad to hear if someone has succesfully built
> > omniORB 4.x on HP-UX...
> >
> > Christophe Goua
> > BiblioMondo Inc.
> > Montreal, Canada
> >
> > > -----Original Message-----
> > > From: omniorb-list-bounces at omniorb-support.com
> > > [mailto:omniorb-list-bounces at omniorb-support.com]On Behalf Of
> > > Pierre Pacchioni
> > > Sent: 15-Sep-2003 12:27
> > > To: omniorb-list at omniorb-support.com
> > > Subject: RE: [omniORB] Re: HP-UX 11 build problem
> > >
> > > >../../../bin/omniidl -bcxx -Wba -p../../../../src/lib/omniORB
> > >
> > > -Wbdebug -v -
> > > C
> > >
> > > >omniORB4 ../../../../idl/Naming.idl
> > > >omniidl: Importing back-end 'cxx'
> > > >omniidl: 'cxx' imported from
> > > >'../../../../src/lib/omniORB/omniidl_be/cxx/__init__.py'
> > > >omniidl: Preprocessing '../../../../idl/Naming.idl' with
> > > >'/amd_tmp/needle-8/users0/cstaff/tpl/SRC/omniORB-4.0.1/omni/bu
> > > >il d
> >
> > /lib/omnic
> >
> > > p
> > >
> > > >p
> > > >-lang-c++ -undef -D__OMNIIDL__=0x2420 -D__OMNIIDL_CXX__
> > > >"../../../../idl/Naming.idl"'
> > > >omniidl: Running front end
> > > >omniidl: Running back-end 'cxx'
> > > >make[3]: *** [omniORB4/Naming.hh] Bus error (core dumped)
> > > >make[3]: *** Deleting file `omniORB4/Naming.hh'
> > > >make[3]: Leaving directory
> > > >`/amd_tmp/needle-8/users0/cstaff/tpl/SRC/omniORB-4.0.1/omni/bu
> > > >il d
> >
> > /src/lib/o
> >
> > > m
> > >
> > > >niORB'
> > >
> > > omniORB 4.0.2
> > > I have exactly the same behaviour on HPUX 11.00 with aCC
> > > A.03.33 and without -AA
> > > Could someone help me to solve (or to understand what the
> > > problem is)? Thanks,
> > > Pierre.
> > >
> > >
> > > _______________________________________________
> > > omniORB-list mailing list
> > > omniORB-list at omniorb-support.com
> > > http://www.omniorb-support.com/mailman/listinfo/omniorb-list
> >
> > _______________________________________________
> > omniORB-list mailing list
> > omniORB-list at omniorb-support.com
> > http://www.omniorb-support.com/mailman/listinfo/omniorb-list
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list




More information about the omniORB-list mailing list