Opened 11 years ago

Closed 11 years ago

#42570 closed defect (fixed)

squid3 build error

Reported by: dmitrybarynov@… Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: squid3

Description

Hi. In building process squid3 on os x snow leopard, I have a mistake. main log

Attachments (1)

main.log (314.8 KB) - added by dmitrybarynov@… 11 years ago.
main log

Download all attachments as: .zip

Change History (7)

Changed 11 years ago by dmitrybarynov@…

Attachment: main.log added

main log

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Keywords: error removed
Owner: changed from macports-tickets@… to jmr@…
Summary: There is a problem in install squid3squid3 build error

In the future, please Cc the port maintainers (port info --maintainers squid3).

Error appears to be:

:info:build libtool: compile:  /usr/bin/clang++ -DHAVE_CONFIG_H -DDEFAULT_STATEDIR=\"/opt/local/var/squid/run/squid\" -I../.. -I../../include -I../../lib -I../../src -I../../include -I/opt/local/include -I/opt/local/include -D_REENTRANT -pipe -Os -arch x86_64 -MT SharedListen.lo -MD -MP -MF .deps/SharedListen.Tpo -c SharedListen.cc -o SharedListen.o
:info:build In file included from StoreMap.cc:6:
:info:build In file included from ../../src/ipc/StoreMap.h:4:
:info:build In file included from ../../src/ipc/ReadWriteLock.h:4:
:info:build ../../src/ipc/AtomicWord.h:45:53: error: cannot initialize a parameter of type 'volatile char *' with an rvalue of type 'Value *' (aka 'int *')
:info:build     Value get() const { return __sync_fetch_and_add(const_cast<Value*>(&value), 0); }
:info:build                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build ../../src/ipc/AtomicWord.h:46:38: note: in instantiation of member function 'Ipc::Atomic::WordT<int>::get' requested here
:info:build     operator Value () const { return get(); }
:info:build                                      ^
:info:build StoreMap.cc:217:12: note: in instantiation of member function 'Ipc::Atomic::WordT<int>::operator int' requested here
:info:build     return shared->count;
:info:build            ^
:info:build 1 error generated.

comment:2 Changed 11 years ago by jmroot (Joshua Root)

What version of Xcode are you using?

comment:3 Changed 11 years ago by dmitrybarynov@…

Xcode: version 4.2 build 4C199

comment:4 Changed 11 years ago by jmroot (Joshua Root)

And what version does clang++ -v say?

comment:5 Changed 11 years ago by dmitrybarynov@…

OK "Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)"

comment:6 Changed 11 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.