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

[LDM #MHK-930257]: LDM 6.11.1 won't compile on Solaris 11.1



Robert,

> I imagine you folks don't have a Solaris 11 box, so if you need to access to 
> mine I can do that..
> 
> I have a new Intel box running the latest version of Solaris, Solaris 11.1. I 
> can't compile 6.11.1 using either GCC or Sun Studio 12.3, I tried cc and c99 
> with Studio.
> 
> gcc and cc won't even configure (same error for both)
> 
> checking for a BSD-compatible install... /usr/bin/ginstall -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /usr/bin/gmkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking for style of include used by make... GNU
> checking for gcc... gcc -m64
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... configure: error: in 
> `/usr/local/ldm/ldm-6.11.1/src':
> configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details
> 
> 
> ..the complaint from config.log is:
> 
> /usr/include/sys/feature_tests.h:358:2: error: #error "Compiler or options 
> invalid; UNIX 03 and POSIX.1-2001 applications       require the use of c99"
> 
> c99 at least configures but then the build fails here:
> 
> Making install in ulog
> source='ulog.c' object='ulog.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/sh ../depcomp \
> /bin/sh ../libtool --tag=CC    --mode=compile c99 -m64 -DHAVE_CONFIG_H -I. 
> -I..      -g -xarch=generic64 -c -o ulog.lo ulog.c
> libtool: compile:  c99 -m64 -DHAVE_CONFIG_H -I. -I.. -g -xarch=generic64 -c 
> ulog.c  -KPIC -DPIC -o .libs/ulog.o
> c99: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit 
> programs
> libtool: compile:  c99 -m64 -DHAVE_CONFIG_H -I. -I.. -g -xarch=generic64 -c 
> ulog.c -o ulog.o >/dev/null 2>&1
> source='log.c' object='log.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/sh ../depcomp \
> /bin/sh ../libtool --tag=CC    --mode=compile c99 -m64 -DHAVE_CONFIG_H -I. 
> -I..      -g -xarch=generic64 -c -o log.lo log.c
> libtool: compile:  c99 -m64 -DHAVE_CONFIG_H -I. -I.. -g -xarch=generic64 -c 
> log.c  -KPIC -DPIC -o .libs/log.o
> c99: Warning: -xarch=generic64 is deprecated, use -m64 to create 64-bit 
> programs
> "/usr/include/sys/feature_tests.h", line 354: #error: "Compiler or options 
> invalid for pre-UNIX 03 X/Open applications  and pre-2001 POSIX applications"
> c99: acomp failed for log.c
> *** Error code 1
> make: Fatal error: Command failed for target `log.lo'
> Current working directory /usr/local/ldm/ldm-6.11.1/src/ulog
> *** Error code 1
> The following command caused the error:
> fail= failcom='exit 1'; \
> for f in x $MAKEFLAGS; do \
> case $f in \
> *=* | --[!k]*);; \
> *k*) failcom='fail=yes';; \
> esac; \
> done; \
> dot_seen=no; \
> target=`echo install-recursive | sed s/-recursive//`; \
> list='libxml2 rpc ulog misc pqinglib protocol registry   pq    lib  feedme 
> hupsyslog ldmd ldmping ldmsend notifyme pqact  pqcat pqcheck pqcopy pqcreate 
> pqexpire pqing pqinsert pqmon  pqsend pqsurf pqutil regex regutil rtstats 
> scour scripts  uldbutil ulogger    html test'; for subdir in $list; do \
> echo "Making $target in $subdir"; \
> if test "$subdir" = "."; then \
> dot_seen=yes; \
> local_target="$target-am"; \
> else \
> local_target="$target"; \
> fi; \
> (CDPATH="${ZSH_VERSION+.}:" && cd $subdir && make  $local_target) \
> || eval $failcom; \
> done; \
> if test "$dot_seen" = "no"; then \
> make  "$target-am" || exit 1; \
> fi; test -z "$fail"
> make: Fatal error: Command failed for target `install-recursive'
> >
> 
> Any ideas?

Looks like I'll need to log onto your SunOS 11 system as the LDM user. Please 
send me the account information. Feel free to encrypt it or leave me the 
password at 303-497-8648.

> Thanks,
> Robert Mullenax
> CSBF Meteorology

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: MHK-930257
Department: Support LDM
Priority: Normal
Status: Closed