Hi, all,
I am installing postgresql-7.1.2 on Linux 2.4.12. I did configure
with only one option --prefix=.... when I did make ( I am using
gnu make 3.78.1 and gcc 2.95.2), I got errors below:
.......
gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations command.o
common.o help.o input.o stringutils.o mainloop.o copy.o startup.o
prompt.o variables.o large_obj.o print.o describe.o tab-complete.o
-L../../../src/interfaces/libpq -lpq
-Wl,-rpath,/home/grad4/tawan/pgsql/lib -lcrypt -lresolv -lnsl -ldl -lm
-lhistory -o psql
/local/gcc-2.95.2/lib/libhistory.a(histfile.o): In function
`read_history_range':
/usr/include/sys/stat.h:161: undefined reference to `_fxstat'
/local/gcc-2.95.2/lib/libhistory.a(histfile.o): In function
`history_truncate_file':
/usr/include/sys/stat.h:161: undefined reference to `_fxstat'
collect2: ld returned 1 exit status
make[3]: *** [psql] Error 1
make[3]: Leaving directory
`/home/grad4/tawan/cs589/postgresql-7.1.2/src/bin/psql'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/grad4/tawan/cs589/postgresql-7.1.2/src/bin'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/grad4/tawan/cs589/postgresql-7.1.2/src'
make: *** [all] Error 2
I have no idea to figure it out. Hope you can help me out. Thanks
tony