Link failed release-0.11.0 - FreeBSD x64

Kai Nacke kai at redstar.de
Sun Jul 7 05:47:00 PDT 2013


On Sunday, 7 July 2013 at 10:41:42 UTC, Sumit Raja wrote:
> Linking CXX executable bin/ldc2
> lib/libldc.so: undefined reference to `HtmlNamedEntity(unsigned 
> char*, int)'
> lib/libldc.so: undefined reference to `memicmp(char const*, 
> char const*, int)'
>
> FreeBSD pcbsd-8352 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4
>
> FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
> Target: x86_64-unknown-freebsd9.0
>
> LLVm - 3.2
>
> Makefile references port.c.o correctly. Any ideas?
>
> Thanks
>
> Sumit

Hi Sumit!

I really have no idea what's going on here.

memicmp() should not be called on FreeBSD. Instead an 
implementation is provided in dmd/root.c, line 793.

HtmlNamedEntity is defined in dmd2/entity.c. It looks like the 
entire file is missing.

How do you compile ldc?

Regards
Kai


More information about the digitalmars-d-ldc mailing list