On 24/09/18 16:01, NotReal wrote:
> I added the following lines to sunclock.c after “case
> 'Y'” at line 2048.
>
>
> /*
> * Begin Add for UTC Week
> */
> case 'f': strcpy(num, Day_name[gtp.tm_wday]); break;
> case 'e': sprintf(num, "%02d", gtp.tm_mday); break;
> case 'k': sprintf(num, "%02d", 1+gtp.tm_yday); break;
> case 'c': strcpy(num, Month_name[gtp.tm_mon]); break;
> case 'n': sprintf(num, "%02d", 1+gtp.tm_mon); break;
> case 'v': {
> int w = gtp.tm_year+1900;
> if (w % 4==0 && (w % 100!=0 || w % 400 == 0))
> w = 366;
> else
> w = 365;
> sprintf(num, "%d", w);
> break;
> }
> case 'w': sprintf(num, "%02d", gtp.tm_year%100); break;
> case 'W': sprintf(num, "%d", gtp.tm_year+1900); break;
>
> /*
> * End Add for UTC Week
> */
>
> I figured that was enough to at least try but that is where the experiment
> ended. Let me first preface this by stating that although I have been a
> Slackware user for many years, this is my first foray into Raspian. When I
> went to compile after the additions, I was expecting to do “./configure”,
> “make”, and “make install”, but after reading the INSTALL file I knew
that was
> not going to happen. I first tried “xmkmf “, but that resulted in
“command not
> found”.
i thought you already HAD a working compile setup?
>
> I next tried. “make -f Makefile.noimake “ but that immediately resulted
in
> “fatal error: X11/Xatom.h: No such file or directory”. A search for
> “Xatom.h.” showed that it was more than a path problem. It just wasn’t
there
> on the Pi.
>
> A search on my Slackware server however showed that it did have an
“Xatom.h”
> file so I tried to do a compile on that using “make -f Makefile.noimake”.
It
> apparently then found the “Xatom.h” file but it also produced tons of new
> warnings and errors until it finally bombed out. I tried it with both the
> unmodified and modified versions of sunclock.c, so it is not just my
tinkering
> that was the problem, although I have to admit there were a few more errors
in
> the modified version.
>
> Based on my level of expertise, as in a lack of, I think I am done on this
> effort.
>
> Thanks for trying.
>
I wish I had time to sort this out for you, but I do not.
Hopefully someone else with an actual Pi can.
--
"I am inclined to tell the truth and dislike people who lie consistently.
This makes me unfit for the company of people of a Left persuasion, and
all women"
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|