DragonBooster / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

Support OpenSolaris #58

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
OS: SunOS opensolaris 5.11 snv_101b i86pc i386 i86xpv Solaris

What steps will reproduce the problem?
1. download libkml-0.9.0
2. Install libcurl dependency:
  # pkg install SUNWlibcurl
  (this also installs SUNWgnu-idn
2. run configure
 # ./configure
3. run make
 # make
... things run well... then:
make  all-recursive
Making all in third_party
Making all in src
Making all in kml
Making all in .
Making all in base
/bin/sh ../../../libtool --tag=CXX    --mode=compile g++ -DHAVE_CONFIG_H -I. 
-I../../..   -
I../../../src  -I../../../third_party/boost_1_34_1  
-I../../../third_party/uriparser-0.7.1/include  -
I../../../third_party/googletest-r108/include  -Wall -Werror -ansi -pedantic 
-fno-rtti -g -O2 -
MT date_time.lo -MD -MP -MF .deps/date_time.Tpo -c -o date_time.lo date_time.cc
 g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src -I../../../third_party/boost_1_34_1 -
I../../../third_party/uriparser-0.7.1/include 
-I../../../third_party/googletest-r108/include -Wall 
-Werror -ansi -pedantic -fno-rtti -g -O2 -MT date_time.lo -MD -MP -MF 
.deps/date_time.Tpo 
-c date_time.cc  -fPIC -DPIC -o .libs/date_time.o
date_time.cc: In member function `time_t kmlbase::DateTime::GetTimeT()':
date_time.cc:64: error: `timegm' undeclared (first use this function)
date_time.cc:64: error: (Each undeclared identifier is reported only once for 
each function it 
appears in.)
*** Error code 1
make: Fatal error: Command failed for target `date_time.lo'
Current working directory /export/home/idbill/libkml-0.9.0/src/kml/base
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='. base convenience dom engine regionator xsd'; 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; \
  (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 `all-recursive'
Current working directory /export/home/idbill/libkml-0.9.0/src/kml
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='kml swig'; 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; \
  (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 `all-recursive'
Current working directory /export/home/idbill/libkml-0.9.0/src
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='third_party src testdata examples msvc xcode'; 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; \
  (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 `all-recursive'
Current working directory /export/home/idbill/libkml-0.9.0
*** Error code 1
make: Fatal error: Command failed for target `all'

Original issue reported on code.google.com by idbill.p...@gmail.com on 3 Mar 2009 at 9:39

GoogleCodeExporter commented 8 years ago
Solaris is not supported. If anyone is up to the challenge...

Original comment by kml.mash...@gmail.com on 10 Mar 2009 at 10:48

GoogleCodeExporter commented 8 years ago
The bug is that libkml inadvertantly uses bsd/linux-ism: timegm:

http://linux.die.net/man/3/timegm

libkml should stick to posix.  there's really no reason libkml should not "just 
work"
on solaris (assuming solaris is 100% posix and std c++ and std c++ lib compat)

Original comment by kml.b...@gmail.com on 6 May 2009 at 4:21