Opened 19 years ago

Closed 19 years ago

Last modified 8 years ago

#3919 closed defect (fixed)

BUG: cclient-2004e_0

Reported by: peter@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: pguyot (Paul Guyot)
Port: cclient

Description (last modified by ryandesign (Ryan Carsten Schmidt))

cclient-2004e_0 fails to build:

Once-only environment setup...
echo cc > CCTYPE
echo -g -O -Wno-pointer-sign '-fno-common' > CFLAGS
echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \
 -DMAILSPOOL=\"/var/mail\" \
 -DANONYMOUSHOME=\"/var/mail/anonymous\" \
 -DACTIVEFILE=\"/usr/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \
 -DRSHPATH=\"/usr/ucb/rsh\" -DLOCKPGM=\"/etc/mlock\" > OSCFLAGS
echo   > LDFLAGS
echo "ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.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 mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o;ranlib c-client.a" > ARCHIVE
echo osx > OSTYPE
./drivers mbox imap nntp pop3 mh mx mbx tenex mtx mmdf unix news phile dummy
./mkauths gss md5 pla log
echo -I/usr/local/include -DGSS_C_NT_HOSTBASED_SERVICE=gss_nt_service_name >> OSCFLAGS
sh -c '(test -f /usr/local/lib/libk5crypto.a) && echo -L/usr/local/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err || echo -L/usr/local/lib -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err' >> LDFLAGS
echo "#include \"kerb_mit.c\"" >> auths.c
echo -DMD5ENABLE=\"/etc/cram-md5.pwd\" >> OSCFLAGS
ln -s os_osx.h osdep.h
ln -s os_osx.c osdepbas.c
ln -s log_std.c osdeplog.c
ln -s sig_bsd.c siglocal.c
ln -s crx_nfs.c crexcl.c
ln -s ip6_unix.c ip_unix.c
ln: ip_unix.c: File exists
make[3]: *** [onceenv] Error 1

With these changes to the cclient Portfile I can build cclient 2004e. Also checked with building php. Hope this helps.

--- Portfile	Fri Jul  8 10:46:59 2005
+++ Portfile.new	Sat Jul  9 10:32:33 2005
@@ -4,6 +4,7 @@
 
 name			cclient
 version			2004e
+revision		1
 categories		mail
 maintainers		pguyot@kallisys.net
 description		UW IMAP c-client library
@@ -27,8 +28,8 @@
 
 post-patch {
 	cd ${worksrcpath}
-	reinplace "s|/usr/include/openssl|${prefix}/include/openssl|g" Makefile
-	reinplace "s|/usr/lib|${prefix}/lib|g" Makefile
+	reinplace "s|/System/Library/OpenSSL SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib|${prefix}/etc/openssl SSLINCLUDE=${prefix}/include SSLLIB=${prefix}/lib|g" Makefile
+	reinplace "s| -Wno-pointer-sign||g" src/osdep/unix/Makefile
 }
 build.target	osx EXTRACFLAGS=-fno-common
 
@@ -43,7 +44,7 @@
 		c-client.h dummy.h env.h fdstring.h flockcyg.h flocksim.h env_unix.h \
 		flstring.h fs.h ftl.h imap4r1.h linkage.h mail.h mbx.h mh.h \
 		misc.h mx.h netmsg.h newsrc.h nl.h nntp.h osdep.h \
-		pseudo.h rfc822.h smtp.h sslio.h tcp_unix.h unix.h utf8.h \
+		pseudo.h rfc822.h smtp.h sslio.h tcp.h tcp_unix.h unix.h utf8.h \
 		${destroot}${prefix}/include/c-client
 	xinstall -m 644 ${worksrcpath}/c-client/c-client.a \
 		${destroot}${prefix}/lib/libc-client4.a

Change History (2)

comment:1 Changed 19 years ago by pguyot (Paul Guyot)

Resolution: fixed
Status: newclosed

Committed. Thanks Peter.

comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: cclient added
Note: See TracTickets for help on using tickets.