June 01, 2013
On Fri, 2013-05-31 at 13:50 -0700, Ellery Newcomer wrote: […]
> just tried it on ubuntu 12.10, and it does the same.
> 
> are you using -defaultlib=libphobos2.so

I suspect I may be doing different things from you as I never use an option of that sort. Perhaps we should agree a code and command to make the tests.

I definitely have everything though:

/usr/lib/libphobos-ldc-debug.a
/usr/lib/libphobos-ldc.a
/usr/lib/i386-linux-gnu/libphobos2.a
/usr/lib/i386-linux-gnu/libphobos2.so
/usr/lib/i386-linux-gnu/libphobos2.so.0.63
/usr/lib/x86_64-linux-gnu/libphobos2.a
/usr/lib/x86_64-linux-gnu/libphobos2.so
/usr/lib/x86_64-linux-gnu/libphobos2.so.0.63

Though I note that the installer is getting it all wrong wrt symbolic links:

-rw-r--r-- 1 root root 3924435 May 30 04:55 /usr/lib/i386-linux-gnu/libphobos2.so -rw-r--r-- 1 root root 4629987 May 30 04:55 /usr/lib/x86_64-linux-gnu/libphobos2.so

lrwxrwxrwx 1 root root 13 May 31 14:14 /usr/lib/i386-linux-gnu/libphobos2.so.0.63 -> libphobos2.so lrwxrwxrwx 1 root root 13 May 31 14:14 /usr/lib/x86_64-linux-gnu/libphobos2.so.0.63 -> libphobos2.so

The so link should point to the soname version link which points to the fully qualified version which is the real file. The DMD deb gets this all the wrong way around :-((

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


June 01, 2013
On 06/01/2013 02:31 AM, Russel Winder wrote:
> On Fri, 2013-05-31 at 13:50 -0700, Ellery Newcomer wrote:
> […]
>> just tried it on ubuntu 12.10, and it does the same.
>>
>> are you using -defaultlib=libphobos2.so
>
> I suspect I may be doing different things from you as I never use an
> option of that sort. Perhaps we should agree a code and command to make
> the tests.
>

the way I build is detailed in the makefile here:

https://bitbucket.org/ariovistus/pyd/src/296ef002750411331ec9a3bcb14aed345b65d8d5/examples/misc/dmd_sharedlibs?at=default

June 01, 2013
On 5/31/13, Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote:
> On 5/30/13, Andrei Alexandrescu <SeeWebsiteForEmail@erdani.org> wrote:
>> Hello,
>
> We seem to have a regression affecting the zipped release: http://d.puremagic.com/issues/show_bug.cgi?id=10215

Kenji has reduced this, and apparently it's a problem with the actual zipped release, not any commit. We really should provide an emergency release as soon as possible, this is a rather serious bug.
June 02, 2013
For some reason I still cannot build dmd 2.063 from the zip release. I mentioned it before the release on the beta and internals mailing lists and maybe I'm just overlooking something trivial, but when I run make I get:

make: *** Keine Regel vorhanden, um das Target »irstate.h«,
  benötigt von »irstate.o«, zu erstellen.  Schluss.

irstate.c is there, but irstate.h is missing. Is that like last time when VERSION was missing?

Also when you release hotfixes, please give the packages
new names reflecting the full version. Package managers
run into problems when the same URL has changed content.
(e.g. aborting on failed checksum or not recognizing the
update)

-- 
Marco

June 02, 2013
On Sat, 2013-06-01 at 09:36 -0700, Ellery Newcomer wrote:
> On 06/01/2013 02:31 AM, Russel Winder wrote:
> > On Fri, 2013-05-31 at 13:50 -0700, Ellery Newcomer wrote: […]
> >> just tried it on ubuntu 12.10, and it does the same.
> >>
> >> are you using -defaultlib=libphobos2.so
> >
> > I suspect I may be doing different things from you as I never use an option of that sort. Perhaps we should agree a code and command to make the tests.
> >
> 
> the way I build is detailed in the makefile here:
> 
> https://bitbucket.org/ariovistus/pyd/src/296ef002750411331ec9a3bcb14aed345b65d8d5/examples/misc/dmd_sharedlibs?at=default

I cloned PyD – I have been intending to do this for ages to try D for Python extensions – and ran make in the directory you mentioned:

        |> make
        gcc  -c -fPIC so_ctor.c -o so_ctor.o
        dmd  -unittest -fPIC -defaultlib=libphobos2.so -shared test1.d
        boilerplate.d so_ctor.o -oflibtest1.so
        #dmd  -c -unittest -fPIC test1.d boilerplate.d -oftemp.o
        #dmd  -shared -defaultlib=phobos2so temp.o so_ctor.o
        -oflibtest1.so
        gcc  test1.c `pwd`/libtest1.so -o test1.x
        ./test1.x
        initing
        yawn. stretch.
        lets test this donut.
        foo(2)=6
        dniting
        yawn. zzzzz


-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


June 02, 2013
Am Sun, 2 Jun 2013 07:40:27 +0200
schrieb Marco Leise <Marco.Leise@gmx.de>:

> For some reason I still cannot build dmd 2.063 from the zip release. I mentioned it before the release on the beta and internals mailing lists and maybe I'm just overlooking something trivial, but when I run make I get:
> 
> make: *** Keine Regel vorhanden, um das Target »irstate.h«,
>   benötigt von »irstate.o«, zu erstellen.  Schluss.
> 
> irstate.c is there, but irstate.h is missing. Is that like last time when VERSION was missing?

Ok, a pull request about that got merged. Let's see if it ends up in the .zip ;)


-- 
Marco

June 02, 2013
On 06/01/2013 11:19 PM, Russel Winder wrote:
>
> I cloned PyD – I have been intending to do this for ages to try D for
> Python extensions – and ran make in the directory you mentioned:
>
>          |> make
>          gcc  -c -fPIC so_ctor.c -o so_ctor.o
>          dmd  -unittest -fPIC -defaultlib=libphobos2.so -shared test1.d
>          boilerplate.d so_ctor.o -oflibtest1.so
>          #dmd  -c -unittest -fPIC test1.d boilerplate.d -oftemp.o
>          #dmd  -shared -defaultlib=phobos2so temp.o so_ctor.o
>          -oflibtest1.so
>          gcc  test1.c `pwd`/libtest1.so -o test1.x
>          ./test1.x
>          initing
>          yawn. stretch.
>          lets test this donut.
>          foo(2)=6
>          dniting
>          yawn. zzzzz
>
>

who packages your dmd?
June 02, 2013
On Sun, 2013-06-02 at 11:23 -0700, Ellery Newcomer wrote: […]
> 
> who packages your dmd?

Normally I would use the one from APT-D, but as this not at 2.063 as yet I used the deb downloaded from the D download page. This necessitates removing all packages from APT-D since they depend on exactly a given DMD version. I have this installed GtkD from master/HEAD and not got Vibe.d just at the minute.

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


June 02, 2013
On 06/02/2013 11:48 AM, Russel Winder wrote:
> On Sun, 2013-06-02 at 11:23 -0700, Ellery Newcomer wrote:
> […]
>>
>> who packages your dmd?
>
> Normally I would use the one from APT-D, but as this not at 2.063 as yet
> I used the deb downloaded from the D download page. This necessitates
> removing all packages from APT-D since they depend on exactly a given
> DMD version. I have this installed GtkD from master/HEAD and not got
> Vibe.d just at the minute.
>

so we are using the same package.

??

oh. dpkg -L just doesn't list it.

but it's definitely missing from the rpm.
June 02, 2013
On Sun, 2013-06-02 at 12:48 -0700, Ellery Newcomer wrote: […]
> so we are using the same package.
> 
> ??
> 
> oh. dpkg -L just doesn't list it.

Symbolic links aren't in the deb, they are created by the post install script once the shared library is installed.

> but it's definitely missing from the rpm.

Perhaps RPMs should have a post install script?

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder