-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS.FileSys.fullPath gives EINVAL
exception on Solaris 10
#171
Comments
Hmmm, I found the root causes. There's a call of
On Solaris 10, the man page (3C) of
Because the 2nd parameter is NULL,
Could you please make some changes to support Solaris 10. For example, instead of using the return value of Regards, Chun Tian |
According to Linux man pages [1], glibc versions before 2.3 behaves the same as Solaris 10:
Thus my above suggested changes may also make PolyML work better on old Linux systems. |
The following patch works for me (
[1] https://www.cplusplus.com/reference/cstdio/FILENAME_MAX/ |
I've added some code to handle this along with a regression test. They are currently in the |
Thank you for your time! I just built PolyML in this branch and make a quick test: it works well on Solaris 10:
P. S. the latest Solaris 10 installation disc can be download at https://www.oracle.com/solaris/solaris10/downloads/solaris10-get-jsp-downloads.html but to build PolyML you need to install GCC 5.5.0 from https://www.opencsw.org and put If you are still interested in having a Solaris x86 VM, please tell me your hypervisor software (VMware, VirtualBox, etc.) and I can prepare an out-of-box Solaris VM for you! --Chun |
Hi,
On Solaris 10 (x86), the function
OS.FileSys.fullPath
strangely givesEINVAL
exception on any path string, e.g.:This issue only happens on Solaris 10. (It works fine on Solaris 11.) PolyML 5.8.1 built on Solaris 10 also has the same issue:
Regards,
Chun Tian
The text was updated successfully, but these errors were encountered: