The following issue has been RESOLVED. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=572 
====================================================================== 
Reported By:                jasb
Assigned To:                aaron
====================================================================== 
Project:                    DBMail
Issue ID:                   572
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
target:                      
Resolution:                 won't fix
Fixed in Version:           
====================================================================== 
Date Submitted:             13-Apr-07 21:55 CEST
Last Modified:              09-May-07 23:11 CEST
====================================================================== 
Summary:                    Some warnings
Description: 
Hi,
Compiling i have some warnings, they may be harmless but check them so
verify that.

 gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -I/usr/include/glib-2.0
-I/usr/lib/g                                  lib-2.0/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/inclu          
                       de/gmime-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -W -Wall -Wpoin                               
  ter-arith -Wstrict-prototypes -MT libdbmail_la-dbmail-message.lo -MD -MP
-MF .de                                 
ps/libdbmail_la-dbmail-message.Tpo -c dbmail-message.c  -fPIC -DPIC -o
.libs/lib                                  dbmail_la-dbmail-message.o
dbmail-message.c: In function '_header_cache':
dbmail-message.c:1017: warning: pointer targets in passing argument 1 of
'g_mime                                  _utils_header_encode_text' differ
in signedness
dbmail-message.c:1028: warning: pointer targets in passing argument 1 of
'g_mime                                  _utils_header_decode_text' differ
in signedness
dbmail-message.c:1036: warning: pointer targets in passing argument 1 of
'g_mime                                  _utils_header_decode_text' differ
in signedness
dbmail-message.c: In function 'dbmail_message_cache_fromfield':
dbmail-message.c:1153: warning: pointer targets in passing argument 1 of
'g_mime                                  _utils_header_encode_text' differ
in signedness
dbmail-message.c: In function 'dbmail_message_cache_replytofield':
dbmail-message.c:1177: warning: pointer targets in passing argument 1 of
'g_mime                                  _utils_header_encode_text' differ
in signedness




 gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -g -O2 -I/usr/include/glib-2.0
-I/usr/lib/g                                  lib-2.0/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/inclu          
                       de/gmime-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -W -Wall -Wpoin                               
  ter-arith -Wstrict-prototypes -MT libdbmail_la-misc.lo -MD -MP -MF
.deps/libdbma                                  il_la-misc.Tpo -c misc.c 
-fPIC -DPIC -o .libs/libdbmail_la-misc.o
misc.c: In function 'dm_base_subject':
misc.c:648: warning: pointer targets in passing argument 1 of
'g_mime_utils_head                                  er_decode_text' differ
in signedness
misc.c: In function 'get_param_list':
misc.c:1490: warning: pointer targets in passing argument 1 of
'g_mime_utils_hea                                  der_encode_text' differ
in signedness
misc.c: In function 'dbmail_imap_append_alist_as_plist':
misc.c:1886: warning: pointer targets in passing argument 1 of
'g_mime_utils_hea                                  der_encode_phrase'
differ in signedness
misc.c: In function 'convert_8bit_db_to_mime':
misc.c:2262: warning: pointer targets in passing argument 1 of
'g_mime_utils_hea                                  der_encode_text' differ
in signedness
misc.c:2268: warning: pointer targets in passing argument 1 of
'g_mime_utils_hea                                  der_encode_text' differ
in signedness
misc.c: In function 'imap_get_envelope':
misc.c:2301: warning: pointer targets in passing argument 1 of
'g_mime_utils_hea                                  der_encode_text' differ
in signedness




if gcc -DHAVE_CONFIG_H -I. -I. -I. -I.    -g -O2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/gmime-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -W -Wall
-Wpointer-arith -Wstrict-prototypes -MT imapcommands.o -MD -MP -MF
".deps/imapcommands.Tpo" -c -o imapcommands.o imapcommands.c; \
        then mv -f ".deps/imapcommands.Tpo" ".deps/imapcommands.Po"; else
rm -f ".deps/imapcommands.Tpo"; exit 1; fi
imapcommands.c: In function '_do_store':
imapcommands.c:1469: warning: format '%llu' expects type 'long long
unsigned int', but argument 7 has type 'u64_t *'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I.    -g -O2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/gmime-2.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -W -Wall
-Wpointer-arith -Wstrict-prototypes -MT memblock.o -MD -MP -MF
".deps/memblock.Tpo" -c -o memblock.o memblock.c; \




====================================================================== 

---------------------------------------------------------------------- 
 paul - 15-Apr-07 19:43  
---------------------------------------------------------------------- 
Jorge, this is all old stuff that was fixed quite some time ago already
(around rev 2469) 

---------------------------------------------------------------------- 
 jasb - 15-Apr-07 20:18  
---------------------------------------------------------------------- 
But Paul, with the last 2519, i tryed 5 m ago, this still apears.
I'll repast the warnings with 2519, with the debian SID glibc-2.5-1:


dbmail-message.c: In function '_header_cache':
dbmail-message.c:1017: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness
dbmail-message.c:1028: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_decode_text' differ in signedness
dbmail-message.c:1036: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_decode_text' differ in signedness
dbmail-message.c: In function 'dbmail_message_cache_fromfield':
dbmail-message.c:1153: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness
dbmail-message.c: In function 'dbmail_message_cache_replytofield':
dbmail-message.c:1177: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness



misc.c: In function 'dm_base_subject':
misc.c:648: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_decode_text' differ in signedness
misc.c: In function 'get_param_list':
misc.c:1490: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness
misc.c: In function 'dbmail_imap_append_alist_as_plist':
misc.c:1886: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_phrase' differ in signedness
misc.c: In function 'convert_8bit_db_to_mime':
misc.c:2262: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness
misc.c:2268: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness
misc.c: In function 'imap_get_envelope':
misc.c:2301: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness



imapcommands.c: In function '_do_store':
imapcommands.c:1469: warning: format '%llu' expects type 'long long
unsigned int', but argument 7 has type 'u64_t *' 

---------------------------------------------------------------------- 
 paul - 15-Apr-07 22:32  
---------------------------------------------------------------------- 
What version of libgmime-dev are you on? 

---------------------------------------------------------------------- 
 jasb - 15-Apr-07 22:36  
---------------------------------------------------------------------- 
ii  libgmime-2.0-2-dev           2.2.6-1               MIME library,
unstable version - development 

---------------------------------------------------------------------- 
 aaron - 18-Apr-07 11:03  
---------------------------------------------------------------------- 
I assume the correct change for imapcommands.c:1469 is:

 -     TRACE(TRACE_WARNING, "unable to lookup msginfo struct for [%llu]",
id);
 +     TRACE(TRACE_WARNING, "unable to lookup msginfo struct for [%llu]",
*id);

The signedness errors do not show up when I build. 

---------------------------------------------------------------------- 
 jasb - 18-Apr-07 11:48  
---------------------------------------------------------------------- 
Correct, i've tryed that, will you include that in the next svn rev's?
And the rest of warnings? 

---------------------------------------------------------------------- 
 aaron - 19-Apr-07 20:53  
---------------------------------------------------------------------- 
Paul, do you see these signedness errors? I don't, with GMime 2.2.3, GLib
2.12.11 and GCC 4.1.1, on both x86 and x86-64. 

---------------------------------------------------------------------- 
 jasb - 19-Apr-07 23:25  
---------------------------------------------------------------------- 
oh, my debian must he crazy then!! grrrrr 

---------------------------------------------------------------------- 
 paul - 20-Apr-07 09:33  
---------------------------------------------------------------------- 
No, I don't see these either using gmime 2.2.3 (ubuntu or debian). Havent
tried 2.2.6 yet. 

---------------------------------------------------------------------- 
 aaron - 20-Apr-07 09:38  
---------------------------------------------------------------------- 
Jorge, what is your 'gcc --version'?

On at least one other occassion, Paul's gcc reported signedness errors
that my gcc decided not to tell me about, which was pretty weird. 

---------------------------------------------------------------------- 
 jasb - 20-Apr-07 11:12  
---------------------------------------------------------------------- 
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.


from the debian SID repos 

---------------------------------------------------------------------- 
 aaron - 01-May-07 23:17  
---------------------------------------------------------------------- 
The one integer length issue was fixed already. 

---------------------------------------------------------------------- 
 jasb - 08-May-07 17:48  
---------------------------------------------------------------------- 
Aaron, using the last SVN today (08-05-2007) i have this:

misc.c: In function 'dm_base_subject':
misc.c:648: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_decode_text' differ in signedness
misc.c: In function 'get_param_list':
misc.c:1490: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness
misc.c: In function 'dbmail_imap_append_alist_as_plist':
misc.c:1886: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_phrase' differ in signedness
misc.c: In function 'convert_8bit_db_to_mime':
misc.c:2262: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness
misc.c:2268: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness
misc.c: In function 'imap_get_envelope':
misc.c:2301: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness




dbmail-message.c: In function '_header_cache':
dbmail-message.c:1022: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness
dbmail-message.c:1033: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_decode_text' differ in signedness
dbmail-message.c:1041: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_decode_text' differ in signedness
dbmail-message.c: In function 'dbmail_message_cache_fromfield':
dbmail-message.c:1158: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness
dbmail-message.c: In function 'dbmail_message_cache_replytofield':
dbmail-message.c:1182: warning: pointer targets in passing argument 1 of
'g_mime_utils_header_encode_text' differ in signedness 

---------------------------------------------------------------------- 
 aaron - 09-May-07 09:00  
---------------------------------------------------------------------- 
This is what's in /usr/include/gmime-2.0/gmime/gmime-utils.h for
gmime-config --version of 2.2.3:
char *g_mime_utils_header_encode_text (const unsigned char *in);

This is what's on the GMime API documentation website:
char*       g_mime_utils_header_encode_text (const char *in);

It sounds to me like these headers must have changed between 2.2.3 and
2.2.6. In any event, the errors are harmless. 

---------------------------------------------------------------------- 
 jasb - 09-May-07 10:21  
---------------------------------------------------------------------- 
Yap, i'm using the folowing gmime package:
ii  libgmime-2.0-2-dev           2.2.8-1               MIME library,
unstable version - development
You're right Aaron, this is hamrless, at least i don't see any problem
using it.
It was just for you to ajust it to help :P 

---------------------------------------------------------------------- 
 aaron - 09-May-07 23:11  
---------------------------------------------------------------------- 
The errors are annoying but harmless, and appear to be due to
inconsistencies in GMime headers. We'll just leave things as they are for
now. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
13-Apr-07 21:55 jasb           New Issue                                    
13-Apr-07 21:55 jasb           Issue Monitored: jasb                        
15-Apr-07 19:43 paul           Note Added: 0002043                          
15-Apr-07 20:18 jasb           Note Added: 0002044                          
15-Apr-07 22:32 paul           Note Added: 0002045                          
15-Apr-07 22:36 jasb           Note Added: 0002046                          
18-Apr-07 11:03 aaron          Note Added: 0002049                          
18-Apr-07 11:48 jasb           Note Added: 0002050                          
19-Apr-07 20:53 aaron          Note Added: 0002063                          
19-Apr-07 23:25 jasb           Note Added: 0002070                          
20-Apr-07 09:33 paul           Note Added: 0002073                          
20-Apr-07 09:38 aaron          Note Added: 0002074                          
20-Apr-07 11:12 jasb           Note Added: 0002077                          
01-May-07 23:17 aaron          Status                   new => resolved     
01-May-07 23:17 aaron          Resolution               open => no change
required
01-May-07 23:17 aaron          Assigned To               => aaron           
01-May-07 23:17 aaron          Note Added: 0002118                          
08-May-07 17:48 jasb           Status                   resolved => feedback
08-May-07 17:48 jasb           Resolution               no change required =>
reopened
08-May-07 17:48 jasb           Note Added: 0002141                          
09-May-07 09:00 aaron          Note Added: 0002142                          
09-May-07 10:21 jasb           Note Added: 0002143                          
09-May-07 23:11 aaron          Status                   feedback => resolved
09-May-07 23:11 aaron          Resolution               reopened => won't fix
09-May-07 23:11 aaron          Note Added: 0002147                          
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to