xadisk
  1. xadisk
  2. XADISK-129

Add support to filesystem synchronization for Solaris OS on Sparc Architecture

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: filesystem
    • Labels:
      None

      Description

      I've successfully compiled native code (forceDirectory method, find library attached) on SunOS 64 running on a SPARC architecture. I've also tested it with TestXADiskNative.java and it seems to work.
      Please add this library in the next XADisk version.
      Thank you

      1. solaris_32_xadisk.native
        6 kB
        Nitin Verma
      2. solaris_64_sparc.native
        7 kB
        Nitin Verma
      3. solaris_64_xadisk.native
        8 kB
        Nitin Verma

        Activity

        Hide
        Nitin Verma added a comment - - edited
        Show
        Nitin Verma added a comment - - edited Thanks to Marco for sending the compiled code at: http://groups.google.com/group/xadisk/browse_thread/thread/97364e2a821a93a7?hl=en
        Hide
        Nitin Verma added a comment -

        Just FYI. If developers using xadisk face any native library issues, they can do the following without any need to modify and re-build the xadisk java code:

        -modify the native code if necessary (available in svn/trunk/native/*.c).

        -compile the code according to the target platform and prepare the dynamic library.

        -rename the dynamic library as "placeholder_xadisk.native" and place it inside the xadisk.jar as xadisk.jar/native/placeholder_xadisk.native.

        Show
        Nitin Verma added a comment - Just FYI. If developers using xadisk face any native library issues, they can do the following without any need to modify and re-build the xadisk java code: -modify the native code if necessary (available in svn/trunk/native/*.c). -compile the code according to the target platform and prepare the dynamic library. -rename the dynamic library as "placeholder_xadisk.native" and place it inside the xadisk.jar as xadisk.jar/native/placeholder_xadisk.native.
        Hide
        Nitin Verma added a comment -

        I am attaching the three files sent by Marco over the google group.

        Hi Marco,

        Can you please add a brief comment below about the three files - for which platform/architecture are they (I could not figure out the two files named with 64):

        solaris_64_sparc.native
        solaris_32_xadisk.native
        solaris_64_xadisk.native

        I hope these libs would be useful for users; though I am not putting them with xadisk as of now, but they can easily replace them as "placeholder_xadisk.native" inside the xadisk.jar.

        Thanks,
        Nitin

        Show
        Nitin Verma added a comment - I am attaching the three files sent by Marco over the google group. Hi Marco, Can you please add a brief comment below about the three files - for which platform/architecture are they (I could not figure out the two files named with 64): solaris_64_sparc.native solaris_32_xadisk.native solaris_64_xadisk.native I hope these libs would be useful for users; though I am not putting them with xadisk as of now, but they can easily replace them as "placeholder_xadisk.native" inside the xadisk.jar. Thanks, Nitin
        Hide
        Marco Quaranta added a comment -

        Hi Nitin,
        a little comment about these three files:

        solaris_64_sparc.native - This is the first attempt I made and, as opposed the name said, it is for 32bit (it was an almost failed attempt). It's compiled without -fPIC options. Please, use solaris_32_xadisk.native in place of this.

        solaris_32_xadisk.native - This is the compiled version for 32bit jvm compiled with the following command:
        /usr/sfw/bin/gcc -shared -fPIC -I/usr/jdk/instances/jdk1.7.0_09/include -I/usr/jdk/instances/jdk1.7.0_09/include/solaris -o ./nativelib.so ./XADiskUnix.c

        solaris_64_xadisk.native - This is the compiled version for 64bit jvm compiled with the following command:
        /usr/sfw/bin/gcc -shared -fPIC -m64 -I/usr/jdk/instances/jdk1.7.0_09/include -I/usr/jdk/instances/jdk1.7.0_09/include/solaris -L/usr/sfw/lib/64 -R/usr/sfw/lib/64 -o ./nativelib.so ./XADiskUnix.c

        I already know about "placeholder_xadisk.native" and it's the way I have used those files in my applications.

        Thank you,
        Marco

        Show
        Marco Quaranta added a comment - Hi Nitin, a little comment about these three files: solaris_64_sparc.native - This is the first attempt I made and, as opposed the name said, it is for 32bit (it was an almost failed attempt). It's compiled without -fPIC options. Please, use solaris_32_xadisk.native in place of this. solaris_32_xadisk.native - This is the compiled version for 32bit jvm compiled with the following command: /usr/sfw/bin/gcc -shared -fPIC -I/usr/jdk/instances/jdk1.7.0_09/include -I/usr/jdk/instances/jdk1.7.0_09/include/solaris -o ./nativelib.so ./XADiskUnix.c solaris_64_xadisk.native - This is the compiled version for 64bit jvm compiled with the following command: /usr/sfw/bin/gcc -shared -fPIC -m64 -I/usr/jdk/instances/jdk1.7.0_09/include -I/usr/jdk/instances/jdk1.7.0_09/include/solaris -L/usr/sfw/lib/64 -R/usr/sfw/lib/64 -o ./nativelib.so ./XADiskUnix.c I already know about "placeholder_xadisk.native" and it's the way I have used those files in my applications. Thank you, Marco

          People

          • Assignee:
            Nitin Verma
            Reporter:
            Marco Quaranta
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: