www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - build on linux

reply bpederse <bpederse_member pathlink.com> writes:
hi, i'm just trying D. i downloaded the d-dbi library. it requires the build
library in order to install/build. \
so i downloaded the build library, copied Makefile.gnu to Makefile in the Source
dir.
then run make. 
i get a ton of errors such as:
source.d:(.gnu.linkonce.t_D6source6Source6searchFZv+0xd9): undefined reference
to `_D4util8booltype4TrueC4util8booltype4Bool

so
1. what are the steps required to run get the build program going
and
2. is there a document somewhere that explains how to get a library and
"install" it. i.e. how to edit dmd.conf and/or where to put all the files?
thanks,
-brent
Apr 25 2006
next sibling parent reply Frank Benoit <keinfarbton nospam.xyz> writes:
With 2.10, I have problems also. The build version 2.09 works fine for me.
Apr 25 2006
parent bp <bp_member pathlink.com> writes:
thanks, that did it.

In article <e2lh8v$6dk$1 digitaldaemon.com>, Frank Benoit says...
With 2.10, I have problems also. The build version 2.09 works fine for me.

Apr 25 2006
prev sibling parent reply Derek Parnell <derek psych.ward> writes:
On Tue, 25 Apr 2006 15:45:07 +0000 (UTC), bpederse wrote:

 hi, i'm just trying D. i downloaded the d-dbi library. it requires the build
 library in order to install/build. \
 so i downloaded the build library, copied Makefile.gnu to Makefile in the
Source
 dir.
 then run make. 
 i get a ton of errors such as:
 source.d:(.gnu.linkonce.t_D6source6Source6searchFZv+0xd9): undefined reference
 to `_D4util8booltype4TrueC4util8booltype4Bool
 
 so
 1. what are the steps required to run get the build program going
 and
 2. is there a document somewhere that explains how to get a library and
 "install" it. i.e. how to edit dmd.conf and/or where to put all the files?
 thanks,
 -brent

There are two mistakes in the Build distro. (1) The Makefiles are missing a reference to 'util/booltype.d' in the list of dependant source files. (2) The file 'fileex.d' is missing an import for 'util.str'. I've uploaded repaired files to the DSource SVN but I've not updated the .ZIP files, that can wait until the next version. You can download the effected files from ... http://svn.dsource.org/projects/build/trunk/Source/Makefile.unix http://svn.dsource.org/projects/build/trunk/Source/Makefile.gdc http://svn.dsource.org/projects/build/trunk/Source/Makefile.dos http://svn.dsource.org/projects/build/trunk/Source/util/fileex.d -- Derek (skype: derek.j.parnell) Melbourne, Australia "Down with mediocracy!" 26/04/2006 9:30:57 AM -- Derek (skype: derek.j.parnell) Melbourne, Australia "Down with mediocracy!" 26/04/2006 9:46:26 AM
Apr 25 2006
parent reply bpederse <bpederse_member pathlink.com> writes:
hi, thanks, that seemed to fix it as well. 

now i still have a general question. i naively go into the downloaded + untarred
ddbi directory and type make. i get the following error: 

build -w   \
-Tlibddbi_sqlite3.a -full -allobj -lib dbi/sqlite/all.d
Error: File 'std/string.d' not found.
make: *** [libddbi_sqlite3.a] Error 1


clearly means that it doesn't know how to find std/string. how do i remedy that?
i believe my /etc/dmd.conf file is set correctly. is there anything else i
should check. 

thanks,
-brent



In article <ey7ne13zr8a1$.10tqfatv53lnn$.dlg 40tude.net>, Derek Parnell says...
On Tue, 25 Apr 2006 15:45:07 +0000 (UTC), bpederse wrote:

 hi, i'm just trying D. i downloaded the d-dbi library. it requires the build
 library in order to install/build. \
 so i downloaded the build library, copied Makefile.gnu to Makefile in the
Source
 dir.
 then run make. 
 i get a ton of errors such as:
 source.d:(.gnu.linkonce.t_D6source6Source6searchFZv+0xd9): undefined reference
 to `_D4util8booltype4TrueC4util8booltype4Bool
 
 so
 1. what are the steps required to run get the build program going
 and
 2. is there a document somewhere that explains how to get a library and
 "install" it. i.e. how to edit dmd.conf and/or where to put all the files?
 thanks,
 -brent



There are two mistakes in the Build distro.

(1) The Makefiles are missing a reference to 'util/booltype.d' in the list
of dependant source files.

(2) The file 'fileex.d' is missing an import for 'util.str'.

I've uploaded repaired files to the DSource SVN but I've not updated the
.ZIP files, that can wait until the next version.

You can download the effected files from ...

http://svn.dsource.org/projects/build/trunk/Source/Makefile.unix
http://svn.dsource.org/projects/build/trunk/Source/Makefile.gdc
http://svn.dsource.org/projects/build/trunk/Source/Makefile.dos
http://svn.dsource.org/projects/build/trunk/Source/util/fileex.d

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocracy!"
26/04/2006 9:30:57 AM

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocracy!"
26/04/2006 9:46:26 AM

Apr 26 2006
parent Derek Parnell <derek psych.ward> writes:
On Wed, 26 Apr 2006 21:22:27 +0000 (UTC), bpederse wrote:

 hi, thanks, that seemed to fix it as well. 
 
 now i still have a general question. i naively go into the downloaded +
untarred
 ddbi directory and type make. i get the following error: 
 
 build -w   \
 -Tlibddbi_sqlite3.a -full -allobj -lib dbi/sqlite/all.d
 Error: File 'std/string.d' not found.
 make: *** [libddbi_sqlite3.a] Error 1
 
 clearly means that it doesn't know how to find std/string. how do i remedy
that?
 i believe my /etc/dmd.conf file is set correctly. is there anything else i
 should check. 

Hmmmm ... because the message says 'std/string.d' it implies that the current directory is the phobos directory, but if that was the case Build would find the file ... so I'm a bit confused about this one. I'll do some more searching for an answer ... bbs -- Derek (skype: derek.j.parnell) Melbourne, Australia "Down with mediocracy!" 27/04/2006 10:10:29 AM
Apr 26 2006