I get many failures in the makefile in
postgresql-7.3/src/backend/utils/mb/conversion_procs/* Each is the
same. When I re-type the gcc command by hand with the option switches
re-orderd it works and the *.so library gets built
Here is what I'm running
>uname -a
SunOS wi792 5.8 Generic_108529-17 i86pc i386 i86pc
>gcc --version
3.0.2
Here is the last of make's output ending with the error. This is
followed by what I had to type in. If you type "gcc --help" you will
see that "infile" should be last but still that does not explain it.
make[3]: Entering directory
`/home/postgres/postgresql-7.3/src/backend/utils/mb/conversion_procs/euc_cn_and_mic'
gcc -Wall -Wmissing-prototypes -Wmissing-declarations -fPIC
-I../../../../../../src/include -I /opt/sfw/include -c -o
euc_cn_and_mic.o euc_cn_and_mic.c
gcc -shared -Wl,-soname,libeuc_cn_and_mic.so.0 euc_cn_and_mic.o
-L../../../../../../src/port -L -o libeuc_cn_and_mic.so.0.0
gcc: libeuc_cn_and_mic.so.0.0: No such file or directory
make[3]: *** [libeuc_cn_and_mic.so.0.0] Error 1
make[3]: Leaving directory
`/home/postgres/postgresql-7.3/src/backend/utils/mb/conversion_procs/euc_cn_and_mic'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/postgres/postgresql-7.3/src/backend/utils/mb/conversion_procs'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/postgres/postgresql-7.3/src'
make: *** [all] Error 2
wi792:~/postgresql-7.3>cd
/home/postgres/postgresql-7.3/src/backend/utils/mb/conversion_procs/euc_cn_and_mic
wi792:~...conversion_procs/euc_cn_and_mic>gcc -shared
-Wl,-soname,libeuc_cn_and_mic.so.0 \
? -o libeuc_cn_and_mic.so.0.0
wi792:~...conversion_procs/euc_cn_and_mic>ls -l
-rw-r--r-- 1 postgres postgres 404 Aug 21 14:33 Makefile
-rw-r--r-- 1 postgres postgres 2585 Oct 26 08:00 euc_cn_and_mic.c
-rw-r--r-- 1 postgres postgres 1600 Dec 26 15:05 euc_cn_and_mic.o
-rwxr-xr-x 1 postgres postgres 5610 Dec 26 15:07
libeuc_cn_and_mic.so.0.0
wi792:~...conversion_procs/euc_cn_and_mic>