Continuing Problems with Solaris Compile

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Continuing Problems with Solaris Compile

Douglas Sturim
Has anyone been able to compile past 2.1.28 on Solaris 2.6 and 2.7
machines? I keep getting the following error when I compile versions
after 2.1.28.

Here is a Solaris 2.6 and gcc 2.95.2 compile error of Octave 2.1.29;

c++ -c  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -I../glob
-I../glob -DHAVE_CONFIG_H -fno-rtti -fno-exceptions
-fno-implicit-templates
-g -O2 -Wall oct-syscalls.cc -o oct-syscalls.o
c++ -c  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -I../glob
-I../glob -DHAVE_CONFIG_H -fno-rtti -fno-exceptions
-fno-implicit-templates
-g -O2 -Wall oct-time.cc -o oct-time.o
oct-time.cc: In method `void octave_time::stamp()':
oct-time.cc:112: aggregate `struct timeval tp' has incomplete type and
cannot be initialized
oct-time.cc:117: confused by earlier errors, bailing out
gmake[2]: *** [oct-time.o] Error 1
gmake[2]: Leaving directory
`/data/speech/sturim/octave-2.1.29/liboctave'
gmake[1]: *** [liboctave] Error 2
gmake[1]: Leaving directory `/data/speech/sturim/octave-2.1.29'
gmake: *** [all] Error 2  

When I diff oct-time.cc between 2.1.29 and 2.1.28 they are the same, but
my 2.1.28 compile works great. Also all compiles with 2.1.30 and 2.1.31
result in the same error with Solaris 2.6 and 2.7.  I would like to
trouble shoot this further, but need direction on where to look. Not
getting any feedback the only thing I can do is to diff routines before
the error occurred. Any help would be appreciated,  Thanks

Doug


------------------------------------------------------------
Douglas Sturim          Information Systems Technology Group
[hidden email]       MIT Lincoln Laboratory  
(781) 981-4462          Lexington, MA 02420-9185


Reply | Threaded
Open this post in threaded view
|

Re: Continuing Problems with Solaris Compile

Ben Sapp
Douglas Sturim wrote:
>
> Has anyone been able to compile past 2.1.28 on Solaris 2.6 and 2.7
> machines? I keep getting the following error when I compile versions
> after 2.1.28.

I managed to compile 2.1.31 on Solaris.   I remember having problems
like this.   I am a bit fogy on whether or not this was the only thing I
did but I have commented out a piece of code on the top of
liboctave/oct-times.cc that looks like this:

#if !defined (_XOPEN_SOURCE)
#define _XOPEN_SOURCE 1
#define OCTAVE_UNDEFINE_XOPEN_SOURCE
#endif

So, comment this out and I think it will work.   If not let me know and
I will look into what I did more closely.  

> Here is a Solaris 2.6 and gcc 2.95.2 compile error of Octave 2.1.29;
>
> c++ -c  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -I../glob
> -I../glob -DHAVE_CONFIG_H -fno-rtti -fno-exceptions
> -fno-implicit-templates
> -g -O2 -Wall oct-syscalls.cc -o oct-syscalls.o
> c++ -c  -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -I../glob
> -I../glob -DHAVE_CONFIG_H -fno-rtti -fno-exceptions
> -fno-implicit-templates
> -g -O2 -Wall oct-time.cc -o oct-time.o
> oct-time.cc: In method `void octave_time::stamp()':
> oct-time.cc:112: aggregate `struct timeval tp' has incomplete type and
> cannot be initialized
> oct-time.cc:117: confused by earlier errors, bailing out
> gmake[2]: *** [oct-time.o] Error 1
> gmake[2]: Leaving directory
> `/data/speech/sturim/octave-2.1.29/liboctave'
> gmake[1]: *** [liboctave] Error 2
> gmake[1]: Leaving directory `/data/speech/sturim/octave-2.1.29'
> gmake: *** [all] Error 2
>

--
Ben Sapp                         Los Alamos National Laboratory
email: <mailto:[hidden email]>   Phone: (505)667-3277
Fax:   (505)665-7920             URL:   http://www.neutrino.lanl.gov/
--