- **status**: review --> fixed
- **Comment**:
changeset: 5175:a8a990372fc3
branch: opensaf-4.3.x
tag: tip
parent: 5172:2390692d1f2d
user: Mathivanan N.P.<[email protected]>
date: Wed Apr 23 17:14:39 2014 -0400
summary: log: use %z length modifier for printing size_t [#852]
[staging:a8a990]
---
** [tickets:#852] Opensaf 4.3 SP2 doesnot compile for 32bit.**
**Status:** fixed
**Milestone:** 4.3.3
**Created:** Mon Apr 14, 2014 11:38 AM UTC by manu
**Last Updated:** Tue Apr 15, 2014 02:34 PM UTC
**Owner:** Mathi Naickan
This issue is seen on 5143 cs.
Compilation failed with the below error.
gcc -DHAVE_CONFIG_H -I. -I../../../../..
-I../../../../../osaf/libs/saf/include -I../../../../../osaf/libs/core/include
-I../../../../../osaf/libs/core/leap/include
-I../../../../../osaf/libs/core/mds/include
-I../../../../../osaf/libs/core/common/include
-I../../../../../osaf/libs/common/logsv/include
-I../../../../../osaf/libs/common/immsv/include -Wall -fno-strict-aliasing
-Werror -fPIC -g -MT osaflogd-lgs_stream.o -MD -MP -MF
.deps/osaflogd-lgs_stream.Tpo -c -o osaflogd-lgs_stream.o `test -f
'lgs_stream.c' || echo './'`lgs_stream.c
cc1: warnings being treated as errors
lgs_stream.c: In function ‘log_stream_write’:
lgs_stream.c:895: error: format ‘%ld’ expects type ‘long int’, but argument 6
has type ‘size_t’
make[7]: *** [osaflogd-lgs_stream.o] Error 1
make[7]: Leaving directory `/home/6.3SP2/staging/osaf/services/saf/logsv/lgs'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/home/6.3SP2/staging/osaf/services/saf/logsv/lgs'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/6.3SP2/staging/osaf/services/saf/logsv'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/6.3SP2/staging/osaf/services/saf'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/6.3SP2/staging/osaf/services'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/6.3SP2/staging/osaf'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/6.3SP2/staging'
make: *** [all] Error 2
---
Sent from sourceforge.net because [email protected] 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.
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets