cross armhf tangle

Gary E. Miller gem at rellim.com
Tue Feb 4 21:42:01 UTC 2025


Yo Hal!

On Tue, 04 Feb 2025 00:40:57 -0800
Hal Murray <halmurray at sonic.net> wrote:

> >> It didn't know what a struct timeval was.  
> > Did you set the required defines first?   
> 
> I don't think I have to set anything.

At least on gentoo you do.  Because you bypassed the #defines in time.h
that are set by --march=.  You need to supply them yourselve.  Can't say
about your specific distro.

> 
> > Any place I can go to see the BSD man page
> > and the include file contents?  
> 
> I got the man page via google: freebsd man timespec
> 
> Google found their source code on github.
>   https://github.com/lattera/freebsd/blob/master/sys/sys/time.h
> The sys/sys is not a typo.  The first sys is the top level directory
> where they put source code.
> 
> >> man timeval on this Linux box says:
> >> SYNOPSIS
> >>        #include <sys/time.h>  
> > Odd. Not on Gentoo.  What linux are you on?  
> 
> I happened to be typing on a Debian box.  It says:
> 
> $ apropos timespec
> timespec (3bsd)      - time structures
> timespec (3type)     - time in seconds and nanoseconds
> TIMESPEC_TO_TIMEVAL (3bsd) - time structures
> ...
> 
> man timespec gives me the first page which says
>      #include <sys/time.h>
> $ man 3type timespec says
>        #include <time.h>

So just include both, never hurts.
 
> > If it is working, why are we talking about it?  
> I thought I was answering your questions.

Yes, the questions I posed to help you figure out the armhf tangle, the
one in the Subject:


RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin


More information about the devel mailing list