Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#25 compile Mail-Cclient problem

open
nobody
5
2001-11-22
2001-11-22
Anonymous
No

Here is the doc:

[root@slave /root]# wget http://www.cpan.org/
modules/by-module/Mail/Mail-Cclient-0.6.tar.gz
(yak yak yak)
[root@slave /root]# gunzip -c Mail-Cclient-
0.6.tar.gz | tar -xf -

[root@slave /root]# wget ftp.cac.washington.edu:/
mail/imap-4.7b.tar.Z
[root@slave /root]# gunzip -c imap-4.7a.tar.Z | tar -
xf -
[root@slave /root]# cd imap-4.7b
[root@slave imap-4.7b]# make slx
(yak yak yak)
[root@slave imap-4.7b]# cd ../Mail-Cclient-0.6
[root@slave Mail-Cclient-
0.6]# perl Makefile.PL CCLIENT_DIR=../imap-4.7b/
c-client/
(yak yak yak)
[root@slave Mail-Cclient-0.6]# make
(yak yak yak)
[root@slave Mail-Cclient-0.6]# make install
(yak yak yak)

There is no imap-4.7b.tar.Z. there is an imap-
2001a.tar.Z

I can compile and install imapd OK.

> perl -w Makefile.PL CCLIENT_DIR=../imap-
2001a/c-client/
Examining archive file ../imap-2001a/c-client//c-
client.a...
Extracting object files from archive: mail.o, misc.o,
newsrc.o, smanager.o, osdep.o, utf8.o, siglocal.o,
dummy.o, pseudo.o, netmsg.o, flstring.o,
fdstring.o, rfc822.o, nntp.o, smtp.o, imap4r1.o,
pop3.o, unix.o, mbox.o, mbx.o, mmdf.o, tenex.o,
mtx.o, news.o, phile.o, mh.o, mx.o
Extraction was apparently successful
Writing Makefile for Mail::Cclient
kimh@axiom:/opt/home/kimh/src/Mail-Cclient-1.0
> make
cc -c -I../imap-2001a/c-client/ -fno-strict-aliasing -I/
usr/local/include -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64 -O2 -pipe -
DVERSION=\"1.0\" -DXS_VERSION=\"1.0\" -fpic -I/
usr/lib/perl5/5.6.0/i586-linux/CORE Cclient.c
In file included from Cclient.xs:20:
../imap-2001a/c-client/misc.h:44: parse error
before `size_t'
../imap-2001a/c-client/misc.h:44: warning: no
semicolon at end of struct or union
../imap-2001a/c-client/misc.h:46: parse error
before `}'
../imap-2001a/c-client/misc.h:90: parse error
before `size'
make: *** [Cclient.o] Error 1

I get this error if I use Mail-Cclient-0.6 or Mail-
Cclient-1.0 misc.h seems like acceptable C.

Kim

Discussion

  • Logged In: NO

    I can confirm this. I'm on RedHat 7.2. imap-4.7, imap-
    4.7a, and imap-4.7b don't make slx or make lnx.

    imap-2001a does.

    MailCclient-0.6:

    [root@DNS1 Mail-Cclient-0.6]# perl Makefile.PL
    CCLIENT_DIR=../imap-2001a/c-client
    Examining archive file ../imap-2001a/c-client/c-client.a...
    Extracting object files from archive: mail.o, misc.o,
    newsrc.o, smanager.o, osdep.o, utf8.o, siglocal.o, dummy.o,
    pseudo.o, netmsg.o, flstring.o, fdstring.o, rfc822.o,
    nntp.o, smtp.o, imap4r1.o, pop3.o, unix.o, mbox.o, mbx.o,
    mmdf.o, tenex.o, mtx.o, news.o, phile.o, mh.o, mx.o
    Extraction was apparently successful
    Writing Makefile for Mail::Cclient

    [root@DNS1 Mail-Cclient-0.6]# make
    cp Cclient.pm blib/lib/Mail/Cclient.pm
    /usr/local/bin/perl -I/usr/local/lib/perl5/5.6.1/i686-
    linux -
    I/usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/5.6.1/ExtUt
    ils/xsubpp -
    typemap /usr/local/lib/perl5/5.6.1/ExtUtils/typemap -
    typemap typemap Cclient.xs > Cclient.xsc && mv Cclient.xsc
    Cclient.c
    cc -c -I../imap-2001a/c-client -fno-strict-aliasing -
    I/usr/local/include -D_LARGEFILE_SOURCE -
    D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.6\" -
    DXS_VERSION=\"0.6\" -fpic -I/usr/local/lib/perl5/5.6.1/i686-
    linux/CORE Cclient.c
    In file included from Cclient.xs:20:
    ../imap-2001a/c-client/misc.h:44: parse error before
    `size_t'
    ../imap-2001a/c-client/misc.h:44: warning: no semicolon at
    end of struct or union
    ../imap-2001a/c-client/misc.h:46: parse error before `}'
    ../imap-2001a/c-client/misc.h:90: parse error before `size'
    Cclient.xs: In function `str_to_sv':
    Cclient.xs:67: `sv_undef' undeclared (first use in this
    function)
    Cclient.xs:67: (Each undeclared identifier is reported only
    once
    Cclient.xs:67: for each function it appears in.)
    Cclient.xs: In function `make_body':
    Cclient.xs:293: `sv_undef' undeclared (first use in this
    function)
    Cclient.c: In function `XS_Mail__Cclient_open':
    Cclient.c:618: `sv_undef' undeclared (first use in this
    function)
    Cclient.xs:603: `na' undeclared (first use in this function)
    Cclient.c: In function `XS_Mail__Cclient_close':
    Cclient.c:687: `sv_undef' undeclared (first use in this
    function)
    Cclient.xs:650: `na' undeclared (first use in this function)
    Cclient.c: In function `XS_Mail__Cclient_list':
    Cclient.c:738: `sv_undef' undeclared (first use in this
    function)
    Cclien.....

    Hope this helps.

    Charles