static binaries on SOlaris x86 V10 - Solaris

This is a discussion on static binaries on SOlaris x86 V10 - Solaris ; Please forgive my ignorance as I am just getting upto speed with Solaris x86 V10. I have several tools written in "C" I would like to be able to compile as static binaries. So far, I only have the gcc ...

+ Reply to Thread
Results 1 to 11 of 11

Thread: static binaries on SOlaris x86 V10

  1. static binaries on SOlaris x86 V10


    Please forgive my ignorance as I am just getting upto speed with Solaris
    x86 V10.

    I have several tools written in "C" I would like to be able to compile as
    static binaries. So far, I only have the gcc compiler installed.

    It would appear that Solaris x86 V10 does not ship with the libs necessary
    to create static binaries. Is this correct ?

    If so, is it possible to actually get the libs needed for static binaries?

    If so, where?

    Thanks very much in advance.

    /ab


  2. Re: static binaries on SOlaris x86 V10

    On Mon, 16 Oct 2006, AB wrote:

    > I have several tools written in "C" I would like to be able to compile as
    > static binaries. So far, I only have the gcc compiler installed.


    Why do you want static binaries?

    > It would appear that Solaris x86 V10 does not ship with the libs necessary
    > to create static binaries. Is this correct ?


    Yes.

    > If so, is it possible to actually get the libs needed for static binaries?


    You don't. Static binaries are neither possible nor desirable.

    --
    Rich Teer, SCNA, SCSA, OpenSolaris CAB member

    President,
    Rite Online Inc.

    Voice: +1 (250) 979-1638
    URL: http://www.rite-group.com/rich

  3. Re: static binaries on SOlaris x86 V10

    On Mon, 16 Oct 2006 20:26:35 +0000, Rich Teer wrote:

    > On Mon, 16 Oct 2006, AB wrote:
    >
    >> I have several tools written in "C" I would like to be able to compile as
    >> static binaries. So far, I only have the gcc compiler installed.

    >
    > Why do you want static binaries?


    Sometime static binaries are desireable.

    >
    >> It would appear that Solaris x86 V10 does not ship with the libs necessary
    >> to create static binaries. Is this correct ?

    >
    > Yes.
    >
    >> If so, is it possible to actually get the libs needed for static binaries?

    >
    > You don't. Static binaries are neither possible nor desirable.


    ummm... file /boot/multiboot...




  4. Re: static binaries on SOlaris x86 V10

    AB wrote:
    > On Mon, 16 Oct 2006 20:26:35 +0000, Rich Teer wrote:
    >
    >
    >>On Mon, 16 Oct 2006, AB wrote:
    >>
    >>
    >>>I have several tools written in "C" I would like to be able to compile as
    >>>static binaries. So far, I only have the gcc compiler installed.

    >>
    >>Why do you want static binaries?

    >
    >
    > Sometime static binaries are desireable.
    >

    When?

    --
    Ian Collins.

  5. Re: static binaries on SOlaris x86 V10

    AB wrote:
    > Sometime static binaries are desireable.


    No.


    > ummm... file /boot/multiboot...


    Umm,

    $ /boot/multiboot
    Segmentation Fault(coredump)
    $


    --
    Daniel

  6. Re: static binaries on SOlaris x86 V10

    On Tue, 17 Oct 2006 10:23:38 +1300, Ian Collins wrote:

    > AB wrote:
    >> On Mon, 16 Oct 2006 20:26:35 +0000, Rich Teer wrote:
    >>
    >>
    >>>On Mon, 16 Oct 2006, AB wrote:
    >>>
    >>>
    >>>>I have several tools written in "C" I would like to be able to compile as
    >>>>static binaries. So far, I only have the gcc compiler installed.
    >>>
    >>>Why do you want static binaries?

    >>
    >>
    >> Sometime static binaries are desireable.
    >>

    > When?


    When the local file systems are corrupted or suspect... when scanning
    tools shouldn't really trust anything on the local machine - including
    local libs...

    I was mostly just curious folks. Still getting my feet wet with this
    Solaris x86 thingy.

    /ab





  7. Re: static binaries on SOlaris x86 V10

    On Mon, 16 Oct 2006 21:26:40 +0000, Daniel Rock wrote:

    > AB wrote:
    >> Sometime static binaries are desireable.

    >
    > No.
    >
    >
    >> ummm... file /boot/multiboot...

    >
    > Umm,
    >
    > $ /boot/multiboot
    > Segmentation Fault(coredump)
    > $


    sorry... i should have been more explicit...

    [bella-3:/boot]# file multiboot
    multiboot: ELF 32-bit LSB executable 80386 Version 1, statically linked, not stripped


  8. Re: static binaries on SOlaris x86 V10

    AB wrote:
    > sorry... i should have been more explicit...
    >
    > [bella-3:/boot]# file multiboot
    > multiboot: ELF 32-bit LSB executable 80386 Version 1, statically linked, not stripped


    So what? Not every ELF binary is directly executable by Solaris.

    --
    Daniel

  9. Re: static binaries on SOlaris x86 V10

    AB wrote:
    > On Tue, 17 Oct 2006 10:23:38 +1300, Ian Collins wrote:
    >
    >
    >>AB wrote:
    >>
    >>>On Mon, 16 Oct 2006 20:26:35 +0000, Rich Teer wrote:
    >>>
    >>>
    >>>
    >>>>On Mon, 16 Oct 2006, AB wrote:
    >>>>
    >>>>
    >>>>
    >>>>>I have several tools written in "C" I would like to be able to compile as
    >>>>>static binaries. So far, I only have the gcc compiler installed.
    >>>>
    >>>>Why do you want static binaries?
    >>>
    >>>
    >>>Sometime static binaries are desireable.
    >>>

    >>
    >>When?

    >
    >
    > When the local file systems are corrupted or suspect... when scanning
    > tools shouldn't really trust anything on the local machine - including
    > local libs...
    >

    In that case, how can you trust the tool?

    > I was mostly just curious folks. Still getting my feet wet with this
    > Solaris x86 thingy.
    >

    You will probably find a lot of discussions regarding the removal of
    static libraries in the comp.unix.solaris archives.

    --
    Ian Collins.

  10. Re: static binaries on SOlaris x86 V10

    On Mon, 16 Oct 2006, AB wrote:

    > When the local file systems are corrupted or suspect... when scanning
    > tools shouldn't really trust anything on the local machine - including
    > local libs...


    Fair enough, but in that case, you should be booting from some trusted
    source, e.g., DVD, and rely on the tools and libs on that.

    > I was mostly just curious folks. Still getting my feet wet with this
    > Solaris x86 thingy.


    Nothing wrong with curiosity! The ability to link statically with libc
    was removed with Solaris 10, because (among other reasons) linking
    statically would prevent some useful S10 features from working.

    --
    Rich Teer, SCNA, SCSA, OpenSolaris CAB member

    President,
    Rite Online Inc.

    Voice: +1 (250) 979-1638
    URL: http://www.rite-group.com/rich

  11. Re: static binaries on SOlaris x86 V10

    On Mon, 16 Oct 2006 17:23:02 -0400, AB wrote:
    > On Mon, 16 Oct 2006 20:26:35 +0000, Rich Teer wrote:
    >
    >> On Mon, 16 Oct 2006, AB wrote:
    >>
    >>> I have several tools written in "C" I would like to be able to compile as
    >>> static binaries. So far, I only have the gcc compiler installed.

    >>
    >> Why do you want static binaries?

    >
    > Sometime static binaries are desireable.


    That time was 10 years ago or more.

    A bientot
    Paul
    --
    Paul Floyd http://paulf.free.fr (for what it's worth)
    Surgery: ennobled Gerald.

+ Reply to Thread