[Serusers] Postgres does not compile with GCC 4.0.x
Boris
voip at boris.ca
Sat May 21 11:38:07 CEST 2005
After downloading the latest SER from CVS.. .It seems when trying to compile
the postgres module with GCC 4.0.x and Glibc 2.3.5, I get the following
error
gcc -fPIC -DPIC -g -O -funroll-loops -Wcast-align -Wall -DNAME='"ser"'
-DVERSION='"0.10.99-dev6"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc
4.0"' -D__CPU_i386 -D__OS_linux -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC
-DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DDBG_QM_MALLOC -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2
-DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL
-DHAVE_ALLOCA_H -I/usr/local/include -I/usr/local/pgsql/include -I/usr/include/postgresql
-c dbase.c -o dbase.o
dbase.c: In function 'db_init':
dbase.c:245: error: invalid lvalue in assignment
make: *** [dbase.o] Error 1
Any ideas on how to fix this? I looked at the source on line 245 and it
seems that one line is trying to do multiple things. Any ideas on how to fix
this?
More information about the sr-users
mailing list