www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - LuaD linker problems using dub

reply "Soulsbane" <paul acheronsoft.com> writes:
Using dub I get the following:
dub build --build=release
luad: ["luad"]
luadubtest: ["luadubtest", "luad"]
Target is up to date. Using existing build in 
/home/soulsbane/.dub/packages/luad-master/.dub/build/library-release-linux.posix-x86_64-dmd-B83FCD49839968
A975DFE86E5A741A0/. 
Use --force to force a rebuild.
Building luadubtest configuration "application", build type 
release.
Compiling...
Linking...
.dub/build/application-release-linux.posix-x86_64-dmd-4FF98A30FE312568645DD3AB88D46B00/luadubtest.o:(.data._D30TypeInfo_S4luad4base9LuaO
ject6__initZ+0x38): 
undefined reference to 
`_D4luad4base9LuaObject11__xopEqualsFKxS4luad4base9LuaObjectKxS4luad4base9LuaObjectZb'
collect2: error: ld returned 1 exit status
--- errorlevel 1
FAIL 
.dub/build/application-release-linux.posix-x86_64-dmd-4FF98A30FE31
568645DD3AB88D46B00 
luadubtest executable
Error executing command build: Link command failed with exit code 
1

I'm using Linux Mint so maybe I have the wrong lua lib installed? 
I tried using the --rdmd flag and I get:

Running rdmd...
Error: cannot read file 
../../../.dub/packages/luad-master/source/app.d
Failed: 'dmd' '-release' '-inline' '-O' '-w' '-version=Have_luad' 
'-I../../../.dub/packages/luad-master' '-lib' '-v' '-o-' 
'../../../.dub/packages/luad-master/source/app.d' 
'-I../../../.dub/packages/luad-master/source'
Error executing command build: Build command failed with exit 
code 1

This is my first time using dub so it could be that also. I've 
wasted more time on this than I care to admit :).

Thanks a lot!
Feb 23 2014
parent reply "Jakob Ovrum" <jakobovrum gmail.com> writes:
On Monday, 24 February 2014 at 01:19:44 UTC, Soulsbane wrote:
 Using dub I get the following:
 dub build --build=release
 luad: ["luad"]
 luadubtest: ["luadubtest", "luad"]
 Target is up to date. Using existing build in 
 /home/soulsbane/.dub/packages/luad-master/.dub/build/library-release-linux.posix-x86_64-dmd-B83FCD49839968
A975DFE86E5A741A0/. 
 Use --force to force a rebuild.
 Building luadubtest configuration "application", build type 
 release.
 Compiling...
 Linking...
 .dub/build/application-release-linux.posix-x86_64-dmd-4FF98A30FE312568645DD3AB88D46B00/luadubtest.o:(.data._D30TypeInfo_S4luad4base9LuaO
ject6__initZ+0x38): 
 undefined reference to 
 `_D4luad4base9LuaObject11__xopEqualsFKxS4luad4base9LuaObjectKxS4luad4base9LuaObjectZb'
 collect2: error: ld returned 1 exit status
 --- errorlevel 1
 FAIL 
 .dub/build/application-release-linux.posix-x86_64-dmd-4FF98A30FE31
568645DD3AB88D46B00 
 luadubtest executable
 Error executing command build: Link command failed with exit 
 code 1

 I'm using Linux Mint so maybe I have the wrong lua lib 
 installed? I tried using the --rdmd flag and I get:

 Running rdmd...
 Error: cannot read file 
 ../../../.dub/packages/luad-master/source/app.d
 Failed: 'dmd' '-release' '-inline' '-O' '-w' 
 '-version=Have_luad' '-I../../../.dub/packages/luad-master' 
 '-lib' '-v' '-o-' 
 '../../../.dub/packages/luad-master/source/app.d' 
 '-I../../../.dub/packages/luad-master/source'
 Error executing command build: Build command failed with exit 
 code 1

 This is my first time using dub so it could be that also. I've 
 wasted more time on this than I care to admit :).

 Thanks a lot!
It is a DMD bug, fixed in 2.065[1]. [1] http://d.puremagic.com/issues/show_bug.cgi?id=12144
Feb 23 2014
parent "Soulsbane" <paul acheronsoft.com> writes:
 It is a DMD bug, fixed in 2.065[1].

 [1] http://d.puremagic.com/issues/show_bug.cgi?id=12144
Oh my gosh! I can't thank you enough for the quick answer.
Feb 23 2014