• ベストアンサー
※ ChatGPTを利用し、要約された質問です(原文:2.6.9-42.EL libmtp導入)

libmtpの導入エラーに対する対処法を教えてください

このQ&Aのポイント
  • uname -aコマンドで確認した環境にlibmtpを導入したいとする質問がありました。
  • libmtp-1.0.1.tar.gzをダウンロードして展開後、./configureとmakeを実行したところエラーが発生しました。
  • エラーメッセージには、libusb-glue.cファイルのdevnumという名前のメンバが存在しないという内容が含まれています。

質問者が選んだベストアンサー

  • ベストアンサー
  • dev_null
  • ベストアンサー率67% (37/55)
回答No.1

私の環境ですと特にエラーは出ませんでしたよ。 ライブラリが古いのでは?もしかしたらカーネルヘッダも古いかも.. $ uname -a Linux localhost 2.6.18-164.9.1.el5 #1 SMP Wed Dec 9 03:27:37 EST 2009 x86_64 x86_64 x86_64 GNU/Linux $ rpm -qf /usr/include/usb.h libusb-devel-0.1.12-5.1

katu_ueda
質問者

お礼

情報ありがとうございました。たしかに古い様です rpm -qf /usr/include/usb.h libusb-devel-0.1.8-3 とはいっても、yumで提供されるrpmはそこで 止まってるので仮想PCをインストールして そこに、新しめのlinuxデストリビューションを入れるものとしましす

全文を見る
すると、全ての回答が全文表示されます。

関連するQ&A

  • Debian玄箱にドライバコンパイル不調

    Debian lenny化 した玄箱(初代)にEPSON KOWA ( 現:エプソンアヴァシス株式会社)のプリンタドライバソースファイルをコンパイル中に errorが表示されうまく適用できません。 EPSON PM-950C用のドライバのソースファイルをコンパイル中に”./libcbt.a: could not read symbols: File in wrong format”と表示されうまくいかない まず、rpm ではなく、ソースファイル「pips950-2.5.2.tar.gz」をダウンロードし、 /usr/src/pips950-2.5.2 に展開しています。 上記のエラー「 ./libcbt.a: could not read symbols: File in wrong format 」の対処方法をご教示ください。 直前のメッセージを字数制限までコピーします。 make[3]: Entering directory `/usr/src/pips950-2.5.2/ekpd' gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c cbtd.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c cbtd_comserv.c cbtd_comserv.c: In function 'comserv_thread': cbtd_comserv.c:158: warning: pointer targets in passing argument 3 of 'accept' differ in signedness gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c cbtd_datatrans.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c cbtd_setup.c cbtd_setup.c: In function 'parameter_setup': cbtd_setup.c:85: warning: pointer targets in passing argument 4 of 'get_parameter' differ in signedness gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c cbtd_signal.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c cbtd_thread.c gcc -g -O2 -Wall -o ekpd cbtd.o cbtd_comserv.o cbtd_datatrans.o cbtd_setup.o cbtd_signal.o cbtd_thread.o ./libcbt.a -lpthread -ldl /usr/bin/ld: ./libcbt.a(cbtd_wrapper.o): Relocations in generic ELF (EM: 3) /usr/bin/ld: ./libcbt.a(cbtd_wrapper.o): Relocations in generic ELF (EM: 3) ./libcbt.a: could not read symbols: File in wrong format collect2: ld returned 1 exit status make[3]: *** [ekpd] Error 1 make[3]: Leaving directory `/usr/src/pips950-2.5.2/ekpd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/pips950-2.5.2/ekpd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/pips950-2.5.2' make: *** [all-recursive-am] Error 2

  • sqlite.so のmakeでエラー

    お世話になります。 sqlite.so の作成において、make時にエラーが出ます。 環境 お名前.com VPS CentOS 5 PHP5.3.3 PHPバージョンアップ後、ウェブメールを使えるようにするため sqlite.so を手に入れようとしています。 もともとエラーが出るらしく、修正案を試みましたが、エラーで通りません。 修正案:http://blog.plastik.jp/archives/44 ログ: /bin/sh /tmp/SQLite-1.0.3/libtool --mode=compile cc -I/tmp/SQLite-1.0.3/libsqlite/src -I. -I/tmp/SQLite-1.0.3 -DPHP_ATOM_INC -I/tmp/SQLite-1.0.3/include -I/tmp/SQLite-1.0.3/main -I/tmp/SQLite-1.0.3 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/SQLite-1.0.3/sqlite.c -o sqlite.lo cc -I/tmp/SQLite-1.0.3/libsqlite/src -I. -I/tmp/SQLite-1.0.3 -DPHP_ATOM_INC -I/tmp/SQLite-1.0.3/include -I/tmp/SQLite-1.0.3/main -I/tmp/SQLite-1.0.3 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/SQLite-1.0.3/sqlite.c -fPIC -DPIC -o .libs/sqlite.o /tmp/SQLite-1.0.3/sqlite.c:125: error: 'third_arg_force_ref' undeclared here (not in a function) /tmp/SQLite-1.0.3/sqlite.c: In function 'php_sqlite_agg_step_function_callback': /tmp/SQLite-1.0.3/sqlite.c:485: error: 'zval' has no member named 'is_ref' make: *** [sqlite.lo] エラー 1 修正をした125行目含め3つでしょうか、エラーが出てます。 同じ修正をした人たちは問題なくいってるようなので、 なぜこれがでるのか判りません。 これだけの情報で判るようでしたら、解決策をお教えください。 よろしくお願いいたします。

  • FedoraCore5へのffmpegのインストール

    FedoraCore5へffmpeg-0.4.9-pre1を インストールしようとしています。 オプション指定なしで./configureして makeすると以下の様なエラーがでます。 [root@localhost ffmpeg-0.4.9-pre1]# make make -C libavcodec all make[1]: Entering directory `/root/ffmpeg-0.4.9-pre1/libavcodec' gcc -O3 -g -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o common.o common.c In file included from avcodec.h:14, from common.c:28: common.h:67: error: 配列の型が不完全要素型を持っています common.h:71: error: 配列の型が不完全要素型を持っています make[1]: *** [common.o] エラー 1 make[1]: Leaving directory `/root/ffmpeg-0.4.9-pre1/libavcodec' make: *** [lib] エラー 2 このエラーを回避するためにはどうしたらよいのでしょうか?

  • ツールのインストールができません

    現在、solaris9でWebAlizerというツールをインストールしようとしています。しかし、make時に以下のようなエラーが出てしまいます。どのように、対応したらよいでしょうか? # make gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_MATH_H=1 -c webalizer.c gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_MATH_H=1 -c hashtab.c gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_MATH_H=1 -c linklist.c gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_MATH_H=1 -c preserve.c gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_MATH_H=1 -c dns_resolv.c gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_MATH_H=1 -c parser.c gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_MATH_H=1 -c output.c gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_MATH_H=1 -I/usr/local/include -c graphs.c gcc -L/usr/local/lib -o webalizer webalizer.o hashtab.o linklist.o preserve.o parser.o output.o dns_resolv.o graphs.o -lgd -lpng -lz -lm 未定義の 最初に参照している シンボル ファイル libiconv_close /usr/local/lib/libgd.so libiconv_open /usr/local/lib/libgd.so libiconv /usr/local/lib/libgd.so ld: 重大なエラー: シンボル参照エラー。webalizer に書き込まれる出力はありません。 collect2: ld returned 1 exit status make: *** [webalizer] Error 1 環境は、Solaris9、gcc3.4.2です。 よろしくお願いいたします。

  • mod_encodingインストールエラー

    WebDAVのXPログインエラー対策として、 mod_encodingをインストールしたいのですが、 エラーになってしまいます。 OS:Fedora Core2 WEB:Apach mod_encoding make時エラー apxs -c -I/usr/local/include -liconv_hook mod_encoding.c /usr/lib/apr/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wp,-D_FORTIFY_SO URCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -DAP_HAVE_DESIG NATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apr-0 -I/usr/inclu de/httpd -I/usr/local/include -c -o mod_encoding.lo mod_encoding.c && touch mod_encoding.slo cc1: error: invalid option `tune=pentium4' apxs:Error: Command failed with rc=65536 . make: *** [mod_encoding.so] Error 1 よろしくお願いします。

  • 日本語係り受け解析器CaboChaのmakeに失敗する

    日本語係り受け解析器CaboChaをインストールしたいのですが、makeに失敗します。 makeを成功させるには何が必要なのでしょうか? お知恵を貸して下さい。 コンパイル環境 OS CentOS3 g++ 3.2.5 cabocha-0.60pre2 CRF++-0.51 make失敗時に表示されたエラーメッセージです。 g++ -DHAVE_CONFIG_H -I. -I.. -DCABOCHA_DEFAULT_POSSET=\"IPA\" -DCABOCHA_DEFAULT_CHARSET=\"UTF8\" -DMODEL_VERSION=100 -DCABOCHA_DEFAULT_RC=\"/usr/local/etc/cabocharc\" -O3 -Wno-deprecated -Wall -c chunk_learner.cpp -fPIC -DPIC -o .libs/chunk_learner.o chunk_learner.cpp: In function `bool CaboCha::ChunkingTrainingWithCRFPP(cabocha_parser_t, cabocha_charset_t, cabocha_posset_t, int, const char*, const char*, const char*)': chunk_learner.cpp:162: `::unlink' undeclared (first use here) make[2]: *** [chunk_learner.lo] Error 1 make[2]: Leaving directory `/usr/local/src/cabocha-0.60pre2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/cabocha-0.60pre2' make: *** [all] Error 2

  • makefileでコピーしてからコンパイルする方法

    諸事情あって、C言語のコンパイルするファイルを(vpathで指定せずに)カレントディレクトリにコピーしてから、コンパイルを実行したいと思っています。 以下のように、compile_pre でコピー、compile_main でgcc を起動しているのですが、main.oがコンパイルできない旨、エラーで終了してしまいます。 これはどうしてなのでしょうか? (compile_pre → comple_main の順番には実行しないのでしょうか?) また、このようなことをしたいばあい、何か良い方法はありませんでしょうか。 ----------------------------------------------- # (src/main.c から main.o を生成して、main.exe を生成する) TARGET = main.exe TARGET_OBJS = main.o #TARGET_OBJS += sub.o ... .PHONY: compile compile_pre compile_main compile: compile_pre compile_main compile_pre:      cp -fp ./src/main.c .; compile_main: $(TARGET) $(TARGET): $(TARGET_OBJS)      gcc -o $(TARGET) $(TARGET_OBJS) %.o : %.c      gcc -c -o $@ $< ----------------------------------------------- UNIX%> make compile --dry-run --debug GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i686-pc-linux-gnu Reading makefiles... Updating goal targets....  File `compile' does not exist.    File `compile_pre' does not exist.   Must remake target `compile_pre'. cp -fp ./src/main.c .;   Successfully remade target file `compile_pre'.    File `compile_main' does not exist.      File `main.exe' does not exist.        File `main.o' does not exist.       Must remake target `main.o'. make: *** No rule to make target `main.o', needed by `main.exe'. Stop. 宜しくお願い致します。

  • C++コンパイルエラーの原因を教えてください

    Cには詳しいのですが、C++があまりよくわかっておらず、質問させてください。 今回、手に入れたC++のあるプログラムをmakeしています(x86_64 Linux)。 以下のようなエラーが出てコンパイルできないのですが、何が悪いのか全く理解できず困っています。 他の環境ではコンパイルできているらしいので、わたしの環境の何が悪いのか、考えられることがありましたら、何でも書き込んでいただけると嬉しいです。 よろしくお願いします。 g++ -c -I../MathUtils -I../CommonUtils -DHAVE_ZLIB -DHAVE_BZLIB -fomit-frame-pointer -O2 -DFTYPE=float -Wall -Wsign-compare -Wpointer-arith -pedantic -DHAVE_PGPLOT -I. -DHAVE_FFTW -o analyse_image.o analyse_image.cpp In file included from analyse_image.cpp:21: Tools.h:16:15: warning: anonymous variadic macros were introduced in C99 analyse_image.cpp: In function ‘int main(int, char**)’: analyse_image.cpp:114: error: ‘strcmp’ was not declared in this scope analyse_image.cpp:205: error: ‘exit’ was not declared in this scope analyse_image.cpp:209: error: ‘strstr’ was not declared in this scope analyse_image.cpp:216: error: ‘exit’ was not declared in this scope analyse_image.cpp:457: error: ‘strlen’ was not declared in this scope make: *** [analyse_image.o] Error 1

  • RHE-r5.3にapache2をソースからインストールできない

    RHE-r5.3にapache2をソースからインストールできない はじめまして。 現在、ソースファイルからapache2(httpd-2.0.46)をインストールするとmake時点で 下記エラーが出力され、ソースコードをコンパイルできません…。 エラー内容より『[apr_socket_opt_set]関数の[SCTP_NODELAY]が宣言されてない』と 言うようなエラーになるかと思いますが、具体的にはどのように対応してよいか分かりません… お手数ですが、どなたかご教授いただけたらと思います。 ■エラー出力(抜粋) make[4]: ディレクトリ `/usr/local/src/httpd-2.0.46/srclib/apr/network_io/unix' に入ります /bin/sh /usr/local/src/httpd-2.0.46/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I../../include -I../../include/arch/unix -I../../include/arch/unix -c sockopt.c && touch sockopt.lo sockopt.c: In function 'apr_socket_opt_set': sockopt.c:254: error: 'SCTP_NODELAY' undeclared (first use in this function) sockopt.c:254: error: (Each undeclared identifier is reported only once sockopt.c:254: error: for each function it appears in.) make[4]: *** [sockopt.lo] エラー 1 make[4]: ディレクトリ `/usr/local/src/httpd-2.0.46/srclib/apr/network_io/unix' から出ます make[3]: *** [all-recursive] エラー 1 make[3]: ディレクトリ `/usr/local/src/httpd-2.0.46/srclib/apr/network_io/unix' から出ます make[2]: *** [all-recursive] エラー 1 make[2]: ディレクトリ `/usr/local/src/httpd-2.0.46/srclib/apr' から出ます make[1]: *** [all-recursive] エラー 1 make[1]: ディレクトリ `/usr/local/src/httpd-2.0.46/srclib' から出ます make: *** [all-recursive] エラー 1 ■PC環境 OS:Red Hat Enterprise Linux Server release 5.3 apche:httpd-2.0.46 ■エラーが出力されている関数(http://apr.apache.org/docs/apr/0.9/group__apr__network__io.html#g08f5e505fa611005f56c12783269ffa9 より) apr_status_t apr_socket_opt_set ( apr_socket_t * sock, apr_int32_t opt, apr_int32_t on ) Setup socket options for the specified socket Parameters: sock The socket to set up. opt The option we would like to configure. One of: APR_SO_DEBUG -- turn on debugging information APR_SO_KEEPALIVE -- keep connections active APR_SO_LINGER -- lingers on close if data

  • CygwinでPostgreSQL makeエラー

    お世話になります。 Cygwin(ver:1.7.10-1)でPostgreSQL(ver:8.3.13)をインストールしたいのですが、make all時に以下のエラーが発生します。 Cygwinパッケージの不足等があるのでしょうか?何かアドバイスをいただけるとありがたいです。 ====================================================== rm -f thread.c && ln -s ../../../../src/port/thread.c . gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../include -I../../../../src/interfaces/ecpg/include -I../../../../src/interfaces/libpq -I../../../../src/port -I../../../../src/include -DBUILDING_DLL -c -o thread.o thread.c dlltool --export-all --output-def ecpg.def execute.o typename.o descriptor.o data.o error.o prepare.o memory.o connect.o misc.o path.o pgstrcasecmp.o thread.o dllwrap -Wl,--enable-auto-import -o cygecpg.dll --dllname cygecpg.dll --def ecpg.def execute.o typename.o descriptor.o data.o error.o prepare.o memory.o connect.o misc.o path.o pgstrcasecmp.o thread.o -L../pgtypeslib -L../../../../src/interfaces/libpq -L../../../../src/port -L/usr/local/lib -lpgtypes -lpq -lm execute.o:execute.c:(.text+0x20e1): undefined reference to `_libintl_setlocale' execute.o:execute.c:(.text+0x2107): undefined reference to `_libintl_setlocale' execute.o:execute.c:(.text+0x251b): undefined reference to `_libintl_setlocale' execute.o:execute.c:(.text+0x255b): undefined reference to `_libintl_setlocale' execute.o:execute.c:(.text+0x262f): undefined reference to `_libintl_setlocale' execute.o:execute.c:(.text+0x26fb): more undefined references to `_libintl_setlocale' follow collect2: ld はステータス 1 で終了しました dllwrap: gcc exited with status 1 ../../../../src/Makefile.shlib:314: recipe for target `libecpg.a' failed make[4]: *** [libecpg.a] Error 1 make[4]: ディレクトリ `/home/nabe/postgresql-8.3.13/src/interfaces/ecpg/ecpglib' から出ます Makefile:6: recipe for target `all' failed make[3]: *** [all] Error 2 make[3]: ディレクトリ `/home/nabe/postgresql-8.3.13/src/interfaces/ecpg' から出ます Makefile:20: recipe for target `all' failed make[2]: *** [all] Error 2 make[2]: ディレクトリ `/home/nabe/postgresql-8.3.13/src/interfaces' から出ます Makefile:17: recipe for target `all' failed make[1]: *** [all] Error 2 make[1]: ディレクトリ `/home/nabe/postgresql-8.3.13/src' から出ます GNUmakefile:12: recipe for target `all' failed make: *** [all] Error 2