Subject: | small compile issue |
Date: | Mon, 29 Jun 2009 10:29:25 -0700 |
To: | <bug-CORBA-ORBit [...] rt.cpan.org> |
From: | "Wanner, Arthur" <Arthur.Wanner [...] pnl.gov> |
Hi there.
Downloaded and was attempting to make, make install CORBA-ORBit-0.4.7
and ran into the following compiler problem.
(0)$ make
cc -c -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/include/orbit-1.0 -I/usr/include/libIDL-1.0 -D_REENTRANT
-D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.4.7\"
-DXS_VERSION=\"0.4.7\" -fPIC "-I/usr/lib/perl/5.10/CORE" idl.c
idl.c:646: error: static declaration of 'get_typecode' follows
non-static declaration
idl.c:16: error: previous declaration of 'get_typecode' was here
make: *** [idl.o] Error 1
I got around the error by making the function prototype static on line
16.
My system info:
* Distribution name and version : CORBA-ORBit-0.4.7
* Perl version : v5.10.0
* Operating System vendor and version : Linux 2.6.28-13-generic
#44-Ubuntu SMP Tue Jun 2 07:55:09 UTC 2009 x86_64 GNU/Linux
* gcc verion:
(0)$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3
--enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc
--enable-mpfr --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)