www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13097] New: linker error: undefined reference to symbol

https://issues.dlang.org/show_bug.cgi?id=13097

          Issue ID: 13097
           Summary: linker error: undefined reference to symbol '_end',
                    bisected to druntime 09ea3d
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: zorael gmail.com

New installation of Arch, dmd/druntime/phobos from git (v2.066-devel-e0ca2d2).

Building dub (git 8c8934) fails with a linker error. Other stuff (Digger, small
test snippets) seems to build fine.

  gcc bin/dub.o -o bin/dub -g -m64 -l:libphobos2.a -lcurl
-L/mnt/main/src/d/dlang-workspace -Xlinker --no-warn-search-mismatch -Xlinker
--export-dynamic -l:libphobos2.a -lpthread -lm -lrt
  /usr/bin/ld:
/mnt/main/src/d/dlang-workspace/libphobos2.a(sections_linux_553_883.o):
undefined reference to symbol '_end'
  /usr/lib/libssl.so.1.0.0: error adding symbols: DSO missing from command line
  collect2: error: ld returned 1 exit status

pacman reports libssl to be version 1.0.1.h-1.

Digger bisect result:

  commit 09ea3d684b6a815d2b9013b6cf2d4e30a4c70301
  Merge: 591b8d4 82c9b2d
  Author: Walter Bright <walter walterbright.com>
  Date:   Mon May 26 03:32:45 2014 -0700



      fix for Issue 11543 - multiple definition of std.regex with shared
library

--
Jul 11 2014