• 締切済み

Solaris10でSendmailのBuildに失敗します。

コンパイル環境は、 Sun Microsystems sun4v Sun Fire(TM) T1000 1.0GHz UltraSPARC T1 / 2040 Megabytes gccはデフォルトの3.4.3を利用しています。 Sendmailのソースフォルダにて下記の用にBuildを行うと エラーになります。x86環境では起きませんでした。 #./Build -c ~~~~~~~~~~~~~~~~ gcc -O -I. -I../../include -DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DSOLARIS=21000 -DNETINET6 -c macro.c gcc -O -I. -I../../include -DNDBM -DNIS -DNISPLUS -DMAP_REGEX -DSOLARIS=21000 -DNETINET6 -c map.c In file included from /usr/include/rpc/rpc.h:42, from /usr/include/rpcsvc/nis.h:9, from map.c:2834: /usr/include/rpc/svc.h:19:28: sys/tsol/label.h: ファイルもディレクトリもありません。 In file included from /usr/include/rpc/rpc.h:42, from /usr/include/rpcsvc/nis.h:9, from map.c:2834: /usr/include/rpc/svc.h:86: error: syntax error before "bslabel_t" *** Error code 1 make: Fatal error: Command failed for target `map.o' Current working directory /usr/local/src/sendmail-8.13.8/obj.SunOS.5.10.sun4/sendmail *** Error code 1 The following command caused the error: for x in libsm libsmutil libsmdb sendmail editmap mail.local mailstats makemap praliases rmail smrsh vacation; \ do \ (cd $x; echo Making all in:; pwd; \ /bin/sh ./Build -c); \ done make: Fatal error: Command failed for target `all' # 何かしらわかる方がいましたら、よろしくお願いいたします。

  • ogohs
  • お礼率100% (6/6)

みんなの回答

  • GGL
  • ベストアンサー率45% (23/51)
回答No.1

Solaris10の版数を教えてください。 最新は2008/05 インストール方法は?クラスターがしりたいです。

ogohs
質問者

お礼

最新に入れ替えて試した結果うまくいきました。 問題となっていたのは、デフォルトでインストールされていたgccでした。 gccのバージョンを3.4.6にアップグレードさせた後、 libiconv-1.11-sol10-sparc-local パッケージをインストールした結果うまくコンパイルが出来ました。 しかし、なぜ3.4.3では出来なかったかは未だにわかっておりませんが、とりあえずコンパイルが出来よかったです。

関連する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行目は、デフォルト状態です。 サーバ構築期限がさしせまっており、非常に困っております。 もしわかる方がいらっしゃいましたらアドバイスをお願いいたします。

  • Solaris10でmakeがこける

    postfixをインストールしようと make makefiles CC=gcc してから makeしたのですが、 /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/sys/types.h:27:31: sys/feature_tests.h: No such file or directory isa_defs.h: No such file or directory machtypes.h: No such file or directory int_types.h: No such file or directory In file included from sys_defs.h:335,from alldig.c:29: /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/sys/types.h:68: error:syntax error before "int32_t" syntax error before "uint32_t" "int32_t" "uint32_t" "int32_t" "uint32_t" "offset_t" (中略) /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/sys/types.h:622:24: sys/select.h: No such file or directory In file included from /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/limits.h:11,from sys_defs.h:1347,from alldig.c:29: /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/syslimits.h:27:31: sys/feature_tests.h: No such file or directory isa_defs.h: No such file or directory /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/syslimits.h:29:28: iso/limits_iso.h: No such file or directory /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.6/include/syslimits.h:41:28: sys/int_limits.h: No such file or directory alldig.c:30:19: ctype.h: No such file or directory (省略しているところあります) と出てmakeできません。 見つかっていないファイル類がSolaris開発ツールっぽいのしかわからず、どうやって入手すればいいかがわかりません。 SMTP-AUTH対応できればそれでいいのでpkgadd対応版みたいなので代用も可能です。 わかる方、お願いします

  • solarisにphpが入りません なにかご教示いただけないでしょうか

    solaris10にphp5をインストールしようと思ってるんですが、エラーが出てインストールできません ./configure --with-apxs=/usr/apache/bin/apxs ↓ make をすると以下のようなエラーが出ます。 /samba/php-5.0.5/ext/iconv/iconv.c -o ext/iconv/iconv.lo In file included from /usr/include/iso/stdarg_iso.h:41, from /usr/include/stdarg.h:32, from /samba/php-5.0.5/Zend/zend.h:76, from /samba/php-5.0.5/main/php.h:34, from /samba/php-5.0.5/ext/iconv/iconv.c:27: /usr/include/sys/va_impl.h:150: #error ("Unrecognized compiler protocol for variable argument lists") *** Error code 1 make: Fatal error: Command failed for target `ext/iconv/iconv.lo' phpのいろんなバージョンで試したのですがすべてこんなエラーが出てしまいます どなたか助言いただけると幸いです。 よろしくお願い致します

  • Net-SNMPでのmake時のエラーについて

    はじめまして。kyosyouと申します。 Solaris(SunOS5.9)でNet-SNMPを使おうとしておりますが、 make時に下記エラーがでて頓挫しております。 google等で調べてみたのですが、類似事象が見つからず、ご質問させていただきます。 making all in /opt/net-snmp/net-snmp-5.4/snmplib make[1]: Entering directory `/opt/net-snmp/net-snmp-5.4/snmplib' /bin/sh ../libtool --mode=compile gcc -I../include -I. -I../snmplib -g -O2 -Dsolaris2=solaris2 -c -o snmp_client.lo snmp_client.c gcc -I../include -I. -I../snmplib -g -O2 -Dsolaris2=solaris2 -c snmp_client.c -fPIC -DPIC -o .libs/snmp_client.o In file included from snmp_client.c:73: /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/sys/param.h:181: warning: `NBBY' redefined /usr/include/sys/select.h:59: warning: this is the location of the previous definition In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/time.h:91, from /usr/include/sys/time.h:419, from /usr/include/sys/select.h:20, from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/sys/types.h:284, from /usr/include/sys/wait.h:20, from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/stdlib.h:17, from snmp_client.c:47: /usr/include/sys/siginfo.h:74: parse error before `pthread_attr_t' /usr/include/sys/siginfo.h:74: warning: no semicolon at end of struct or union /usr/include/sys/siginfo.h:76: parse error before `}' In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/time.h:91, from /usr/include/sys/time.h:419, from /usr/include/sys/select.h:20, from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/sys/types.h:284, from /usr/include/sys/wait.h:20, from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/stdlib.h:17, from snmp_client.c:47: /usr/include/sys/siginfo.h:284: parse error before `int32_t' /usr/include/sys/siginfo.h:284: warning: no semicolon at end of struct or union /usr/include/sys/siginfo.h:284: warning: no semicolon at end of struct or union /usr/include/sys/siginfo.h:286: parse error before `}' /usr/include/sys/siginfo.h:286: warning: data definition has no type or storage class /usr/include/sys/siginfo.h:288: parse error before `}' /usr/include/sys/siginfo.h:288: warning: data definition has no type or storage class /usr/include/sys/siginfo.h:415: parse error before `int32_t' /usr/include/sys/siginfo.h:415: warning: no semicolon at end of struct or union /usr/include/sys/siginfo.h:415: warning: no semicolon at end of struct or union /usr/include/sys/siginfo.h:416: conflicting types for `__rctl' /usr/include/sys/siginfo.h:285: previous declaration of `__rctl' /usr/include/sys/siginfo.h:418: parse error before `}' /usr/include/sys/siginfo.h:418: warning: data definition has no type or storage class /usr/include/sys/siginfo.h:420: parse error before `}' /usr/include/sys/siginfo.h:420: warning: data definition has no type or storage class /usr/include/sys/siginfo.h:424: parse error before `k_siginfo_t' /usr/include/sys/siginfo.h:424: warning: no semicolon at end of struct or union /usr/include/sys/siginfo.h:428: parse error before `}' /usr/include/sys/siginfo.h:428: warning: data definition has no type or storage class In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/stdlib.h:17, from snmp_client.c:47: /usr/include/sys/wait.h:90: parse error before `siginfo_t' make[1]: *** [snmp_client.lo] Error 1 make[1]: Leaving directory `/opt/net-snmp/net-snmp-5.4/snmplib' make: *** [subdirs] Error 1 お分かりの方がいらっしゃいましたらよろしくお願い致します。

  • Solaris10でNet-SNMPがインストールできない

    Solaris初心者です。よろしくお願いします。 Net-snmpをSolaris10にソースからインストールしようとしたのですが、下記のエラーが出てしまいインストールできません。 ./configure make make test(Summary: 59 / 59 succeeded.) make install creating directory /usr/local/include/net-snmp ./install-sh -c -m 644 ./include/net-snmp/version.h /usr/local/include/net-snmp/version.h cp: cannot create /usr/local/include/net-snmp/#inst.3763#: Permission denied *** Error code 2 The following command caused the error: if test "version.h" != "" ; then \ echo creating directory /usr/local/include/net-snmp ; \ it="version.h" ; \ /bin/sh ./mkinstalldirs /usr/local/include/net-snmp ; \ for i in $it ; do \ /bin/sh ./libtool --mode=install ./install-sh -c -m 644 ./include/net-snmp/$i /usr/local/include/net-snmp ; \ echo "installing $i in /usr/local/include/net-snmp" ; \ done \ fi make: Fatal error: Command failed for target `installlocalheaders' googleで調べては見たのですが(エラー文)同じ問題に対しての返答がなくて困っています。どうしたらよいでしょうか?よろしくお願いします。

  • Solaris10でdelegateをインストール

    OS:Solaris10(SPARC)を使っています。 delegateのインストールをしようとしているのですが 解凍したあとmakeコマンドを入れると # cd work/delegate8.95 # /usr/ccs/bin/make すると、以下のメッセージがでます。 cc -DMKMKMK -DDEFCC=\"cc\" -I../include -L../lib mkmkmk.c -o mkmkmk.exe /usr/ucb/cc:language optional software package not installed **Error Code 1 make:Fatal error :Command failed for target 'mkmake.exe' # /usr/ccs/bin/make CC=gcc と入れても sh:gcc 見つかりません とエラーがでます。 コンパイラがインストールできていないのでしょうか?それともパスの設定がまずいのでしょうか? どこから手をつけてよいかわからない状態です。アドバイスをよろしくお願い致します。

  • 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
  • OpenGLがコンパイルできません。

    OpenGLをコンパイルしようとしてCygwinで 「gcc -o sample (プログラムの名前).c -I/usr/local/include -lglut32 -lglu32 -lopengl32」 と入力すると 「In file included from /usr/include/GL/glut.h:132, from (プログラムの名前).c:1: /usr/include/w32api/GL/glu.h:230: error ハクヒ。・ィ・鬘シ before '*' taken」 と表示されてコンパイルできません。「ハクヒ。・ィ・鬘シ」の部分は文字化けだと思います。このエラーメッセージから何が問題か分かる方がいらっしゃいましたら回答していただけると嬉しいです。CygwinはNetinstallからすべてのものをインストールしたので足りないものはないと思います。よろしくお願いします。

  • TunesBrowserのmakeで失敗します

    redhat9,kernel-2.4.20-8,gcc-3.2.2-5で利用してます。 TunesBrowser(http://crazney.net/programs/itunes/tunesbrowser.html)のmake時に以下エラーで失敗します。 /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libglade-2.0.so: undefined reference to `g_return_if_fail_warning' collect2: ld returned 1 exit status make[1]: *** [tunesbrowser] エラー 1 make: *** [all] エラー 2 Makefile中にはlibglade-2.0を含む項目は以下のようなものがあります。 (中略) GLADE_CFLAGS = -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/X11R6/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include GLADE_LIBS = -Wl,--export-dynamic -L/usr/X11R6/lib -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lz -lgdk-x11-2.0 -lXrandr -lXi -lXinerama -lXext -latk-1.0 -lgdk_pixbuf-2.0 -lm -lXcursor -lpangoxft-1.0 -lXft -lfreetype -lXrender -lfontconfig -lpangox-1.0 -lX11 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 (中略) TB_CFLAGS = -I/usr/local/include -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/X11R6/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include (省略) またlibglade-2.0.soは /usr/lib/libglade-2.0.so にあります。 色々調べてみたところundefined referenceのエラーの時はリンクが出来ていないのが原因のようですが、リンクのさせ方が分からないので、分かる人教えてください。

  • newlibのmakeについて

    gcc4.4.0、h8300-elfのビルドをしています。 gccまではエラーが出てもなんとかできたのですが、newlibをmakeする段階で以下のエラーが出て解決方法がわかりません。 h8300-elf-gcc -B/home/user/build/gcc-4.4.0_h8300-elf/newlib-1.17.0/build/h8300-elf/newlib/ -isystem /home/user/build/gcc-4.4.0_h8300-elf/newlib-1.17.0/build/h8300-elf/newlib/targ-include -isystem /home/user/build/gcc-4.4.0_h8300-elf/newlib-1.17.0/newlib/libc/include -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.17.0\" -DPACKAGE_STRING=\"newlib\ 1.17.0\" -DPACKAGE_BUGREPORT=\"\" -I. -I../../../../../newlib/libc/argz -O2 -DSMALL_DTOA -DSMALL_MEMORY -fno-builtin -g -O2 -c -o lib_a-dummy.o `test -f 'dummy.c' || echo '../../../../../newlib/libc/argz/'`dummy.c /bin/bash: h8300-elf-gcc: command not found make[5]: *** [lib_a-dummy.o] エラー 127 h8300-elf-gccのコマンドが見つかりませんと出ているようなのですが、 h8300-elf-ccではなくgccとなっていますし、gccにもパスが通っているのは確認できています。 gccからもう一度インストールし直したんですが、変わらず同じところでエラーが出てしまいどうしたらいいのか分かりません。 よろしくお願いします。