Mailing List Archive

ommysql compilation problem
Hi All,

I'm having a problem compiling the ommysql plugin for rsyslogd (rsyslog-ommysql-1.19.8). I'm trying to compile it on CentOS 4.5. I have managed to build rsyslogd following the instructions here: http://www.rsyslog.com/module-Static_Docs-view-f-install.html.phtml, but it seems a bit outdated since running ./configure no longer has an "--enable-mysql" option.

To build ommysql separately, I do the following steps
cd plugins/ommysql
tar -xzf ommysql.tar.gz
cd rsyslog-ommysql-1.19.8
./configure

At this point it fails, saying:
configure: error: cannot find install-sh or install.sh in "." "./.." "./../.."

So, I copy install-sh from rsyslogd and try again:
cp ../../../install-sh .
./configure

and I get:
configure: error: cannot run /bin/sh ./config.sub

Then i copy config.sub and config.guess from /usr/lib/rpm and run it again and this time ./configure completes without any problem. However, upon running make, I get this:

[root at syslog2 rsyslog-ommysql-1.19.8]# make
make all-am
make[1]: Entering directory `/home/leigh/rsyslog-1.19.8/plugins/ommysql/rsyslog-ommysql-1.19.8'
source='ommysql.c' object='ommysql_la-ommysql.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ./../../depcomp \
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -I./../.. -g -O2 -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g -c -o ommysql_la-ommysql.lo `test -f 'ommysql.c' || echo './'`ommysql.c
/bin/sh: ./../../depcomp: No such file or directory
make[1]: *** [ommysql_la-ommysql.lo] Error 127
make[1]: Leaving directory `/home/leigh/rsyslog-1.19.8/plugins/ommysql/rsyslog-ommysql-1.19.8'
make: *** [all] Error 2

I have searched for anyone having similar problems and they suggested installing libtool (which I've done) would solve the problem. However, I'm still not able to compile this plugin. Is there something I'm missing here? Any help would be much appreciated.

Regards,
Leigh
ommysql compilation problem [ In reply to ]
Leigh,

I guess this problem is part of the repackaging that was done in 1.19.8.
The repackaging was not the greatest success ;) I am right now rolling
it back. If you can wait another day, I think I'll have 1.19.9 out,
which comes with a single tarball again. For the same reason, I prefer
not to dig too deep into the problem.

Is that OK with you?

Rainer

> -----Original Message-----
> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
> bounces at lists.adiscon.com] On Behalf Of Leigh.Peterson at sungard.com
> Sent: Monday, October 08, 2007 2:06 PM
> To: rsyslog at lists.adiscon.com
> Subject: [rsyslog] ommysql compilation problem
>
> Hi All,
>
> I'm having a problem compiling the ommysql plugin for rsyslogd
> (rsyslog-ommysql-1.19.8). I'm trying to compile it on CentOS 4.5. I
> have managed to build rsyslogd following the instructions here:
> http://www.rsyslog.com/module-Static_Docs-view-f-install.html.phtml,
> but it seems a bit outdated since running ./configure no longer has an
> "--enable-mysql" option.
>
> To build ommysql separately, I do the following steps
> cd plugins/ommysql
> tar -xzf ommysql.tar.gz
> cd rsyslog-ommysql-1.19.8
> ./configure
>
> At this point it fails, saying:
> configure: error: cannot find install-sh or install.sh in "." "./.."
> "./../.."
>
> So, I copy install-sh from rsyslogd and try again:
> cp ../../../install-sh .
> ./configure
>
> and I get:
> configure: error: cannot run /bin/sh ./config.sub
>
> Then i copy config.sub and config.guess from /usr/lib/rpm and run it
> again and this time ./configure completes without any problem.
> However, upon running make, I get this:
>
> [root at syslog2 rsyslog-ommysql-1.19.8]# make
> make all-am
> make[1]: Entering directory `/home/leigh/rsyslog-
> 1.19.8/plugins/ommysql/rsyslog-ommysql-1.19.8'
> source='ommysql.c' object='ommysql_la-ommysql.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/sh ./../../depcomp \
> /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -
> I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -
> D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-
> aliasing -I./../.. -g -O2 -W -Wall -Wformat-security -Wshadow
-Wcast-
> align -Wpointer-arith -Wmissing-format-attribute -g -c -o ommysql_la-
> ommysql.lo `test -f 'ommysql.c' || echo './'`ommysql.c
> /bin/sh: ./../../depcomp: No such file or directory
> make[1]: *** [ommysql_la-ommysql.lo] Error 127
> make[1]: Leaving directory `/home/leigh/rsyslog-
> 1.19.8/plugins/ommysql/rsyslog-ommysql-1.19.8'
> make: *** [all] Error 2
>
> I have searched for anyone having similar problems and they suggested
> installing libtool (which I've done) would solve the problem.
However,
> I'm still not able to compile this plugin. Is there something I'm
> missing here? Any help would be much appreciated.
>
> Regards,
> Leigh
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
ommysql compilation problem [ In reply to ]
Hi Rainer,

Thanks for the prompt reply. Thats fine with me - I tried using 1.19.6 and it compiled and installed without a problem. Thanks again for your help.

Regards,
Leigh


-----Original Message-----
From: rsyslog-bounces@lists.adiscon.com on behalf of Rainer Gerhards
Sent: Mon 08/10/2007 13:21
To: rsyslog-users
Subject: Re: [rsyslog] ommysql compilation problem

Leigh,

I guess this problem is part of the repackaging that was done in 1.19.8.
The repackaging was not the greatest success ;) I am right now rolling
it back. If you can wait another day, I think I'll have 1.19.9 out,
which comes with a single tarball again. For the same reason, I prefer
not to dig too deep into the problem.

Is that OK with you?

Rainer

> -----Original Message-----
> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
> bounces at lists.adiscon.com] On Behalf Of Leigh.Peterson at sungard.com
> Sent: Monday, October 08, 2007 2:06 PM
> To: rsyslog at lists.adiscon.com
> Subject: [rsyslog] ommysql compilation problem
>
> Hi All,
>
> I'm having a problem compiling the ommysql plugin for rsyslogd
> (rsyslog-ommysql-1.19.8). I'm trying to compile it on CentOS 4.5. I
> have managed to build rsyslogd following the instructions here:
> http://www.rsyslog.com/module-Static_Docs-view-f-install.html.phtml,
> but it seems a bit outdated since running ./configure no longer has an
> "--enable-mysql" option.
>
> To build ommysql separately, I do the following steps
> cd plugins/ommysql
> tar -xzf ommysql.tar.gz
> cd rsyslog-ommysql-1.19.8
> ./configure
>
> At this point it fails, saying:
> configure: error: cannot find install-sh or install.sh in "." "./.."
> "./../.."
>
> So, I copy install-sh from rsyslogd and try again:
> cp ../../../install-sh .
> ./configure
>
> and I get:
> configure: error: cannot run /bin/sh ./config.sub
>
> Then i copy config.sub and config.guess from /usr/lib/rpm and run it
> again and this time ./configure completes without any problem.
> However, upon running make, I get this:
>
> [root at syslog2 rsyslog-ommysql-1.19.8]# make
> make all-am
> make[1]: Entering directory `/home/leigh/rsyslog-
> 1.19.8/plugins/ommysql/rsyslog-ommysql-1.19.8'
> source='ommysql.c' object='ommysql_la-ommysql.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/sh ./../../depcomp \
> /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -
> I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -
> D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-
> aliasing -I./../.. -g -O2 -W -Wall -Wformat-security -Wshadow
-Wcast-
> align -Wpointer-arith -Wmissing-format-attribute -g -c -o ommysql_la-
> ommysql.lo `test -f 'ommysql.c' || echo './'`ommysql.c
> /bin/sh: ./../../depcomp: No such file or directory
> make[1]: *** [ommysql_la-ommysql.lo] Error 127
> make[1]: Leaving directory `/home/leigh/rsyslog-
> 1.19.8/plugins/ommysql/rsyslog-ommysql-1.19.8'
> make: *** [all] Error 2
>
> I have searched for anyone having similar problems and they suggested
> installing libtool (which I've done) would solve the problem.
However,
> I'm still not able to compile this plugin. Is there something I'm
> missing here? Any help would be much appreciated.
>
> Regards,
> Leigh
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
ommysql compilation problem [ In reply to ]
Yes, the split didn't go very well. Before 1.19.9 is out, it is possible
to build the plugin with these steps:

tar xzf rsyslog-1.19.8.tar.gz
cd rsyslog-1.19.8/plugins/
tar xzf ommysql/ommysql.tar.gz
cd rsyslog-ommysql-1.19.8/
./configure && make

Rainer Gerhards wrote:
> Leigh,
>
> I guess this problem is part of the repackaging that was done in 1.19.8.
> The repackaging was not the greatest success ;) I am right now rolling
> it back. If you can wait another day, I think I'll have 1.19.9 out,
> which comes with a single tarball again. For the same reason, I prefer
> not to dig too deep into the problem.
>
> Is that OK with you?
>
> Rainer
>
>> -----Original Message-----
>> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
>> bounces at lists.adiscon.com] On Behalf Of Leigh.Peterson at sungard.com
>> Sent: Monday, October 08, 2007 2:06 PM
>> To: rsyslog at lists.adiscon.com
>> Subject: [rsyslog] ommysql compilation problem
>>
>> Hi All,
>>
>> I'm having a problem compiling the ommysql plugin for rsyslogd
>> (rsyslog-ommysql-1.19.8). I'm trying to compile it on CentOS 4.5. I
>> have managed to build rsyslogd following the instructions here:
>> http://www.rsyslog.com/module-Static_Docs-view-f-install.html.phtml,
>> but it seems a bit outdated since running ./configure no longer has an
>> "--enable-mysql" option.
>>
>> To build ommysql separately, I do the following steps
>> cd plugins/ommysql
>> tar -xzf ommysql.tar.gz
>> cd rsyslog-ommysql-1.19.8
>> ./configure
>>
>> At this point it fails, saying:
>> configure: error: cannot find install-sh or install.sh in "." "./.."
>> "./../.."
>>
>> So, I copy install-sh from rsyslogd and try again:
>> cp ../../../install-sh .
>> ./configure
>>
>> and I get:
>> configure: error: cannot run /bin/sh ./config.sub
>>
>> Then i copy config.sub and config.guess from /usr/lib/rpm and run it
>> again and this time ./configure completes without any problem.
>> However, upon running make, I get this:
>>
>> [root at syslog2 rsyslog-ommysql-1.19.8]# make
>> make all-am
>> make[1]: Entering directory `/home/leigh/rsyslog-
>> 1.19.8/plugins/ommysql/rsyslog-ommysql-1.19.8'
>> source='ommysql.c' object='ommysql_la-ommysql.lo' libtool=yes \
>> DEPDIR=.deps depmode=none /bin/sh ./../../depcomp \
>> /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -
>> I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -
>> D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-
>> aliasing -I./../.. -g -O2 -W -Wall -Wformat-security -Wshadow
> -Wcast-
>> align -Wpointer-arith -Wmissing-format-attribute -g -c -o ommysql_la-
>> ommysql.lo `test -f 'ommysql.c' || echo './'`ommysql.c
>> /bin/sh: ./../../depcomp: No such file or directory
>> make[1]: *** [ommysql_la-ommysql.lo] Error 127
>> make[1]: Leaving directory `/home/leigh/rsyslog-
>> 1.19.8/plugins/ommysql/rsyslog-ommysql-1.19.8'
>> make: *** [all] Error 2
>>
>> I have searched for anyone having similar problems and they suggested
>> installing libtool (which I've done) would solve the problem.
> However,
>> I'm still not able to compile this plugin. Is there something I'm
>> missing here? Any help would be much appreciated.
>>
>> Regards,
>> Leigh
>> _______________________________________________
>> rsyslog mailing list
>> http://lists.adiscon.net/mailman/listinfo/rsyslog
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog