Re: DMD2 .deb fails to install on Ubuntu 10.10 – j ust remove »shell«?

2010-12-08 Thread Mike Chaten
I filed this bug report some time ago.

http://d.puremagic.com/issues/show_bug.cgi?id=5047

On Wed, Dec 8, 2010 at 1:32 PM, Andrei Alexandrescu <
seewebsiteforem...@erdani.org> wrote:

> On 12/8/10 5:41 AM, klickverbot wrote:
>
>> Currently, this is what happens when you try to install the DMD 2 deb
>> from digitalmars.com on a vanilla Ubuntu 10.10 box:
>>
>> sudo dpkg -i ~/Downloads/dmd_2.050-0_i386.deb
>> Selecting previously deselected package dmd.
>> (Reading database ... 127418 files and directories currently installed.)
>> Unpacking dmd (from .../Downloads/dmd_2.050-0_i386.deb) ...
>> dpkg: error processing ~/Downloads/dmd_2.050-0_i386.deb (--install):
>> trying to overwrite '/usr/bin/shell', which is also in package byobu
>> 3.5-0ubuntu1
>> dpkg-deb: subprocess paste killed by signal (Broken pipe)
>> Errors were encountered while processing:
>> ~/Downloads/dmd_2.050-0_i386.deb
>>
>> Obviously, the problem is that the package contains the »shell«
>> excecutable – is this really needed, even more so on Linux? Couldn't
>>
>> it simply be removed from the deb?
>>
>> In any case, something should really be done about this as soon as
>> possible – not that one couldn't solve this problem for himself,
>> providing a non-functional »1-click install« (that's how the package
>>
>> is described on http://www.digitalmars.com/d/download.html) is probably
>> one of the worst forms of advertising possible…
>>
>
> This seems pretty urgent. Walter?
>
> Andrei
>


Re: Linking to C

2010-11-02 Thread Mike Chaten
Any options with just one dash afaik (ala -L) will pass through to dmd.

On Wed, Nov 3, 2010 at 2:07 AM, scrappylildude  wrote:

> That's great--thanks Nick, Andrei.
>
> I tried it and it looks like I haven't configured something right.   I'm
> building a sample
> project with my program, my utility class library and libraw.  I've added
> the path to
> libraw_c_headers.d to dmd.conf, now that I don't have a -I switch any more
> (using
> rdmd).
>
> When I use rdmd, something like my original error seems to have returned:
>  :(
>
> rdmd --build-only helloworld.d
>
> Undefined symbols:  "_D4hecl4base8HECLBase11__InterfaceZ", referenced from:
> _D4hecl4base12__ModuleInfoZ in helloworld.d.old: symbol(s) not
> foundcollect2: ld
> returned 1 exit status
> --- errorlevel 1
>
> My project is organized as follows:
> root/
>stuff_i_made/
>my project/
>helloworld.d
>my class library/
>hecl*.d
>stuff_I_didnt_make/
>libraw/
>lib/
>libraw_r.a
>src/
>libraw_c_headers.d
>
> Using --dry-run seems to show everything except the libraw_r.a.  Since I
> don't have a
> -L switch with rdmd, I assume this is the problem?
>
>
>
>
>
>


Re: Linking to C

2010-11-02 Thread Mike Chaten
How are you compiling & linking the files? I've gotten this error before
when I forgot to include a file in my compilation (in your case
libraw_c_headers)

On Tue, Nov 2, 2010 at 8:47 PM, scrappylildude  wrote:

> Hello,
>
> New to D, but I am loving it so far.
>
> I am having some trouble linking to a C library static library (LibRaw
> 0.10.0).  I ran htod on the LibRaw
> header files, and fixed up the resulting file by hand.
>
> Now when I compile and attempt to link, I get one error:
>
> Undefined symbols:
>  "_D16libraw_c_headers12__ModuleInfoZ", referenced from:
>  _D10helloworld12__ModuleInfoZ in helloworld.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> --- errorlevel 1
>
> Obviously I don't have any identifiers by these names.  I wrote a simple
> library which printf's "Hello
> World" and linked to it without problems.  So I thought the problem might
> be due to name mangling
> incompatibilities, so I recompiled libraw under gcc4.2 and llvm-gcc and got
> the same issue both times.
>
> Can anyone provide a clue?  I know the linker can't resolve the above, but
> I have no idea how to go
> about fixing it.
>
> Environment: Mac OS X 10.6.4, DMD v2.049.
>


/usr/bin/shell & Ubuntu 10.10

2010-10-30 Thread Mike Chaten
I filed issue 5047  when
I upgraded to Ubuntu 10.10 from 10.04. The problem revolves around the fact
that, by default, 10.10 installs byobu  which
contains it's own /usr/bin/shell.

According to the docs, shell is a "Simple command line shell". While this
might be very useful for sh support on windows, linux provides sh support in
every distro. Is there a use for shell to someone using dmd that I am not
aware of? If not, can this be removed from the deb/rpm for future releases?

Thanks
-Mike


Re: First big PITA in reallife D project

2010-10-19 Thread Mike Chaten
I doubt a new version of dmd will be out until November at the earliest, as
there is no dmd beta out at the moment.
In the mean time, you should be able to download the latest source code of
phobos at
http://www.dsource.org/projects/phobos/changeset/head/trunk?old_path=%2F&format=zip
and build the code.

I'm not familiar with dmd under windows, but I believe you can just replace
the phobos .lib/.dll/.whateverextension file with the one you built.

On Tue, Oct 19, 2010 at 10:02 AM, Stephan  wrote:

> On 19.10.2010 15:27, Steven Schveighoffer wrote:
>
>> On Tue, 19 Oct 2010 08:35:09 -0400, Stephan  wrote:
>>
>>>
>>> Thanks for the reply and that you gonna take a look. I added the
>>> relation of bug http://d.puremagic.com/issues/show_bug.cgi?id=4344 to
>>> the bug aswell because it reallys seems to have the same underlying root.
>>>
>>
>> I fixed both with the suggested update in 4344. I also found a race
>> condition on Linux that as far as I know was never reported.
>>
>> See changeset http://www.dsource.org/projects/phobos/changeset/2107
>>
>> That was an easy one :)
>>
>> -Steve
>>
>
> Awesome, thank you.
> Is there a new release planned anytime soon that includes the patch ?
>
> - Stephan
>