Hello,
I've got a problem to install sancp-1.6.2-candidate.C because (prelude support)
The port version is actualy sancp-1.6.1
The problem depend on the Makefile
You can find the file below
[CMD=""]#make bsd[/CMD]
Here is the first error :
I understand this character ` is a a problem
So I've changed the two first lines like this :
This the next error I've got :
After this I decide to write by my self :
#define ENABLE_PRELUDE_SUPPORT in the file plateform.h
And to remove this line in the Makefile
The new error is :
Now I've difficulty to see what's the problem !
Can you give me any idea in order to install this soft ?
Best Regards
Here is the original Makefile
I've got a problem to install sancp-1.6.2-candidate.C because (prelude support)
The port version is actualy sancp-1.6.1
The problem depend on the Makefile
You can find the file below
[CMD=""]#make bsd[/CMD]
Here is the first error :
Code:
sonde-creusot# make bsd
g++ -Wall -O3 -s -I/usr/include/pcap -I/usr/local/include/pcap -I./ -L/usr/lib/libsocket.so -g -L/opt/csw/lib -ggdb `libprelude-config --
cflags` `@(echo " -c build_acl.cc -o build_acl.o
Syntax error: EOF in backquote substitution
*** Error code 2
Stop in /usr/local/etc/sancp.
*** Error code 1
Stop in /usr/local/etc/sancp.
I understand this character ` is a a problem
So I've changed the two first lines like this :
Code:
#PRELUDE-CFLAGS=libprelude-config --cflags
#PRELUDE-SUPPORT=@(echo "#define ENABLE_PRELUDE_SUPPORT" >> platform.h)
This the next error I've got :
Code:
sonde-creusot# make bsd
g++ -Wall -O3 -s -I/usr/include/pcap -I/usr/local/include/pcap -I./ -L/usr/lib/libsocket.so -g -L/opt/csw/lib -ggdb libprelude-config --
cflags @(echo " -c build_acl.cc -o build_acl.o
Syntax error: "(" unexpected
*** Error code 2
Stop in /usr/local/etc/sancp.
*** Error code 1
Stop in /usr/local/etc/sancp.
After this I decide to write by my self :
#define ENABLE_PRELUDE_SUPPORT in the file plateform.h
And to remove this line in the Makefile
Code:
#PRELUDE-SUPPORT=`@(echo "#define ENABLE_PRELUDE_SUPPORT" >> platform.h)`
The new error is :
Code:
sonde-creusot# make bsd
g++ -Wall -O3 -s -I/usr/include/pcap -I/usr/local/include/pcap -I./ -L/usr/lib/libsocket.so -g -L/opt/csw/lib -ggdb libprelude-config --
cflags -c build_acl.cc -o build_acl.o
g++: libprelude-config: No such file or directory
cc1plus: error: unrecognized command line option "-fcflags"
*** Error code 1
Stop in /usr/local/etc/sancp.
*** Error code 1
Stop in /usr/local/etc/sancp.
Now I've difficulty to see what's the problem !
Can you give me any idea in order to install this soft ?
Best Regards
Here is the original Makefile
Code:
## SANCP Makefile
##
## HOWTO use this Makefile
## Type 'make linux', 'make bsd' or 'make solaris'
##
## For PRELUDE-SUPPORT uncomment the next two lines (remove initial '#')
PRELUDE-CFLAGS=`libprelude-config --cflags`
PRELUDE-SUPPORT=`@(echo "#define ENABLE_PRELUDE_SUPPORT" >> platform.h)`
# ------------------------------------------------------------------- #
# --------- PLEASE CONTRIBUTE ANY CHANGES MADE TO THIS FILE --------- #
# ------------------------------------------------------------------- #
##
## LINUX and BSD CFLAGS
##
CFLAGS = -O3 -s -I/usr/include/pcap -I/usr/local/include/pcap -I./ -L/usr/lib/libsocket.so -g -L/opt/csw/lib -ggdb $(PRELUDE-CFLAGS)
$(PRELUDE-SUPPORT)
# w/ DEBUG SYMBOLS
#CFLAGS = -g -O3 -I/usr/include/pcap -I/usr/local/include/pcap -I./ -L/usr/lib/libsocket.so -g -L/opt/csw/lib -ggdb $(PRELUDE-CFLAGS)
$(PRELUDE-SUPPORT)
##
## LINUX LFLAGS
##
LFLAGS = -lresolv -lnsl -lpcap -L/usr/lib/libpcap.so.0.6.2
##
## BSD BFLAGS
##
BFLAGS = -lpcap -L/usr/lib/libpcap.so
##
## SOLARIS CFLAGS and LFLAGS
##
SOLARISCFLAGS = -O3 -g -ggdb -Wall -fomit-frame-pointer -funroll-loops -DBYTE_ORDER=1234 -DBIG_ENDIAN=1234 -I./ -I/usr/local/include -
I/usr/include -L/usr/lib -L/usr/local/lib $(PRELUDE-CFLAGS) $(PRELUDE-SUPPORT)
SOLARISLFLAGS = -lresolv -lnsl -lpcap -lsocket
##
##
##
final : sancp.cc Makefile
g++ -Wall $(CFLAGS) -c build_acl.cc -o build_acl.o
g++ -Wall $(CFLAGS) -c misc_functs.cc -o misc_functs.o
g++ -Wall $(CFLAGS) -c outputFileHandle.cc -o outputFileHandle.o
g++ -Wall $(CFLAGS) -c apply_rule.cc -o apply_rule.o
g++ -Wall $(CFLAGS) -c decode.cc -o decode.o
g++ -Wall $(CFLAGS) -c fileHandle.cc -o fileHandle.o
g++ -Wall $(CFLAGS) -c MemoryPool.cc -o MemoryPool.o
g++ -Wall $(CFLAGS) -c pcapFileHandle.cc -o pcapFileHandle.o
g++ -Wall $(CFLAGS) -c sancp.cc -o sancp.o
gcc -Wall $(CFLAGS) -c pcap_functions.c -o pcap_functions.o
g++ -Wall $(CFLAGS) -c permissions.cc -o permissions.o
g++ -Wall $(CFLAGS) -c check_packet.cc -o check_packet.o
g++ -Wall $(CFLAGS) -c statefull_logging.cc -o statefull_logging.o
g++ -Wall $(CFLAGS) -c sancpsignals.cc -o sancpsignals.o
g++ -Wall $(LFLAGS) $(CFLAGS) -o sancp sancp.o sancpsignals.o misc_functs.o check_packet.o statefull_logging.o build_acl.o apply_rule.o
decode.o pcap_functions.o pcapFileHandle.o fileHandle.o MemoryPool.o permissions.o outputFileHandle.o
clean :
@(echo "" > platform.h)
@rm -f *.o sancp
bsd :
@(echo "#define PLATFORM_BSD" >> platform.h)
@make final
g++ -Wall $(BFLAGS) $(CFLAGS) -o sancp sancp.o sancpsignals.o misc_functs.o check_packet.o statefull_logging.o build_acl.o apply_rule.o
decode.o pcap_functions.o pcapFileHandle.o fileHandle.o MemoryPool.o permissions.o outputFileHandle.o
linux :
@(echo "#define PLATFORM_LINUX" >> platform.h)
@make final
g++ -Wall $(LFLAGS) $(CFLAGS) -o sancp sancp.o sancpsignals.o misc_functs.o check_packet.o statefull_logging.o build_acl.o apply_rule.o
decode.o pcap_functions.o pcapFileHandle.o fileHandle.o MemoryPool.o permissions.o outputFileHandle.o
solaris :
@(echo "#define PLATFORM_SOLARIS" >> platform.h)
g++ -Wall $(SOLARISCFLAGS) -c build_acl.cc -o build_acl.o
g++ -Wall $(SOLARISCFLAGS) -c misc_functs.cc -o misc_functs.o
g++ -Wall $(SOLARISCFLAGS) -c outputFileHandle.cc -o outputFileHandle.o
g++ -Wall $(SOLARISCFLAGS) -c apply_rule.cc -o apply_rule.o
g++ -Wall $(SOLARISCFLAGS) -c decode.cc -o decode.o
g++ -Wall $(SOLARISCFLAGS) -c fileHandle.cc -o fileHandle.o
g++ -Wall $(SOLARISCFLAGS) -c MemoryPool.cc -o MemoryPool.o
g++ -Wall $(SOLARISCFLAGS) -c pcapFileHandle.cc -o pcapFileHandle.o
g++ -Wall $(SOLARISCFLAGS) -c sancp.cc -o sancp.o
gcc -Wall $(SOLARISCFLAGS) -c pcap_functions.c -o pcap_functions.o
g++ -Wall $(SOLARISCFLAGS) -c permissions.cc -o permissions.o
g++ -Wall $(SOLARISCFLAGS) -c check_packet.cc -o check_packet.o
g++ -Wall $(SOLARISCFLAGS) -c statefull_logging.cc -o statefull_logging.o
g++ -Wall $(SOLARISCFLAGS) -c sancpsignals.cc -o sancpsignals.o
g++ -Wall $(SOLARISLFLAGS) $(SOLARISCFLAGS) -o sancp sancp.o sancpsignals.o misc_functs.o check_packet.o statefull_logging.o
build_acl.o apply_rule.o decode.o pcap_functions.o pcapFileHandle.o fileHandle.o MemoryPool.o permissions.o outputFileHandle.o