[TUHS] Trying to compile cron

Brian Walden tuhs at cuzuco.com
Fri Dec 29 08:23:02 AEST 2023


As I messed with making a custom cron in the late 80s,
remembered the the el_ functions are for event list processing.
But you didn't specify the source of your source, by the hardware
it needs to be of System V heritage.  And a lot of that source is hard
to offically come by due to licensing.  Good way to view old SVR4 is
to look at OpenIndiana, Illumos, or OpenSolaris code bases that you can
find. You're in luck, as TUHS has a copy, see -- https://www.tuhs.org/cgi-bin/utree.pl?file=OpenSolaris_b135/cmd/cron/elm.c

Look at the Makefile for the other files you need to compile into it too.

-Brian

KenUnix wrote:
> Hi. I am trying to compile cron for the 3b2-400 and 3b2-700
> and am apparently missing required libraries. The reason is
> on the 3b2-400 after boot up it complains there is corruption
> in the crontab for every user lp, sysadm, root and so on.
>
> # make cron
>         cc -O  cron.c -o cron
> undefined                       first referenced
>  symbol                             in file
> el_add                              cron.o
> el_delete                           cron.o
> el_empty                            cron.o
> el_first                            cron.o
> el_init                             cron.o
> xmalloc                             cron.o
> el_remove                           cron.o
> num                                 cron.o
> days_in_mon                         cron.o
> days_btwn                           cron.o
> ld fatal: Symbol referencing errors. No output written to cron
> *** Error code 13
>
> Stop.


More information about the TUHS mailing list