[OpenSmalltalk/opensmalltalk-vm] Sunupdate (#496)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

[OpenSmalltalk/opensmalltalk-vm] Sunupdate (#496)

smalltalking
 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hello,

There's two updates for the SunOS port here.

    • Change #define sk_GENERAL_NAME_freefunc for SunPRO C compiler
    • SunOS: add a note in HowToBuild on pkg-config

The first change is for the OpenSSL SqueakSSL case of openssl 1.0.2,
to fix a type cast ... I think this potentially impacts all openssl 1.0.2 platforms that use --disable-dynamicopenssl but it seems OK (I think/hope).

For the second change this is a "documentation" update to the HowToBuild
"HOWTO" documentation in the build.sunos directory; this has no further impact.

Thanks,
David Stes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJes8ijAAoJEAwpOKXMq1MamV8H/2MrggX6VzRxGCdP40MN5vyE
HuynHVCC68dLneHoYSvaMi4IrVGXS6lYMGa8FfNZsWuVCZDW/rii1nZNH9qo6zCM
6QRekLwKOpp63tXGpKj3C/e8skju6cPvCd9LGWguSqPUVHwFCqOSawYI4OEckvvr
6Nvnqk7ER2yE/iuJSeWgIRLVq4kE/Aq3x8wAtf7zgITHhxr8fEG5+H/Y7icKHW1J
aTv2Z7jDHTcJqM/sEC0la2e8K2iDHkhKBim0K/PS1LtLgzZGAfycdmHJoq0KccRT
gXpEHjsDIEdfvWmIU9xjIiwsIdg5Cz7l5Y7ipb8s1l5cZKv4ct5JnwBl2+Rw+MY=
=oc8N
-----END PGP SIGNATURE-----


You can view, comment on, or merge this pull request online at:

  https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496

Commit Summary

  • Merge pull request #4 from OpenSmalltalk/Cog
  • Merge pull request #5 from OpenSmalltalk/Cog
  • SunOS: add a note in HowToBuild on pkg-config
  • Change #define sk_GENERAL_NAME_freefunc for SunPRO C compiler

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Sunupdate (#496)

smalltalking
 

@cstes pushed 1 commit.

  • a939b40 SunOS: add doc on pfexec squeak (proc_priocntl)


You are receiving this because you are subscribed to this thread.
View it on GitHub or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496/files/5db45d9ccf3af5fd2f3f9d24bba786964070fd47..a939b401e02d61d8c76f8113497d6c3c91c70018", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496/files/5db45d9ccf3af5fd2f3f9d24bba786964070fd47..a939b401e02d61d8c76f8113497d6c3c91c70018", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Sunupdate (#496)

smalltalking
In reply to this post by smalltalking
 

@cstes pushed 1 commit.

  • be4cadf SunOS: doc on /etc/user_attr Squeak profile


You are receiving this because you are subscribed to this thread.
View it on GitHub or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496/files/a939b401e02d61d8c76f8113497d6c3c91c70018..be4cadff3a664dde4054e174db3418adfcd8c09b", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496/files/a939b401e02d61d8c76f8113497d6c3c91c70018..be4cadff3a664dde4054e174db3418adfcd8c09b", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Sunupdate (#496)

smalltalking
In reply to this post by smalltalking
 

@cstes pushed 1 commit.

  • 464467e SunOS: clarify in HowToBuild audio header files


You are receiving this because you are subscribed to this thread.
View it on GitHub or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496/files/be4cadff3a664dde4054e174db3418adfcd8c09b..464467e265412359dee56cdf4f1d9dc4f6c5866a", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496/files/be4cadff3a664dde4054e174db3418adfcd8c09b..464467e265412359dee56cdf4f1d9dc4f6c5866a", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Sunupdate (#496)

smalltalking
In reply to this post by smalltalking
 

@cstes pushed 1 commit.

  • 70d068d Remove wikipedia reference to Solaris


You are receiving this because you are subscribed to this thread.
View it on GitHub or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496/files/464467e265412359dee56cdf4f1d9dc4f6c5866a..70d068dd12191a70b1a7a495a4c6bef39ff9a4ba", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496/files/464467e265412359dee56cdf4f1d9dc4f6c5866a..70d068dd12191a70b1a7a495a4c6bef39ff9a4ba", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Sunupdate (#496)

smalltalking
In reply to this post by smalltalking
 

@cstes pushed 1 commit.

  • dcdd632 Change sk_GENERAL_NAME_freefunc void* to GENERAL_NAME*


You are receiving this because you are subscribed to this thread.
View it on GitHub or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496/files/70d068dd12191a70b1a7a495a4c6bef39ff9a4ba..dcdd632efcb63e2d55f66232aa25856796dc6b76", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496/files/70d068dd12191a70b1a7a495a4c6bef39ff9a4ba..dcdd632efcb63e2d55f66232aa25856796dc6b76", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Sunupdate (#496)

smalltalking
In reply to this post by smalltalking
 

Why?
I don't think that the freefunc is declared as such in the old openssl version.

with the definition
-#define sk_GENERAL_NAME_freefunc void()(void)

the compile aborts with the SunPro C compiler.

platforms/unix/plugins/SqueakSSL/sqUnixOpenSSL.inc", line 122: operands have incompatible types:
pointer to function(pointer to void) returning void ":" pointer to function(pointer to struct GENERAL_NAME_st {int type, union {..} d}) returning void

With the definition
+#define sk_GENERAL_NAME_freefunc void()(GENERAL_NAME)

compilation works.

The code

sqo_sk_GENERAL_NAME_pop_free(sANs, (sk_GENERAL_NAME_freefunc)sqo_sk_free);

expanded - with the old defintion of sk_GENERAL_NAME_freefunc - to:

sk_pop_free ( ( ( _STACK * ) ( 1 ? ( sANs ) : ( struct stack_st_GENERAL_NAME * ) 0 ) ) , ( ( void ( * ) ( void * ) ) ( ( 1 ? ( ( void ( * ) ( void * ) ) sk_free ) : ( void ( * ) ( GENERAL_NAME * ) ) 0 ) ) ) );

with the new definition of sk_GENERAL_NAME_freefunc it expands to :

             sk_pop_free ( ( ( _STACK * ) ( 1 ? ( sANs ) : ( struct stack_st_GENERAL_NAME * ) 0 ) ) , ( ( void ( * ) ( void * ) ) ( ( 1 ? ( ( void ( * ) ( GENERAL_NAME * ) ) sk_free ) : ( void ( * ) ( GENERAL_NAME * ) ) 0 ) ) ) );

which the SUNpro compiler accepts.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496#issuecomment-642486172", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496#issuecomment-642486172", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Sunupdate (#496)

smalltalking
In reply to this post by smalltalking
 

@cstes Can you have a look at the defined OPENSSL_VERSION_NUMBER? The definition to void* is necessary in earlier versions of OpenSSL, only later versions have the stacks typed.

The header opensslv.h has a definition # define OPENSSL_VERSION_NUMBER 0x100020ffL
That header is included by crypto.h.

In my case I observed that I had to change

--- a/platforms/unix/plugins/SqueakSSL/openssl_overlay.h
+++ b/platforms/unix/plugins/SqueakSSL/openssl_overlay.h
@@ -164,7 +164,7 @@
#define sqo_SSL_library_init SSL_library_init
#define sqo_SSL_load_error_strings SSL_load_error_strings

-#define sk_GENERAL_NAME_freefunc void()(void)
+#define sk_GENERAL_NAME_freefunc void()(GENERAL_NAME)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496#issuecomment-642492139", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496#issuecomment-642492139", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Sunupdate (#496)

smalltalking
In reply to this post by smalltalking
 

Then it is strange this did not come up earlier 😕


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496#issuecomment-642534358", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496#issuecomment-642534358", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Sunupdate (#496)

smalltalking
In reply to this post by smalltalking
 

Then it is strange this did not come up earlier 😕

I don't have the issue with "gcc" or with "clang". Only with the SunPro C compiler. Technically speaking I find it interesting to compile with the SunPro C compiler although that I can use gcc as an alternative. By the way, the "alternative" that I also have is to patch the source before compilation, which is also fine by me, then I patch it for the SunPro C specific case. However I submit the issue "upstream" so to speak to see what you think of it, maybe another solution exists. I think the change from point to void to point to GENERAL_NAME looked fine to me, by the way that fix also works for me in the gcc and clang cases.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496#issuecomment-642540003", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496#issuecomment-642540003", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Sunupdate (#496)

smalltalking
In reply to this post by smalltalking
 

yeah, you might be right…
I'm only afraid it might break openssl 0.9.9, but nobody should use that anyway¬
lets keep it


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496#issuecomment-642547048", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496#issuecomment-642547048", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Sunupdate (#496)

smalltalking
In reply to this post by smalltalking
 

@cstes pushed 1 commit.

  • dadd2d2 Add comment about Basic Solaris User profile and pthread_setschedparam


You are receiving this because you are subscribed to this thread.
View it on GitHub or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496/files/dcdd632efcb63e2d55f66232aa25856796dc6b76..dadd2d2f3ee7754a92771735bb5cae599a5d7ccf", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496/files/dcdd632efcb63e2d55f66232aa25856796dc6b76..dadd2d2f3ee7754a92771735bb5cae599a5d7ccf", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] Sunupdate (#496)

smalltalking
In reply to this post by smalltalking
 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

This is a reminder about
#496

Currently I apply manually this small patch before building the
OpenSmalltalk VM on Solaris 11.

My understanding from the feedback so far "let's keep it",
this means that it is (hopefully) acceptable to merge it into Cog.

That would be useful as I don't have to manually apply the patch any longer.

It's not a disaster if it cannot be merged into Cog for some reason,
as I can continue to just apply the patch of course,
but I'm submitting the patch with the hope that it can be integrated !

Thanks,
David Stes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJfIvoPAAoJEAwpOKXMq1Ma8KMIAIVrViG/cNkzqHRp7B0HVCvI
BROJsxFyT5tvfMpB1wI3kj+QmMZ7aK7vnEg2q8kZ5f2rMFV7Zm+xk3gfO1qER1NK
HZV40QBNAld/QDekwK0KJ37hNPN7DBvfp9B4VVdlmX9B6YNbQjOL3TyS1T6jaXbe
XwaiktsQ0OGpWuxrYmjxLOHOkyfoFqJn/CmU6mbU9/wdw4Dh5qX2UKBmoaKXs8KU
FSyx5OS2b5PrXbXqsz0vrkBfevY92kiPY8p5BaGhh+qRvC2fyf/9qmvmHeTFw7aA
TcnKStO+7Cgn9hcE/pNhxrIGuJYLZbOShZkHoUfCsn6d34RPs89dCVgHxD4JqJw=
=+OzJ
-----END PGP SIGNATURE-----


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

<script type="application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496#issuecomment-666519878", "url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/496#issuecomment-666519878", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script>