Subj : New FDN
To   : Vince Coen
From : Janis Kracht
Date : Fri Mar 25 2016 04:29 pm

Hi Vince,

> For your interest here is the o/p from the attempt to compile it under Mageia
> v5 X64 Linux : -

> -----------
> [mbse@Applewood a]$ gcc pktdate.c
> pktdate.c:38:6: warning: conflicting types for built-in function 'log'
> void log(int loglevel, const char *fmt, ...);
> ^
> pktdate.c: In function 'process_pkt':
> pktdate.c:152:9: warning: overflow in implicit constant conversion
> [-Woverflow]
> return FATAL_ERROR;
> ^
> pktdate.c:159:9: warning: overflow in implicit constant conversion
> [-Woverflow]
> return FATAL_ERROR;
> ^
> /tmp/ccoDkgoG.o: In function `write_pkt':
>pktdate.c:(.text+0xe5c): warning: the use of `tmpnam' is dangerous, better use
> `mkstemp'

> -----------

> No I don't understand them other than a basic level :(


It compiled here on my linux box.. same warnings as you saw but the compile did
create a file named a.out.

Because there was no makefile, the binary is named a.out here - which runs on
the command like, if you type for example:

./a.out


Pktdate Rev. 1.5, written by Tobias Ernst @ 2:2476/418 et al.

Error: No arguments given.


I didn't give any arguments, but now that I see them listed, I can rename a.out
to pktdate and go from there.. should work fine.

Take care,
Janis

--- BBBS/Li6 v4.10 Dada-2
* Origin: Prism bbs (1:261/38)