[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Support #ZBZ-540988]: Problem setting up LDM 6.4.5 on Solaris 5.10



Greg,

> I am having trouble compiling LDM 6.4.5 on a Solaris 5.10 machine. It
> appears that there may be more than one error; however, I'm not sure
> which are critical. I've attached the configure.log and config.log
> below. It appears that the configure.log is pointing to an error in
> trying to determine the size of an integer on the machine. Any advice
> would be greatly appreciated.
> 
> Thanks - Greg
> 
> <*****************************  configure.log
> *********************************>
> $ more configure.log
> checking for c89... no
> checking for cc... no
> checking for gcc... gcc
...
> checking for int... yes
> checking size of int... configure: error: cannot compute sizeof (int),
> 77
> See `config.log' for more details.
...
> 
> 
> <***************** Following is config.log ***************************>
...
> configure:3465: checking for int
> configure:3489: gcc -c  -U__C99FEATURES__ -DNDEBUG conftest.c >&5
> configure:3495: $? = 0
> configure:3499: test -z
> || test ! -s conftest.err
> configure:3502: $? = 0
> configure:3505: test -s conftest.o
> configure:3508: $? = 0
> configure:3519: result: yes
> configure:3522: checking size of int
> configure:3841: gcc -o conftest  -U__C99FEATURES__ -DNDEBUG  conftest.c
> >&5
> In file included from /usr/include/sys/wait.h:24,
> from /usr/include/stdlib.h:22,
> from conftest.c:61:
> /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
> /usr/include/sys/siginfo.h:292: error: parse error before '}' token
> /usr/include/sys/siginfo.h:294: error: parse error before '}' token
> /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
> /usr/include/sys/siginfo.h:398: error: conflicting types for '__fault'
> /usr/include/sys/siginfo.h:267: error: previous declaration of '__fault'
> was here
> /usr/include/sys/siginfo.h:404: error: conflicting types for '__file'
> /usr/include/sys/siginfo.h:273: error: previous declaration of '__file'
> was here
> /usr/include/sys/siginfo.h:420: error: conflicting types for '__prof'
> /usr/include/sys/siginfo.h:287: error: previous declaration of '__prof'
> was here
> /usr/include/sys/siginfo.h:424: error: conflicting types for '__rctl'
> /usr/include/sys/siginfo.h:291: error: previous declaration of '__rctl'
> was here
> /usr/include/sys/siginfo.h:426: error: parse error before '}' token
> /usr/include/sys/siginfo.h:428: error: parse error before '}' token
> /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
> /usr/include/sys/siginfo.h:437: error: parse error before '}' token
> In file included from /usr/include/sys/procset.h:24,
> from /usr/include/sys/wait.h:25,
> from /usr/include/stdlib.h:22,
> from conftest.c:61:
> /usr/opt/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.4/include/sys/signal.h:
> 96: error: parse error before "siginfo_t"
> In file included from /usr/include/stdlib.h:22,
> from conftest.c:61:
> /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
> configure:3844: $? = 1
> configure: program exited with status 1
> configure: failed program was:
> | /* confdefs.h.  */
> |
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | #define LOG_LDM LOG_locAl8
> | #define LDM_PORT 388
> | #define LDM_PROG 300029
> | #define _XOPEN_SOURCE 500
> | #define __EXTENSIONS__ 1
> | #define _NOGROW 1
> | #define LDMHOME "/usr/local/ldm"
> | #define HAVE_SYS_TYPES_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_MEMORY_H 1
> | #define HAVE_STRINGS_H 1
> | #define HAVE_INTTYPES_H 1
> | #define HAVE_STDINT_H 1
> | #define HAVE_UNISTD_H 1
> | /* end confdefs.h.  */
> | #include <stdio.h>
> | #if HAVE_SYS_TYPES_H
> | # include <sys/types.h>
> | #endif
> | #if HAVE_SYS_STAT_H
> | # include <sys/stat.h>
> | #endif
> | #if STDC_HEADERS
> | # include <stdlib.h>
> | # include <stddef.h>
> | #else
> | # if HAVE_STDLIB_H
> | #  include <stdlib.h>
> | # endif
> | #endif
> | #if HAVE_STRING_H
> | # if !STDC_HEADERS && HAVE_MEMORY_H
> | #  include <memory.h>
> | # endif
> | # include <string.h>
> | #endif
> | #if HAVE_STRINGS_H
> | # include <strings.h>
> | #endif
> | #if HAVE_INTTYPES_H
> | # include <inttypes.h>
> | #else
> | # if HAVE_STDINT_H
> | #  include <stdint.h>
> | # endif
> | #endif
> | #if HAVE_UNISTD_H
> | # include <unistd.h>
> | #endif
> | long longval () { return (long) (sizeof (int)); }
> | unsigned long ulongval () { return (long) (sizeof (int)); }
> | #include <stdio.h>
> | #include <stdlib.h>
> | int
> | main ()
> | {
> |
> |   FILE *f = fopen ("conftest.val", "w");
> |   if (! f)
> |     exit (1);
> |   if (((long) (sizeof (int))) < 0)
> |     {
> |       long i = longval ();
> |       if (i != ((long) (sizeof (int))))
> |  exit (1);
> |       fprintf (f, "%ld\n", i);
> |     }
> |   else
> |     {
> |       unsigned long i = ulongval ();
> |       if (i != ((long) (sizeof (int))))
> |  exit (1);
> |       fprintf (f, "%lu\n", i);
> |     }
> |   exit (ferror (f) || fclose (f) != 0);
> |
> |   ;
> |   return 0;
> | }
> configure:3859: error: cannot compute sizeof (int), 77
> See `config.log' for more details.

It appears from the above that your gcc(1) compilation environment is 
incompatible with
the standard header-files of the SunOS 5.10 operating system.

The best solution would be to use the native SunOS C compiler instead of 
gcc(1), e.g.,

    $ make distclean
    $ ./configure CC=/opt/SUNWspro/bin/c89 ...

Alternatively, a re-installation of the gcc(1) compiler package might fix the 
problem.

Another alternative wold be to determine the root-cause of the problem by 
compiling the
above program manually, looking at the header-files, and determining if a C 
macro
can be defined that will fix the problem.

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: ZBZ-540988
Department: Support LDM
Priority: Normal
Status: Closed