Tulio Oliveira <tulio(at)marilia(dot)com> writes:
> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations
> -I../../src/include
> -c -o pg_resetxlog.o pg_resetxlog.c
> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations pg_resetxlog.o
> pg_crc.o -Wl,-rpath,/usr/local/pgsql/lib -lz -lcrypt -lresolv -lnsl
> -ldl -lm -lbsd -o pg_resetxlog
> /usr/bin/ld: cannot find -lbsd
> collect2: ld returned 1 exit status
> make: *** [pg_resetxlog] Error 1
Hmm, did you run configure yourself, or are you using configure data
out of an RPM? Configure should not have added -lbsd to the compile
switches if you don't have it available.
regards, tom lane