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

[plamo:08711] error in g++ compiling



はじめまして、
朝倉康成といいます。
「SoftWare Design」11月号でこれは!と思い、
真面目にLinuxをさわりはじめました。

C++で書かれたソースをコンパイルすとに同じようなエラーが起きます。
ソースコードの問題ではなくC++のライブラリの問題かな?思うのですが、
このような時にどう対処していいのかわかりません。
ごく基本的なことかも知れないのですが、力をお貸し下さい。
以下長いのですが、、、


ロボカップに興味があるので、
ftp://ci.etl.go.jp/pub/soccer/server/sserver-7.00.tar.gz
これを展開して、
./configure
make
したところ、以下のようなエラーが出ました。

plamo:~/download/sserver-7.00$ make
make[1]: 入ります ディレクトリ `/home/yasu/download/sserver-7.00/server'
g++ -c -pipe -DLinux -DLinux_2_2   main.C
In file included from
/usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/iostream.h:31,
                 from main.C:32:
/usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/streambuf.h: In
method `struct streampos streambuf::pubseekoff(long long int, ios::seek_dir, int
= 3)':
/usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/streambuf.h:362:
conversion from `__off64_t' to non-scalar type `streampos' requested
/usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/streambuf.h: In
method `struct streampos streambuf::pubseekpos(_G_fpos64_t, int = 3)':
/usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/streambuf.h:364:
`struct streampos' used where a `long long int' was expected
make[1]: *** [main.o] エラー 1
make[1]: 出ます ディレクトリ `/home/yasu/download/sserver-7.00/server'
make: *** [server/soccerserver] エラー 2


他にも例えば「aria」というダウンロードツールなのですが、
http://www-tani.ics.es.osaka-u.ac.jp/~tujikawa/aria/aria-0.7.0test6p1.tar.bz2
これも同様に./confiugreして

plamo:~/download/aria-0.7.0test6p1$ make
cd . \
  && CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh ./config.status
creating Makefile
make  all-recursive
make[1]: 入ります ディレクトリ `/home/yasu/download/aria-0.7.0test6p1'
Making all in intl
make[2]: 入ります ディレクトリ `/home/yasu/download/aria-0.7.0test6p1/intl'
make[2]: `all' に対して行うべき事はありません。
make[2]: 出ます ディレクトリ `/home/yasu/download/aria-0.7.0test6p1/intl'
Making all in src
make[2]: 入ります ディレクトリ `/home/yasu/download/aria-0.7.0test6p1/src'
Making all in pixmaps
make[3]: 入ります ディレクトリ
`/home/yasu/download/aria-0.7.0test6p1/src/pixmaps'
make[3]: `all' に対して行うべき事はありません。
make[3]: 出ます ディレクトリ `/home/yasu/download/aria-0.7.0test6p1/src/pixmaps'
make[3]: 入ります ディレクトリ `/home/yasu/download/aria-0.7.0test6p1/src'
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -I/usr/lib/glib/include
-D_REENTRANT -I/usr/X11R6/include -DLOCALEDIR=\"/usr/local/share/locale\"
-I../intl    -Wall -c main.cc
In file included from
/usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/iostream.h:31,
                 from
/usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/iomanip.h:31,
                 from main.cc:23:
/usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/streambuf.h: In
method `struct streampos streambuf::pubseekoff(long long int, ios::seek_dir, int
= 3)':
/usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/streambuf.h:362:
conversion from `__off64_t' to non-scalar type `streampos' requested
/usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/streambuf.h: In
method `struct streampos streambuf::pubseekpos(_G_fpos64_t, int = 3)':
/usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/streambuf.h:364:
`struct streampos' used where a `long long int' was expected
/usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/streambuf.h:364:
warning: control reaches end of non-void function
`streambuf::pubseekpos(_G_fpos64_t, int)'
make[3]: *** [main.o] エラー 1
make[3]: 出ます ディレクトリ `/home/yasu/download/aria-0.7.0test6p1/src'
make[2]: *** [all-recursive] エラー 1
make[2]: 出ます ディレクトリ `/home/yasu/download/aria-0.7.0test6p1/src'
make[1]: *** [all-recursive] エラー 1
make[1]: 出ます ディレクトリ `/home/yasu/download/aria-0.7.0test6p1'
make: *** [all-recursive-am] エラー 2

Follow-Ups
[plamo:08713] Re: error in g++ compiling, Namio MATUDA

[検索ページ] [メール一覧]
Plamo ML 公開システム