Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: openssh build with Strawberry Perl provided gcc

by Anonymous Monk
on Feb 15, 2013 at 20:23 UTC ( #1018966=note: print w/ replies, xml ) Need Help??


in reply to openssh build with Strawberry Perl provided gcc

Any monks ever build openssh (the whole enchilada) using Strawberry Perl's provided mingw gcc compiler? Is it possible?

No, it is not possible

strawberryperl doesn't provide sh.exe (msys), so you can't run  ./configure , the standard installation dance

Shortest distance to compilation is to install msys from citrusperl, fixup ..\msys\etc\fstab ..\msys\etc\profile as documented (there is no installer that does it yet),

then startup msys.bat, cd to openssh directory, and follow standard autotools dance (  sh ./configure ... make install dance )


Comment on Re: openssh build with Strawberry Perl provided gcc
Select or Download Code
Re^2: openssh build with Strawberry Perl provided gcc
by syphilis (Canon) on Feb 15, 2013 at 23:59 UTC
    strawberryperl doesn't provide sh.exe (msys), so you can't run ./configure , the standard installation dance

    Yes, but you could use Strawberry's gcc from within the msys shell. All it takes is:
    export PATH=/c/strawberry/c/bin:$PATH
    As I understand it, that's essentially how the Strawberry developers build many of the libs (eg libssh2, gmp, mpfr) that ship with Strawberry Perl.

    Cheers,
    Rob

      Yes, but you could use Strawberry's gcc from within the msys shell...

      No you couldn't

      As I understand it, that's essentially how the Strawberry developers build many of the libs (eg libssh2, gmp, mpfr) that ship with Strawberry Perl.

      I don't think so (sounds insane)

      You need sh to run autotools, otherwise you're poking in the dark, writing your own makefile -- and nobody does that, that is pointless busywork

        You need sh to run autotools, otherwise you're poking in the dark

        Yes - but autotools are part of MSYS, not gcc .... and MSYS therefore finds those autotools irrespective of which gcc is being used.

        I use different gcc compilers with MSYS all the time and it has never been an issue.
        Mostly I'll download and extract a library source, do the ./configure dance, and end up with a 32-bit build of that library.
        Then it's just a matter of:
        make distclean export PATH=/c/_64/mingw/bin:$PATH
        Then do the same ./configure dance and end up with a 64-bit build of the same library. (Needless to say, C:/_64/mingw/bin houses a 64-bit gcc.)
        I have, on occasion, even used a Strawberry compiler to build a C library in this way in the MSYS shell - though, mostly, the "external" gcc compiler that I use is not actually one of the ones that ship with Strawberry.

        And I did once ask kmx how he built gmp for x86 and x64 Strawberry - to which he replied "Same way as you".

        Cheers,
        Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018966]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-07-13 21:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (252 votes), past polls