I am resending because libdbi-* blocks non-subscriber posts.

On Tue, Jan 04, 2011 at 06:20:11PM -0800, Matthew Hall wrote:

Sorry about the cross-post, this came up in the interaction of two 
different pieces of software used together.

libdbi's configure.in and other files contain some broken code which is 
preventing me from debugging a segfault in dbi_initialize when this 
function is called by syslog-ng.

1) The code is stripping the libraries of debug symbols when 'make 
install' is called which violates the GNU coding standards.

To fix this, I want to disable library stripping that it is doing which 
is not in line with the standards and would appreciate advice on how to 
do this.

2) I could work around it using the make debug target, but then the 
could would ignore my CFLAGS which are:

-m32 -g -I /home/y/include

Ignoring these causes it to try to generate a 64-bit library which won't 
be compatible with the syslog-ng binary I want to build.

To fix this, I want to make sure that the DEBUG target is not ignoring 
or overriding the 'upstream' user flags, but merely adding to them, so 
that my '-m32' and my '-I' are not lost, which causes build breakage for 
me, and my '-g' gets duplicated.

3) To work around these problems for now I'm going to patch configure.in 
and rerun autoconf unless there is an alternative proposal.

Matthew Hall.

Here is the problematic flag setup being done in configure.in:

if test -z "$GCC"; then
        case $host in
                if test -z "$CC"; then
                DEBUG="-g -signed"
                CFLAGS="-O2 -w -signed"
                PROFILE="-p -g3 -O2 -signed" ;;
                DEBUG="-v -g"
                CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
                PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" 
                PROFILE="-g -p" ;;

        case $host in
                DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char 
                CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char -std=gnu99"
                PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char 
                DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8 
                CFLAGS="-O20 -ffast-math -D__NO_MATH_INLINES -fsigned-char -mv8 
                PROFILE="-pg -g -O20 -D__NO_MATH_INLINES -fsigned-char -mv8 
-std=gnu99" ;;
                DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -std=gnu99"
                CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char -std=gnu99"
                PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char 
-std=gnu99" ;;

Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
FAQ: http://www.campin.net/syslog-ng/faq.html

Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
libdbi-users mailing list

Reply via email to