[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#290287: apache: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment



Package: apache
Severity: normal
Tags: patch

When building 'apache' on amd64 with gcc-4.0,
I get the following error:

gcc -c  -I../../os/unix -I../../include -I/usr/local/ssl/include   -DLINUX=22 -DTARGET=\"apache\" -DHAVE_SET_DUMPABLE -DDB_DBM_HSEARCH=1 -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DAPACHE_SSL -O1  -g -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 `../../apaci` -fPIC -DSHARED_MODULE pass_cb.c && mv pass_cb.o pass_cb.lo
pass_cb.c: In function 'get_pass_cb_data':
pass_cb.c:66: error: invalid lvalue in assignment
make[5]: *** [pass_cb.lo] Error 1

With the attached patch 'apache' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/apache-1.3.33/debian/patches/ssl/008_gcc4_fix.patch ./debian/patches/ssl/008_gcc4_fix.patch
--- ../tmp-orig/apache-1.3.33/debian/patches/ssl/008_gcc4_fix.patch	1970-01-01 01:00:00.000000000 +0100
+++ ./debian/patches/ssl/008_gcc4_fix.patch	2005-01-13 12:15:51.644984343 +0100
@@ -0,0 +1,11 @@
+--- pass_cb.c	2004-12-11 14:54:04.000000000 +0100
++++ build-tree-apache-ssl/src/modules/ssl/pass_cb.c	2004-12-11 19:21:17.169199800 +0100
+@@ -63,7 +63,7 @@
+ 	    pass_cb_data=(PassCBData *)pass_cb_data->next;
+ 
+ 	/* updating the list */
+-	(PassCBData *)pass_cb_data->next=new;
++	pass_cb_data->next=new;
+ 
+ 	/* returning the new cache entry */
+ 	return new;



Reply to: