#37102 closed defect (fixed)
squid3 +ipfw_transparent on 10.6.8 / XCode 4.2: error: redeclaration of C++ built-in type 'bool'
Reported by: | thomasbjoh@… | Owned by: | jmroot (Joshua Root) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | ||
Port: | squid3 |
Description
Hi,
everytime i try to install squid3 i got this error:
bomini:~ bomas$ sudo port install squid3 +ipfw_transparent ---> Computing dependencies for squid3 ---> Fetching archive for squid3 ---> Attempting to fetch squid3-3.2.3_0+ipfw_transparent+openssl.darwin_10.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/squid3 ---> Attempting to fetch squid3-3.2.3_0+ipfw_transparent+openssl.darwin_10.x86_64.tbz2 from http://lil.fr.packages.macports.org/squid3 ---> Attempting to fetch squid3-3.2.3_0+ipfw_transparent+openssl.darwin_10.x86_64.tbz2 from http://packages.macports.org/squid3 ---> Fetching distfiles for squid3 ---> Verifying checksum(s) for squid3 ---> Extracting squid3 ---> Applying patches to squid3 ---> Configuring squid3 ---> Building squid3 Error: org.macports.build for port squid3 returned: command execution failed Please see the log file for port squid3 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_squid3/squid3/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port squid3 failed
so i looked up the main.log and found this error:
:info:archivefetch ---> squid3-3.2.3_0+ipfw_transparent+openssl.darwin_10.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified :msg:archivefetch ---> Attempting to fetch squid3-3.2.3_0+ipfw_transparent+openssl.darwin_10.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/squid3 :debug:archivefetch Fetching archive failed:: The requested URL returned error: 404 :msg:archivefetch ---> Attempting to fetch squid3-3.2.3_0+ipfw_transparent+openssl.darwin_10.x86_64.tbz2 from http://lil.fr.packages.macports.org/squid3 :debug:archivefetch Fetching archive failed:: The requested URL returned error: 404 :msg:archivefetch ---> Attempting to fetch squid3-3.2.3_0+ipfw_transparent+openssl.darwin_10.x86_64.tbz2 from http://packages.macports.org/squid3 :debug:archivefetch Fetching archive failed:: The requested URL returned error: 404
so /opt/local/var/macports/incoming/verified is empty, but in /opt/local/var/macports/distfiles/squid3 is a file called "squid-3.2.3.tar.bz2"
can anybody help? thank you, regard Thomas
Attachments (2)
Change History (13)
Changed 12 years ago by thomasbjoh@…
comment:1 Changed 12 years ago by thomasbjoh@…
comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to jmr@… |
---|---|
Port: | squid3 added |
Summary: | squid3 +ipfw_transparent on 10.6.8/ MP2.1.2/ XCode 4.2 → squid3 +ipfw_transparent on 10.6.8 / XCode 4.2: error: redeclaration of C++ built-in type 'bool' |
For whatever reason, there are no pre-built binary packages for squid3 on our packages server (hence the 404 errors when trying to download them). Therefore MacPorts downloads and uses the source distfile and tries to build it on your system. This is normal.
Looking further in the log, we see this error while trying to build:
:info:build In file included from nis_support.cc:18: :info:build /usr/include/rpcsvc/yp_prot.h:94:22: error: redeclaration of C++ built-in type 'bool' :info:build typedef unsigned int bool; :info:build ^ :info:build /usr/bin/../lib/clang/3.0/include/stdbool.h:37:15: note: instantiated from: :info:build #define bool bool :info:build ^ :info:build 1 error generated.
comment:3 follow-up: 4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
A similar problem appears to have been identified and fixed for FreeBSD:
http://www.squid-cache.org/mail-archive/squid-dev/201108/0152.html
comment:4 Changed 12 years ago by thomasbjoh@…
Replying to 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@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?
comment:5 Changed 12 years ago by jmroot (Joshua Root)
Yes, the patch was applied shortly after that mail message. Checking if it's building on FreeBSD doesn't have any affect for us on Darwin.
comment:6 Changed 12 years ago by jmroot (Joshua Root)
Can't reproduce with Xcode 3.2.6. I don't have 4.2 for Snow Leopard.
comment:7 follow-up: 8 Changed 12 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Shouldn't hurt to add the define for darwin 10. r99979
comment:8 Changed 12 years ago by thomasbjoh@…
comment:10 Changed 12 years ago by thomasbjoh@…
after selfupdate and update outdated now I get another error... I will upload the new main.log... the first google and ticket searches end up without helping results... should I open a new ticket again? it's frustrating...
:info:build ../../src/ipc/AtomicWord.h:47:53: error: cannot initialize a parameter of type 'volatile char *' with an rvalue of type 'Value *' (aka 'int *')
Changed 12 years ago by thomasbjoh@…
Attachment: | main_new.log added |
---|
comment:11 Changed 12 years ago by thomasbjoh@…
it's done.
I removed MacPorts like it is described in the guide.
I removed xcode ( http://pushkararora.com/how-to/how-to-uninstall-xcode-completely/ )
I installed xcode 3.2.6 (restarted the machine like suggest)
I installed MacPorts
I installed squid3 +ipfw_transparent
NOW it worked.
thank you for your help!
i was uninstalling squid to install squid3