Am I the only one who gets warning messages when making world and kernel?

Am I the only one who gets warning messages when making world and kernel?

Post by vector-sigm » Tue, 28 Mar 2000 04:00:00



Hi, I asked a question about warning messages before and I "made clean"
and deleted any object files in /usr/obj. I tried to "make  world" a
third time, but I saved the error messages by doing "make buildworld 2>
/usr/tmp/buildworld-err" and guess what, I collected more than 150k of
warning messages.

So, I figure most people, if not everyone, will get these warnings when
compiling the world and the kernel. My question is, is it because of the
necessity of coding in certain way that these warning messages arise, or
is it just sloppy coding? E.g., there was a line saying "initialization
from incompatible pointers."

Any thoughts on this?

 
 
 

Am I the only one who gets warning messages when making world and kernel?

Post by Steven G. Kar » Tue, 28 Mar 2000 04:00:00




Quote:

> So, I figure most people, if not everyone, will get these warnings when
> compiling the world and the kernel. My question is, is it because of the
> necessity of coding in certain way that these warning messages arise, or
> is it just sloppy coding? E.g., there was a line saying "initialization
> from incompatible pointers."

It's not "sloppy coding" per se.  FreeBSD is based on 4.4BSD which
is based on 4.3BSD which is based on 4.2BSD ....  In the 25 years of
UNIX existence, the C language was developed and standardized at least
twice.  So, you're warnings may be a product of legacy code which
has been brought up-to-date (Don't fix something if it isn't broken).

Some warnings are intentional.  For example, then use of tempnam()
is discouraged because of security issues.  Some pieces of code
use tempnam(), and when the compiler sees this it will issue a
warning.  The hope is that some one will fix the code.

In general the warning can be ignored.  However, if you want to
get your hands dirty in FreeBSD development.  Removing warning
is good way to start.

--
Steve

 
 
 

1. Making a new kernel - CVSuped, not made world yet.

Hi,

Last time I made world was about a month ago; last time I CVSuped was
last night.  Would it be advisable to make world before building a new
kernel to add a couple of features.  Note, I haven't made clean in my
kernel build tree and the old object files are still there.

Ian

2. Firewall 64 Ip's

3. Help: Am I the Only one in the world having problems installing SR5

4. xlc compiler -fdpr option

5. pppd server setup; Am I the only one who have made such a big mistake?

6. Fails to ping

7. DAMN: Why am I getting the message over and over again?

8. Strange problems with philips cdr 3610

9. Why am I getting "ILLEGAL PORT COMMAND" messages?

10. Question on a Message I am getting

11. What message am I getting ?

12. Question on a Message I am getting