hns - 日記自動生成システム - Version 2.19.9

先月 2014年09月 来月
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2014年09月17日(水) 旧暦 [n年日記] [更新:"2014/09/19 15:25:11"]

#1 [pkgsrc] wip/gr-osmoSDR

===> Building for gr-osmosdr-0.1.4nb20140917
Scanning dependencies of target gnuradio-osmosdr
[  3%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/source_impl.cc.o
In file included from 
   /export/WRKOBJDIR/wip/gr-osmosdr-git/work/.buildlink/include/gnuradio/math.h:30:0,
                 from /usr/include/g++/cmath:46,
                 from /usr/include/g++/complex:46,
                 from 
     /export/WRKOBJDIR/wip/gr-osmosdr-git/work/.buildlink/include/gnuradio/gr_complex.h:26,
                 from 
     /export/WRKOBJDIR/wip/gr-osmosdr-git/work/.buildlink/include/gnuradio/types.h:31,
                 from 
     /export/WRKOBJDIR/wip/gr-osmosdr-git/work/.buildlink/include/gnuradio/runtime_types.h:27,
                 from 
     /export/WRKOBJDIR/wip/gr-osmosdr-git/work/.buildlink/include/gnuradio/io_signature.h:27,
                 from 
     /export/WRKOBJDIR/wip/gr-osmosdr-git/work/gr-osmosdr/lib/source_impl.cc:30:
/usr/include/g++/cmath:111:11: error: '::acos' has not been declared
gr-osmosdr/lib/source_impl.cc
     26 #ifdef HAVE_CONFIG_H
     27 #include "config.h"
     28 #endif
     29
     30 #include <gnuradio/io_signature.h>
     31 #include <gnuradio/blocks/null_source.h>
     32 #include <gnuradio/blocks/throttle.h>
     33 #include <gnuradio/constants.h>
     34
.buildlink/include/gnuradio/io_signature.h
     23 #ifndef INCLUDED_IO_SIGNATURE_H
     24 #define INCLUDED_IO_SIGNATURE_H
     25
     26 #include <gnuradio/api.h>
     27 #include <gnuradio/runtime_types.h>
     28
     29 namespace gr {
.buildlink/include/gnuradio/runtime_types.h
     23 #ifndef INCLUDED_GR_RUNTIME_TYPES_H
     24 #define INCLUDED_GR_RUNTIME_TYPES_H
     25
     26 #include <gnuradio/api.h>
     27 #include <gnuradio/types.h>
     28
     29 namespace gr {
.buildlink/include/gnuradio/types.h
     23 #ifndef INCLUDED_GR_TYPES_H
     24 #define INCLUDED_GR_TYPES_H
     25
     26 #include <gnuradio/api.h>
     27 #include <boost/shared_ptr.hpp>
     28 #include <vector>
     29 #include <stddef.h>                             // size_t
     30
     31 #include <gnuradio/gr_complex.h>
.buildlink/include/gnuradio/gr_complex.h
     23 #ifndef INCLUDED_GR_COMPLEX_H
     24 #define INCLUDED_GR_COMPLEX_H
     25
     26 #include <complex>
     27 typedef std::complex<float>                     gr_complex;
     28 typedef std::complex<double>                    gr_complexd;
     29
/usr/include/g++/complex
     38 #ifndef _GLIBCXX_COMPLEX
     39 #define _GLIBCXX_COMPLEX 1
     40
     41 #pragma GCC system_header
     42
     43 #include <bits/c++config.h>
     44 #include <bits/cpp_type_traits.h>
     45 #include <ext/type_traits.h>
     46 #include <cmath>
     47 #include <sstream>
     48
     49 _GLIBCXX_BEGIN_NAMESPACE(std)
/usr/include/g++/cmath
     37 //
     38 // ISO C++ 14882: 26.5  C library
     39 //
     40
     41 #pragma GCC system_header
     42
     43 #include <bits/c++config.h>
     44 #include <bits/cpp_type_traits.h>
     45 #include <ext/type_traits.h>
     46 #include <math.h>
     47
.buildlink/include/gnuradio/math.h
     23 /*
     24  * mathematical odds and ends.
     25  */
     26
     27 #ifndef _GR_MATH_H_
     28 #define _GR_MATH_H_
     29
     30 #include <cmath>
     31 #include <gnuradio/api.h>
     32 #include <gnuradio/gr_complex.h>
     33
     34 namespace gr {
     35
(looping, circular dependency ?)
To avoid looping, to go cmath: say
/usr/include/g++/cmath -> .buildlink/include/gnuradio/math.h -> cmath
Apply following change:
--- /usr/include/g++/cmath.orig 2014-08-09 01:58:29.000000000 +0900
+++ /usr/include/g++/cmath      2014-09-18 11:32:44.000000000 +0900
@@ -43,7 +43,7 @@
 #include <bits/c++config.h>
 #include <bits/cpp_type_traits.h>
 #include <ext/type_traits.h>
-#include <math.h>
+#include "/usr/include/math.h"
 
 #ifndef _GLIBCXX_CMATH
 #define _GLIBCXX_CMATH 1
Now gr-osmosdr-git is packaged fine.



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)