Mark,

Should be fixed in rev 329.

Btw, you shouldn't comment swig_mapi{tags,codes}.h references in mapi.i.
These files are auto-generated when perl bindings compilation is
launched from top scrdir (trunk/).

Note that perl bindings compilation is extremely slow due to the
creation and processing of mapitags variable in the mapi package, so
please be patient when compiling bindings. If you intend to develop over
existing perl bindings (add new functions etc.), I strongly suggest you
comment swig_mapitags.h and only define mapitags you will use during
your tests.

Below, you'll find a sample make + fetchmail output. Last but not least,
do not omit to run 'make install' prior running the fetchmail test.

Let me know if it fixes your issue.

Cheers,
Julien.

=================================================================================
[EMAIL PROTECTED] trunk]$ make
Generating libmapi/proto.h
Creating Perl bindings ...
make[1]: Entering directory
`/home/jkerihuel/openchange/openchange/trunk/swig/perl'
Generating Headers (swig_mapitags.h)
Parsing ../../libmapi/conf/mapi-properties
Generating /home/jkerihuel/openchange/openchange/trunk/swig/perl/swig_mapitags.h
Generating Headers (swig_mapicodes.h)
Parsing ../../libmapi/conf/mapi-codes
Generating 
/home/jkerihuel/openchange/openchange/trunk/swig/perl/swig_mapicodes.h
Swigify mapi.i
Compiling mapi_wrap.c
Compiling lwmapi.c
Compiling mapi_wrap.o
make[1]: Leaving directory
`/home/jkerihuel/openchange/openchange/trunk/swig/perl'
[EMAIL PROTECTED] trunk]$ ./swig/perl/tests/fetchmail.pl 
Initializing MAPI
    MAPIInitialize           : MAPI_E_SUCCESS (0x0)
    GetDefaultProfile        : MAPI_E_SUCCESS (0x0)
    MapiLogonEx              : MAPI_E_SUCCESS (0x0)
    OpenMsgStore             : MAPI_E_SUCCESS (0x0)
    GetDefaultFolder         : MAPI_E_SUCCESS (0x0)
    OpenFolder               : MAPI_E_SUCCESS (0x0)
    GetFolderItemsCount      : MAPI_E_SUCCESS (0x0)
Mailbox:
         => Unread(1)
         => Total(1)
    GetContentsTable         : MAPI_E_SUCCESS (0x0)
    SetColumns               : MAPI_E_SUCCESS (0x0)
    GetRowCount              : MAPI_E_SUCCESS (0x0)
+-------------------------------------+
message id:
<[EMAIL PROTECTED]>
subject: test
From: Julien K. Kerihuel
To:  Julien
Cc:  
Bcc: 
Attachment: False
Codepage: CP_USASCII
Body:
utf8-content
[EMAIL PROTECTED] trunk]$ 
=================================================================================


On Sun, 2008-01-13 at 17:19 +0100, Julien Kerihuel wrote:
> Hi Mark,
> 
> It sounds like we indeed have a problem. I'm giving it a look right now
> and mail back on the mailing-list once it is fixed.
> 
> On Sat, 2008-01-12 at 15:21 +0000, Mark Ridley wrote:
> > Hi,
> > I have just installed the latest samba4 and openchange. All compiled fine.
> > 
> > I would like to use perl so did
> > configure --prefix=/usr/local/samba --enable-swig-perl=yes
> > 
> > But the make fails with:
> > Creating Perl Bindings ...
> > Make[1]: Entering directory: '/root/openchange/trunk/swig/perl'
> > Swigify mapi.i
> > Compiling mapi_wrap.c
> > {standard input}: Assembler messages:
> > {standard input}: 17868: Warning: end of file not at end of a line; newline
> > inserted
> > gcc: Internal Error: Killed (program cc1)
> > 
> > So this is the first problem.
> > 
> > So trying anything I commented out in swig/perl/mapi.i :
> > %include "swig_mapitags.h"
> > %include "swig_mapicodes.h"
> > 
> > The make and make install then worked
> > But running the example program:
> > 
> > ./fetchmail.pl
> > Gives the error:
> > 
> > TypeError in method 'OpenFolder', argument 2 of type 'uint64_t'
> > 
> > I added the following to try and debug:
> > 
> > print "VALUE: " . int64_value($inbox_id) . " :VALUE\n";
> > 
> > And it showed:
> > VALUE: 11906110039884038145 :VALUE
> > 
> > Is this value too big?
> > 
> > I also checked the type with:
> > print "TYPE: " . $inbox_id . " :TYPE\n";
> > 
> > This showed:
> > TYPE: _p_unsigned_long_long_=SCALAR(0x870b520) :TYPE
> > 
> > What am I doing wrong?
> > 
> > Thanks
> > 
> > Mark
> > 
> > _______________________________________________
> > devel mailing list
> > [email protected]
> > http://mailman.openchange.org/listinfo/devel
> _______________________________________________
> devel mailing list
> [email protected]
> http://mailman.openchange.org/listinfo/devel
-- 
Julien Kerihuel
[EMAIL PROTECTED]
OpenChange Project Manager

GPG Fingerprint: 0B55 783D A781 6329 108A  B609 7EF6 FE11 A35F 1F79

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to