Search squid archive

Re: Make install error

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

 



Hi,

After adding the line, re-compiled and make install, the following error encountered:

if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/export/home/squid/etc/squid.conf\" -I. -I. -I../include -I. -I. -I../include -I../include -Wall -g -O2 -MT store_dir.o -MD -MP -MF ".deps/store_dir.Tpo" -c -o store_dir.o store_dir.c; \ then mv -f ".deps/store_dir.Tpo" ".deps/store_dir.Po"; else rm -f ".deps/store_dir.Tpo"; exit 1; fi
store_dir.c: In function `storeDirGetBlkSize':
store_dir.c:529: error: too few arguments to function `statfs'
store_dir.c: In function `storeDirGetUFSStats':
store_dir.c:568: error: too few arguments to function `statfs'
*** Error code 1
make: Fatal error: Command failed for target `store_dir.o'
Current working directory /export/home/squid-2.6.STABLE12/src
*** Error code 1
make: Fatal error: Command failed for target `install-recursive'
Current working directory /export/home/squid-2.6.STABLE12/src
*** Error code 1
make: Fatal error: Command failed for target `install'
Current working directory /export/home/squid-2.6.STABLE12/src
*** Error code 1
make: Fatal error: Command failed for target `install-recursive'

Kindly advise how can the above error be resolved.

Thank you.

From: Henrik Nordstrom <henrik@xxxxxxxxxxxxxxxxxxx>
To: squid squid <squidusr@xxxxxxxxxxx>
CC: squid-users@xxxxxxxxxxxxxxx
Subject: Re:  Make install error
Date: Mon, 30 Apr 2007 10:35:37 +0200

mån 2007-04-30 klockan 12:22 +0800 skrev squid squid:
> Hi,
>
> I encountered error at make install and the error as follows:
>
> then mv -f ".deps/store_dir.Tpo" ".deps/store_dir.Po"; else rm -f
> ".deps/store_dir.Tpo"; exit 1; fi
> store_dir.c: In function `storeDirGetBlkSize':
> store_dir.c:526: error: storage size of `sfs' isn't known
> store_dir.c:527: warning: implicit declaration of function `statfs'

Does it work if you add the following line in src/store_dir.c

#include <sys/statfs.h>

around line 47 or so, just after the other includes and before the
declaration of storeDirValidSwapDirSize

Regards
Henrik


<< signature.asc >>

_________________________________________________________________
Call friends with PC-to-PC calling ? FREE http://get.live.com/messenger/overview


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux