List Info

Thread: Re: trunk compile err - no gettimeofday or equivalent available ?




Re: trunk compile err - no gettimeofday or equivalent available ?
user name
2008-03-24 18:07:57
On Mon, Mar 24, 2008 at 5:04 PM, atuc <atucgmx.de> wrote:
>  i tried to compile iaxclient lib (trunk) on ubuntu
gutsy and get "no
>  gettimeofday" err,
>
>  any idea whats wrong?
>
>  thanks,
>  alex tuca
>
>  iaxclient/trunk$
>
>   gcc -DHAVE_CONFIG_H -I. -I. -I..
-I./portmixer/px_common -pthread
>  -I/usr/local/include -I../lib/libiax2/src -DLIBIAX
-pthread -Wall
>  -Wextra -Wno-unused-parameter -Wpointer-arith
-DLIBVER="2.1-svn" -g
>  -O2 -MT libiax2/src/iax.lo -MD -MP -MF
libiax2/src/.deps/iax.Tpo -c
>  libiax2/src/iax.c  -fPIC -DPIC -o
libiax2/src/.libs/iax.o
>  libiax2/src/iax.c:3509:2: error: #error no
gettimeofday or equivalent
>  available
>  make[2]: *** [libiax2/src/iax.lo] Fehler 1
>  make[2]: Verlasse Verzeichnis
> 
'/home/alex/DEVELOP/all_iaxclient_cvs/iaxclient/trunk/lib'
>  make[1]: *** [all-recursive] Fehler 1
>  make[1]: Verlasse Verzeichnis
> 
'/home/alex/DEVELOP/all_iaxclient_cvs/iaxclient/trunk'
>  make: *** [all] Fehler 2

This is odd. The configure script checks for gettimeofday
and fills in
config.h accordingly. Can you verify that gettimeofday was
not found
at configure-time?

The next question is why couldn't the configure script find
gettimeofday on your system. I run ubuntu 7.10 also. Do you
have
libc6-dev installed? That is the package that provides
/usr/include/sys/time.h which is the header that declares
gettimeofday.

Pete

------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Iaxclient-devel mailing list
Iaxclient-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iaxclie
nt-devel

Re: trunk compile err - no gettimeofday or equivalent available ?
country flaguser name
Switzerland
2008-03-25 02:54:43
thanks pete for reply,

ich grep'ed the configure output but there ist no
gettimeofday printout?

libc6-dev was already installed on my ubuntu, i did a
reinstall but this
does not change it.


/usr/include/sys/time.h  is in place

thanks for help,
best alex tuca

here the configure output:

checking for a BSD-compatible install... /usr/bin/install
-c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of
Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together...
yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e...
/bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install
-c
checking for a sed that does not truncate output...
/bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files...
-r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler...
no
checking whether  accepts -g... no
checking the maximum length of command line arguments...
32768
checking command to parse /usr/bin/nm -B output from gcc
object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports
shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs...
immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports
shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports
shared
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs...
immediate
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether time.h and sys/time.h may both be
included... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking varargs.h usability... no
checking varargs.h presence... no
checking for varargs.h... no
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for working volatile... yes
checking for pid_t... yes
checking for size_t... yes
checking for vsnprintf... yes
checking for _vsnprintf... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute...
PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads...
no
checking whether to check for GCC pthread/shared
inconsistencies... yes
checking whether -pthread is sufficient with -shared... yes
checking for pkg-config... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for wish... /usr/bin/wish
checking for iLBC reference sources in lib/iLBC... yes
checking for PORTAUDIO... yes
checking for gsm... yes
checking for OGG... yes
checking for SPEEX... yes
checking for THEORA... yes
checking for SDL... yes
checking for GTK... yes
checking for GDK2... yes
checking for ALSA... yes
checking for OGGZ... no
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.6.0... yes (version
2.8.4)
checking for wxWidgets static library... no
checking for wxrc... not found
checking wx/xrc/xmlres.h usability... yes
checking wx/xrc/xmlres.h presence... yes
checking for wx/xrc/xmlres.h... yes
checking for wx xrc library... yes ( )
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating simpleclient/Makefile
config.status: creating iaxclient.pc
config.status: creating simpleclient/testcall/Makefile
config.status: creating simpleclient/stresstest/Makefile
config.status: creating simpleclient/vtestcall/Makefile
config.status: creating simpleclient/iaxcomm/Makefile
config.status: creating simpleclient/iaxphone/Makefile
config.status: creating simpleclient/tkphone/Makefile
config.status: creating simpleclient/WinIAX/Makefile
config.status: creating simpleclient/wx/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
configure: Configured clients:  testcall stresstest iaxphone
wx iaxcomm
vtestcall tkphone



------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Iaxclient-devel mailing list
Iaxclient-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iaxclie
nt-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )