No problem.  I've attached both, including the output of the make.
Thanks for looking into this.  I appreciate it.


On Sat, 28 Oct 2000, Pavel Hlavnicka wrote:

>Matt,
>
>I need the output of configuration script and the autocfg/autocfg.h 
>file. Manpage for ftime would be fine too.
>
>We have no experience with SunOS yet, but I guess we need just few small 
>patches to run successfully.
>
>regards
>
>Pavel
>
>Matt Dunford wrote:
>
>> I'm having trouble compiling Sablot-0.44 on a shell account I have.
>> 
>> $ uname -a
>> SunOS io 5.5.1 Generic_103640-24 sun4m sparc SUNW,SPARCstation-5
>> 
>> $ make
>> ...
>> c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg
>> -I../../Expat/distribution/xmltok -I../../Expat/distribution/xmlparse
>>      -g -O2 -c platform.cpp  -fPIC -DPIC -o .libs/platform.lo
>> platform.cpp: In function `double getMillisecs()':
>> platform.cpp:95: implicit declaration of function `int ftime(...)'
>> make[2]: *** [platform.lo] Error 1
>> make[2]: Leaving directory `/home/USR/kno/src/php/Sablot-0.44/Sablot/engine'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/USR/kno/src/php/Sablot-0.44/Sablot'
>> make: *** [all-recursive] Error 1
>> Exit 2
>> 
>> 
>> I've checked the code and I'm stumped.  I don't have much experience
>> coding on a sparc.  The preprocessor seems to be loading both
>> <sys/types.h> and <sys/timeb.h> where ftime is defined.  Is there a
>> quick fix to this?
>
>
>-- 
>Pavel Hlavnicka
>Ginger Alliance Ltd.
>Prague; Czech Republic
>
Making all in Expat
make[1]: Entering directory `/home/USR/kno/src/php/Sablot-0.44/Expat'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../autocfg 
-Idistribution/xmltok    -g -O2 -c distribution/xmltok/xmltok.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../autocfg -Idistribution/xmltok -g -O2 -c 
distribution/xmltok/xmltok.c  -fPIC -DPIC -o .libs/xmltok.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../autocfg -Idistribution/xmltok -g -O2 -c 
distribution/xmltok/xmltok.c -o xmltok.o >/dev/null 2>&1
mv -f .libs/xmltok.lo xmltok.lo
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../autocfg 
-Idistribution/xmltok    -g -O2 -c distribution/xmltok/xmlrole.c
rm -f .libs/xmlrole.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../autocfg -Idistribution/xmltok -g -O2 -c 
distribution/xmltok/xmlrole.c  -fPIC -DPIC -o .libs/xmlrole.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../autocfg -Idistribution/xmltok -g -O2 -c 
distribution/xmltok/xmlrole.c -o xmlrole.o >/dev/null 2>&1
mv -f .libs/xmlrole.lo xmlrole.lo
/bin/sh ../libtool --mode=link gcc  -g -O2  -o libxmltok.la -rpath /usr/local/lib 
-version-info 2:1:1 xmltok.lo xmlrole.lo  
rm -fr .libs/libxmltok.la .libs/libxmltok.* .libs/libxmltok.*
/usr/ccs/bin/ld -G -h libxmltok.so.1 -o .libs/libxmltok.so.1.1.1  xmltok.lo xmlrole.lo 
 -lc 
(cd .libs && rm -f libxmltok.so.1 && ln -s libxmltok.so.1.1.1 libxmltok.so.1)
(cd .libs && rm -f libxmltok.so && ln -s libxmltok.so.1.1.1 libxmltok.so)
ar cru .libs/libxmltok.a  xmltok.o xmlrole.o 
ranlib .libs/libxmltok.a
creating libxmltok.la
(cd .libs && rm -f libxmltok.la && ln -s ../libxmltok.la libxmltok.la)
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../autocfg 
-Idistribution/xmltok    -g -O2 -c distribution/xmlparse/xmlparse.c
rm -f .libs/xmlparse.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../autocfg -Idistribution/xmltok -g -O2 -c 
distribution/xmlparse/xmlparse.c  -fPIC -DPIC -o .libs/xmlparse.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../autocfg -Idistribution/xmltok -g -O2 -c 
distribution/xmlparse/xmlparse.c -o xmlparse.o >/dev/null 2>&1
mv -f .libs/xmlparse.lo xmlparse.lo
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../autocfg 
-Idistribution/xmltok    -g -O2 -c distribution/xmlparse/hashtable.c
rm -f .libs/hashtable.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../autocfg -Idistribution/xmltok -g -O2 -c 
distribution/xmlparse/hashtable.c  -fPIC -DPIC -o .libs/hashtable.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../autocfg -Idistribution/xmltok -g -O2 -c 
distribution/xmlparse/hashtable.c -o hashtable.o >/dev/null 2>&1
mv -f .libs/hashtable.lo hashtable.lo
/bin/sh ../libtool --mode=link gcc  -g -O2  -o libxmlparse.la -rpath /usr/local/lib 
-version-info 2:1:1 xmlparse.lo hashtable.lo  
rm -fr .libs/libxmlparse.la .libs/libxmlparse.* .libs/libxmlparse.*
/usr/ccs/bin/ld -G -h libxmlparse.so.1 -o .libs/libxmlparse.so.1.1.1  xmlparse.lo 
hashtable.lo  -lc 
(cd .libs && rm -f libxmlparse.so.1 && ln -s libxmlparse.so.1.1.1 libxmlparse.so.1)
(cd .libs && rm -f libxmlparse.so && ln -s libxmlparse.so.1.1.1 libxmlparse.so)
ar cru .libs/libxmlparse.a  xmlparse.o hashtable.o 
ranlib .libs/libxmlparse.a
creating libxmlparse.la
(cd .libs && rm -f libxmlparse.la && ln -s ../libxmlparse.la libxmlparse.la)
make[1]: Leaving directory `/home/USR/kno/src/php/Sablot-0.44/Expat'
Making all in Sablot
make[1]: Entering directory `/home/USR/kno/src/php/Sablot-0.44/Sablot'
Making all in engine
make[2]: Entering directory `/home/USR/kno/src/php/Sablot-0.44/Sablot/engine'
/bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg 
-I../../Expat/distribution/xmltok      -I../../Expat/distribution/xmlparse    -g -O2 
-c arena.cpp
mkdir .libs
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c arena.cpp  -fPIC -DPIC -o .libs/arena.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c arena.cpp -o arena.o >/dev/null 2>&1
mv -f .libs/arena.lo arena.lo
/bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg 
-I../../Expat/distribution/xmltok      -I../../Expat/distribution/xmlparse    -g -O2 
-c base.cpp
rm -f .libs/base.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c base.cpp  -fPIC -DPIC -o .libs/base.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c base.cpp -o base.o >/dev/null 2>&1
mv -f .libs/base.lo base.lo
/bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg 
-I../../Expat/distribution/xmltok      -I../../Expat/distribution/xmlparse    -g -O2 
-c context.cpp
rm -f .libs/context.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c context.cpp  -fPIC -DPIC -o 
.libs/context.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c context.cpp -o context.o >/dev/null 2>&1
mv -f .libs/context.lo context.lo
/bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg 
-I../../Expat/distribution/xmltok      -I../../Expat/distribution/xmlparse    -g -O2 
-c datastr.cpp
rm -f .libs/datastr.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c datastr.cpp  -fPIC -DPIC -o 
.libs/datastr.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c datastr.cpp -o datastr.o >/dev/null 2>&1
mv -f .libs/datastr.lo datastr.lo
/bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg 
-I../../Expat/distribution/xmltok      -I../../Expat/distribution/xmlparse    -g -O2 
-c error.cpp
rm -f .libs/error.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c error.cpp  -fPIC -DPIC -o .libs/error.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c error.cpp -o error.o >/dev/null 2>&1
mv -f .libs/error.lo error.lo
/bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg 
-I../../Expat/distribution/xmltok      -I../../Expat/distribution/xmlparse    -g -O2 
-c expr.cpp
rm -f .libs/expr.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c expr.cpp  -fPIC -DPIC -o .libs/expr.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c expr.cpp -o expr.o >/dev/null 2>&1
mv -f .libs/expr.lo expr.lo
/bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg 
-I../../Expat/distribution/xmltok      -I../../Expat/distribution/xmlparse    -g -O2 
-c hash.cpp
rm -f .libs/hash.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c hash.cpp  -fPIC -DPIC -o .libs/hash.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c hash.cpp -o hash.o >/dev/null 2>&1
mv -f .libs/hash.lo hash.lo
/bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg 
-I../../Expat/distribution/xmltok      -I../../Expat/distribution/xmlparse    -g -O2 
-c output.cpp
rm -f .libs/output.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c output.cpp  -fPIC -DPIC -o 
.libs/output.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c output.cpp -o output.o >/dev/null 2>&1
mv -f .libs/output.lo output.lo
/bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg 
-I../../Expat/distribution/xmltok      -I../../Expat/distribution/xmlparse    -g -O2 
-c parser.cpp
rm -f .libs/parser.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c parser.cpp  -fPIC -DPIC -o 
.libs/parser.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c parser.cpp -o parser.o >/dev/null 2>&1
mv -f .libs/parser.lo parser.lo
/bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg 
-I../../Expat/distribution/xmltok      -I../../Expat/distribution/xmlparse    -g -O2 
-c platform.cpp
rm -f .libs/platform.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../../autocfg -I../../Expat/distribution/xmltok 
-I../../Expat/distribution/xmlparse -g -O2 -c platform.cpp  -fPIC -DPIC -o 
.libs/platform.lo
make[2]: Leaving directory `/home/USR/kno/src/php/Sablot-0.44/Sablot/engine'
make[1]: Leaving directory `/home/USR/kno/src/php/Sablot-0.44/Sablot'
platform.cpp: In function `double getMillisecs()':
platform.cpp:95: implicit declaration of function `int ftime(...)'
make[2]: *** [platform.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
creating cache ./config.cache
checking for a BSD compatible install... tools/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... sparc-sun-solaris2.5.1
checking build system type... sparc-sun-solaris2.5.1
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking whether ln -s works... yes
updating cache ./config.cache
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking command to parse /usr/ccs/bin/nm -p output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/ccs/bin/ld option to reload object files... -r
checking dynamic linker characteristics... solaris2.5.1 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for c++... c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking how to run the C++ preprocessor... c++ -E
checking for presence of Expat... yes
checking for iconv.h... yes
checking for timeb.h... no
checking for sys/timeb.h... yes
checking for sys/time.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for ieeefp.h... yes
checking for ftime... yes
checking for isnan... yes
checking for isinf... no
checking for finite... yes
checking for mtrace... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating Sablot/Makefile
creating Sablot/engine/Makefile
creating Sablot/command/Makefile
creating Expat/Makefile
creating autocfg/autocfg.h
/* autocfg/autocfg.h.  Generated automatically by configure.  */
/* autocfg/autocfg.h.in.  Generated automatically from configure.in by autoheader.  */

/* defined, when expat is build from our own sources */
#define HAVE_EXPAT_SRC 1

/* Define if you have the finite function.  */
#define HAVE_FINITE 1

/* Define if you have the ftime function.  */
#define HAVE_FTIME 1

/* Define if you have the gettimeofday function.  */
/* #undef HAVE_GETTIMEOFDAY */

/* Define if you have the isinf function.  */
/* #undef HAVE_ISINF */

/* Define if you have the isnan function.  */
#define HAVE_ISNAN 1

/* Define if you have the mtrace function.  */
/* #undef HAVE_MTRACE */

/* Define if you have the <iconv.h> header file.  */
#define HAVE_ICONV_H 1

/* Define if you have the <ieeefp.h> header file.  */
#define HAVE_IEEEFP_H 1

/* Define if you have the <sys/time.h> header file.  */
#define HAVE_SYS_TIME_H 1

/* Define if you have the <sys/timeb.h> header file.  */
#define HAVE_SYS_TIMEB_H 1

/* Define if you have the <sys/types.h> header file.  */
#define HAVE_SYS_TYPES_H 1

/* Define if you have the <timeb.h> header file.  */
/* #undef HAVE_TIMEB_H */

/* Define if you have the <unistd.h> header file.  */
#define HAVE_UNISTD_H 1

/* Define if you have the <xmlparse.h> header file.  */
/* #undef HAVE_XMLPARSE_H */

/* Define if you have the <xmltok/xmlparse.h> header file.  */
/* #undef HAVE_XMLTOK_XMLPARSE_H */

Reply via email to