[omniORB] Problem compiling omniORBpy
Craig Rodrigues
rodrigc@mediaone.net
Thu, 4 Nov 1999 11:44:47 -0500
--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Hi,
I tried compiling omniORBpy under Redhat Linux 6.1, gcc 2.9.5 and
came across the following error:
../../../../../bin/i586_linux_2.0_glibc/omkdepend -D__cplusplus -D__GNUG__ -D__GNUC__ -DCPP_LOCATION="/lib/cpp" -DCPP_FLAGS="-lang-c++ -undef" -I. -I../../../../../include -D__x86__ -D__linux__ -D__OSVERSION__=2 lex.yy.cc y.tab.cc
g++ -c -g -Wall -Wno-unused -fpic -DCPP_LOCATION="\"/lib/cpp\"" -DCPP_FLAGS="\"-lang-c++ -undef\"" -I. -I../../../../../include -D__x86__ -D__linux__ -D__OSVERSION__=2 -o y.tab.o y.tab.cc
/usr/lib/bison.simple: In function `int yyparse()':
/usr/lib/bison.simple:361: implicit declaration of function `int free(...)'
gmake: *** [y.tab.o] Error 1
I think the solution is to add #include <stdlib.h> in idl.yy.
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net
--vtzGhvizbBRQ85DL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="omniOrbpy.patch"
*** idl.yy.old Thu Nov 4 16:41:23 1999
--- idl.yy Thu Nov 4 16:41:40 1999
***************
*** 46,51 ****
--- 46,52 ----
%{
+ #include <stdlib.h>
#include <string.h>
#include <idlutil.h>
--vtzGhvizbBRQ85DL--