IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#378 closed enhancement (later)

build fails due to missing headers

Reported by: jhoblitt Owned by: jhoblitt
Priority: high Milestone:
Component: detrend Version: 0.5.0
Severity: minor Keywords:
Cc:

Description

It seems that Solaris 8 does not provide either stdint.h or complex.h. I
suspect that stdin.h can be replaced with sys/int_types.h but I don't know what
to do about complex.h.

As a side note, this webpage seems to suggest that complex.h is broken:
http://www.gnu.org/software/gcc/c99status.html

gnu99 -I/home/jhoblitt/jhroot/sparc-sun-solaris2.8/include/mysql -DBUILD_PSDB
-I/home/jhoblitt/jhroot/sparc-sun-solaris2.8/include
sys/int_types.h-I/home/jhoblitt/jhroot/sparc-sun-solaris2.8/include/libxml2
-Wall -Werror
-DPS_CONFIG_FILE_DEFAULT=\"/home/jhoblitt/jhroot/sparc-sun-solaris2.8/build/pslib-0.5.0/etc/pslib/psTime.config\"
-O0 -g -std=gnu99 -I/home/jhoblitt/jhroot/sparc-sun-solaris2.8/include/mysql
-DBUILD_PSDB -I/home/jhoblitt/jhroot/sparc-sun-solaris2.8/include
-I/home/jhoblitt/jhroot/sparc-sun-solaris2.8/include/libxml2 -Wall -Werror -MT
psTime.lo -MD -MP -MF .deps/psTime.Tpo -c psTime.c -fPIC -DPIC -o .libs/psTime.o
In file included from psTime.h:26,

from psTime.c:24:

../../src/sysUtils/psType.h:21:21: complex.h: No such file or directory
../../src/sysUtils/psType.h:22:20: stdint.h: No such file or directory
In file included from psTime.h:27,

from psTime.c:24:

../../src/image/psImage.h:21:21: complex.h: No such file or directory
psTime.c: In function `cleanString':
psTime.c:89: warning: subscript has type `char'
psTime.c:95: warning: subscript has type `char'
psTime.c: In function `getToken':
psTime.c:117: warning: subscript has type `char'
psTime.c: In function `psTimeToLST':
psTime.c:449: error: `NAN' undeclared (first use in this function)
psTime.c:449: error: (Each undeclared identifier is reported only once
psTime.c:449: error: for each function it appears in.)
psTime.c: In function `psTimeGetUT1Delta':
psTime.c:520: error: `NAN' undeclared (first use in this function)
psTime.c: In function `psTimeGetTAIDelta':
psTime.c:716: error: `NAN' undeclared (first use in this function)
psTime.c: In function `psTimeToJD':
psTime.c:782: error: `NAN' undeclared (first use in this function)
psTime.c: In function `psTimeToMJD':
psTime.c:801: error: `NAN' undeclared (first use in this function)
make[4]: * [psTime.lo] Error 1
make[4]: Leaving directory
`/home/jhoblitt/jhroot/sparc-sun-solaris2.8/build/pslib-0.5.0/src/astronomy'
make[3]:
* [all] Error 2
make[3]: Leaving directory
`/home/jhoblitt/jhroot/sparc-sun-solaris2.8/build/pslib-0.5.0/src/astronomy'
make[2]: * [all-recursive] Error 1
make[2]: Leaving directory
`/home/jhoblitt/jhroot/sparc-sun-solaris2.8/build/pslib-0.5.0/src'
make[1]:
* [all] Error 2
make[1]: Leaving directory
`/home/jhoblitt/jhroot/sparc-sun-solaris2.8/build/pslib-0.5.0/src'
make: * [all-recursive] Error 1

$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2

Change History (7)

comment:1 by robert.desonia@…, 21 years ago

Severity: majorenhancement

Since Solaris is not a required platform, I'm marking this as an 'enhancement'.

BTW, We have no Solaris machines available here at MHPCC.

-rdd

comment:2 by jhoblitt, 21 years ago

After thinking about it, I do recall Solaris being dropped as a supported
platform. I think it's reasonable to just document that fact that we know we're
broken on Solaris in the release notes.

comment:3 by robert.desonia@…, 21 years ago

Resolution: fixed
Status: newclosed

According to sun.com, complex.h and stdint.h are available with Solaris 10.
Time to update??? ;-)

comment:4 by jhoblitt, 21 years ago

Unfortunately, Solaris 8 is probably the most common platform in astronomy.
I'll try to find a Solaris 10 machine to test on.

comment:5 by robert.desonia@…, 21 years ago

Resolution: fixed
Status: closedreopened

I saw mention of a gstdint.h, a GNU version of stdint.h, on Solaris that comes
with some GCC solaris distributions Can you check if there is a gstdint.h and
gcomplex.h on the Solaris machine in question?

comment:6 by robert.desonia@…, 21 years ago

Owner: changed from robert.desonia@… to jhoblitt
Status: reopenednew

comment:7 by jhoblitt, 21 years ago

Resolution: later
Status: newclosed

The IFA does not have any Solaris 10 machines. The issue of if Solaris < 10
will be supported should be revisited in the near future.

Note: See TracTickets for help on using tickets.