[pgsql-jp: 27734] コンパイルができない

辰巳寛 h.tatsumi @ bch.west.ntt.co.jp
2002年 10月 25日 (金) 11:39:20 JST


This is a multi-part message in MIME format.

------=_NextPart_000_001B_01C27C1B.28CED500
Content-Type: text/plain;
	charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit

 はじめまして
辰巳と申します.

 POSTGRESQLを新規のSOLARIS8のサーバーに
インストールしたいのですが、コンパイルが
できません。環境変数に問題があるように思う
のですがお分かりの方教えていただけませんで
しょうか?当方、UNIXは経験があまりありません。
よろしくお願いします。


トラブル事象
〓.configureを実行するとエラーとなります。【configure実行時のメッセージ】
〓config.Logを調べるとところどころで「Symbol referencing errors」がでていま
す。【Config.Logの例】
〓環境変数の問題と思い、マニュアル等を参照して設定をやり直しましたがダメでし
た。【.cshrcの設定】

【configure実行時のメッセージ】
Server% ./configure --enable-multibyte=EUC_JP --prefix=/usr/local/pgsql  
 
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.8
checking which template to use... solaris
checking whether to build with locale support... no
         .
         .
         .

configure:7478: checking for optreset
configure:7490: gcc -o conftest





conftest.c -lrt -lz -lresolv -lgen -lnsl -lsocket -ldl -lm -lreadline -lterm
cap  1>&5
Undefined   first referenced
 symbol         in file
optreset                            /var/tmp/ccNrjVLs.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
         .
         .
         .
checking for sigsetjmp... yes
checking for optreset... no
checking test program... failed
configure: error:
*** Could not execute a simple test program.  This may be a problem
*** related to locating shared libraries.  Check the file 'config.log'
*** for the exact reason.
Server%

【Config.Logの例】
    .
    .
    .
configure:7490: gcc -o conftest





conftest.c -lrt -lz -lresolv -lgen -lnsl -lsocket -ldl -lm -lreadline -lterm
cap  1>&5
Undefined   first referenced
 symbol         in file
optreset                            /var/tmp/ccNrjVLs.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:



【.cshrcの設定】

# @(#)cshrc 1.11 89/11/29 SMI
umask 022
set path=(/bin /usr/bin /usr/ucb /etc .)
if ( $?prompt ) then
 set history=32
endif

set path=(/usr/j2se/bin /usr/ccs/bin /usr/local/bin /opt/sfw/bin
/opt/sfw/lib /opt/SUNNWspro/bin $path)
setenv MANPATH
/usr/j2se/man:/usr/local/man:/opt/sfw/man:/opt/SUNWspro/man:/opt/SUNWste/lic
ense_tools/man:/usr/share/man

setenv LANG ja
setenv EDITOR vi
setenv PAGER less
setenv CC gcc


##環境変数
PATH="$PATH":/usr/local/pgsql/bin
export POSTGRES_HOME=/usr/local/pgsql
export PGLIB=$POSTGRES_HOME/lib
export PGDATA=$POSTGRES_HOME/data
export MANPAGE="$MANPATH":$POSTGRES_HOME/man
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"$PGLIB":/usr/local/lib


------=_NextPart_000_001B_01C27C1B.28CED500
Content-Type: text/html;
	charset="iso-2022-jp"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o =3D "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-2022-jp">
<META content=3D"MSHTML 5.50.4916.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>&nbsp;=1B$B$O$8$a$^$7$F=1B(B<BR>=1B$BC$L&$H?=3D$7$^$9!%=1B(B</DIV>
<DIV>&nbsp;</DIV>
<DIV>=1B$B!!=1B(BPOSTGRESQL=1B$B$r?75,$N=1B(BSOLARIS8=1B$B$N%5!<%P!<$K=1B=
(B<BR>=1B$B%$%s%9%H!<%k$7$?$$$N$G$9$,!"%3%s%Q%$%k$,=1B(B<BR>=1B$B$G$-$^$;=
$s!#4D6-JQ?t$KLdBj$,$"$k$h$&$K;W$&=1B(B<BR>=1B$B$N$G$9$,$*J,$+$j$NJ}65$($=
F$$$?$@$1$^$;$s$G=1B(B<BR>=1B$B$7$g$&$+!)EvJ}!"=1B(BUNIX=1B$B$O7P83$,$"$^=
$j$"$j$^$;$s!#=1B(B<BR>=1B$B$h$m$7$/$*4j$$$7$^$9!#=1B(B</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>=1B$B%H%i%V%k;v>]=1B(B<BR>=1B$B-!=1B(B.configure=1B$B$r<B9T$9$k$=
H%(%i!<$H$J$j$^$9!#!Z=1B(Bconfigure=1B$B<B9T;~$N%a%C%;!<%8![=1B(B<BR>=1B$=
B-"=1B(Bconfig.Log=1B$B$rD4$Y$k$H$H$3$m$I$3$m$G!V=1B(BSymbol=20
referencing=20
errors=1B$B!W$,$G$F$$$^$9!#!Z=1B(BConfig.Log=1B$B$NNc![=1B(B<BR>=1B$B-#4D=
6-JQ?t$NLdBj$H;W$$!"%^%K%e%"%kEy$r;2>H$7$F @ _Dj$r$d$jD>$7$^$7$?$,%@%a$G$7$=
?!#!Z!%#c#s#h#r#c$N @ _Dj![=1B(B</DIV>
<DIV>&nbsp;</DIV>
<DIV>=1B$B!Z=1B(Bconfigure=1B$B<B9T;~$N%a%C%;!<%8![=1B(B<BR>Server% =
./configure --enable-multibyte=3DEUC_JP=20
--prefix=3D/usr/local/pgsql=1B$B!!!!!!=1B(B<BR>loading cache =
./config.cache<BR>checking host=20
system type... sparc-sun-solaris2.8<BR>checking which template to use... =

solaris<BR>checking whether to build with locale support...=20
no<BR>=1B$B!!!!!!!!!!!!!!!!!!=1B(B.<BR>=1B$B!!!!!!!!!!!!!!!!!!=1B(B.<BR>=1B=
$B!!!!!!!!!!!!!!!!!!=1B(B.</DIV>
<DIV>&nbsp;</DIV>
<DIV>configure:7478: checking for optreset<BR>configure:7490: gcc -o=20
conftest&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; conftest.c -lrt -lz -lresolv =
-lgen -lnsl=20
-lsocket -ldl -lm -lreadline -ltermcap&nbsp;=20
1&gt;&amp;5<BR>Undefined&nbsp;&nbsp;&nbsp;first =
referenced<BR>&nbsp;symbol&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in=20
file<BR>optreset&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
/var/tmp/ccNrjVLs.o<BR>ld: fatal: Symbol referencing errors. No output =
written=20
to conftest<BR>collect2: ld returned 1 exit status<BR>configure: failed =
program=20
was:<BR>=1B$B!!!!!!!!!!!!!!!!!!=1B(B.<BR>=1B$B!!!!!!!!!!!!!!!!!!=1B(B.<BR=
>=1B$B!!!!!!!!!!!!!!!!!!=1B(B.<BR>checking for sigsetjmp...=20
yes<BR>checking for optreset... no<BR>checking test program...=20
failed<BR>configure: error: <BR>*** Could not execute a simple test=20
program.&nbsp; This may be a problem<BR>*** related to locating shared=20
libraries.&nbsp; Check the file 'config.log'<BR>*** for the exact=20
reason.<BR>Server% </DIV>
<DIV>&nbsp;</DIV>
<DIV>=1B$B!Z=1B(BConfig.Log=1B$B$NNc![=1B(B<BR>=1B$B!!!!!!!!!%=1B(B<BR>=1B=
$B!!!!!!!!!%=1B(B<BR>=1B$B!!!!!!!!!%=1B(B<BR>configure:7490: gcc -o=20
conftest&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; conftest.c -lrt -lz -lresolv =
-lgen -lnsl=20
-lsocket -ldl -lm -lreadline -ltermcap&nbsp;=20
1&gt;&amp;5<BR>Undefined&nbsp;&nbsp;&nbsp;first =
referenced<BR>&nbsp;symbol&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in=20
file<BR>optreset&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
/var/tmp/ccNrjVLs.o<BR>ld: fatal: Symbol referencing errors. No output =
written=20
to conftest<BR>collect2: ld returned 1 exit status<BR>configure: failed =
program=20
was:<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>=1B$B!Z!%#c#s#h#r#c$N @ _Dj![=1B(B</DIV>
<DIV>&nbsp;</DIV>
<DIV># @(#)cshrc 1.11 89/11/29 SMI<BR>umask 022<BR>set path=3D(/bin =
/usr/bin=20
/usr/ucb /etc .)<BR>if ( $?prompt ) then<BR>&nbsp;set =
history=3D32<BR>endif</DIV>
<DIV>&nbsp;</DIV>
<DIV>set path=3D(/usr/j2se/bin /usr/ccs/bin /usr/local/bin /opt/sfw/bin=20
/opt/sfw/lib /opt/SUNNWspro/bin $path)<BR>setenv&nbsp;MANPATH=20
/usr/j2se/man:/usr/local/man:/opt/sfw/man:/opt/SUNWspro/man:/opt/SUNWste/=
license_tools/man:/usr/share/man<BR>&nbsp;<BR>setenv=20
LANG ja<BR>setenv EDITOR vi<BR>setenv PAGER less<BR>setenv CC gcc</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>##=1B$B4D6-JQ?t=1B(B<BR>PATH=3D"$PATH":/usr/local/pgsql/bin<BR>e=
xport=20
POSTGRES_HOME=3D/usr/local/pgsql<BR>export =
PGLIB=3D$POSTGRES_HOME/lib<BR>export=20
PGDATA=3D$POSTGRES_HOME/data<BR>export=20
MANPAGE=3D"$MANPATH":$POSTGRES_HOME/man<BR>export=20
LD_LIBRARY_PATH=3D"$LD_LIBRARY_PATH":"$PGLIB":/usr/local/lib</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_001B_01C27C1B.28CED500--




pgsql-jp メーリングリストの案内