bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

conflict between gcc and bash malloc lib with static link


From: thibaut . charpentier
Subject: conflict between gcc and bash malloc lib with static link
Date: Tue, 07 Apr 2015 17:36:09 +0200
User-agent: Roundcube Webmail/1.0.5

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I../bash -I../bash/include -I../bash/lib -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall uname output: Linux Thinkpad 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:19:42 UTC 2013 i686 i686 i686 GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 4.3.30
Release Status: release

Description:
        at link step there is a conflict between gcc library in
        lib/gcc/i686-linux-gnu/libc.a
        and bash library
        lib/malloc/libmalloc.a
        for malloc and free functions

Repeat-By:
        generation with --enable-static-link

Fix:
        adding option --without-bash-malloc look a simple fix
    but this generate another issue because in file
    lib/sh/shmatch.c there is a reference to sh_xfree
    The solution is to add
    #include "xmalloc.h"
    in file
    lib/sh/shmatch.c

I hope I was clear (and my solution was really a good one)
as it's the first time I report a bug.
Of course you can ask me some details if necessary,
I will do my best to help you.
Thibaut



reply via email to

[Prev in Thread] Current Thread [Next in Thread]