Skip Menu |

This queue is for tickets about the Mail-Cclient CPAN distribution.

Report information
The Basics
Id: 1282
Status: new
Priority: 0/
Queue: Mail-Cclient

People
Owner: Nobody in particular
Requestors: radu [...] netsoft.ro
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.6
Fixed in: (no value)



Subject: --with-cclient-includes does not work correctly
On a standard RedHat 7.3 system can not be built: $ perl Makefile.PL --cclient_dir=/usr/lib --with-cclient-includes=/usr/include/pam --with-pam --with-ssl --with-kerberos=/usr/kerberos/lib $ make cp Cclient.pm blib/lib/Mail/Cclient.pm cp Cclient.pod blib/lib/Mail/Cclient.pod gcc -c -I/usr/lib -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686 -DVERSION=\"1.6\" -DXS_VERSION=\"1.6\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE criteria.c criteria.c:16:18: mail.h: No such file or directory criteria.c:17:18: misc.h: No such file or directory make: *** [criteria.o] Error 1 Makefile.PL did not propagate /usr/include/map to the INC parameter. The attachet patch tries to fix it.
--- Mail-Cclient-1.6/Makefile.PL.orig Wed Oct 31 15:06:43 2001 +++ Mail-Cclient-1.6/Makefile.PL Mon Jul 15 18:13:47 2002 @@ -4,6 +4,7 @@ my ($CCLIENTLIBS, $CCLIENT_DIR, $PAM_DIR, $SSL_DIR, $KRB_DIR, $IMAP_DIR); my @objects = (); +my @includes = (); my $opt = {}; Getopt::Long::GetOptions($opt, @@ -38,7 +39,6 @@ if($CCLIENTLIBS) { print "configure with shared c-client:$CCLIENTLIBS\n"; $LIBS .= $CCLIENTLIBS; - $CCLIENT_DIR = $IMAP_DIR if($IMAP_DIR); } if(defined($PAM_DIR)) { my $tmp = " -L$PAM_DIR" if($PAM_DIR); @@ -92,10 +92,12 @@ } unshift(@objects, "criteria.o", "Cclient.o"); +push(@includes, INC => "-I$IMAP_DIR") if defined($IMAP_DIR); + WriteMakefile( NAME => "Mail::Cclient", VERSION_FROM => "Cclient.pm", - INC => "-I$CCLIENT_DIR", + @includes, LIBS => ["$LIBS"], OBJECT => "@objects" );