[tickets] [opensaf:tickets] #1029 base: osaf_secutil.h does not compile with LSB compiler
- **status**: review -- fixed - **Comment**: changeset: 5732:ac0c1fec8f99 branch: opensaf-4.5.x parent: 5730:b239f82f3f21 user:Anders Widell anders.wid...@ericsson.com date:Fri Sep 05 15:43:52 2014 +0200 summary: base: Fix compilation failure when using LSB compiler [#1029] changeset: 5733:e7734a5f6755 tag: tip parent: 5731:2a220f82529e user:Anders Widell anders.wid...@ericsson.com date:Fri Sep 05 15:43:52 2014 +0200 summary: base: Fix compilation failure when using LSB compiler [#1029] [staging:ac0c1f] [staging:e7734a] --- ** [tickets:#1029] base: osaf_secutil.h does not compile with LSB compiler** **Status:** fixed **Milestone:** 4.5.0 **Created:** Thu Aug 28, 2014 10:18 AM UTC by Anders Widell **Last Updated:** Mon Sep 01, 2014 01:00 PM 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
[tickets] [opensaf:tickets] #1029 base: osaf_secutil.h does not compile with LSB compiler
- **status**: accepted -- review --- ** [tickets:#1029] base: osaf_secutil.h does not compile with LSB compiler** **Status:** review **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
[tickets] [opensaf:tickets] #1029 base: osaf_secutil.h does not compile with LSB compiler
--- ** [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