Samba & gcc

From: Paul Crittenden <crittend_at_storm.simpson.edu>
Date: Wed, 28 Jun 2000 14:56:07 -0500

When trying to compile samba 2.0.7 using gcc 2.95.2 I get the following.

>Compiling rpcclient/cmd_srvsvc.c
>In file included from
/usr/local/lib/gcc-lib/alphaev56-dec-osf4.0f/2.95.2/include/stdarg.h:36, >fr
om include/includes.h:203, from rpcclient/cmd_srvsvc.c:29:
>/usr/local/lib/gcc-lib/alphaev56-dec-osf4.0f/2.95.2/include/va-alpha.h:36:
warning: >redefinition of `va_list'
>/usr/local/lib/gcc-lib/alphaev56-dec-osf4.0f/2.95.2/include/va_list.h:7:
warning: `va_list' >previously declared here
>In file included from include/includes.h:291 from rpcclient/cmd_srvsvc.c:29:
>/usr/include/net/if.h:144: warning: no semicolon at end of struct or union
>/usr/include/net/if.h:182: warning: `struct rtentry' declared inside
parameter list
>/usr/include/net/if.h:182: warning: its scope is only this definition or
declaration, which is >probably not what you want.
>/usr/include/net/if.h:182: warning: `struct mbuf' declared inside
parameter list
>In file included from include/includes.h:291 from rpcclient/cmd_srvsvc.c:29:
>/usr/include/net/if.h:462: warning: `struct rtentry' declared inside
parameter list

I realize they are only warnings and samba appears to compile correctly but
when I use cc to compile samba I don't get any warnings. I have tried this
on two different systems both running Tru-64Unix v4.0f with the same
results. Why do I get the warnings with gcc and not with cc. Any ideas?

Paul Crittenden
Computer System Manager
Simpson College
e-mail: crittend_at_simpson.edu

"Success in life is not necessarily drawing a good hand,
  but playing a bad hand well"
Received on Wed Jun 28 2000 - 19:57:24 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT