Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> "time.h" And "sys/time.h" Problem, GCC/CCC Time/GETTIMEOFDAY Issue
DiskMan
post May 22 2005, 01:52 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 22-May 05
Member No.: 5,024



For some reason, when ever I attempt to compile software I get one of two errors... Either "storage size of 'tzp' isn't known" or "gettimeofday requires two arguements".

I don't have a clue whats going on here, I've tried upgrading GCC/Binutils/Make/Bash/Sed/Libtool/<you name it> and the issue persists. I even went so far as to reinstall GLIB-2.3.2.

Now let me point something out, this issue has been going on for close to a month. Programs I used to be able to compile, Gaim/Xscreensavers/GDM/Xchat/etc., with out a hitch now balk when it comes to reading 'time.h' and 'sys/time.h'. I did run GCC with the -v flag to see whats going on but it doesn't even seem to be reading 'time.h'. ERROR-LOG

I recieve this error with both GCC and CCC [Compaq C]. I was wondering, could this be a BINUTILS issue or what? Is there some way to 'debug' this and figure out what the heck is going on or at the very least strace GCC and have the trace follow threads and supporting programs such as 'as'?

I was running the following setup:
Redhat 7.2 [Alpha]
Kernel-2.6.11.6
GCC-3.4.3
Binutils-2.16.90.0.3
Make-3.80
Bash/SH-2.05b [patched]
Go to the top of the page
 
+Quote Post
DS2K3
post May 22 2005, 03:55 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165



You could try reinstalling the headers. It might be best just to uninstall all your headers, compilers etc. and then reinstall from scratch.

D


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post
DiskMan
post May 22 2005, 10:55 AM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 22-May 05
Member No.: 5,024



I've already did that.. I did manage to stumble upon the problem, when compiling, all I have to do is at the CFLAG -D_BSD_SOURCE and everything compiles fine.

I don't know what let up to the situation though, I didn't have the problem prior to installing GTK-2.6.x and Gnome-2.8.x...
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2017 - 05:40 PM