[Swan-dev] CentOS 6 "implicit declaration of function ‘printf’"

Paul Wouters paul at nohats.ca
Wed Jun 19 19:15:02 UTC 2019


On Tue, 18 Jun 2019, Andrew Cagney wrote:

> why is a library function calling printf()? (if a c file needs
> something #include it).

Because it is used in addconn which has no logging mechanism and only
uses stdout?

There are also many calls to fprintf() within the test compile sections
when some files are compiled with "main()" enabled. Since I dont think
we ever used this in libreswan for any testing, I'd prefer to remove
all of those.

Paul



More information about the Swan-dev mailing list