|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
|||||||||||||||||||||||||||||||||||||||||||||
2014年09月30日(火) 旧暦 [n年日記] [更新:"2014/09/30 16:39:20"]#1 [pkgsrc] pbulk が作れない ? -> /dev/null is file, not device/bin/sh ./mkinstalldirs /usr/pkgsrc/pkgtools/digest/work/.destdir/usr/pkg_bulk/man/man1 mkdir /usr/pkgsrc/pkgtools/digest/work/.destdir/usr/pkg_bulk/man mkdir /usr/pkgsrc/pkgtools/digest/work/.destdir/usr/pkg_bulk/man/man1 /usr/bin/install -c -o root -g wheel -m 644 digest.1 /usr/pkgsrc/pkgtools/digest/work/.destdir/usr/pkg_bulk/man/man1/digest.1 => Automatic manual page handling pkg_create: can't stat `/usr/pkgsrc/pkgtools/digest/work/.destdir/usr/pkg_bulk/diff: config.h: No such file or directory' => Creating binary package /usr/pkgsrc/pkgtools/digest/work/.packages/digest-20121220.tgz pkg_create: can't stat `/usr/pkgsrc/pkgtools/digest/work/.destdir/usr/pkg_bulk/diff: config.h: No such file or directory' pkg_create: lstat failed for file diff: config.h: No such file or directory: No such file or directory *** Error code 2 Stop. bmake: stopped in /usr/pkgsrc/pkgtools/digest *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/pkgtools/digest *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/net/rsync *** Error code 1 Stop. bmake: stopped in /usr/pkgsrc/pkgtools/pbulkexport LANG=C かな。 /dev/null が単なるファイルだった所為らしい。 ( つっこみ )
2014年09月27日(土) 旧暦 [n年日記] [更新:"2014/09/27 11:51:02"]#1 [pkgsrc] Unresolved dependencies (pbulk)
wip/py-qwt-qt4 を pbulk で (limited_list) に一つだけ書いておいて、
bulkbuild すると、
Resolving... Unresolvable dependencies found, exiting: math/py-numarray math/py-Numeric math/py-numarray math/py-Numeric math/py-numarray math/py-Numeric math/py-numarray math/py-Numeric sh env-bulkbuild 15.94s user 6.64s system 80% cpu 27.906 total z87@root 07:40:06/140927(/)のようになってしまう。 math/py-numarray/buildlink3.mk の中の BUILDLINK_API_DEPENDS.pynumarray+= ${PYPKGPREFIX}-numarray>=1.1.1 BUILDLINK_ABI_DEPENDS.pynumarray+= ${PYPKGPREFIX}-numarray>=1.3.3nb1の ${PYPKGPREIFX} のところに py27 と代入しておくと、その問題は起きなのいで、 その辺の問題だということには気が付く。 他に math/py-numarray/buildlink3.mk を呼んでいる(参照している) package はどうなっているのかな、と思って、grep すれば、良いのかな、とも思うが、 他のこともあるので namazu を使って見た。 @ mknmz の準備:cd /export/CHROOT/usr/pkgsrc mknmz -O /export/namazu-pkgsrc -a .のようにして索引を作るが、実はこの中に .git の大きな directory があるので、これを避けるようにする。 以前に使っているものを写して変更 しただけなので、余分なものも入っているが、~/.mknmzrc-pkgsrc として、次のようなものを用意する。 # -*- Perl -*- package conf; print "Reading /home/makoto/.mknmzrc-pkgsrc\n"; $DENY_FILE = '.*\.gif|.*\.(jpg|jpeg)|.*\.tar\.gz|core|.*\.bak|.*~|\..*|\x23.*|NMZ\..*'; $DENY_FILE .= '|index.html|threads.html'; $EXCLUDE_PATH .= 'trash|not-found'; $EXCLUDE_PATH .= '|.git'; $EXCLUDE_PATH .= '|distfiles'; $EXCLUDE_PATH .= '|work'; $HTML_SUFFIX = 'html?|[ps]html|html\.[a-z]{2}|asp|cgi'; $HTML_SUFFIX .= '|shtml'; ## $DEFAULT_FILE = "index.shtml"; $DIRECTORY_INDEX = "index.shtml"; # The max size of files which can be loaded in memory at once. # If you have much memory, you can increase the value. # If you have less memory, you can decrease the value. # # $ON_MEMORY_MAX = 5000000; # 5M -- 64M Memory # $ON_MEMORY_MAX = 30000000; # 30M -- 320M $ON_MEMORY_MAX = 20000000; # 20M -- 192M $ON_MEMORY_MAX = 40000000; # 40M -- 500M 1;ちなみに、僕は、いつも (/etc/mk.conf に) WRKOBJDIR=/export/WRKOBJDIRのように書いて、work 以下は別のところを使っているので、 それは、本来は避けなくても良いが、上には、それも書いてある。 @ mknmz の実行:.. 173917/173918 - /export/CHROOT/usr/pkgsrc/x11/zenity/patches/CVS/Root [text/plain] 173918/173918 - /export/CHROOT/usr/pkgsrc/x11/zenity/patches/patch-src_notification.c [text/plain] Writing index files... [Base] Date: Sat Sep 27 07:11:30 2014 Added Documents: 173,918 Size (bytes): 225,303,647 Total Documents: 173,918 Added Keywords: 4,950,658 Total Keywords: 4,950,658 Wakati: module_kakasi -ieuc -oeuc -w Time (sec): 738 File/Sec: 235.66 System: netbsd Perl: 5.020000 Namazu: 2.0.21 523.82s 46.74s 12:18.69 77% 0+0k 154+1016io 6pf+0w z87@makoto 07:11:30/140927(..usr/pkgsrc)% @ namazu の実行:z87@makoto 10:20:58/140927(~)% env LANG=C namazu -l py-numarray /export/namazu-pkgsrc/ /export/CHROOT/usr/pkgsrc/wip/py-gsl/Makefile /export/CHROOT/usr/pkgsrc/math/Makefile /export/CHROOT/usr/pkgsrc/wip/py-scitools/Makefile /export/CHROOT/usr/pkgsrc/wip/py-se/Makefile /export/CHROOT/usr/pkgsrc/wip/py-fdm/Makefile /export/CHROOT/usr/pkgsrc/wip/py-asciidata/Makefile /export/CHROOT/usr/pkgsrc/graphics/scigraphica/Makefile /export/CHROOT/usr/pkgsrc/graphics/libscigraphica/Makefile /export/CHROOT/usr/pkgsrc/doc/CHANGES-2004 /export/CHROOT/usr/pkgsrc/graphics/libscigraphica/patches/patch-aa z87@makoto 10:21:08/140927(~)%この中の /export/CHROOT/usr/pkgsrc/graphics/libscigraphica/Makefile と、py-qwt-qt4 を良く見較べていたら、次の行を加えれば、(一応)解決する と分った。 # Following line rescues from 'Unresolved dependency with pbulk' PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # py-Numeric ( つっこみ )
2014年09月21日(日) 旧暦 [n年日記] [更新:"2014/09/21 17:32:59"]#1 [MacOSX][pkgsrc] bootstrap pkgsrc on MacOS X 10.7.5
2014/09/08
に bootstrap がうまく行かない、と書いた。
単純な C はどうかと調べて見た
Mac OS X 10.7.5 に Xcode を入れて C のプログラム #include "stdio.h" int adding (int x, int y) { int z; z = x + y; return z; } int main () { int a, b, c; a = 1024; b = 16384; c = adding(a, b); printf("%d\n", c); if ( c == 17408 ) return 0; else return -1; } d187@makoto 15:00:43/140921(~/c)%をコンパイルする。Makefile も用意しておく function: clean: rm -f function
もう少し良い(短い)指定方法があるかとは思うが.. ( つっこみ )
2014年09月18日(木) 旧暦 [n年日記] [更新:"2014/09/30 21:42:49"]#1 [SDR][pkgsrc] rtl-sdr and GNU Radio
最近は SDR で遊ぼうとしていて、NetBSD pkgsrc-wip で
rtl-sdr GNU Radio gr-osmosSDRなどを作って見ている。このうち rtl-sdr は、Twitter にも _ki_nu, 11:02 PM August 29, 2014: My first rtl_fm (wip/rtl-sdr) on NetBSD/i386 6.1.4 sudo rtl_fm -M wbfm -f 80.7M | play -t raw -r 32k -es -b 16 -c 1 -V0 -などとつぶやいた。これは aitendo で買って来た RTL2832U を CUI 端末の窓で操作する道具で、上の方法で 80.7MHz の NHK FM の音を聞くことが出来る。ただし、上にあるように NetBSD では root で実行 する必要があるというのが僕の理解。多分避ける方法はあるのだと思う。 @ play of audio/sox:
上のうち、play は audio/sox で入れたもので、机上機で、外付の USB audio
を付けている時に、単独で使うとすると、次のように入力する。
sudo env AUDIODEV=/dev/audio1 play ~/sound/goldberg.wav @ rtl_fm and play (sox):
それで、これを組合せるなら、
sudo rtl_fm -M wbfm -f 80.684M | \ sudo env AUDIODEV=/dev/audio1 play -t raw -r 32k -es -b 16 -c 1 -V0 -のようになる。まず周波数が少し変。上の例の場合 16kHz ずれた数値を指定しているが、 これで、次のように 80.7MHz に同調する (と言っている) Encoding: Signed PCM Channels: 1 @ 16-bit Samplerate: 32000Hz Replaygain: off Duration: unknown In:0.00% 00:00:00.00 [00:00:00.00] Out:0 [ | ] Clip:0 Found Rafael Micro R820T tuner Tuner gain set to automatic. Tuned to 80700000 Hz. Oversampling input by: 6x. Oversampling output by: 1x. Buffer size: 8.03ms Exact sample rate is: 1020000.026345 Hz Sampling at 1020000 S/s. Output at 170000 Hz.それから、止める時に Control C (^C) を入力すると、 パイプの前には伝わらないらしく、下手をすると reboot してしまう。 そこで、(パイプ前半の) rtl_fm の処理の番号に (sudo) kill -9 を送る。 @ GNU Radio:
(以下の話は NetBSD/amd64 6.1_STABLE で package を作り、NetBSD/amd64 6.1.4
でそれらを pkg_add した時の話)
次に GNU Radio であるが、 wip/gnuradio で make package すると、
(pkgsrc に用意されている) 全ての部品を含めて作る。zeromq と comedi は入っていない。
配置した箱が赤色で示されているうちは、設定に誤りがある。
進入禁止のアイコンをクリックすると、その内容が表示される。
またそれとは別に、今は、操作中に、いくつか誤りが表示される。例えば Traceback (most recent call last): File "/root/top_block.py", line 18, in <module> import PyQt4.Qwt5 as Qwt ImportError: No module named Qwt5うーん、これでは足りないかな modena@makoto 16:10:23/140919(~/root)% pkg_info|grep -i qwt qwt-5.2.2nb15 Qt widget library for technical purposes次のような行はあるのだけれど。 gnuradio-core/Makefile.common:.include "../../x11/qwt-qt4/buildlink3.mk" ( つっこみ )
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 declaredgr-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 -> cmathApply 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 1Now gr-osmosdr-git is packaged fine. ( つっこみ )
2014年09月12日(金) 旧暦 [n年日記] [更新:"2014/09/12 15:41:18"]#1 [NetBSD] NetBSD/ofppc 7.99.1 boots
2004/12/10 に入手した
RS/6000 7046,B50
だけれども、やっと NetBSD が動いた。最近何度か試していた。netboot では動くが、
入っていた SCSI disk がこわれていて、sysinst が完了しなかった。
Parallel の IDE の disk をつなごうとしたが i/f card を認識しない。
それで、SiI3124 という SATA x 4 で 3V/5V の PCI card があったので、 siisata0 at pci0 dev 18 function 0: vendor 0x1095 product 0x3124 (rev. 0x02) siisata0: interrupting at irq 18 siisata0: SiI3124, 3.0Gb/s siisata0: 32-bit -1MHz PCI-Xこれをつないだら、何と sysinst が完了した。しかし、当然というか、 Sata Disk からは Boot はしてくれない。それで、kernel を、 include "arch/ofppc/conf/GENERIC" no config netbsd config netbsd root on wd0a type ?とだけ書いた conf で作ったが、これも、そのままでは root device: を聞いてくる ( dmesg の最後の方を見ると、その様子も見える) そこを手で dk0, dk1 と入力して、何とか起動させた。 ... Kernelized RAIDframe activated boot device: pcn0 device wd0 (0xa00) not configured root device (default pcn0): dk0 dump device: dk1 file system (default generic): root on dk0 dumps on dk1 root file system type: ffs init path (default /sbin/init): init: trying /sbin/init何とか dk0 に出来ないの という話にには反応がない(ようだ)
dmesg は
nycbug.org
に貼ってある。
/etc/ttys -console "/usr/libexec/getty std.9600" vt100 off secure +console "/usr/libexec/getty std.9600" vt100 on secure次の行は、Perl を作っている時のもの Processing SpecialCasing.txt Processing LineBreak.txt panic: memory wrap at lib/unicore/mktables line 2936, <$file_handle> line 16147. *** Error code 25 ( つっこみ )
2014年09月08日(月) 旧暦 [n年日記] [更新:"2014/09/09 00:31:07"]#1 [pkgsrc] wip/ice (not committed yet)Thread.cpp: In member function 'IceUtil::ThreadControl IceUtil::Thread::start(size_t, bool, int)': Thread.cpp:709:24: error: 'PTHREAD_STACK_MIN' was not declared in this scope ../../config/Make.rules:339: recipe for target 'Thread.o' failed gmake[2]: *** [Thread.o] Error 1 gmake[2]: Leaving directory '/export/WRKOBJDIR/wip/ice/work/Ice-3.5.1/cpp/src/IceUtil' Makefile:81: recipe for target 'IceUtil' failed gmake[1]: *** [IceUtil] Error 2 gmake[1]: Leaving directory '/export/WRKOBJDIR/wip/ice/work/Ice-3.5.1/cpp/src' Makefile:47: recipe for target 'all' failed gmake: *** [all] Error 1 *** Error code 2 Stop. make: stopped in /export/CHROOT/usr/pkgsrc/wip/ice ( つっこみ )
#2 [pkgsrc] bootstrap on Mac OS X 10.7.5 (lion) with Xcode-4.3.3 failsTarget: i686-apple-darwin10 Configured with: /var/tmp/gcc/gcc-5646~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages= c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5646) configure:2677: $? = 0 configure:2666: cc -isystem /usr/include -V >&5 gcc-4.2: argument to `-V' is missing configure:2677: $? = 1 configure:2666: cc -isystem /usr/include -qversion >&5 i686-apple-darwin10-gcc-4.2.1: no input files configure:2677: $? = 1 configure:2697: checking whether the C compiler works configure:2719: cc -isystem /usr/include conftest.c >&5 ld: library not found for -lcrt1.10.6.o collect2: ld returned 1 exit status configure:2723: $? = 1 configure:2761: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "bmake" | #define PACKAGE_TARNAME "bmake" | #define PACKAGE_VERSION "2010505" | #define PACKAGE_STRING "bmake 2010505" | #define PACKAGE_BUGREPORT "sjg@NetBSD.org" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2766: error: in `/usr/pkgsrc/bootstrap/work/bmake': configure:2768: error: C compiler cannot create executables See `config.log' for more details ( つっこみ )
2014年09月04日(木) 旧暦 [n年日記] [更新:"2014/09/04 16:46:36"]#1 [hardware] 7.99.1 on Lets' Note R4
Lets' note R4
に NetBSD/i386 7.99.1 を入れている。
どうも sysinst が変な気がして ( /dev/wd0a busy が出る) 6.99.47 の sysinst を使って 7.99.1 を入れている。 Full installation で入れて、 startx すると、X は動く。ただ、X で Ctrl と CapsLock を入替えたいので、 /etc/X11/xorg.conf に追加したいが、上記 startx では、それは使っていない。 su; X -configure すると /root/xorg.conf-new を作ってくれるが、それでは X は起動しない。 それで /var/log/Xorg.0.log を見て、/etc/X11/xorg.conf を書いて見た。 それ自体は問題ないが、まだ Ctrl と CapsLock の入替を追加するにはいたっていない @ unable to get local issuer certificate:CF-R4: {19} time git clone https://github.com/jsonn/src Cloning into 'src'... fatal: unable to access 'https://github.com/jsonn/src/': SSL certificate problem: unable to get local issuer certificatehead ~/.gitconfig [http] sslVerify = falsewip/gnuradio-core with PKG_OPTIONS.gnuradio+= digital in options.mk [100%] Built target dial_tone Run CPack packaging tool... CPack: Create package using TGZ CPack: Install projects CPack: - Run preinstall target for: gnuradio CPack: - Install project: gnuradio CMake Error at /export/WRKOBJDIR/wip/gnuradio-core/ work/gnuradio-3.7.2.1/build/gnuradio-runtime/cmake_install.cmake:39 (FILE): file INSTALL cannot copy file "/export/WRKOBJDIR/wip/gnuradio-core/ work/gnuradio-3.7.2.1/build/gnuradio-runtime/gnuradio-runtime.conf" to "/usr/pkg/etc/gnuradio/conf.d/gnuradio-runtime.conf". Call Stack (most recent call first): /export/WRKOBJDIR/wip/gnuradio-core/ work/gnuradio-3.7.2.1/build/cmake_install.cmake:81 (INCLUDE) ( つっこみ )
2014年09月01日(月) 旧暦 [n年日記] [更新:"2014/09/01 11:21:58"]#1 [pkgsrc] wip/gnuradio-core[ 74%] Building CXX object gr-audio/lib/CMakeFiles/gnuradio-audio.dir/portaudio/portaudio_impl.cc.o In file included from ../wip/gnuradio-core/work/gnuradio-3.7.2.1/gr-audio/lib/portaudio/portaudio_impl.cc:27:0: ../wip/gnuradio-core/work/gnuradio-3.7.2.1/gr-audio/lib/portaudio/portaudio_impl.h:27:23: fatal error: portaudio.h: No such file or directory compilation terminated. gr-audio/lib/CMakeFiles/gnuradio-audio.dir/build.make:126: recipe for target 'gr-audio/lib/CMakeFiles/gnuradio-audio.dir/portaudio/portaudio_impl.cc.o' failed gmake[2]: *** [gr-audio/lib/CMakeFiles/gnuradio-audio.dir/portaudio/portaudio_impl.cc.o] Error 1 CMakeFiles/Makefile2:6370: recipe for target 'gr-audio/lib/CMakeFiles/gnuradio-audio.dir/all' failed gmake[1]: *** [gr-audio/lib/CMakeFiles/gnuradio-audio.dir/all] Error 2 Makefile:146: recipe for target 'all' failed gmake: *** [all] Error 2 *** Error code 2audio/portaudio-devel provids following includes, but .. z87@makoto 11:23:10/140901(..wip/gnuradio-core)% pkg-config --cflags portaudio-2.0 -pthread -I/usr/pkg/include/portaudio2 ( つっこみ )
|
最近の日記 2025年01月15日 ・今更 advent calendar 2025年01月12日 ・金柑収穫 2025年01月07日 ・sh: 1: not found ・sh: 1: not found 2025年01月02日 ・geography/R-s2 | ||