---
** [tickets:#1029] base: osaf_secutil.h does not compile with LSB compiler**
**Status:** accepted
**Milestone:** 4.5.0
**Created:** Thu Aug 28, 2014 10:18 AM UTC by Anders Widell
**Last Updated:** Thu Aug 28, 2014 10:18 AM UTC
**Owner:** Anders Widell
The new file osaf_secutil.h does not compile with an LSB compiler, due to the
errors below:
cc1: warnings being treated as errors
In file included from osaf_secutil.c:47:
include/osaf_secutil.h:58: error: 'struct ucred' declared inside parameter
list
include/osaf_secutil.h:58: error: its scope is only this definition or
declaration, which is probably not what you want
osaf_secutil.c: In function 'handle_new_connection':
osaf_secutil.c:61: error: storage size of 'client_cred' isn't known
osaf_secutil.c:62: error: invalid application of 'sizeof' to incomplete
type 'struct ucred'
osaf_secutil.c:68: error: implicit declaration of function 'strerror'
osaf_secutil.c:68: error: format '%s' expects type 'char *', but argument 5
has type 'int'
osaf_secutil.c:73: error: 'SO_PEERCRED' undeclared (first use in this
function)
osaf_secutil.c:73: error: (Each undeclared identifier is reported only once
osaf_secutil.c:73: error: for each function it appears in.)
osaf_secutil.c:74: error: format '%s' expects type 'char *', but argument 5
has type 'int'
osaf_secutil.c:61: error: unused variable 'client_cred'
osaf_secutil.c: In function 'server_sock_create':
osaf_secutil.c:115: error: format '%s' expects type 'char *', but argument
6 has type 'int'
osaf_secutil.c:122: error: implicit declaration of function 'strcpy'
osaf_secutil.c:122: error: incompatible implicit declaration of built-in
function 'strcpy'
osaf_secutil.c:123: error: implicit declaration of function 'strlen'
osaf_secutil.c:123: error: incompatible implicit declaration of built-in
function 'strlen'
osaf_secutil.c:125: error: format '%s' expects type 'char *', but argument
6 has type 'int'
---
Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets