error compiling postgresql with fedora mingw

Richard W.M. Jones rjones at
Wed Nov 26 11:00:17 UTC 2008

On Tue, Nov 25, 2008 at 08:43:12AM -0200, Itamar - IspBrasil wrote:
> `/home/itamar/fedora/mingw-postgresql/postgresql-8.3.5/src/port'
> i686-pc-mingw32-gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2  
> -fexceptions --param=ssp-buffer-size=4 -mms-bitfields -Wall  
> -Wmissing-prototypes -Wpointer-arith -Winline  
> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing  
> -fwrapv zic.o ialloc.o scheck.o localtime.o -L../../src/port  
> -Wl,--allow-multiple-definition   -lpgport -lz -lm  -lws2_32 -lshfolder  
> -o zic.exe
> ../../src/port/libpgport.a: could not read symbols: Archive has no  
> index; run ranlib to add one

Probably best to ask Fedora MinGW questions on the Fedora MinGW list
next time ...

In this case the error is that the script uses 'ar' to create a static
library.  Either use 'i686-pc-mingw32-ar rcs' to make the library, or
run 'i686-pc-mingw32-ranlib' on the library generated above by 'ar'.


Richard Jones, Emerging Technologies, Red Hat
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.

More information about the mingw mailing list