problems with running omniORB2 on Linux.

Anil K. Gopinath anil@ittc.ukans.edu
Wed, 13 Aug 1997 01:04:31 -0500 (CDT)



Folks,

We were able to install and run omniORB2 on Linux. The culprit was the
gcc compiler version 2.7.2.2.f.2 . It gives a segmentation fault when
running the following code :


------------------test.cc--------------------

#include<stdio.h>
#include<netdb.h>

struct hostent *hp;

extern int h_errno;

int main()
{

hp = gethostbyname("www.orl.co.uk");

printf("\n host name = %s\n" , hp->h_name);

return 0;

}

---------------end of test.cc------------------


As a result omniORB2 would seg. fault because it uses the
function gethostbyname. We used an older version of gcc (2.7.2.1) and
things are OK now.

Cheers,

Anil