jpstewart wrote:
duck wrote:
Might be a more proper solution to include
sys/time.h
; anything that uses gettimeofday(2) really should do this, so I'm not sure what's going on. Perhaps there are some braindead ifdefs somewhere.
Indeed, there are some weird ifdefs in sys/time.h.
I'm not qualified to be in this conversation but fools rush in ...
About the time.h thing, while looking for an answer I found where neko had the same problem once compiling openssl. Couldn't get to the answer from here but putting the structure into the c file seemed to work. Here's the time.h from /usr/include/
Code:
#ifndef __TIME_H__
#define __TIME_H__
#include <internal/time_core.h>
__SGI_LIBC_USING_FROM_STD(size_t)
__SGI_LIBC_USING_FROM_STD(clock_t)
__SGI_LIBC_USING_FROM_STD(time_t)
__SGI_LIBC_USING_FROM_STD(clock)
__SGI_LIBC_USING_FROM_STD(difftime)
__SGI_LIBC_USING_FROM_STD(mktime)
__SGI_LIBC_USING_FROM_STD(time)
__SGI_LIBC_USING_FROM_STD(asctime)
__SGI_LIBC_USING_FROM_STD(ctime)
__SGI_LIBC_USING_FROM_STD(gmtime)
__SGI_LIBC_USING_FROM_STD(localtime)
__SGI_LIBC_USING_FROM_STD(strftime)
#endif /* !__TIME_H__ */
which didn't really tell me anything
I can try jp's suggestion and report back.
The program does have a few problems : one menu option crashes it immediately
Code:
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 1.0 (X_CreateWindow)
Serial number of failed request: 37475
Failed resource ID: 0
[1] Abort fontforge
Luckily, that's not an important function, it is supposed to open an Xdefaults editor in a separate window ...
But a bigger problem is that the program runs fine from where it's compiled. However, if you move it to /usr/nekoware via gmake install, it freezes, crashes, locks up, and generally fails to run. Possible path problems ? Not sure yet but life is never simple, is it ?
edit : It seems to run pretty fast, is generally an improvement over the 2006 version we have in nekoware, and even looks semi-presentable with some xdefault changes. If anyone knowledgeable wants to pitch in here (hint hint) this would be a good upgrade to nekoware ...
update : Tried the addition of -D_BSD_TYPES to the CPPFLAGS with no success
Adding the < structure > code still works though.