cicku / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
1 stars 0 forks source link

Build failure under Mac OS X #183

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. cmake
2. make

What is the expected output? What do you see instead?
Completed build

From Mac OS X 10.8:
/tmp/libproxy-0.4.10/libproxy/modules/config_macosx.cpp:120:10: error: template
      argument for template type parameter must be a type
                vector<url> response;
                       ^~~
/usr/include/c++/4.2.1/bits/stl_vector.h:161:21: note: template parameter is
      declared here
  template<typename _Tp, typename _Alloc = std::allocator<_Tp> >
                    ^
/tmp/libproxy-0.4.10/libproxy/modules/config_macosx.cpp:127:23: error: type
      'const libproxy::url' does not provide a call operator
                        response.push_back(url("wpad://"));
                                           ^~~
/tmp/libproxy-0.4.10/libproxy/modules/config_macosx.cpp:135:23: error: type
      'const libproxy::url' does not provide a call operator
                        response.push_back(url(string("pac+") + tmp));
                                           ^~~
/tmp/libproxy-0.4.10/libproxy/modules/config_macosx.cpp:144:23: error: type
      'const libproxy::url' does not provide a call operator
                        response.push_back(url(tmp));
                                           ^~~
/tmp/libproxy-0.4.10/libproxy/modules/config_macosx.cpp:149:23: error: type
      'const libproxy::url' does not provide a call operator
                        response.push_back(url("direct://"));
                                           ^~~
5 errors generated.
make[2]: *** [libproxy/CMakeFiles/libproxy.dir/modules/config_macosx.cpp.o] 
Error 1
make[1]: *** [libproxy/CMakeFiles/libproxy.dir/all] Error 2
make: *** [all] Error 2

What version of the product are you using? On what operating system?
0.4.10

Failure occurred under Mac 10.6, 10.7 and 10.8

Please provide any additional information below.
I have built version 0.4.7 w/o any problems in the past.

Original issue reported on code.google.com by mschamsc...@gmail.com on 26 Oct 2012 at 5:58

GoogleCodeExporter commented 8 years ago
I can confirm this on 0.4.10, OSX 10.6.8.

Attached is a patch with the modifications I had to make to get it to build.

Original comment by philip.c...@gmail.com on 14 Jan 2013 at 11:35

Attachments:

GoogleCodeExporter commented 8 years ago
confirm patch as working

Original comment by kio...@gmail.com on 31 May 2013 at 7:06

GoogleCodeExporter commented 8 years ago
Tested against 0.4.10 for Mac OS X 10.8.3.

Also works with 0.4.11 for Mac OS X 10.6, 10.7 and 10.8.

Thanks!

Original comment by mschamsc...@gmail.com on 31 May 2013 at 11:50

GoogleCodeExporter commented 8 years ago
Addressed in r879.

Original comment by dominiqu...@gmail.com on 27 Aug 2013 at 6:32