Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25960 - VmailMgr doesn't work
Summary: VmailMgr doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Alpha Linux
: High normal (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-05 09:36 UTC by daRonin
Modified: 2005-03-05 04:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description daRonin 2003-08-05 09:36:15 UTC
There is problem with cdb++ code.
In cdb++.h the author defines custom type:

typedef unsigned long uint32;

This will not work on Alpha platform since unsigned int size is different on
this platform. This definition should be replaced with:

#include <inttypes.h>
typedef uint32_t uint32;

As far as I can tell after this patch the uint32 will be defined properly on all
platforms.

Here is the patch:

================================
less cdb++.patch
--- vmailmgr-0.96.9/lib/cdb++/cdb++.h   2000-04-05 13:11:45.000000000 -0600
+++ vmailmgr-0.96.9.new/lib/cdb++/cdb++.h       2003-08-05 10:07:10.000000000 -0600
@@ -20,8 +20,10 @@
 #include "mystring/mystring.h"
 #include "cdb++/datum.h"
 #include "fdbuf/fdbuf.h"
+#include <inttypes.h>

-typedef unsigned long uint32;
+//typedef unsigned long uint32;
+typedef uint32_t uint32;
 
 #define CDBMAKE_HPLIST 1000
Comment 1 Tavis Ormandy (RETIRED) gentoo-dev 2003-08-17 08:54:45 UTC
assigning to me...
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2005-03-03 23:46:37 UTC
taking over of vmailmgr bugs, being primary maintainer 'n stuff
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2005-03-05 04:04:57 UTC
fixed in -r2.
be advised that this version is incompatible with net-mail/courier-imap-4*. see
bug 82760 for more info.