On Tue, Oct 22, 2013 at 9:00 AM,  <[email protected]> wrote:
> Hi Dan,
>
> thanks for getting back to me.
>
> I'm using Fedora 18 (as my test environment) and will use RHEL 6.4 on my
> production environment. So far I've only tested the re-compile on my test
> environment.
> I'm using the latest stable version which is 2.7
>
> The modification I made in the Makefile (in the src/os_dbd/ directory) was:
>
>         ${CC} ${CFLAGS} ${OS_LINK} ${DBFLAGS} ${LOCAL} ${OBJS} ${CDB} -o
> ${NAME}
>
> instead of
>
> ${CC} ${CFLAGS} ${OS_LINK} ${DBFLAGS} ${CDB} ${LOCAL} ${OBJS} -o ${NAME}
>

Did it not work without this modification?

> Hope this helps with the troubleshooting...
>
> thanks,
> theresa
>
>
> On Tuesday, October 22, 2013 2:43:16 PM UTC+2, dan (ddpbsd) wrote:
>>
>>
>> On Oct 22, 2013 8:41 AM, <[email protected]> wrote:
>> >
>> > Hi,
>> >
>> > I get the following error, when I re-compile ossec-hids with the
>> > modified Makefile
>> >
>>
>> What modifications? What version? What OS?
>>
>> >  *** Making os_dbd ***
>> >
>> > make[1]: Entering directory `/home/theresa/ossec-hids-2.7/src/os_dbd'
>> > Compiling DB support with:
>> > gcc -g -Wall -I../ -I../headers  -DDEFAULTDIR=\"/var/ossec\"
>> > -DUSE_OPENSSL -DUSEINOTIFY     -DARGV0=\"ossec-dbd\" -DXML_VAR=\"var\"
>> > -DOSSECHIDS   *.c ../config/lib_config.a ../shared/lib_shared.a
>> > ../os_net/os_net.a ../os_regex/os_regex.a ../os_xml/os_xml.a
>> > -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
>> > -fstack-protector --param=ssp-buffer-size=4
>> > -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -D_GNU_SOURCE
>> > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv
>> > -fPIC  -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing
>> > -DMY_PTHREAD_FASTMUTEX=1 -L/usr/lib64/mysql -lmysqlclient -lpthread -lz -lm
>> > -lrt -lssl -lcrypto -ldl -DDBD -DUMYSQL  -o ossec-dbd
>> > In file included from /usr/include/sys/types.h:25:0,
>> >                  from ../headers/shared.h:47,
>> >                  from dbd.h:21,
>> >                  from alert.c:17:
>> > /usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE
>> > requires compiling with optimization (-O) [-Wcpp]
>> > In file included from /usr/include/sys/types.h:25:0,
>> >                  from ../headers/shared.h:47,
>> >                  from dbd.h:21,
>> >                  from config.c:17:
>> > /usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE
>> > requires compiling with optimization (-O) [-Wcpp]
>> > In file included from /usr/include/sys/types.h:25:0,
>> >                  from ../headers/shared.h:47,
>> >                  from dbd.c:25:
>> > /usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE
>> > requires compiling with optimization (-O) [-Wcpp]
>> > In file included from /usr/include/sys/types.h:25:0,
>> >                  from ../headers/shared.h:47,
>> >                  from dbd.h:21,
>> >                  from db_op.c:20:
>> > /usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE
>> > requires compiling with optimization (-O) [-Wcpp]
>> > db_op.c:24:19: fatal error: mysql.h: No such file or directory
>> > compilation terminated.
>> > In file included from /usr/include/sys/types.h:25:0,
>> >                  from ../headers/shared.h:47,
>> >                  from main.c:25:
>> > /usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE
>> > requires compiling with optimization (-O) [-Wcpp]
>> > In file included from /usr/include/sys/types.h:25:0,
>> >                  from ../headers/shared.h:47,
>> >                  from dbd.h:21,
>> >                  from rules.c:17:
>> > /usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE
>> > requires compiling with optimization (-O) [-Wcpp]
>> > In file included from /usr/include/sys/types.h:25:0,
>> >                  from ../headers/shared.h:47,
>> >                  from dbd.h:21,
>> >                  from server.c:17:
>> > /usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE
>> > requires compiling with optimization (-O) [-Wcpp]
>> >
>> > make[1]: *** [default] Error 1
>> > make[1]: Leaving directory `/home/theresa/ossec-hids-2.7/src/os_dbd'
>> >
>> >
>> > Error Making os_dbd
>> > make: *** [all] Error 1
>> >
>> >  Error 0x5.
>> >  Building error. Unable to finish the installation.
>> >
>> > what am I doing wrong here?
>> >
>> > many thanks in advance,
>> > theresa
>> >
>> >
>> >
>> > On Tuesday, March 20, 2012 11:29:05 PM UTC+1, Joshua Albright wrote:
>> >>>
>> >>> Hi,
>> >>>
>> >>> Has a fix or workaround been figured out for this issue? I'm trying to
>> >>> setup mysql support on Ubuntu 11.10.
>> >>>
>> >>> make[1]: Entering directory `/home/jya/ossec-hids-2.6/src/os_dbd'
>> >>> Compiling DB support with:
>> >>> gcc -g -Wall -I../ -I../headers  -DDEFAULTDIR=\"/var/ossec\"
>> >>> -DUSE_OPENSSL     -DARGV0=\"ossec-dbd\" -DXML_VAR=\"var\" -DOSSECHIDS
>> >>> -I/usr/include/mysql  -DBIG_JOINS=1  -fno-strict-aliasing   -DUNIV_LINUX
>> >>> -DUNIV_LINUX -Wl,-Bsymbolic-functions -rdynamic -L/usr/lib -lmysqlclient
>> >>> -DDBD -DUMYSQL  *.c ../config/lib_config.a ../shared/lib_shared.a
>> >>> ../os_net/os_net.a ../os_regex/os_regex.a ../os_xml/os_xml.a -o ossec-dbd
>> >>> /tmp/ccrMjMbc.o: In function `mysql_osdb_connect':
>> >>> /home/jya/ossec-hids-2.6/src/os_dbd/db_op.c:164: undefined reference
>> >>> to `mysql_init'
>> >>> /home/jya/ossec-hids-2.6/src/os_dbd/db_op.c:178: undefined reference
>> >>> to `mysql_options'
>> >>> /home/jya/ossec-hids-2.6/src/os_dbd/db_op.c:183: undefined reference
>> >>> to `mysql_options'
>> >>> /home/jya/ossec-hids-2.6/src/os_dbd/db_op.c:186: undefined reference
>> >>> to `mysql_real_connect'
>> >>> /home/jya/ossec-hids-2.6/src/os_dbd/db_op.c:189: undefined reference
>> >>> to `mysql_error'
>> >>> /home/jya/ossec-hids-2.6/src/os_dbd/db_op.c:190: undefined reference
>> >>> to `mysql_close'
>> >>> /tmp/ccrMjMbc.o: In function `mysql_osdb_close':
>> >>> /home/jya/ossec-hids-2.6/src/os_dbd/db_op.c:204: undefined reference
>> >>> to `mysql_close'
>> >>> /tmp/ccrMjMbc.o: In function `mysql_osdb_query_insert':
>> >>> /home/jya/ossec-hids-2.6/src/os_dbd/db_op.c:215: undefined reference
>> >>> to `mysql_query'
>> >>> /home/jya/ossec-hids-2.6/src/os_dbd/db_op.c:218: undefined reference
>> >>> to `mysql_error'
>> >>> /tmp/ccrMjMbc.o: In function `mysql_osdb_query_select':
>> >>> /home/jya/ossec-hids-2.6/src/os_dbd/db_op.c:240: undefined reference
>> >>> to `mysql_query'
>> >>> /home/jya/ossec-hids-2.6/src/os_dbd/db_op.c:243: undefined reference
>> >>> to `mysql_error'
>> >>> /home/jya/ossec-hids-2.6/src/os_dbd/db_op.c:250: undefined reference
>> >>> to `mysql_use_result'
>> >>> /home/jya/ossec-hids-2.6/src/os_dbd/db_op.c:254: undefined reference
>> >>> to `mysql_error'
>> >>> /home/jya/ossec-hids-2.6/src/os_dbd/db_op.c:261: undefined reference
>> >>> to `mysql_fetch_row'
>> >>> /home/jya/ossec-hids-2.6/src/os_dbd/db_op.c:268: undefined reference
>> >>> to `mysql_free_result'
>> >>> collect2: ld returned 1 exit status
>> >>> make[1]: *** [default] Error 1
>> >>> make[1]: Leaving directory `/home/jya/ossec-hids-2.6/src/os_dbd'
>> >>>
>> >>> Error Making os_dbd
>> >>> make: *** [all] Error 1
>> >>>
>> >>>  Error 0x5.
>> >>>  Building error. Unable to finish the installation.
>> >>>
>> >>> Thanks for your help!
>> >>>
>> >>> Thanks,
>> >>>
>> >>> Josh
>> >>
>> >>
>> > --
>> >
>> > ---
>> > You received this message because you are subscribed to the Google
>> > Groups "ossec-list" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an email to [email protected].
>>
>> > For more options, visit https://groups.google.com/groups/opt_out.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "ossec-list" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to