Hello

When I'm trying to (statically) link libpoke into gdb, I get the following 
errors:

c:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 C:/src/repos/poke/inst/lib/libpoke.a(libgnu_la-xmalloc.o): in function 
`xmalloc':
C:\src\repos\poke\poke.git-build\gl-libpoke/../../../poke.git/gl-libpoke/xmalloc.c:44:
 multiple definition of `xmalloc'; 
alloc.o:C:/src/repos/binutils-gdb.git/gdb/alloc.c:49: first defined here
c:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 C:/src/repos/poke/inst/lib/libpoke.a(libgnu_la-xmalloc.o): in function 
`xrealloc':
C:\src\repos\poke\poke.git-build\gl-libpoke/../../../poke.git/gl-libpoke/xmalloc.c:65:
 multiple definition of `xrealloc'; 
alloc.o:C:/src/repos/binutils-gdb.git/gdb/alloc.c:66: first defined here
c:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 C:/src/repos/poke/inst/lib/libpoke.a(libgnu_la-xmalloc.o): in function 
`xcalloc':
C:\src\repos\poke\poke.git-build\gl-libpoke/../../../poke.git/gl-libpoke/xmalloc.c:297:
 multiple definition of `xcalloc'; 
alloc.o:C:/src/repos/binutils-gdb.git/gdb/alloc.c:86: first defined here
c:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 C:/src/repos/poke/inst/lib/libpoke.a(libgnu_la-xmalloc.o): in function 
`xmemdup':
C:\src\repos\poke\poke.git-build\gl-libpoke/../../../poke.git/gl-libpoke/xmalloc.c:313:
 multiple definition of `xmemdup'; 
C:/gdb/build64/gdb-git-python3/libctf/../libiberty/libiberty.a(xmemdup.o):C:/src/repos/binutils-gdb.git/libiberty/xmemdup.c:36:
 first defined here
c:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
 C:/src/repos/poke/inst/lib/libpoke.a(libgnu_la-xmalloc.o): in function 
`xstrdup':
C:\src\repos\poke\poke.git-build\gl-libpoke/../../../poke.git/gl-libpoke/xmalloc.c:338:
 multiple definition of `xstrdup'; 
C:/gdb/build64/gdb-git-python3/libctf/../libiberty/libiberty.a(xstrdup.o):C:/src/repos/binutils-gdb.git/libiberty/xstrdup.c:32:
 first defined here

Both gdb and gl-libpoke define these x* allocation functions, and I'm not sure 
how to fix this.


Regards
Hannes

Reply via email to