After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 337463 - No ftime() function
No ftime() function
Status: RESOLVED FIXED
Product: dasher
Classification: Applications
Component: core
4.0.x
Other Mac OS
: Normal blocker
: ---
Assigned To: Phil Cowans
Phil Cowans
Depends on:
Blocks:
 
 
Reported: 2006-04-06 07:25 UTC by Daniel Macks
Modified: 2006-04-12 22:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Macks 2006-04-06 07:25:17 UTC
Building dasher-4.0.2 on OS X 10.3 (darwin7.9.0) using gcc3.3 fails while compiling in Src/DasherCore:

g++-3.3 -DHAVE_CONFIG_H -I. -I. -I../..   -no-cpp-precomp -I/sw/include -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/pango-1.0 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/sw/include/gtk-2.0 -I/sw/include/atk-1.0 -I/sw/lib/gtk-2.0/include   -DORBIT2=1 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/orbit-2.0 -I/sw/include/gconf/2    -DORBIT2=1 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/pango-1.0 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/sw/include/gtk-2.0 -I/sw/include/atk-1.0 -I/sw/lib/gtk-2.0/include -I/sw/include/orbit-2.0 -I/sw/include/bonobo-activation-2.0 -I/sw/include/libbonobo-2.0 -I/sw/include/at-spi-1.0 -I/sw/include/gconf/2 -I/sw/include/gnome-vfs-2.0 -I/sw/lib/gnome-vfs-2.0/include -I/sw/include/libart-2.0 -I/sw/include/libgnome-2.0 -I/sw/include/libgnomecanvas-2.0 -I/sw/include/libxml2 -I/sw/include -I/sw/include/gnome-keyring-1 -I/sw/include/libbonoboui-2.0 -I/sw/include/libgnomeui-2.0   -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/pango-1.0 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/sw/include/gtk-2.0 -I/sw/include/atk-1.0 -I/sw/lib/gtk-2.0/include -I/sw/include/libxml2 -I/sw/include -I/sw/include/libglade-2.0   -DORBIT2=1 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/orbit-2.0 -I/sw/include/bonobo-activation-2.0 -I/sw/include/gconf/2 -I/sw/include/libbonobo-2.0 -I/sw/include/gnome-vfs-2.0 -I/sw/lib/gnome-vfs-2.0/include -I/sw/include/pango-1.0 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/sw/include/gtk-2.0 -I/sw/include/atk-1.0 -I/sw/lib/gtk-2.0/include -I/sw/include/libart-2.0 -I/sw/include/libgnome-2.0 -I/sw/include/libgnomecanvas-2.0 -I/sw/include/libxml2 -I/sw/include -I/sw/include/gnome-keyring-1 -I/sw/include/libbonoboui-2.0 -I/sw/include/libgnomeui-2.0   -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/pango-1.0 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/sw/include/gtk-2.0 -I/sw/include/atk-1.0 -I/sw/lib/gtk-2.0/include -I/sw/include/libwnck-1.0   -DWNCK_I_KNOW_THIS_IS_UNSTABLE -I./../DasherCore -DPROGDATA=\"/sw/share/dasher\" -I../../intl -I../../intl  -g -O2 -Wall -Wno-non-virtual-dtor -c -o FileLogger.o FileLogger.cpp
FileLogger.cpp: In member function `std::string CFileLogger::GetTimeDateStamp()':
FileLogger.cpp:503: error: `ftime' undeclared (first use this function)
FileLogger.cpp:503: error: (Each undeclared identifier is reported only once for each function it appears in.)

The same problem plagues SimpleTimer.cpp, TimeSpan.cpp, and UserLog.cpp.

I have a <sys/timeb.h> that declares struct timeb but no timeb() function, and it has a comment "The ftime(2) system call structure -- deprecated". According to nm, there's no timeb symbol in my system library. The only documentation I can find about ftime on darwin is an old manpage:

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/ftime.3.html

that notes "this interface is obsoleted by gettimeofday(2)". The gettimeofday API is different than ftime, but it does appear to provide access to the same data.
Comment 1 Phil Cowans 2006-04-12 22:03:18 UTC
Should be fixed. Please use --with-darwin configure flag to fix a separate linking issue.