Re: Problem compiling 1.1.beta8

From: Franz Sirl <>
Date: Sun, 20 Oct 1996 19:45:53 +0200

At 14:44 Uhr +0200 20.10.1996, Lars Marowsky-Bree wrote:
>Linux 2.0.23 / libc 5.3.12 / gcc 2.7.2 / squid 1.1.beta8
>gcc -o squid -g acl.o async_io.o background.o cache_cf.o client_db.o
>errorpage.o client_side.o comm.o debug.o disk.o dns.o fdstat.o filemap.o
>ftp.o fqdncache.o gopher.o hash.o http.o icmp.o icp.o ident.o ipcache.o
>main.o mime.o neighbors.o net_db.o objcache.o proto.o redirect.o
>send-announce.o ssl.o stack.o stat.o stmem.o store.o store_clean.o
>storetoString.o tools.o ttl.o url.o wais.o -L../lib -lregex -lmiscutil -lbsd
>gopher.o: In function gopherToHTML':
>/usr/src/squid-1.1.beta1/src/gopher.c:459: undefined reference to xmemcpy'
>/usr/src/squid-1.1.beta1/src/gopher.c:486: undefined reference to xmemcpy'
>stmem.o: In function memCopy':
>stmem.o(.text+0xd0): undefined reference to xmemcpy'
>stmem.o(.text+0xf5): undefined reference to xmemcpy'
>stmem.o(.text+0x116): undefined reference to xmemcpy'
>stmem.o(.text+0x8ab): more undefined references to xmemcpy' follow
>make[1]: *** [squid] Error 1


I have the same setup and no problems compiling, despite the two usual warnings

gcc -g -O -Wall -I../include -I./../include -c getfullhostname.c -o
getfullhostname.c: In function `getfullhostname':
getfullhostname.c:160: warning: return discards `const' from pointer target

gcc -g -O -Wall -I. -I../include -I./../include
name()" -DCACHE_HTTP_PORT=8080 -DCACHE_ICP_PORT=8082 -c fqdncache.c
-o fq
fqdncache.c: In function `fqdncache_add':
fqdncache.c:395: warning: passing arg 1 of `xstrdup' discards `const' from
er target type

and a new one for beta8:

gcc -g -O -Wall -I. -I../include -I./../include
name()" -DCACHE_HTTP_PORT=8080 -DCACHE_ICP_PORT=8082 -c icp.c -o icp.o
icp.c: In function `icpHandleUdp':
icp.c:1417: warning: passing arg 5 of `recvfrom' from incompatible pointer type

Are you sure you have done the usual steps after patching up the version?

 rm config.cache
 make all
 make install

Franz Sirl

phone	++49 8104 8943-0	        mail	Lauterbach Datentechnik GmbH
fax	++49 8104 8943-49		c/o Franz Sirl
email	Fichtenstr. 27
web	D-85649 Hofolding	Germany
Received on Sun Oct 20 1996 - 10:44:37 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:33:18 MST