pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

<cmath> -> <math.h> looping with wip/gr-osmosdr



I wrote :
| Subject: wip/gnuradio*
| Date: Mon, 29 Sep 2014 08:44:36 +0900
  .....
|  (gr-osmosdr-git has another story, it is marked as BROKEN now,
|   I will write this in separate mail.)

wip/gr-osmosdr:
The package is marke as BROKEN now, but
if you change .if 1 line t .if 0 in Makefile, the BROKEN is cleared.

On NetBSD/amd64 6.1_STABLE or 6.1.4,
you may get the error:
+-------------------------------------------
| ===> 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 
|    /PATH/TO/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 
|      /PATH/TO/wip/gr-osmosdr-git/work/.buildlink/include/gnuradio/gr_complex.h:26,
|                  from 
|      /PATH/TO/wip/gr-osmosdr-git/work/.buildlink/include/gnuradio/types.h:31,
|                  from 
|      /PATH/TO/wip/gr-osmosdr-git/work/.buildlink/include/gnuradio/runtime_types.h:27,
|                  from 
|      /PATH/TO/wip/gr-osmosdr-git/work/.buildlink/include/gnuradio/io_signature.h:27,
|                  from 
|      /PATH/TO/wip/gr-osmosdr-git/work/gr-osmosdr/lib/source_impl.cc:30:
| /usr/include/g++/cmath:111:11: error: '::acos' has not been declared
+-------------------------------------------
My understanding is:
gr-osmosdr/lib/source_impl.cc
-> .buildlink/include/gnuradio/io_signature.h
-> .buildlink/include/gnuradio/runtime_types.h
-> .buildlink/include/gnuradio/types.h
-> .buildlink/include/gnuradio/gr_complex.h
-> /usr/include/g++/complex           -> <cmath>
-> /usr/include/g++/cmath             -> <math.h>
-> .buildlink/include/gnuradio/math.h -> <cmath>

in the last file, cmath is referenced and
reaches to 
-> /usr/include/g++/cmath
again.

Say, kind of looping. If the attached modification is applied,
this gr-osmosdr is packaged fine.

What is the right solution ?
Thanks for the attention.

--- /usr/include/g++/cmath.orig	2013-05-13 10:52:52.000000000 +0900
+++ /usr/include/g++/cmath	2014-09-22 16:57:18.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

---
mef%NetBSD.org@localhost
Makoto Fujiwara, 
Chiba, Japan, Narita Airport and Disneyland prefecture.


Home | Main Index | Thread Index | Old Index