Skip Menu |

This queue is for tickets about the Google-ProtocolBuffers-Dynamic CPAN distribution.

Report information
The Basics
Id: 113199
Status: resolved
Priority: 0/
Queue: Google-ProtocolBuffers-Dynamic

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.03
Fixed in: 0.04



Subject: Compilation failure with clang (freebsd 10.1)
Google-ProtocolBuffers-Dynamic-0.03 does not compile on freebsd 10.1 systems with its standard compiler clang 3.3. The failures are related to the use of the std::tr1 namespace: ... cc -I/usr/perl5.23.8p/lib/5.23.8/amd64-freebsd/CORE -DPIC -fPIC -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -xc++ -I/home/cpansand/.cpan/build/2016032012/Alien-uPB-0.04-2OVNSm/blib/lib/auto/share/dist/Alien-uPB/include -I/usr/local/include -D_THREAD_SAFE -pthread -DPERL_NO_GET_CONTEXT -Isrc -Ibuildtmp -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -o src/dynamic.o src/dynamic.cpp In file included from src/dynamic.cpp:1: In file included from src/dynamic.h:10: src/sourcetree.h:32:10: error: no member named 'tr1' in namespace 'std' std::tr1::unordered_map<std::string, std::string> sources; ~~~~~^ src/sourcetree.h:32:28: error: expected member name or ';' after declaration specifiers std::tr1::unordered_map<std::string, std::string> sources; ~~~~~~~~~~~~~~~~~~~~~~~^ ...
On 2016-03-20 09:43:59, SREZIC wrote: Show quoted text
> Google-ProtocolBuffers-Dynamic-0.03 does not compile on freebsd 10.1 > systems with its standard compiler clang 3.3. The failures are related > to the use of the std::tr1 namespace: > > ... > cc -I/usr/perl5.23.8p/lib/5.23.8/amd64-freebsd/CORE -DPIC -fPIC > -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe > -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -xc++ > -I/home/cpansand/.cpan/build/2016032012/Alien-uPB-0.04- > 2OVNSm/blib/lib/auto/share/dist/Alien-uPB/include -I/usr/local/include > -D_THREAD_SAFE -pthread -DPERL_NO_GET_CONTEXT -Isrc -Ibuildtmp -c > -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe > -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe > -o src/dynamic.o src/dynamic.cpp > In file included from src/dynamic.cpp:1: > In file included from src/dynamic.h:10: > src/sourcetree.h:32:10: error: no member named 'tr1' in namespace > 'std' > std::tr1::unordered_map<std::string, std::string> sources; > ~~~~~^ > src/sourcetree.h:32:28: error: expected member name or ';' after > declaration specifiers > std::tr1::unordered_map<std::string, std::string> sources; > ~~~~~~~~~~~~~~~~~~~~~~~^ > ...
I use the following patch to fix this problem on my freebsd 10.1 system: http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Google-ProtocolBuffers-Dynamic-0.03-RT113199.patch Compilation & tests work fine with this patch. However I did not check if this would work on gcc based systems.
On Sun Mar 20 09:49:38 2016, SREZIC wrote: Show quoted text
> On 2016-03-20 09:43:59, SREZIC wrote:
> > Google-ProtocolBuffers-Dynamic-0.03 does not compile on freebsd 10.1 > > systems with its standard compiler clang 3.3. The failures are > > related > > to the use of the std::tr1 namespace: > > > > ... > > cc -I/usr/perl5.23.8p/lib/5.23.8/amd64-freebsd/CORE -DPIC -fPIC > > -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe > > -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -xc++ > > -I/home/cpansand/.cpan/build/2016032012/Alien-uPB-0.04- > > 2OVNSm/blib/lib/auto/share/dist/Alien-uPB/include > > -I/usr/local/include > > -D_THREAD_SAFE -pthread -DPERL_NO_GET_CONTEXT -Isrc -Ibuildtmp -c > > -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe > > -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe > > -o src/dynamic.o src/dynamic.cpp > > In file included from src/dynamic.cpp:1: > > In file included from src/dynamic.h:10: > > src/sourcetree.h:32:10: error: no member named 'tr1' in namespace > > 'std' > > std::tr1::unordered_map<std::string, std::string> sources; > > ~~~~~^ > > src/sourcetree.h:32:28: error: expected member name or ';' after > > declaration specifiers > > std::tr1::unordered_map<std::string, std::string> sources; > > ~~~~~~~~~~~~~~~~~~~~~~~^ > > ...
> > I use the following patch to fix this problem on my freebsd 10.1 > system: > http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Google- > ProtocolBuffers-Dynamic-0.03-RT113199.patch > Compilation & tests work fine with this patch. However I did not check > if this would work on gcc based systems.
I pushed a (blind) fix that should be equivalent to the attached patch.
On 2016-03-25 10:37:35, MBARBON wrote: Show quoted text
> On Sun Mar 20 09:49:38 2016, SREZIC wrote:
> > On 2016-03-20 09:43:59, SREZIC wrote:
> > > Google-ProtocolBuffers-Dynamic-0.03 does not compile on freebsd 10.1 > > > systems with its standard compiler clang 3.3. The failures are > > > related > > > to the use of the std::tr1 namespace: > > > > > > ... > > > cc -I/usr/perl5.23.8p/lib/5.23.8/amd64-freebsd/CORE -DPIC -fPIC > > > -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe > > > -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -xc++ > > > -I/home/cpansand/.cpan/build/2016032012/Alien-uPB-0.04- > > > 2OVNSm/blib/lib/auto/share/dist/Alien-uPB/include > > > -I/usr/local/include > > > -D_THREAD_SAFE -pthread -DPERL_NO_GET_CONTEXT -Isrc -Ibuildtmp -c > > > -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe > > > -fstack-protector -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe > > > -o src/dynamic.o src/dynamic.cpp > > > In file included from src/dynamic.cpp:1: > > > In file included from src/dynamic.h:10: > > > src/sourcetree.h:32:10: error: no member named 'tr1' in namespace > > > 'std' > > > std::tr1::unordered_map<std::string, std::string> sources; > > > ~~~~~^ > > > src/sourcetree.h:32:28: error: expected member name or ';' after > > > declaration specifiers > > > std::tr1::unordered_map<std::string, std::string> sources; > > > ~~~~~~~~~~~~~~~~~~~~~~~^ > > > ...
> > > > I use the following patch to fix this problem on my freebsd 10.1 > > system: > > http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Google- > > ProtocolBuffers-Dynamic-0.03-RT113199.patch > > Compilation & tests work fine with this patch. However I did not check > > if this would work on gcc based systems.
> > I pushed a (blind) fix that should be equivalent to the attached patch.
0.04 compiles and tests fine on freebsd 10.1.