[MacPorts] #37102: squid3 +ipfw_transparent on 10.6.8 / XCode 4.2: error: redeclaration of C++ built-in type 'bool'

MacPorts noreply at macports.org
Thu Nov 22 17:32:15 PST 2012


#37102: squid3 +ipfw_transparent on 10.6.8 / XCode 4.2: error: redeclaration of C++
built-in type 'bool'
---------------------------+-------------------
  Reporter:  thomasbjoh@…  |      Owner:  jmr@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.1.2
Resolution:                |   Keywords:
      Port:  squid3        |
---------------------------+-------------------

Comment (by thomasbjoh@…):

 Replying to [comment:3 ryandesign@…]:
 > A similar problem appears to have been identified and fixed for FreeBSD:
 >
 > http://www.squid-cache.org/mail-archive/squid-dev/201108/0152.html

 The first lines of
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_squid3/squid3/work/squid-3.2.3/helpers/basic_auth/NIS/nis_support.cc
 are already:

 {{{
 /*
  * Written By Rabellino Sergio (rabellino at di.unito.it) For Solaris 2.x
  */
 #include "squid.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include <syslog.h>
 #include <sys/types.h>
 #include <rpc/rpc.h>

 #if _SQUID_FREEBSD_  && !defined(BOOL_DEFINED)
 // BUG: FreeBSD rpcsvc/yp_* headers try to redefine bool unless we match
 their non-standard hack.
 #define BOOL_DEFINED
 #endif

 #include <rpcsvc/ypclnt.h>
 #include <rpcsvc/yp_prot.h>

 #include "nis_support.h"
 }}}

 maybe it's stupid, but i don't have to add the + in front of this lines,
 do I?

-- 
Ticket URL: <https://trac.macports.org/ticket/37102#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list