3 Replies Latest reply on Feb 4, 2013 4:13 PM by bobthesungeek76036

    can we use make 32 command for making 64 bit .so file....

      Here is problem description:

      32 bit
      Compiling C code and building .so file and executable .o file using Makefile

      command: /usr/ccs/bin/make Makefile all
      It is working fine and making 32 bit .so and .o file,

      command: file libtest-plugin.so
      libtest-plugin.so: ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked, not stripped

      64 bit
      Now I am building with Makefile64
      command: /usr/ccs/bin/make Makefile64 all

      It is not working. Somewhere it showing errors like
      ld: fatal: file /usr/ucblib/libucb.so: wrong ELF class: ELFCLASS32

      Make command description:
      clmsat721:/usr/ccs/bin $ file make
      make: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped

      Both Makefile and Makefile64 are standard file of Sun One Directory Server plug-ins.
      It was installed with DS, i don't think any errors from MakeFiles.

      My Question/understanding:
      1)     can we use 32 bit make command for making 64-bit lib?
      2) What should i do for making complete 64 bit so file