Bug 172132 - unable to build chinese/mutt under recent 9.x
unable to build chinese/mutt under recent 9.x
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Rong-En Fan
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-28 08:20 UTC by ktsin
Modified: 2012-09-29 07:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ktsin 2012-09-28 08:20:02 UTC
ports chinese/mutt fails to build when CFLAGS_ADD+=-D_DONT_USE_CTYPE_INLINE_ is defined in Makefile.

something must have changed in the compilers. please investigate and fix.

Making all in contrib
Making all in imap
cc -I/usr/local/include -DHAVE_CONFIG_H -I. -I..  -I.. -I../intl  -I/usr/include -I/usr/local/include/db43 -I/usr/local/include -I../intl  -O2 -pipe -Wl,-rpath,/usr/lib:/usr/local/lib -D_DONT_USE_CTYPE_INLINE_ -fno-strict-aliasing -MT auth.o -MD -MP -MF .deps/auth.Tpo -c -o auth.o auth.c
In file included from ../mutt.h:963,
                 from auth.c:27:
./protos.h:490: error: conflicting types for 'fprintf'
./protos.h:490: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
./protos.h:491: error: conflicting types for 'printf'
./protos.h:491: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
./protos.h:495: error: conflicting types for 'sscanf'
./protos.h:495: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
./protos.h:519: error: conflicting types for 'readlink'
/usr/include/unistd.h:404: error: previous declaration of 'readlink' was here
*** [auth.o] Error code 1

Stop in /tmp/obj/usr/ports/chinese/mutt/work/mutt-1.5.21/imap.
*** [all-recursive] Error code 1

Stop in /tmp/obj/usr/ports/chinese/mutt/work/mutt-1.5.21.
*** [all] Error code 1

Stop in /tmp/obj/usr/ports/chinese/mutt/work/mutt-1.5.21.
*** [do-build] Error code 1

Stop in /usr/ports/chinese/mutt.
*** [/tmp/obj/usr/ports/chinese/mutt/work/.build_done.mutt._usr_local] Error code 1

Stop in /usr/ports/chinese/mutt.

Fix: 

remove CFLAGS_ADD+=-D_DONT_USE_CTYPE_INLINE_ from Makefile before building.
Comment 1 Edwin Groothuis freebsd_committer 2012-09-28 08:20:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rafan

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Rong-En Fan freebsd_committer 2012-09-29 07:35:49 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter freebsd_committer 2012-09-29 07:35:55 UTC
Author: rafan
Date: Sat Sep 29 06:35:42 2012
New Revision: 305029
URL: http://svn.freebsd.org/changeset/ports/305029

Log:
  - Fix build on -CURRENT
  
  PR:		ports/172132
  Submitted by:	KT Sin <ktsin at acm.org>

Modified:
  head/chinese/mutt/Makefile

Modified: head/chinese/mutt/Makefile
==============================================================================
--- head/chinese/mutt/Makefile	Sat Sep 29 06:27:33 2012	(r305028)
+++ head/chinese/mutt/Makefile	Sat Sep 29 06:35:42 2012	(r305029)
@@ -6,7 +6,7 @@
 # $FreeBSD$
 #
 
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	chinese
 
 MASTERDIR=	${.CURDIR}/../../mail/mutt
@@ -23,7 +23,6 @@ CONFLICTS=	ja-mutt-[0-9]* ja-mutt-devel-
 
 LIB_DEPENDS+=	hz.0:${PORTSDIR}/chinese/autoconvert
 
-CFLAGS_ADD+=	-D_DONT_USE_CTYPE_INLINE_
 LDFLAGS_ADD+=	-lhz
 
 WITH_MUTT_LOCALES_FIX=	yes
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"