Re: CORBA-ORBit compile error on DEC Unix 4.0f
- From: Gnanasekaran Thoppae <gnana gsf de>
- To: Nohl Attila Rajmund <Attila Nohl eth ericsson se>
- Cc: orbit-perl-list gnome org
- Subject: Re: CORBA-ORBit compile error on DEC Unix 4.0f
- Date: Wed, 19 Sep 2001 14:15:57 +0200
Hi Nohl,
> Either use gcc (set CC in the generated Makefile to gcc) or remove the
> warning-all option from the flags (in the Makefile.PL, delete the -Wall
> string from the OPTIMIZE line).
I tried both, it doesn't work!
-gnana
---------------------------------------------------------------------------------
trace of changing CC=cc to CC=gcc in generated Makefile:
bash-2.05$ gmake
mkdir blib
mkdir blib/lib
mkdir blib/lib/CORBA
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/CORBA
mkdir blib/arch/auto/CORBA/ORBit
mkdir blib/lib/auto
mkdir blib/lib/auto/CORBA
mkdir blib/lib/auto/CORBA/ORBit
mkdir blib/man3
cp ORBit/Fixed.pm blib/lib/CORBA/ORBit/Fixed.pm
cp ORBit/LongLong.pm blib/lib/CORBA/ORBit/LongLong.pm
cp ORBit.pm blib/lib/CORBA/ORBit.pm
cp ORBit/mapping.pod blib/lib/CORBA/ORBit/mapping.pod
cp ORBit/LongDouble.pm blib/lib/CORBA/ORBit/LongDouble.pm
cp ORBit/ULongLong.pm blib/lib/CORBA/ORBit/ULongLong.pm
/usr/local/perl/bin/perl
-I/usr/local/perl5.005_03/lib/5.00503/alpha-dec_osf
-I/usr/local/perl5.005_03/lib/5.00503
/usr/local/perl5.005_03/lib/5.00503/ExtUtils/xsubpp -typemap
/usr/local/perl5.005_03/lib/5.00503/ExtUtils/typemap -typemap typemap
ORBit.xs >xstmp.c && mv xstmp.c ORBit.c
Please specify prototyping behavior for ORBit.xs (see perlxs manual)
gcc -c -I/usr/local/lib/glib/include -I/usr/local/include
-I/usr/local/corba/ORBit/include -std -fprm d -ieee -D_INTRINSICS
-I/usr/local/include -DLANGUAGE_C -g -Wall -DVERSION=\"0.4.3\"
-DXS_VERSION=\"0.4.3\"
-I/usr/local/perl5.005_03/lib/5.00503/alpha-dec_osf/CORE ORBit.c
gcc: d: No such file or directory
In file included from
/usr/local/perl5.005_03/lib/5.00503/alpha-dec_osf/CORE/perl.h:367,
from porbit-perl.h:8,
from interfaces.h:5,
from ORBit.xs:4:
/usr/local/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/include/sys/param.h:356:
warning: `MIN' redefined
/usr/local/include/glib.h:137: warning: this is the location of the
previous definition
/usr/local/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/include/sys/param.h:357:
warning: `MAX' redefined
/usr/local/include/glib.h:134: warning: this is the location of the
previous definition
cc1: Invalid option `-std'
cc1: Invalid option `-fprm'
ORBit.xs: In function `timeout_handler':
ORBit.xs:128: warning: value computed is not used
ORBit.xs: In function `make_policy':
ORBit.xs:285: warning: control reaches end of non-void function
ORBit.xs: In function `XS_CORBA__ORB_list_initial_services':
ORBit.xs:392: warning: unused variable `nservices'
ORBit.xs: In function `boot_CORBA__ORBit':
ORBit.xs:1383: warning: cast to pointer from integer of different size
ORBit.xs:1383: warning: passing arg 1 of `Perl_newSViv' makes integer
from pointer without a cast
gmake: *** [ORBit.o] Error 1
---------------------------------------------------------------------------------
trace after removing -Wall from Makefile.PL:
bash-2.05$ gmake
mkdir blib
mkdir blib/lib
mkdir blib/lib/CORBA
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/CORBA
mkdir blib/arch/auto/CORBA/ORBit
mkdir blib/lib/auto
mkdir blib/lib/auto/CORBA
mkdir blib/lib/auto/CORBA/ORBit
mkdir blib/man3
cp ORBit/Fixed.pm blib/lib/CORBA/ORBit/Fixed.pm
cp ORBit/LongLong.pm blib/lib/CORBA/ORBit/LongLong.pm
cp ORBit.pm blib/lib/CORBA/ORBit.pm
cp ORBit/mapping.pod blib/lib/CORBA/ORBit/mapping.pod
cp ORBit/LongDouble.pm blib/lib/CORBA/ORBit/LongDouble.pm
cp ORBit/ULongLong.pm blib/lib/CORBA/ORBit/ULongLong.pm
/usr/local/perl/bin/perl
-I/usr/local/perl5.005_03/lib/5.00503/alpha-dec_osf
-I/usr/local/perl5.005_03/lib/5.00503
/usr/local/perl5.005_03/lib/5.00503/ExtUtils/xsubpp -typemap
/usr/local/perl5.005_03/lib/5.00503/ExtUtils/typemap -typemap typemap
ORBit.xs >xstmp.c && mv xstmp.c ORBit.c
Please specify prototyping behavior for ORBit.xs (see perlxs manual)
cc -c -I/usr/local/lib/glib/include -I/usr/local/include
-I/usr/local/corba/ORBit/include -std -fprm d -ieee -D_INTRINSICS
-I/usr/local/include -DLANGUAGE_C -g -DVERSION=\"0.4.3\"
-DXS_VERSION=\"0.4.3\"
-I/usr/local/perl5.005_03/lib/5.00503/alpha-dec_osf/CORE ORBit.c
cc: Info: /usr/local/corba/ORBit/include/orb/allocator-defs.h, line 36:
Extraneous semicolon. (extrasemi)
ORBIT_DEFINE_CHUNK(CORBA_TypeCode, sizeof(struct CORBA_TypeCode_struct));
^
cc: Info: /usr/local/corba/ORBit/include/orb/allocator-defs.h, line 37:
Extraneous semicolon. (extrasemi)
ORBIT_DEFINE_CHUNK(CORBA_Object, sizeof(struct CORBA_Object_struct));
^
cc: Info: /usr/local/corba/ORBit/include/orb/allocator-defs.h, line 38:
Extraneous semicolon. (extrasemi)
ORBIT_DEFINE_CHUNK(CORBA_NVList, sizeof(struct CORBA_NVList_type));
cc: Warning: /usr/local/corba/ORBit/include/IIOP/iiop-endian.h, line 31:
In this declaration, "iiop_byteswap" is declared with both internal and
external linkage. The previous declaration is at line number 26 in file
/usr/local/corba/ORBit/include/IIOP/iiop-endian.h. (mixlinkage)
G_INLINE_FUNC void iiop_byteswap(guchar *outdata,
-------------------^
cc: Warning: /usr/local/corba/ORBit/include/orb/corba_typecode.h, line
62: In this declaration, the enumeration constant "CORBA_tk_recursive"
is out of range INT_MIN to INT_MAX and will be truncated. (enumrange)
CORBA_tk_recursive=0xffffffff,
--------^
cc: Warning: client.c, line 48: In this statement, the referenced type
of the pointer value "operation_name_data" is "struct declared without a
tag", which is not compatible with "char". (ptrmismatch)
operation_vec.iov_base = operation_name_data;
----^
cc -c -I/usr/local/lib/glib/include -I/usr/local/include
-I/usr/local/corba/ORBit/include -std -fprm d -ieee -D_INTRINSICS
-I/usr/local/include -DLANGUAGE_C -g -DVERSION=\"0.4.3\"
-DXS_VERSION=\"0.4.3\"
-I/usr/local/perl5.005_03/lib/5.00503/alpha-dec_osf/CORE demarshal.c
cc: Info: /usr/local/corba/ORBit/include/orb/allocator-defs.h, line 36:
Extraneous semicolon. (extrasemi)
ORBIT_DEFINE_CHUNK(CORBA_TypeCode, sizeof(struct CORBA_TypeCode_struct));
^
cc: Info: /usr/local/corba/ORBit/include/orb/allocator-defs.h, line 37:
Extraneous semicolon. (extrasemi)
ORBIT_DEFINE_CHUNK(CORBA_Object, sizeof(struct CORBA_Object_struct));
^
cc: Info: /usr/local/corba/ORBit/include/orb/allocator-defs.h, line 38:
Extraneous semicolon. (extrasemi)
ORBIT_DEFINE_CHUNK(CORBA_NVList, sizeof(struct CORBA_NVList_type));
^
cc: Warning: /usr/local/corba/ORBit/include/IIOP/iiop-endian.h, line 31:
In this declaration, "iiop_byteswap" is declared with both internal and
external linkage. The previous declaration is at line number 26 in file
/usr/local/corba/ORBit/include/IIOP/iiop-endian.h. (mixlinkage)
G_INLINE_FUNC void iiop_byteswap(guchar *outdata,
-------------------^
cc: Warning: /usr/local/corba/ORBit/include/orb/corba_typecode.h, line
62: In this declaration, the enumeration constant "CORBA_tk_recursive"
is out of range INT_MIN to INT_MAX and will be truncated. (enumrange)
CORBA_tk_recursive=0xffffffff,
--------^
cc: Info: exttypes.h, line 29: In this declaration, type long double has
the same representation as type double on this platform. (longdoublenyi)
SV *porbit_ld_from_longdouble (long double val);
-------------------------------^
cc: Error: demarshal.c, line 308: In this statement, "buf->cur" and
"str_len" cannot be added. (noadd)
buf->cur += str_len;
----^
cc: Warning: demarshal.c, line 337: In this statement, the referenced
type of the pointer value "tc->subnames[i]" is const, but the referenced
type of the target of this assignment is not. (notconstqual)
av_push (av, newSVpv(tc->subnames[i], 0));
---------------------------------^
cc: Error: demarshal.c, line 477: In this statement, "buf->cur" and
"len" cannot be added. (noadd)
buf->cur += len;
----^
cc: Error: demarshal.c, line 510: In the initializer for c, "buf->cur"
does not point to an object type. (needptrobj)
CORBA_octet c = *(char *)(buf->cur++);
----------------------------------^
gmake: *** [demarshal.o] Error 1
bash-2.05$
---------------------------------------------------------------------------------
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]