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

先月 2009年11月 来月
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 による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2009年11月08日() 旧暦 [n年日記] [更新:"2009/12/17 00:18:56"]

#1 [NetBSD][pkgsrc] Error: You need to have libxerces-c installed.

FERMAT SystemC Parser: に (README を見て)
genova@makoto 07:59:45/091108(..local-src/sxml2)% ./autogen.sh 
...
checking for main in -lxerces-c... no
Error: You need to have libxerces-c installed.
上のように言われた時に、次のようにするのは有効
genova@makoto 08:01:59/091108(..local-src/sxml2)% \
env LIBS=-L/usr/pkg/lib ./autogen.sh 

xercesc/parsers/SAXParser.hpp: No such file or directory:

  • /usr/pkg/include/xercesc/parsers/SAXParser.hpp に実物があるのに
  • In file included from doxygenparser.cpp:25:
    ../include/doxygenparser.h:29:41: error: xercesc/parsers/SAXParser.hpp: No such file or directory
    と言われた時に、次のような変更をしてから ./autogen.sh すると回避出来る
--- sxml2/src/Makefile.am.orig  2005-04-01 02:33:20.000000000 +0900
+++ sxml2/src/Makefile.am       2009-11-08 08:18:12.000000000 +0900
@@ -5,7 +5,8 @@
 ##     Please disable it in the Anjuta project configuration
 
 INCLUDES =\
-        -I../include
+        -I../include \
+        -I/usr/pkg/include
 
 AM_CXXFLAGS =\
         -Wall\

Shared object "libxerces-c.so.28" not found:

genova@makoto 08:21:02/091108(..sxml2/src)% ./systemcxml 
Shared object "libxerces-c.so.28" not found
と言われた時に、次のようにするのは有効
genova@makoto 08:21:24/091108(..sxml2/src)% env LD_LIBRARY_PATH=/usr/pkg/lib ./systemcxml 

The primary document entity could not be opened:

次のようになるのを回避する方法は不明
genova@makoto 08:21:24/091108(..sxml2/src)% env LD_LIBRARY_PATH=/usr/pkg/lib ./systemcxml 
SystemXML - v1.0 2005-04-11
Reading raw SystemC XML file "fir_flat_cpp.xml"
Raw Parsing 1st pass:
Fatal Error: An exception occurred! Type:RuntimeException, Message:
The primary document entity could not be opened. Id=/export/local-src/sxml2/src/fir_flat_cpp.xml
sc_output.xml at line: 0
Modules found.

Raw parsing second pass:
Fatal Error: An exception occurred! Type:RuntimeException, Message:
The primary document entity could not be opened. Id=/export/local-src/sxml2/src/fir_flat_cpp.xml
sc_output.xml at line: 0
Processed file written

Reading architectural information
Fatal Error: Invalid document structure at line: 1
All information read
zsh: segmentation fault (core dumped)  env LD_LIBRARY_PATH=/usr/pkg/lib ./systemcxml
genova@makoto 08:21:30/091108(..sxml2/src)%
上で言っている譜はあります (we have the file listed above)
genova@makoto 08:41:18/091108(/export/local-src)% ls -l sxml2/src/fir_flat_cpp.xml 
-rw-r--r--  1 makoto  wheel  148478 Mar  2  2005 sxml2/src/fir_flat_cpp.xml
genova@makoto 08:41:46/091108(/export/local-src)% 
次のようにしたら動きました (Now it works with following command)
genova@makoto 08:45:12/091108(..local-src/sxml2)% \
? env LD_LIBRARY_PATH=/usr/pkg/lib \
? src/systemcxml --dtd src/systemc.dtd src/fir_flat_cpp.xml
help is available
genova@makoto 08:45:12/091108(..local-src/sxml2)% \
? env LD_LIBRARY_PATH=/usr/pkg/lib \
? src/systemcxml --help

INSTALL を見て:

  240  env LDFLAGS=-L/usr/pkg/lib ./configure
  241  env LDFLAGS=-L/usr/pkg/lib gmake
  242  sudo env LDFLAGS=-L/usr/pkg/lib gmake  install

genova@makoto 09:46:03/091108(..local-src/sxml2)% find /usr/local -cmin -10 -type f
/usr/local/bin/systemcxml
/usr/local/include/systemcxml/doxygenparser.h
/usr/local/include/systemcxml/inoutport.h
/usr/local/include/systemcxml/inport.h
/usr/local/include/systemcxml/liststructure.h
/usr/local/include/systemcxml/module.h
/usr/local/include/systemcxml/outport.h
/usr/local/include/systemcxml/port.h
/usr/local/include/systemcxml/process.h
/usr/local/include/systemcxml/sc_process.h
/usr/local/include/systemcxml/scparser.h
/usr/local/include/systemcxml/sensitivity.h
/usr/local/include/systemcxml/toplevel.h
/usr/local/include/systemcxml/xsystemc.h
/usr/local/include/systemcxml/ref_signal.h
/usr/local/include/systemcxml/Reflection_Service.h
/usr/local/include/systemcxml/moduleinstance.h
/usr/local/include/systemcxml/connection.h
/usr/local/include/systemcxml/objectregistry.h
/usr/local/include/systemcxml/graphout.h
/usr/local/include/systemcxml/signalout.h
/usr/local/doc/systemcxml/README
/usr/local/doc/systemcxml/COPYING
/usr/local/doc/systemcxml/AUTHORS
/usr/local/doc/systemcxml/ChangeLog
/usr/local/doc/systemcxml/INSTALL
/usr/local/doc/systemcxml/NEWS
/usr/local/doc/systemcxml/TODO
genova@makoto 09:46:04/091108(..local-src/sxml2)% his
genova@makoto 09:46:47/091108(..local-src/sxml2)% which systemcxml 
/usr/local/bin/systemcxml
genova@makoto 09:47:35/091108(..local-src/sxml2)%  systemcxml src/fir_flat_cpp.xml 
Shared object "libxerces-c.so.28" not found
With following command,
  293  sudo env LIBS='-L/usr/pkg/lib'  LD_RUN_PATH=/usr/pkg/lib gmake clean
  294  sudo env LIBS='-L/usr/pkg/lib'  LD_RUN_PATH=/usr/pkg/lib gmake
  295  sudo env LIBS='-L/usr/pkg/lib'  LD_RUN_PATH=/usr/pkg/lib gmake install
Now it executes fine:
systemcxml --dtd src/systemc.dtd src/fir_flat_cpp.xml

#2 [EDA] SpecC Reference Compiler (scrc)

Ubuntu 8.10 の上での作業:
  570  ln -s /home/makoto/distfiles/scrc-2.1-1.src.rpm .
  571  cd ../SRPMS/
  573  rpm -ihv scrc-2.1-1.src.rpm
  579  cd ..
  584  vi SPECS/scrc.spec
     ( add # in front of Copyright, and 
       add the line
       License: UCB )
  591  rpmbuild --bb SPECS/scrc.spec 


g++ -DX86 -DLINUX  -O2 -DNDEBUG    \
		-DHAVE_LLONG  -s  -c -Wall -I/usr/src/rpm/BUILD/scrc-2.1/inc \
		Alignment.cc
Alignment.cc:262: error: extra qualification ‘BufferStruct::’ on member ‘BufferStruct’
Alignment.cc:269: error: extra qualification ‘BufferStruct2::’ on member ‘BufferStruct2’
make[2]: *** [Alignment.o] エラー 1
make[2]: ディレクトリ `/usr/src/rpm/BUILD/scrc-2.1/src/IntRep' から出ます
make[1]: *** [all] エラー 2
make[1]: ディレクトリ `/usr/src/rpm/BUILD/scrc-2.1/src' から出ます
make: *** [all] エラー 2
エラー: /var/tmp/rpm-tmp.87604 の不正な終了ステータス (%build)


RPM ビルドエラー:
    /var/tmp/rpm-tmp.87604 の不正な終了ステータス (%build)
root@ubuntu:/usr/src/rpm# 
The patches for above problem:
ubuntu@root 11:05:44/091108(..src/rpm)% zcat SOURCES/scrc-2.1-extra-qual.patch.gz
--- BUILD/scrc-2.1/src/IntRep/Alignment.cc.orig 2006-09-29 01:20:45.000000000 +0900
+++ scrc-2.1/src/IntRep/Alignment.cc    2009-11-08 10:50:37.000000000 +0900
@@ -259,14 +259,14 @@
 {
 char x1;
 _specc::buffered<char> x2;
-BufferStruct::BufferStruct() : x2(event(&clk)) { }
+BufferStruct() : x2(event(&clk)) { }
 };
 
 struct BufferStruct2
 {
 _specc::buffered<char> x2;
 char x1;
-BufferStruct2::BufferStruct2() : x2(event(&clk)) { }
+BufferStruct2() : x2(event(&clk)) { }
 };
 
 int            x;

error: conflicting declaration unsigned int PRS_lineno:

In file included from PRS_Scanner.l:92:
PRS_Scanner.h:128: error: conflicting declaration unsigned int PRS_lineno
<stdout>:362: error: PRS_lineno has a previous declaration as int PRS_lineno
PRS_Scanner.l:198: error: conflicting declaration unsigned int PRS_lineno
<stdout>:362: error: PRS_lineno has a previous declaration as int PRS_lineno
PRS_Scanner.l: In function int PRS_lex():
PRS_Scanner.l:292: error: yy_current_buffer was not declared in this scope
make[2]: *** [PRS_Scanner.o]  1
make[2]:  `/usr/src/rpm/BUILD/scrc-2.1/src/Parser' 
make[1]: *** [all]  2
make[1]:  `/usr/src/rpm/BUILD/scrc-2.1/src'
The problem is at following line, but this is generated file:
./BUILD/scrc-2.1/src/Parser/PRS_Scanner.cc:362:int PRS_lineno = 1;

#3 [comp] (Ubuntu) ssh の設定を探してしまった

いくら探してもないと思ったら、 別途入れる必要がある ということだった。情報有難し。



最近の日記
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)