LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-29-2009, 03:34 AM   #1
markotitel
Member
 
Registered: Feb 2009
Location: Titel - Serbia
Posts: 181

Rep: Reputation: 18
Squid helpers squid_session compile


Hi, I build SQUID 3 stable 10 successfully.

Then I noticed it didnt compile squid_session helper. So I added session line in SQUID.SPEC file, and again started compiling, but then I got error
Code:
Making all in session
make[3]: Entering directory `/usr/src/redhat/BUILD/squid-3.0.STABLE10/helpers/external_acl/session'
gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I. -I../../../include -I../../../include  -I/usr/include/libxml2 -I/usr/kerberos/include   -m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Os -g -pipe -fsigned-char -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -c squid_session.c
squid_session.c:44:20: error: db_185.h: No such file or directory
squid_session.c:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
squid_session.c: In function 'init_db':
squid_session.c:55: error: 'db' undeclared (first use in this function)
squid_session.c:55: error: (Each undeclared identifier is reported only once
squid_session.c:55: error: for each function it appears in.)
squid_session.c:55: warning: implicit declaration of function 'dbopen'
squid_session.c:55: error: 'DB_BTREE' undeclared (first use in this function)
squid_session.c: In function 'shutdown_db':
squid_session.c:64: error: 'db' undeclared (first use in this function)
squid_session.c: In function 'session_active':
squid_session.c:71: error: 'DBT' undeclared (first use in this function)
squid_session.c:71: error: expected ';' before 'key'
squid_session.c:72: error: 'key' undeclared (first use in this function)
squid_session.c:74: error: 'db' undeclared (first use in this function)
squid_session.c:74: error: 'data' undeclared (first use in this function)
squid_session.c: In function 'session_login':
squid_session.c:90: error: 'DBT' undeclared (first use in this function)
squid_session.c:90: error: expected ';' before 'key'
squid_session.c:92: error: 'key' undeclared (first use in this function)
squid_session.c:94: error: 'data' undeclared (first use in this function)
squid_session.c:96: error: 'db' undeclared (first use in this function)
squid_session.c: In function 'session_logout':
squid_session.c:101: error: 'DBT' undeclared (first use in this function)
squid_session.c:101: error: expected ';' before 'key'
squid_session.c:102: error: 'key' undeclared (first use in this function)
squid_session.c:104: error: 'db' undeclared (first use in this function)
make[3]: *** [squid_session.o] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/squid-3.0.STABLE10/helpers/external_acl/session'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/squid-3.0.STABLE10/helpers/external_acl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/squid-3.0.STABLE10/helpers'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.95197 (%build)
I tried compiling it seperately same error occures.

Any ideas?
 
Old 05-29-2009, 08:40 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
squid_session.c:44:20: error: db_185.h: No such file or directory
Apparently you miss the devel package of the BerkerleyDB (db4).
Note also that is better before recompiling, to run "make clean" or "make distclean".

Regards

Last edited by bathory; 05-29-2009 at 08:41 AM.
 
Old 05-29-2009, 07:28 PM   #3
markotitel
Member
 
Registered: Feb 2009
Location: Titel - Serbia
Posts: 181

Original Poster
Rep: Reputation: 18
Package db4 - 4.3.29-9.fc6.i386 is already installed
so yum says
 
Old 05-30-2009, 01:13 AM   #4
markotitel
Member
 
Registered: Feb 2009
Location: Titel - Serbia
Posts: 181

Original Poster
Rep: Reputation: 18
a little update, I installed db4-devel now it compiled thanks bathory
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Helpers post fake or dangerous commands on ubuntu forums laan97ac Linux - General 2 11-29-2007 09:09 AM
vetting helpers jiml8 LQ Suggestions & Feedback 11 07-19-2007 02:07 PM
Firefox: Where are the mimetype helpers configured? kjones Linux - Desktop 4 03-06-2007 08:22 PM
Thanks to all Linux helpers LordStark Linux - General 3 08-06-2004 09:55 AM
Traceback errors are Satan's little helpers!!! crossbo101 Linux - Software 7 06-12-2001 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration