How to avoid patch of Solaris x86 linker

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to avoid patch of Solaris x86 linker

A V-3
Hello everybody,

I'm developing a static library that uses openssl library (0.9.8d).
I experienced the same bug that is reported in the PROBLEMS file,
inside the openssl distribution:
"There is a subtle Solaris x86-specific gcc run-time environment bug, which
  "falls between" OpenSSL [0.9.8 and later], Solaris ld and GCC. The bug
  manifests itself as Segmentation Fault upon early application start-up.
  The problem can be worked around by patching the environment according to
  http://www.openssl.org/~appro/values.c."

Tha patch works perfectly but, since I develop a static library, I
would like to not force my users to patch their OS.
Is it possible to avoid the Solaris patch, patching the openssl
library or changing some of its compilation settings?

Thanks in advance,
Andrea Vaccaro
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: How to avoid patch of Solaris x86 linker

Bobby Krupczak
Hi!

> I'm developing a static library that uses openssl library (0.9.8d).
> I experienced the same bug that is reported in the PROBLEMS file,
> inside the openssl distribution:
> "There is a subtle Solaris x86-specific gcc run-time environment bug, which
>   "falls between" OpenSSL [0.9.8 and later], Solaris ld and GCC. The bug
>   manifests itself as Segmentation Fault upon early application start-up.
>   The problem can be worked around by patching the environment according to
>   http://www.openssl.org/~appro/values.c."
>
> Tha patch works perfectly but, since I develop a static library, I
> would like to not force my users to patch their OS.
> Is it possible to avoid the Solaris patch, patching the openssl
> library or changing some of its compilation settings?

Punt on gcc for solaris/x86 (solaris altogther?) and use the free
solaris compiler available via the web.

Once I switched compilers, I was able to build 0.9.8g and use it w/o
any problems.

Bobby
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: How to avoid patch of Solaris x86 linker

A V-3
Thank you Bobby for your response.
Sorry, I did not mention that using gcc 3.4/glibc 2.3 is a requirement for me.

Andrea


On Feb 3, 2008 12:06 AM, Bobby Krupczak <[hidden email]> wrote:

> Hi!
>
>
> > I'm developing a static library that uses openssl library (0.9.8d).
> > I experienced the same bug that is reported in the PROBLEMS file,
> > inside the openssl distribution:
> > "There is a subtle Solaris x86-specific gcc run-time environment bug, which
> >   "falls between" OpenSSL [0.9.8 and later], Solaris ld and GCC. The bug
> >   manifests itself as Segmentation Fault upon early application start-up.
> >   The problem can be worked around by patching the environment according to
> >   http://www.openssl.org/~appro/values.c."
> >
> > Tha patch works perfectly but, since I develop a static library, I
> > would like to not force my users to patch their OS.
> > Is it possible to avoid the Solaris patch, patching the openssl
> > library or changing some of its compilation settings?
>
> Punt on gcc for solaris/x86 (solaris altogther?) and use the free
> solaris compiler available via the web.
>
> Once I switched compilers, I was able to build 0.9.8g and use it w/o
> any problems.
>
> Bobby
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [hidden email]
> Automated List Manager                           [hidden email]
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

RE: How to avoid patch of Solaris x86 linker

Ted Mittelstaedt

I thought at one time there was a patch for a gcc version that
also worked around Sun's buggy linker.

Ted

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]]On Behalf Of A V
> Sent: Saturday, February 02, 2008 3:30 PM
> To: [hidden email]
> Subject: Re: How to avoid patch of Solaris x86 linker
>
>
> Thank you Bobby for your response.
> Sorry, I did not mention that using gcc 3.4/glibc 2.3 is a
> requirement for me.
>
> Andrea
>
>
> On Feb 3, 2008 12:06 AM, Bobby Krupczak <[hidden email]> wrote:
> > Hi!
> >
> >
> > > I'm developing a static library that uses openssl library (0.9.8d).
> > > I experienced the same bug that is reported in the PROBLEMS file,
> > > inside the openssl distribution:
> > > "There is a subtle Solaris x86-specific gcc run-time
> environment bug, which
> > >   "falls between" OpenSSL [0.9.8 and later], Solaris ld and
> GCC. The bug
> > >   manifests itself as Segmentation Fault upon early
> application start-up.
> > >   The problem can be worked around by patching the
> environment according to
> > >   http://www.openssl.org/~appro/values.c."
> > >
> > > Tha patch works perfectly but, since I develop a static library, I
> > > would like to not force my users to patch their OS.
> > > Is it possible to avoid the Solaris patch, patching the openssl
> > > library or changing some of its compilation settings?
> >
> > Punt on gcc for solaris/x86 (solaris altogther?) and use the free
> > solaris compiler available via the web.
> >
> > Once I switched compilers, I was able to build 0.9.8g and use it w/o
> > any problems.
> >
> > Bobby
> > ______________________________________________________________________
> > OpenSSL Project                                 http://www.openssl.org
> > User Support Mailing List                    [hidden email]
> > Automated List Manager                           [hidden email]
> >
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [hidden email]
> Automated List Manager                           [hidden email]
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]