Search squid archive

RE: squid 3.2 helpers/external_acl/session compile problem

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

 



Same error.

 

When I remove the line 

#include <db.h>

 

Error is different;

 

++ -DHAVE_CONFIG_H -I../../.. -I../../../include -I../../../lib -I../../../src -I../../../include -I/usr/local/include -I/usr/include -I/usr/include -I/usr/local/include -I/usr/include -I/usr/include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -pipe -I/usr/local/include -g -I/usr/local/include -MT ext_session_acl.o -MD -MP -MF .deps/ext_session_acl.Tpo -c -o ext_session_acl.o ext_session_acl.cc
ext_session_acl.cc:53: error: expected constructor, destructor, or type conversion before '*' token
ext_session_acl.cc:54: error: expected constructor, destructor, or type conversion before '*' token
ext_session_acl.cc: In function 'void init_db()':
ext_session_acl.cc:65: error: 'db_env' was not declared in this scope
ext_session_acl.cc:65: error: 'db_env_create' was not declared in this scope
ext_session_acl.cc:66: error: 'DB_CREATE' was not declared in this scope
ext_session_acl.cc:66: error: 'DB_INIT_MPOOL' was not declared in this scope
ext_session_acl.cc:66: error: 'DB_INIT_LOCK' was not declared in this scope
ext_session_acl.cc:71: error: 'db' was not declared in this scope
ext_session_acl.cc:71: error: 'db_create' was not declared in this scope
ext_session_acl.cc:76: error: 'db_env' was not declared in this scope
ext_session_acl.cc:77: error: 'db' was not declared in this scope
ext_session_acl.cc:77: error: 'DB_BTREE' was not declared in this scope
ext_session_acl.cc:77: error: 'DB_CREATE' was not declared in this scope
ext_session_acl.cc:84: error: 'db' was not declared in this scope
ext_session_acl.cc:84: error: 'db_create' was not declared in this scope
ext_session_acl.cc:85: error: 'DB_BTREE' was not declared in this scope
ext_session_acl.cc:85: error: 'DB_CREATE' was not declared in this scope
ext_session_acl.cc: In function 'void shutdown_db()':
ext_session_acl.cc:94: error: 'db' was not declared in this scope
ext_session_acl.cc:95: error: 'db_env' was not declared in this scope
ext_session_acl.cc: In function 'int session_active(const char*, size_t)':
ext_session_acl.cc:104: error: 'DBT' was not declared in this scope
ext_session_acl.cc:104: error: expected `;' before 'key'
ext_session_acl.cc:105: error: expected `;' before 'data'
ext_session_acl.cc:106: error: 'key' was not declared in this scope
ext_session_acl.cc:108: error: 'db' was not declared in this scope
ext_session_acl.cc:108: error: 'data' was not declared in this scope
ext_session_acl.cc: In function 'void session_login(const char*, size_t)':
ext_session_acl.cc:124: error: 'DBT' was not declared in this scope
ext_session_acl.cc:124: error: expected `;' before 'key'
ext_session_acl.cc:125: error: expected `;' before 'data'
ext_session_acl.cc:126: error: 'key' was not declared in this scope
ext_session_acl.cc:129: error: 'data' was not declared in this scope
ext_session_acl.cc:131: error: 'db' was not declared in this scope
ext_session_acl.cc: In function 'void session_logout(const char*, size_t)':
ext_session_acl.cc:136: error: 'DBT' was not declared in this scope
ext_session_acl.cc:136: error: expected `;' before 'key'
ext_session_acl.cc:137: error: 'key' was not declared in this scope
ext_session_acl.cc:139: error: 'db' was not declared in this scope
*** Error code 1



> From: andy@xxxxxxxxxxx
> To: ozbilgin@xxxxxxxxxxx
> CC: squid-users@xxxxxxxxxxxxxxx
> Date: Wed, 21 Dec 2011 09:13:35 +0000
> Subject: RE:  squid 3.2 helpers/external_acl/session compile problem
> 
> On Wed, 2011-12-21 at 10:54 +0200, yusuf özbilgin wrote:
> > > On Tue, 2011-12-20 at 20:18 +0200, yusuf özbilgin wrote:
> > > > Hi,
> > > > 
> > > > I am getting error when compile helpers/external_acl/session on freebsd 7.4.
> > > > Error details are below.
> > > > 
> > > > What can be the problem?
> > > > 
> > > > Thanks,
> > > > Yusuf
> > > > 
> > > > 
> > > > squid version is squid-3.2.0.14-20111219-r11470
> > > > berkeley db version is 4.8
> > > > 
> > > > 
> > > > $make
> > > > 
> > > > /usr/local/bin/bash ../../../libtool --tag=CXX --mode=link c++ -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -pipe -I/usr/local/include -g -I/usr/local/include -rpath=/usr/local/lib -L/usr/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -o ext_session_acl ext_session_acl.o -L../../../compat
> > > > libtool: link: c++ -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -pipe -I/usr/local/include -g -I/usr/local/include -rpath=/usr/local/lib -Wl,-R/usr/local/lib -o ext_session_acl ext_session_acl.o -L/usr/local/lib -L/home/user1/squid/squid-3.2.0.14-20111219-r11470/compat
> > > > ext_session_acl.o(.text+0x3ff): In function `init_db':
> > > > /home/user1/squid/squid-3.2.0.14-20111219-r11470/helpers/external_acl/session/ext_session_acl.cc:68: undefined reference to `db_env_create'
> > > > ext_session_acl.o(.text+0x4a6):/home/user1/squid/squid-3.2.0.14-20111219-r11470/helpers/external_acl/session/ext_session_acl.cc:74: undefined reference to `db_create'
> > > > ext_session_acl.o(.text+0x57c):/home/user1/squid/squid-3.2.0.14-20111219-r11470/helpers/external_acl/session/ext_session_acl.cc:87: undefined reference to `db_create'
> > > > *** Error code 1
> > > > Stop in /home/user1/squid/squid-3.2.0.14-20111219-r11470/helpers/external_acl/session.
> > > 
> > > Looks like it hasn't found your db.inc. Try a "grep HAVE_DB_H
> > > config.log" in the source tree. You should see something like "HAVE_DB_H
> > > 1". If not, then it's not found db.h, hence the compilation errors
> > > above.
> 
> <Top posting fixed>
> 
> > Yes there is a line #define HAVE_DB_H 1.
> > 
> > and olsa I tried to compile after changed code like below.
> > But same problem.
> > 
> > ext_session_acl.cc
> > 
> > #if HAVE_DB_H
> > #include "/usr/local/include/db48/db.h"
> > #endif
> 
> Can you try putting the line back to "#include <db.h>" and then remove
> the "#if HAVE_DB_H" and "#endif" lines. Try recompiling, and see what
> error message you then get.
> 
> Andy
> 
>  		 	   		  


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

  Powered by Linux