LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-15-2010, 11:05 PM   #1
squidusr
LQ Newbie
 
Registered: Mar 2008
Posts: 9

Rep: Reputation: 0
Problem compiling web polygraph 4.0.9


Hi,

I am trying to compile web polygraph 4.0.9 on Linux ES 3 and face the following error. Would appreciate very much for anyone who can help to advise on how to have the following error resolved??? Thank you.

[root@Orchid polygraph-4.0.9]# make
make all-recursive
make[1]: Entering directory `/home/andy/polygraph-4.0.9'
Making all in .
make[2]: Entering directory `/home/andy/polygraph-4.0.9'
make[2]: Leaving directory `/home/andy/polygraph-4.0.9'
Making all in src
make[2]: Entering directory `/home/andy/polygraph-4.0.9/src'
Making all in xstd
make[3]: Entering directory `/home/andy/polygraph-4.0.9/src/xstd'
g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../src -g -O1 -Wall -Wwrite-strings -Woverloaded-virtual -MT ResourceUsage.o -MD -MP -MF .deps/ResourceUsage.Tpo -c -o ResourceUsage.o ResourceUsage.cc
In file included from ../../src/xstd/String.h:11,
from ../../src/xstd/ResourceUsage.h:10,
from ResourceUsage.cc:13:
../../src/xstd/h/sstream.h: In constructor `ofixedstream:fixedstream(char*,
int)':
../../src/xstd/h/sstream.h:70: no matching function for call to `
std::basic_ostream<char, std::char_traits<char> >::basic_ostream()'
/usr/include/c++/3.2.3/iosfwd:61: candidates are: std::basic_ostream<char,
std::char_traits<char> >::basic_ostream(const std::basic_ostream<char,
std::char_traits<char> >&)
/usr/include/c++/3.2.3/ostream:72: std::basic_ostream<_CharT,
_Traits>::basic_ostream(std::basic_streambuf<_CharT, _Traits>*) [with _CharT
= char, _Traits = std::char_traits<char>]
make[3]: *** [ResourceUsage.o] Error 1
make[3]: Leaving directory `/home/andy/polygraph-4.0.9/src/xstd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/andy/polygraph-4.0.9/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/andy/polygraph-4.0.9'
make: *** [all] Error 2
[root@Orchid polygraph-4.0.9]#
 
Old 03-16-2010, 03:40 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The Redhat 9 based EL3 / AS 3 has end of life this year.
Origin = year 2002. Not all modern software will work.

Please try an older version.
Example : Polygraph 2.8.1 compiles OK. ( CentOS 3.9 ).
http://www.web-polygraph.org/downloads/releases.html

'krb5-devel' is required.
And the following temporary links ..
cd /usr/include
ln -s /usr/kerberos/include/krb5.h
ln -s /usr/kerberos/include/com_err.h
ln -s /usr/kerberos/include/profile.h
.....
 
Old 03-18-2010, 09:31 PM   #3
squidusr
LQ Newbie
 
Registered: Mar 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
The Redhat 9 based EL3 / AS 3 has end of life this year.
Origin = year 2002. Not all modern software will work.

Please try an older version.
Example : Polygraph 2.8.1 compiles OK. ( CentOS 3.9 ).
http://www.web-polygraph.org/downloads/releases.html

'krb5-devel' is required.
And the following temporary links ..
cd /usr/include
ln -s /usr/kerberos/include/krb5.h
ln -s /usr/kerberos/include/com_err.h
ln -s /usr/kerberos/include/profile.h
.....
Hi,

Thank you for the advise. I have managed to compile GCC 4.3.3 onto the box and able to pass thru the following error. However halfway thru make, the following error appear. Kindly advise on how to have the following error resolved. Regards.

mv -f .deps/MembershipGroupIterator.Tpo .deps/MembershipGroupIterator.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../src -I/usr/local/include -g -O1 -Wall -Wwrite-strings -Woverloaded-virtual -MT BodyParser.o -MD -MP -MF .deps/BodyParser.Tpo -c -o BodyParser.o BodyParser.cc
mv -f .deps/BodyParser.Tpo .deps/BodyParser.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../src -I/usr/local/include -g -O1 -Wall -Wwrite-strings -Woverloaded-virtual -MT MarkupBodyParser.o -MD -MP -MF .deps/MarkupBodyParser.Tpo -c -o MarkupBodyParser.o MarkupBodyParser.cc
mv -f .deps/MarkupBodyParser.Tpo .deps/MarkupBodyParser.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../src -I/usr/local/include -g -O1 -Wall -Wwrite-strings -Woverloaded-virtual -MT UriBodyParser.o -MD -MP -MF .deps/UriBodyParser.Tpo -c -o UriBodyParser.o UriBodyParser.cc
mv -f .deps/UriBodyParser.Tpo .deps/UriBodyParser.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../src -I/usr/local/include -g -O1 -Wall -Wwrite-strings -Woverloaded-virtual -MT UriScriptBodyParser.o -MD -MP -MF .deps/UriScriptBodyParser.Tpo -c -o UriScriptBodyParser.o UriScriptBodyParser.cc
mv -f .deps/UriScriptBodyParser.Tpo .deps/UriScriptBodyParser.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../src -I/usr/local/include -g -O1 -Wall -Wwrite-strings -Woverloaded-virtual -MT ChunkedCodingParser.o -MD -MP -MF .deps/ChunkedCodingParser.Tpo -c -o ChunkedCodingParser.o ChunkedCodingParser.cc
mv -f .deps/ChunkedCodingParser.Tpo .deps/ChunkedCodingParser.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../src -I/usr/local/include -g -O1 -Wall -Wwrite-strings -Woverloaded-virtual -MT AnyBodyParser.o -MD -MP -MF .deps/AnyBodyParser.Tpo -c -o AnyBodyParser.o AnyBodyParser.cc
mv -f .deps/AnyBodyParser.Tpo .deps/AnyBodyParser.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../src -I/usr/local/include -g -O1 -Wall -Wwrite-strings -Woverloaded-virtual -MT UserCred.o -MD -MP -MF .deps/UserCred.Tpo -c -o UserCred.o UserCred.cc
mv -f .deps/UserCred.Tpo .deps/UserCred.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../src -I/usr/local/include -g -O1 -Wall -Wwrite-strings -Woverloaded-virtual -MT SpnegoCodec.o -MD -MP -MF .deps/SpnegoCodec.Tpo -c -o SpnegoCodec.o SpnegoCodec.cc
mv -f .deps/SpnegoCodec.Tpo .deps/SpnegoCodec.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../src -I/usr/local/include -g -O1 -Wall -Wwrite-strings -Woverloaded-virtual -MT NtlmAuth.o -MD -MP -MF .deps/NtlmAuth.Tpo -c -o NtlmAuth.o NtlmAuth.cc
NtlmAuth.cc: In function 'bool ParseT2(unsigned int&, unsigned char*, const char*, unsigned int)':
NtlmAuth.cc:219: error: 'memcmp' was not declared in this scope
NtlmAuth.cc:226: error: 'memcpy' was not declared in this scope
NtlmAuth.cc: In function 'void mk_lm_hash(const char*, unsigned char*)':
NtlmAuth.cc:287: error: 'strlen' was not declared in this scope
NtlmAuth.cc:311: error: 'memset' was not declared in this scope
NtlmAuth.cc: In function 'void mk_nt_hash(const char*, unsigned char*)':
NtlmAuth.cc:330: error: 'strlen' was not declared in this scope
NtlmAuth.cc:343: error: 'memset' was not declared in this scope
NtlmAuth.cc: In function 'bool NegoNtlmAuthPrintT3(std:stream&, const char*, const char*, const char*, bool)':
NtlmAuth.cc:452: error: 'strlen' was not declared in this scope
NtlmAuth.cc:524: error: 'strchr' was not declared in this scope
NtlmAuth.cc:545: error: 'strrchr' was not declared in this scope
NtlmAuth.cc:546: error: 'strncpy' was not declared in this scope
NtlmAuth.cc:582: error: 'memcpy' was not declared in this scope
NtlmAuth.cc:584: error: 'memset' was not declared in this scope
NtlmAuth.cc:717: error: 'memcpy' was not declared in this scope
NtlmAuth.cc:724: error: 'memcpy' was not declared in this scope
NtlmAuth.cc:738: error: 'memcpy' was not declared in this scope
NtlmAuth.cc: In function 'bool isSpnegoNtlm(const char*)':
NtlmAuth.cc:786: error: 'strlen' was not declared in this scope
make[3]: *** [NtlmAuth.o] Error 1
make[3]: Leaving directory `/home/andy/polygraph-4.0.9/src/client'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/andy/polygraph-4.0.9/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/andy/polygraph-4.0.9'
make: *** [all] Error 2
 
Old 03-19-2010, 06:19 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
GCC : The recommended build procedure for gcc-4.3.x
is described in Linux From Scratch, LFS version 6.4 .
http://www.linuxfromscratch.org/lfs/view/6.4/
It is a three step action:
pass 1 § 5.5.1 , pass 2 § 5.12.1 , the install § 6.14.1 .
Chapter 6.14.1 , QUOTE :
""Important : In this section, the test suite for GCC is
considered critical. Do not skip it under any circumstance.""

Did all tests pass ? Else do not expect gcc-4.3.3 to work.
Has this new compiler been used to build a lot of other
software successfully ?
.....
P.S. : I would also expect the binutils version to be to old
to build any gcc 4.x . There may be some glibc problems too,
that will prevent it from working.
.....

Last edited by knudfl; 03-23-2010 at 03:51 AM.
 
Old 03-22-2010, 12:34 AM   #5
squidusr
LQ Newbie
 
Registered: Mar 2008
Posts: 9

Original Poster
Rep: Reputation: 0
finally managed to compile GCC and Web Polygraph successfully....thank you to all who has helped in one way or another....Cheers....
 
  


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
Fastest Linux boot for web browsing and compiling propagationofsound Linux - Newbie 21 04-13-2009 06:54 AM
Problem compiling web-polygraph chandramani_yadav Linux - Server 2 12-11-2008 04:02 AM
Sr. Linux System Administrators in Fort Meade, MD with a TS/SCI FS Polygraph Needed proteus1999 LQ Job Marketplace [Archive] 0 09-19-2008 03:49 PM
how to do compiling php in web servers chnlinux Linux - Newbie 1 01-26-2008 06:03 AM
polygraph ip_conntrack question blackzone Linux - Networking 0 01-20-2005 02:48 AM

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

All times are GMT -5. The time now is 02:21 PM.

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