Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2049 connectés 

  FORUM HardWare.fr
  Systèmes & Réseaux Pro
  Sécurité

  SNORT sur AIX 5.3

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

SNORT sur AIX 5.3

n°56805
zqnder
Posté le 05-08-2009 à 13:44:37  profilanswer
 

Bonjour,
 
Je doit installer SNORT 2.8 (logiciel de surveillance réseau) sur un serveur tournant sous AIX 5.3.
Mais je n'arrive pas a compiler SNORT et  j'ai cette erreur:
 

Code :
  1. > make
  2.         make  all-recursive
  3. Making all in src
  4. Making all in sfutil
  5. Target "all" is up to date.
  6. Making all in win32
  7. Target "all" is up to date.
  8. Making all in output-plugins
  9. Target "all" is up to date.
  10. Making all in detection-plugins
  11. Target "all" is up to date.
  12. Making all in dynamic-plugins
  13. Making all in sf_engine
  14. /bin/sh: 0403-057 Syntax error at line 1 : `then' is not matched.
  15. make: 1254-004 The error code from the last command is 2.
  16. Stop.
  17. make: 1254-004 The error code from the last command is 1.
  18. Stop.
  19. make: 1254-004 The error code from the last command is 1.
  20. Stop.
  21. make: 1254-004 The error code from the last command is 1.
  22. Stop.
  23. make: 1254-004 The error code from the last command is 2.
  24. Stop.


 
 
Quelqu'un peut-il m'aider?
 
Merci.

mood
Publicité
Posté le 05-08-2009 à 13:44:37  profilanswer
 

n°56852
zqnder
Posté le 06-08-2009 à 14:46:29  profilanswer
 

Bon j'ai trouve d'ou vient l'erreur dans le Makefile, c'est le BUILT_SOURCES qui marche pas mais je sais pas pourquoi...  
 

Code :
  1. BUILT_SOURCES = \
  2. sfhashfcn.c \
  3. sfhashfcn.h \
  4. sfghash.c \
  5. sfghash.h \
  6. sfprimetable.c \
  7. sfprimetable.h \
  8. ipv6_port.h \
  9. sf_ip.c \
  10. sf_ip.h \
  11. debug.h
  12. all: $(BUILT_SOURCES)
  13.         $(MAKE) $(AM_MAKEFLAGS) all-recursive


 
Y'aurait-t-il quelque chose que AIX ne supporte pas la-dedans?
Aidez moi  :(  

n°56856
zqnder
Posté le 06-08-2009 à 16:19:14  profilanswer
 

Je continue mon monologue...
En fait le problème est encore plus loin, BUILT_SOURCES fait appel a la regle sfhashfcn.c en premier:
 

Code :
  1. sfhashfcn.c: ../../sfutil/sfhashfcn.c
  2.         @echo "HELLO "
  3.         @src_file=$?;dst_file=$@; $(copy_no_static_hash)
  4.         @echo WORLD!


Et la, le HELLO passe mais pas le WORLD!
L'erreur se cache donc sur la ligne du milieu.
Je vous met le $(copy_no_static_hash) si ca peut vous aider:
 

Code :
  1. copy_no_static_hash = \
  2.         if test -f $$dst_file; then \
  3.                 x=`diff $$src_file $$dst_file.new >> /dev/null`; \
  4.                 if test "$$x" != "0"; then \
  5.                         echo "Updating " $$dst_file; \
  6.                         cp $$src_file $$dst_file.new; \
  7.                         sed -e "s/\#ifndef MODULUS_HASH/\#ifdef STATIC_HASH/" $$dst_file.new > $$dst_file; \
  8.                 fi \
  9.         else \
  10.                 echo "Updating " $$dst_file; \
  11.                 cp $$src_file $$dst_file.new; \
  12.                 sed -e "s/\#ifndef MODULUS_HASH/\#ifdef STATIC_HASH/" $$dst_file.new > $$dst_file; \
  13.         fi


Je ne comprend pas ce que AIX ne supporte pas...
Je vous remet l'erreur au cas ou :
 

Code :
  1. $> make
  2. HELLO
  3. /bin/sh: 0403-057 Syntax error at line 1 : `then' is not matched.
  4. make: 1254-004 The error code from the last command is 2.
  5. Stop.
  6. $>

n°56867
zqnder
Posté le 06-08-2009 à 23:17:47  profilanswer
 

J'ai enfin trouve la solution, pour ceux que ça intéresse, le problème était bien dans le copy_no_static_hash, voici par quoi il faut le remplacer:
 

Code :
  1. copy_no_static_hash = \
  2. if test -f $@; then \
  3. x=`diff $? $@.new >> /dev/null`; \
  4. if test "$$x" != "0"; then \
  5. echo "Updating " $@; \
  6. cp $? $@.new; \
  7. sed -e "s/\#ifndef MODULUS_HASH/\#ifdef STATIC_HASH/" $@.new > $@; \
  8. fi \
  9. else \
  10. echo "Updating " $@; \
  11. cp $? $@.new; \
  12. sed -e "s/\#ifndef MODULUS_HASH/\#ifdef STATIC_HASH/" $@.new > $@; \
  13. fi


 
Merci de votre aide surtout...


Message édité par zqnder le 06-08-2009 à 23:18:21

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Systèmes & Réseaux Pro
  Sécurité

  SNORT sur AIX 5.3

 

Sujets relatifs
AIX ; récupération de données sur un disqueConnaître température CPU sur AIX
Problème Snort + Win2003 Server 
Plus de sujets relatifs à : SNORT sur AIX 5.3


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)