autorespond-2.0.2のインストールエラー - アドバイスをお願いします

このQ&Aのポイント
  • autorespond-2.0.2のインストール中に発生したエラーについてのアドバイスをお願いします。
  • FreeBSD4.7でautorespond-2.0.2のインストールができず、strcasestrの競合エラーが発生しました。
  • インストールができない状態で困っています。どうすればいいかご教示ください。
回答を見る
  • ベストアンサー

autorespond-2.0.2のインストール

autorespond-2.0.2をインストールしようとしているのですが 下記のメッセージが出てインストール出来ない状態です。 ---- www# make gcc -Wall -o autorespond autorespond.c autorespond.c:381: conflicting types for `strcasestr' /usr/include/string.h:86: previous declaration of `strcasestr' *** Error code 1 Stop in /usr/local/src/autorespond-2.0.2. ---- どうすればいいかわからないのでアドバイスをお願いします。 OSはFreeBSD4.7です

  • mates
  • お礼率33% (3/9)

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

  • ベストアンサー
  • xjd
  • ベストアンサー率63% (1021/1612)
回答No.1

以下の情報がヒットしましたが、どうでしょう?

参考URL:
http://www.freeml.com/ctrl/html/MessageForm/unix-question@freeml.com/289
mates
質問者

お礼

有り難う御座いました 無事インストール出来ました

関連するQ&A

  • Solaris10へsendmail8.12.10インストールができません。

    サーバ構築未熟者で、Solaris10の構築は初めての者です。 Solaris10へのsendmail8.12.10をインストールを試みておりますが、Build時にエラーが発生し、 インストールできない状態になっております。 エラー内容はこのようになっており、エラー内容から環境変数の一部の設定がおかしいのではないかと推測しております。 ../../include/sm/conf.h:2610: error: conflicting types for 'unsetenv' /usr/include/stdlib.h:188: error: previous declaration of 'unsetenv' was here ../../include/sm/conf.h:2610: error: conflicting types for 'unsetenv' /usr/include/stdlib.h:188: error: previous declaration of 'unsetenv' was here make[1]: *** [debug.o] Error 1 make[1]: Leaving directory `/usr/local/src/sendmail-8.12.10/obj.SunOS.5.10.i86pc 該当の部分と思われる、conf.hファイルの2610行目は、デフォルト状態です。 サーバ構築期限がさしせまっており、非常に困っております。 もしわかる方がいらっしゃいましたらアドバイスをお願いいたします。

  • このエラーについて

    C言語でプログラムを作成しgccでコンパイルしたんですけど 「computer06.c:8: conflicting types for `heapsort' computer06.c:5: previous declaration of `heapsort'」 というエラーがでたんですが、どう直したらいいんですか?このエラーの意味を教えてください・・・ 特定のファイルから数字を読み込みヒープソートをしそれにかかった時間を求めるというプログラムです。よろしくお願いします

  • CGIへのコンパイルエラー

    初めまして。プログラミング暦はほとんどありません。javaを少しかじった程度です。今回Ajaxへ挑戦しようと思い、 http://itpro.nikkeibp.co.jp/article/COLUMN/20060115/227278/?ST=nettech の予測補完インタフェースを作成しよとしています。 環境はfedoracore5でXPからのputyからの遠隔です。 complete.cをcomplete.cgiへコンパイルするときに、 [root@localhost html]# gcc -Wall -O2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include complete.c -o complete.cgi -lglib-2.0 -lsary -lpthread complete.c:1: error: stray ‘\357’ in program complete.c:1: error: stray ‘\273’ in program complete.c:1: error: stray ‘\277’ in program complete.c:1: error: stray ‘#’ in program complete.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token In file included from complete.c:2: /usr/include/string.h:39: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:43: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:52: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:59: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:62: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:66: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:88: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:96: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:102: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strxfrm’ /usr/include/string.h:184: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strcspn’ /usr/include/string.h:188: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strspn’ /usr/include/string.h:242: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘strlen’ /usr/include/string.h:270: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:288: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:292: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:296: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:299: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/string.h:329: error: expected declaration specifiers or ‘...’ before ‘size_t’ In file included from /usr/include/string.h:417, from complete.c:2: /usr/include/bits/string2.h:969: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__strcspn_c1’ /usr/include/bits/string2.h:971: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__strcspn_c1’ /usr/include/bits/string2.h:979: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__strcspn_c2’ /usr/include/bits/string2.h:982: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__strcspn_c2’ /usr/include/bits/string2.h:991: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__strcspn_c3’ /usr/include/bits/string2.h:994: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__strcspn_c3’ とエラーがでます。どうしたらいいでしょうか?(文字数の関係で半分しか掲載できませんでした。)よろしくお願いいたします。

    • ベストアンサー
    • CGI
  • C言語 プロトタイプ宣言

    分割コンパイルした場合のプロトタイプ宣言について質問です。 以下のプログラムをコンパイルすると警告がでます。 プロトタイプ宣言は関数を利用する側と定義側両方に必要と理解していたのですが・・・ どなたか教えていただけますでしょうか。 windows7 cygwin gccでコンパイル エラーメッセージ $ gcc -o testMain.exe testMain.c testKioku.c testKioku.c:9: 警告: conflicting types for 'func1' testKioku.c:3: 警告: previous declaration of 'func1' was here testKioku.c:17: 警告: conflicting types for 'func2' testKioku.c:4: 警告: previous declaration of 'func2' was here ソース testMain.c #include <stdio.h> void func1(void); void func2(void); int cnt=5; main(){ printf("main=%d\n",cnt); func1(); func2(); } testKioku.c #include <stdio.h> void func1(void); void func2(void); extern int cnt; func1() { cnt++; printf("func1 global cnt=%d\n",cnt); func2(); } func2() { printf("func2 global cnt=%d\n",cnt); }

  • Qpopperをインストールできません

    CentOS6.0にqpopper4.0.13をインストールしようとしたのですが、 makeにて下記のようなエラーが出力されます。 どなたかご存知でしたら、ご教授頂けないでしょうか? ---------------- popper.c: In function ‘qpopper’: popper.c:153: error: conflicting types for ‘getline’ /usr/include/stdio.h:673: note: previous declaration of ‘getline’ was here popper.c: In function ‘tgetline’: popper.c:617: 警告: passing argument 1 of ‘getline’ from incompatible pointer type /usr/include/stdio.h:673: note: expected ‘char ** __restrict__’ but argument is of type ‘char *’ popper.c:617: 警告: passing argument 2 of ‘getline’ makes pointer from integer without a cast /usr/include/stdio.h:673: note: expected ‘size_t * __restrict__’ but argument is of type ‘int’ popper.c:617: 警告: passing argument 3 of ‘getline’ from incompatible pointer type /usr/include/stdio.h:673: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘struct POP *’ popper.c:617: 警告: assignment makes pointer from integer without a cast make[1]: *** [popper.o] エラー 1 make[1]: ディレクトリ `/usr/local/src/qpopper4.0.13/popper' から出ます make: *** [popper_server] エラー 2 ------------------- ここにいたるまでの手順です↓ /usr/sbin/useradd -s /dev/null -d /dev/null pop cd /usr/local/src/ tar -xzf qpopper4.0.13.tar.gz cd qpopper4.0.13 ./configure --enable-apop=/etc/pop.auth =--with-popuid=pop make

  • GPIBドライバIC uPD7210を使用したGPIBカードをFreeBSD7.0(?)で使用するには?

    GPIBドライバIC uPD7210を使用したGPIBカードをFreeBSD7.0(?)で使用するためにネットにあったものを参考に、カーネルを再構築してmakeを実行したところ、errorがたくさん出て困っています。他サイトでも同じ質問をしたのですがあまり回答がないのでこちらでも質問します。 とりあえずネットに書いてあることをそのままやってみてerrorメッセージがなくなるようにいろいろ調べて試しているのですが一向にうまくいきません。どなたかアドバイスをお願いします。卒研で先生にやらされているのですがC言語を授業で少しやったことがある程度なので知識は限りなく乏しいです。しかし、今さらテーマを変えるわけにもいかないのでなんとかしたいのです。 デバイスドライバ等は下記アドレスにあります。 http://www.youko-house.ne.jp/~hirohito/soft/upd7210-2 ver.4.xではうまくいくそうです。目的はgpibを使った計測システム作成なので、最悪ver4を使おうと思うのですがそれでは何もやっていないのとほぼ同じなのでver.7になんとかつっこめないかと思っています。 あとメジャー番号の振り分けも必要なみたいなのですがver.4の場合、/usr/src/sys/conf/majorsに一覧になっているのですがver.7ではmajorsがなくなっていてどこかにあるのかわかりません。 下にエラーメッセージを示します。warningは先生が無視してもいいといったので(ホントかわかりませんが)とりあえずerror:だけ示します。すべてupd7210.cのものです。 78: error: 'nopoll' undeclared here (not in a function) 79: error: 'nommap' undeclared here (not in a function) 80: error: 'nostrategy' undeclared here (not in a function) 83: error: 'nodump' undeclared here (not in a function) 84: error: 'nopsize' undeclared here (not in a function) 134: error: conflicting types for 'gpib_open' 65: error: previous declaration of 'gpib_open' was here In function 'gpib_open': At top level: 160: error: conflicting types for 'gpib_close' 66: error: previous declaration of 'gpib_close' was here In function 'gpib_close': At top level: 187: error: conflicting types for 'gpib_read' 67: error: previous declaration of 'gpib_read' was here In function 'gpib_read': At top level: 254: error: conflicting types for 'gpib_write' 68: error: previous declaration of 'gpib_write' was here In function 'gpib_write': At top level: 314: error: conflicting types for 'gpib_ioctl' 69: error: previous declaration of 'gpib_ioctl' was here In function 'gpib_ioctl': 377: error: label at end of compound statement

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

    現在、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です。 よろしくお願いいたします。

  • ヘッダファイルの位置

    いままでLinux系やBSD系用に作っていた C言語のプログラムをSolaris10用に移植しているのですが、 似たようなヘッダファイルがあちこちにあって、 どこがどうなっているのかよくわからず・・・・ strtok_rという関数を使う箇所で、 コンパイルがうまく通らず、つまづいています。 manを見ると、string.hに入っていることになっているのですが、 /usr/sfw/include/string.h には入っておらず、 /usr/include/string.h には入っています。 おそらく、gccが、/usr/sfw/include/string.hのほうを見てしまうので、 #include <string.h> としても、strtok_rの宣言が読み込まれないのだとおもうのですが・・・ どのように解決したらよいものでしょうか??

  • [Debian]LKMの作成について

    こんにちは LKMの作成で躓いているのでお力をお貸しください OS: Debian4.0 r6 kernel: 2.6.18-6-686 GCC: 4.1.2 [ソース: message.c] #include <linux/module.h> #include <kernel.h> #include <linux/init.h> static int __init init_module(void) { printk(KERN_INFO "loaded\n"); return 0; } static void __exit cleanup_module(void) { printk(KERN_INFO "removed\n"); } module_init(init_module); module_exit(cleanup_module); [コンパイル結果] make -C /lib/modules/2.6.18-6-686/build M=/home/user/lkm modules make[1]: ディレクトリ `/usr/src/linux-headers-2.6.18-6-686' に入ります CC [M] /home/user/lkm/message.o /home/user/lkm/message.c:6: error: static declaration of 'init_module' follows non-static declaration include/linux/module.h:65: error: previous declaration of 'init_module' was here /home/user/lkm/message.c:12: error: static declaration of 'cleanup_module' follows non-static declaration include/linux/module.h:66: error: previous declaration of 'cleanup_module' was here /home/user/lkm/message.c:16: error: redefinition of 'init_module' /home/user/lkm/message.c:6: error: previous definition of 'init_module' was here /home/user/lkm/message.c:17: error: redefinition of 'cleanup_module' /home/user/lkm/message.c:12: error: previous definition of 'cleanup_module' was here make[2]: *** [/home/user/lkm/message.o] エラー 1 make[1]: *** [_module_/home/user/lkm] エラー 2 make[1]: ディレクトリ `/usr/src/linux-headers-2.6.18-6-686' から出ます make: *** [default] エラー 2 初歩的な質問で申し訳ないですが エラー冒頭のstatic declaration of ...というエラーが直せなくて困っております。 どなたかお分かりになる方、お力をお貸しください 宜しくお願いします。

  • libxml2 make 失敗

    CentOS-6.2で開発用のAPサーバを構築中です。 「libxml2」をmake install したいのですが、makeが上手くいっていないように思います。 「libxml2-2.6.26」が現在インストールされているのですが、「libxml2-2.6.30」を導入しようとしています。色々調べて実施しているのですが、ログを読み取れていないので苦戦しています。。 何が原因なのでしょうか。 以下に気になる箇所のログを記載しました。 よろしくお願いいたします。 ※補足 rpmでインストールも試したのですが、それも「依存性の欠如」エラーで上手くいかない状況です。 インストールされているのに「ない」とエラーが出たりです・・・ threads.c:57: warning: redundant redeclaration of 'pthread_once' /usr/include/pthread.h:466: warning: previous declaration of 'pthread_once' was here threads.c:59: warning: redundant redeclaration of 'pthread_getspecific' /usr/include/pthread.h:1076: warning: previous declaration of 'pthread_getspecific' was here threads.c:62: warning: redundant redeclaration of 'pthread_setspecific' /usr/include/pthread.h:1080: warning: previous declaration of 'pthread_setspecific' was here threads.c:65: warning: redundant redeclaration of 'pthread_key_create' /usr/include/pthread.h:1070: warning: previous declaration of 'pthread_key_create' was here threads.c:67: warning: function declaration isn't a prototype threads.c:67: warning: redundant redeclaration of 'pthread_mutex_init' /usr/include/pthread.h:720: warning: previous declaration of 'pthread_mutex_init' was here threads.c:69: warning: function declaration isn't a prototype threads.c:69: warning: redundant redeclaration of 'pthread_mutex_destroy' /usr/include/pthread.h:724: warning: previous declaration of 'pthread_mutex_destroy' was here threads.c:71: warning: function declaration isn't a prototype threads.c:71: warning: redundant redeclaration of 'pthread_mutex_lock' /usr/include/pthread.h:732: warning: previous declaration of 'pthread_mutex_lock' was here threads.c:73: warning: function declaration isn't a prototype threads.c:73: warning: redundant redeclaration of 'pthread_mutex_unlock' /usr/include/pthread.h:743: warning: previous declaration of 'pthread_mutex_unlock' was here threads.c:75: warning: function declaration isn't a prototype threads.c:75: warning: redundant redeclaration of 'pthread_cond_init' /usr/include/pthread.h:927: warning: previous declaration of 'pthread_cond_init' was here threads.c:77: warning: function declaration isn't a prototype threads.c:431: warning: unused variable 'err' testapi.c:17978: 警告: ‘gen_xmlSchematronPtr’ defined but not used testapi.c:17981: 警告: ‘des_xmlSchematronPtr’ defined but not used testapi.c:17998: 警告: ‘gen_xmlSchematronParserCtxtPtr’ defined but not used testapi.c:33930: 警告: ‘gen_xmlSAXHandlerPtr_ptr’ defined but not used testapi.c:33933: 警告: ‘des_xmlSAXHandlerPtr_ptr’ defined but not used make[3]: ディレクトリ `/home/myapp/libxml2-2.6.30/doc/examples' から出ます make[3]: ディレクトリ `/home/myapp/libxml2-2.6.30/doc' に入ります make[3]: `all-am' に対して行うべき事はありません. make[3]: ディレクトリ `/home/myapp/libxml2-2.6.30/doc' から出ます I/O error : Attempt to load network entity http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ../doc/news.html:2: warning: failed to load external entity "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" reating gjobread make[2]: ディレクトリ `/home/myapp/libxml2-2.6.30/example' から出ます Making all in xstc make[2]: ディレクトリ `/home/myapp/libxml2-2.6.30/xstc' に入ります make[2]: `all' に対して行うべき事はありません. make[2]: ディレクトリ `/home/myapp/libxml2-2.6.30/xstc' から出ます make[1]: ディレクトリ `/home/myapp/libxml2-2.6.30' から出ます