Bug 169868

Summary: [patch] devel/icu: unbreak with libc++
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: FreeBSD Office Team <office>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
libcplusplus.diff none

Description Jan Beich freebsd_committer 2012-07-15 04:40:02 UTC
In file included from alphaindex.cpp:35:
In file included from /usr/include/c++/v1/iostream:38:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
In file included from /usr/include/c++/v1/string:433:
/usr/include/c++/v1/cwchar:153:9: error: no member named 'wcstoll' in the global
      namespace
using ::wcstoll;
      ~~^
/usr/include/c++/v1/cwchar:155:9: error: no member named 'wcstoull' in the global
      namespace
using ::wcstoull;
      ~~^
In file included from alphaindex.cpp:35:
In file included from /usr/include/c++/v1/iostream:38:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
In file included from /usr/include/c++/v1/string:434:
In file included from /usr/include/c++/v1/algorithm:596:
/usr/include/c++/v1/cstdlib:96:9: error: no member named 'lldiv_t' in the global
      namespace
using ::lldiv_t;
      ~~^
/usr/include/c++/v1/cstdlib:100:9: error: no member named 'atoll' in the global
      namespace
using ::atoll;
      ~~^
/usr/include/c++/v1/cstdlib:105:9: error: no member named 'strtoll' in the global
      namespace
using ::strtoll;
      ~~^
/usr/include/c++/v1/cstdlib:107:9: error: no member named 'strtoull' in the global
      namespace
using ::strtoull;
      ~~^
/usr/include/c++/v1/cstdlib:124:9: error: no member named 'llabs' in the global
      namespace
using ::llabs;
      ~~^
/usr/include/c++/v1/cstdlib:127:9: error: no member named 'lldiv' in the global
      namespace
using ::lldiv;
      ~~^
/usr/include/c++/v1/cstdlib:141:71: error: use of undeclared identifier 'llabs'; did
      you mean 'labs'?
inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) {return llabs(__x);}
                                                                      ^
/usr/include/stdlib.h:95:7: note: 'labs' declared here
long     labs(long) __pure2;
         ^
In file included from alphaindex.cpp:35:
In file included from /usr/include/c++/v1/iostream:38:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
In file included from /usr/include/c++/v1/string:434:
In file included from /usr/include/c++/v1/algorithm:596:
/usr/include/c++/v1/cstdlib:144:34: error: unknown type name 'lldiv_t'; did you mean
      'ldiv_t'?
inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x, long long __y)...
                                 ^
/usr/include/stdlib.h:67:3: note: 'ldiv_t' declared here
} ldiv_t;
  ^
In file included from alphaindex.cpp:35:
In file included from /usr/include/c++/v1/iostream:38:
In file included from /usr/include/c++/v1/ios:216:
In file included from /usr/include/c++/v1/__locale:15:
In file included from /usr/include/c++/v1/string:434:
In file included from /usr/include/c++/v1/algorithm:596:
/usr/include/c++/v1/cstdlib:144:84: error: use of undeclared identifier 'lldiv'; did
      you mean 'ldiv'?
  ...lldiv_t div(long long __x, long long __y) {return lldiv(__x, __y);}
                                                       ^
/usr/include/stdlib.h:96:9: note: 'ldiv' declared here
ldiv_t   ldiv(long, long) __pure2;
         ^
11 errors generated.
Comment 1 Edwin Groothuis freebsd_committer 2012-07-15 04:40:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->office

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Baptiste Daroussin freebsd_committer 2012-08-20 16:30:05 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer 2012-08-20 16:30:25 UTC
Author: bapt
Date: Mon Aug 20 15:29:53 2012
New Revision: 302804
URL: http://svn.freebsd.org/changeset/ports/302804

Log:
  - fix build with libc++
  
  PR:		ports/169868
  Submitted by:	Jan Beich <jbeich@tormail.org>

Modified:
  head/devel/icu/Makefile

Modified: head/devel/icu/Makefile
==============================================================================
--- head/devel/icu/Makefile	Mon Aug 20 15:24:13 2012	(r302803)
+++ head/devel/icu/Makefile	Mon Aug 20 15:29:53 2012	(r302804)
@@ -72,6 +72,8 @@ CONFIGURE_ARGS+=	--enable-weak-threads
 .endif
 
 post-patch:
+	@${REINPLACE_CMD} -e '/CXXFLAGS=/s/-ansi//' \
+		${WRKSRC}/configure
 .if defined(WITHOUT_THREADS)
 	@${REINPLACE_CMD} -e 's,\(THREADSC.*FLAGS\).*,\1=${PTHREAD_CFLAGS},g' ${WRKSRC}/config/mh-bsd-gcc
 .endif
_______________________________________________
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"