agusneos / lusca-cache

Automatically exported from code.google.com/p/lusca-cache
0 stars 0 forks source link

error compile: rev 13903 #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. centos 5.2 (again, I don't know in another distro)
2. configure didn't throw error

----------------------------
my configure params:

LDFLAGS="-lpcreposix -lpcre" \
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" \
CHOST="i686-pc-linux-gnu" \
./configure --prefix=/opt/lusca \
--disable-auth \
--disable-ident-lookups \
--disable-poll \
--disable-select \
--enable-arp-acl \
--enable-cache-digests \
--enable-coss-aio-ops \
--enable-delay-pools \
--enable-epoll \
--enable-err-languages=English \
--enable-follow-x-forwarded-for \
--enable-forw-via-db \
--enable-htcp \
--enable-http-violations \
--enable-icmp \
--enable-kill-parent-hack \
--enable-large-cache-files \
--enable-linux-netfilter \
--enable-removal-policies=heap \
--enable-snmp \
--enable-ssl \
--enable-storeio="null,aufs,coss" \
--enable-x-accelerator-vary \
--with-aio \
--with-dl \
--with-large-files \
--with-maxfd=16384 \
--with-pthreads

----------------------------------------

the compile error:

aufs/store_dir_aufs.c: In function ‘storeAufsDirInit’:
aufs/store_dir_aufs.c:375: error: ‘SquidConfig’ has no member named 
‘aiops’
aufs/store_dir_aufs.c:376: error: ‘SquidConfig’ has no member named 
‘aiops’
make[3]: *** [aufs/store_dir_aufs.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/usr/local/src/lusca/src/fs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/lusca/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/lusca/src'
make: *** [all-recursive] Error 1

--------------------------

note: all required library devel had been installed, this box running lusca
1.0 release compiled from source.

Original issue reported on code.google.com by dhani.fa...@gmail.com on 2 Apr 2009 at 4:17

GoogleCodeExporter commented 9 years ago
Hm!

Have you:

* grabbed the latest head revision?
* run sh bootstrap.sh
* run configure
* make clean and make from the top level directory, not inside any subdirectory?

That error sounds like your cf.data.pre file isn't up to date and/or it hasn't 
made an updated parser C source 
file. 

Original comment by adrian.c...@gmail.com on 2 Apr 2009 at 4:49

GoogleCodeExporter commented 9 years ago
[kura@host lusca.svn]# svn up
U    libsqdebug/debug_syslog.c
Updated to revision 13904.

[kura@host lusca.svn]# svn export . ../lusca

[kura@host lusca.svn]# cd ../lusca

[kura@host lusca]# sh bootstrap.sh
automake :
autoconfg:
Bootstrapping
configure.in: installing `cfgaux/install-sh'
configure.in: installing `cfgaux/missing'
app/tcptest/Makefile.am: installing `cfgaux/compile'
app/tcptest/Makefile.am: installing `cfgaux/depcomp'
configure.in:28: installing `cfgaux/config.guess'
configure.in:28: installing `cfgaux/config.sub'
Autotool bootstrapping complete.
[root@host lusca]# sh bootstrap.sh
automake :
autoconfg:
Bootstrapping
configure.in: installing `cfgaux/install-sh'
configure.in: installing `cfgaux/missing'
app/tcptest/Makefile.am: installing `cfgaux/compile'
app/tcptest/Makefile.am: installing `cfgaux/depcomp'
configure.in:28: installing `cfgaux/config.guess'
configure.in:28: installing `cfgaux/config.sub'
Autotool bootstrapping complete.

[kura@host lusca]# ./setup-lusca <-- this is the setup script contain configure
parameters above

[kura@host lusca]# make clean && make
[snip]
everything fine
[/snip]
aufs/store_dir_aufs.c: In function ‘storeAufsDirInit’:
aufs/store_dir_aufs.c:375: error: ‘SquidConfig’ has no member named 
‘aiops’
aufs/store_dir_aufs.c:376: error: ‘SquidConfig’ has no member named 
‘aiops’
make[3]: *** [aufs/store_dir_aufs.o] Error 1
make[3]: Leaving directory `/usr/local/src/lusca/src/fs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/lusca/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/lusca/src'
make: *** [all-recursive] Error 1
[kura@host lusca]#

Original comment by dhani.fa...@gmail.com on 2 Apr 2009 at 9:35

GoogleCodeExporter commented 9 years ago
Right. Its compiled in as an option when you enable AUFS but somehow your 
configuration options are breaking 
it.

try removing '--with-aio' from the configuration script and build!

Original comment by adrian.c...@gmail.com on 2 Apr 2009 at 9:51

GoogleCodeExporter commented 9 years ago
and... it works... thanks! :)

[kura@host lusca]# /opt/lusca/sbin/squid -v
Squid Cache: Version LUSCA_HEAD
configure options: '--prefix=/opt/lusca' '--disable-auth' 
'--disable-ident-lookups'
'--disable-poll' '--disable-select' '--enable-arp-acl' '--enable-cache-digests'
'--enable-delay-pools' '--enable-epoll' '--enable-err-languages=English'
'--enable-follow-x-forwarded-for' '--enable-forw-via-db' '--enable-htcp'
'--enable-http-violations' '--enable-icmp' '--enable-kill-parent-hack'
'--enable-large-cache-files' '--enable-linux-netfilter'
'--enable-removal-policies=heap' '--enable-snmp' '--enable-ssl'
'--enable-storeio=null,aufs,coss' '--enable-x-accelerator-vary' '--with-dl'
'--with-large-files' '--with-maxfd=16384' '--with-pthreads' 
'CFLAGS=-march=prescott
-O2 -pipe -fomit-frame-pointer' 'LDFLAGS=-lpcreposix -lpcre'

Original comment by dhani.fa...@gmail.com on 3 Apr 2009 at 1:34

GoogleCodeExporter commented 9 years ago
Resolved!

Original comment by adrian.c...@gmail.com on 3 Apr 2009 at 3:56