Hi Anne,

It seems that the installer failed to run:

./register_rule.sh build
./register_rule.sh: line 131: compiled_rules.h: Input/output error

Which is inside src/analysisd.

Can you try running that manually to see why it is generating this error? What
distribution are you using?

thanks,

--
Daniel B. Cid
dcid ( at ) ossec.net


On Wed, Apr 7, 2010 at 12:21 PM, Anne <[email protected]> wrote:
> I tried to run the 2.4 upgrade on my server, and got the following
> errors:
> ---
> starting the upgrade:
>  - You already have OSSEC installed. Do you want to update it? (y/n):
> y
>  - Do you want to update the rules? (y/n): y
>
>
> 2- Setting up the installation environment.
>
>
>    - Installation will be made at  /var/ossec .
>
> 5- Installing the system
> ./install.sh: line 67: ./src/LOCATION: Input/output error
>  - Running the Makefile
> INFO: Little endian set.
>
>  *** Making zlib (by Jean-loup Gailly and Mark Adler)  ***
>
> ---
> lots of messages, all seem normal down to the ***Making  analysisd ***
> section, the second half of which is here:
> ---
>
>
> make[4]: Leaving directory `/usr/dir1/dir2/dir3/program.install/ossec-
> hids-2.4/src/analysisd/decoders/plugins'
> gcc -g -Wall -I../../ -I../../headers  -DDEFAULTDIR=\"/var/ossec\"  -
> DUSEINOTIFY    -DARGV0=\"ossec-analysisd\" -DXML_VAR=\"var\" -
> DOSSECHIDS -DTESTRULE -I../ -c *.c
> ar cru decoders.a *.o  plugins/*.o
> ranlib decoders.a
> make[3]: Leaving directory `/usr/dir1/dir2/dir3/program.install/ossec-
> hids-2.4/src/analysisd/decoders'
> cd ./compiled_rules; make;
> make[3]: Entering directory `/usr/dir1/dir2/dir3/program.install/ossec-
> hids-2.4/src/analysisd/compiled_rules'
> ./register_rule.sh build
> ./register_rule.sh: line 131: compiled_rules.h: Input/output error
> *Build completed.
> gcc -g -Wall -I../../ -I../../headers  -DDEFAULTDIR=\"/var/ossec\"  -
> DUSEINOTIFY    -DARGV0=\"ossec-analysisd\" -DXML_VAR=\"var\" -
> DOSSECHIDS -I../ -c *.c
> make[3]: Leaving directory `/usr/dir1/dir2/dir3/program.install/ossec-
> hids-2.4/src/analysisd/compiled_rules'
> gcc -g -Wall -I../ -I../headers  -DDEFAULTDIR=\"/var/ossec\"  -
> DUSEINOTIFY    -DARGV0=\"ossec-analysisd\" -DXML_VAR=\"var\" -
> DOSSECHIDS  -DTESTRULE -I./ testrule.c analysisd.c stats.c rules.c
> rules_list.c config.c fts.c dodiff.c eventinfo.c eventinfo_list.c
> cleanevent.c active-response.c picviz.c prelude.c compiled_rules/
> *.o ../config/lib_config.a decoders/decoders.a alerts/alerts.a ../
> os_xml/os_xml.a ../os_regex/os_regex.a ../os_net/os_net.a ../shared/
> lib_shared.a ../os_zlib/os_zlib.c ../external/libz.a  -o ossec-logtest
> In file included from rules.c:20:
> compiled_rules/compiled_rules.h:42: error: redefinition of
> âcompiled_rules_listâ
> compiled_rules/compiled_rules.h:11: error: previous definition of
> âcompiled_rules_listâ was here
> compiled_rules/compiled_rules.h:53: error: redefinition of
> âcompiled_rules_nameâ
> compiled_rules/compiled_rules.h:22: error: previous definition of
> âcompiled_rules_nameâ was here
> make[2]: *** [logtest] Error 1
> make[2]: Leaving directory `/usr/dir1/dir2/dir3/program.install/ossec-
> hids-2.4/src/analysisd'
> make[1]: *** [logaudit] Error 2
> make[1]: Leaving directory `/usr/dir1/dir2/dir3/program.install/ossec-
> hids-2.4/src/analysisd'
>
> Error Making analysisd
> make: *** [all] Error 1
>
>  Error 0x5.
>  Building error. Unable to finish the installation.
>
> ---
>
> I checked the hashes of the install file after I downloaded it.  I ran
> the upgrade from the same location I successfully ran the 2.3
> install.  The system is Linux 2.6.18-164.6.1.0.1.el5.
>
> Also, I checked my alert log, and there are alerts from after the
> failed upgrade, so the server still seems to be running.
>
> Please let me know if there is any other information I can provide.
>
> Thanks
> Anne
>
>
> --
> To unsubscribe, reply using "remove me" as the subject.
>

Reply via email to