Thanks folks, for all your help. I would have responded earlier but our
company e-mail was hosed.

I did set both CXX and CC and ARCH environment variables to the native sun
c++, c compilers and 'solaris' respectivly, and everything worked fine for a
while. The build barfed however when it came to compiling optarg.c (under
src/exec/dpexec apparantly). this seems to be generated from a .y file. I've
attached the script of the build. Any pointers?

Thanks again,

George

Phil Cheeseman wrote:

> Mark Beall wrote:
> >
> > >Hi George,
> > >Since you have the native Sun compilers, I'd suggest you use
> > >them rather than gcc (if config isn't checking for this, it
> > >probably should). It looks like gcc isn't really happy with
> > >Sun's headers. You should be able to force configure to
> > >use the compiler you want by seting the environment variable
> > >CXX (someone correct me if I'm wrong and DX's configure
> > >wants something else) to the right one (e.g. setenv CXX CC) and
> > >then cleaning and reconfiguring.
> > >
> >
>
>      My experience under Solaris 2.6 (SonOS5.6) with OpenDX 4.1.0 has
> been that you need to use (at least) gmake to get beyond compilation in
> uipp/java as has been mentioned in this forum before.  I've used gcc
> V2.8.1 to install and did so because I ran into trouble early on with
> the native C compiler and would have seen more trouble since I don't
> have Solaris C++ available.
>
>      Anyway, before configuring, I only had to make sure my SHELL
> environment variable was set to something besides /bin/csh.  On my
> platform, however, gcc is in my default path *and* c++ is a link to g++
> so you may want to set CC and CXX for safety's sake.  Other environment
> variables may need work including CFLAGS, CPPFLAGS, LDFLAGS, etc. as has
> been mentioned over this forum before.  In any case, the Solaris build
> condensed to the following steps for me ...
>
>         setenv SHELL /bin/csh
>         ./configure --prefix=whereiwantedopendxinstalled
>         gmake >& make.log &
>         .
>         . (Do something else while I 'tail make.log' occasionally)
>         .
>         gmake install
>         setenv DXROOT whereiwantopendxinstalled/dx
>         .
>         . (Installed samples in whereiwantopendxinstalled/dx/samples)
>         . (i.e. repeat the above up to 'gmake install' from the top of
>         .  the dx-samples-4.0 directory)
>         .
>         setenv DXDATA $DXROOT/samples/data
>         .
>         . (Set up your path and try it out ...)
>         .
>
>      My version of Solaris C is 4.2.  As I said before, I didn't give it
> a serious try.  Once you have the basic routine down for gmake/gcc/g++,
> however, things seem to run very smoothly, at least if you're on my
> platform :-).
>
>                                         Hope this helps,
>                                         Hope it wasn't overkill,
>                                         Phil
>
>                                         P. A. Cheeseman
>                                         [EMAIL PROTECTED]

Reply via email to