Porting 32-bit Applications on 64-bit Solaris 9

Hi All,
I tried to port an existing and well set 32-bit application onto Solaris 9.While I was compling the C-code part of it,I encountered the error
wrong ELF class: ELFCLASS64.
which I realized was due to intermixing of 32 and 64-bit applications.
I just wanted to know if any oracle 10g libraries called or linked with the application happen to be of 32-bit ELFCLASS as it's only while linking with them that the error is thrown.
cc -L/u01/app/oracle/product/10.1.0.3/lib/ -L/u01/app/oracle/product/10.1.0.3/rdbms/lib -o cps_lib_test cps_lib_test.o -lclntsh `cat /u01/app/oracle/product/10.1.0.3/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat /u01/app/oracle/product/10.1.0.3/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lclient10 -lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lmm -lcore10 -lxml10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 `cat /u01/app/oracle/product/10.1.0.3/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat /u01/app/oracle/product/10.1.0.3/lib/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lclient10 -lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lcore10 -lxml10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 -lclient10 -lnnetd10 -lvsn10 -lcommon10 -lgeneric10 -lcore10 -lxml10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 `cat /u01/app/oracle/product/10.1.0.3/lib/sysliblist` -R/u01/app/oracle/product/10.1.0.3/lib -laio -lposix4 -lkstat -lm -lthread cps_lib.so
ld: fatal: file cps_lib_test.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to cps_lib_test
*** Error code 1
make: Fatal error: Command failed for target `build'
Can someone please help?

Check your client installation of oracle whether it is 64bit.
One of your libraries you are linking is 32 bit instead of 64 bit

Similar Messages

  • How can I use syscall() from 32-bit application in 64-bit Solaris (v. 5.8)

    Solaris 5.8
    Sun Blade 150 (64-bit)
    I have got SYGSYS when call syscall(...) from my 32-bit application.
    Is it possible to use syscall() in 32-bit applications under 64-bit Solaris?

    Hello again.
    You may use the debugger (mdb) to open the core file generated by the SIGSYS trap:mdb coreThen you type::regs to list the register values at the time of the trap (in hexadecimal form).
    For Sparc machines (it is more complicated on x86 machines) g1 holds the system call number, o0 holds the first argument, o1 the second one ... o5 the 6th one. (For system calls with more than 6 arguments the 7th, 8th... argument are stored on the stack.)
    If g1 is 0 you know that the system call is done indirectly using SYS_syscall so the arguments are shifted (see above) and o0 holds the system call number.
    You can exit mdb using::quitMartin

  • VXIMove returns error 0x8000 only in 64-bit Solaris 8

    We are looking to migrate our Solaris CPU to a faster Blade 150 (or better) PCI-based workstation. The downside is that these latest workstations all contain 64-bit  processors so we are forced to run a 64-bit Solaris kernel. According to the NI-VXI documentation, the driver works on 32-bit and 64-bit kernels so I was not too concerned. Unfortunately our applications are not working properly when using the VXImove API call to move a chunk of data from VXI to a local memory address. The error is always 0x8000.
    We eliminated Solaris 8 as the problem by duplicating the setup on an Ultra 10 workstation which is also PCI-based but runs 32-bit Solaris 8. The same drivers were used in both cases. The VXImove works properly when running in Solaris 8 32-bit.
    I have attached my resman output  files for reference. Thanks in advance.
    Attachments:
    resman.err.txt ‏1 KB
    resman.out.txt ‏6 KB
    resman.tbl.txt ‏1 KB

    Hello All,
    I would like to clarify one of the statements made earlier in this forum.  NI VXI is not supported as a 64-bit application, under any circumstances.  One can user NI VXI on a 64-bit system, but they must run it as a 32-bit application in order for it to function correctly, and therefore lose the 64-bit processing capability. 
    It is true that NI-VISA is simply an added layer between the driver and your application.  As KnowledgeBase 2QDASEPG: Supported NI-VISA Operating Systems and Features points out, NI-VISA only supports VXI functionality on 32-bit operating systems.  This is because the NI VXI driver itself is only supported as a 32-bit application.
    Chris_G
    Sr Test Engineer
    Medtronic, Inc.

  • Where is the 64-bit download for AS oracle_proxy.so for 64-bit Solaris ?

    Hi, Experts,
    This is a cross-posting of
    Where is the 64-bit download for oracle_proxy.so for 64-bit Solaris ?
    (Forum Home » Application Server » Oracle Application Server - General )
    in the download forum.
    Where can I get a 64-bit version of this above file, oracle_proxy.so in downloads ?
    Walter

    Here's a download location:
    http://support.apple.com/kb/DL1577

  • Hyperion Planning on 64 bit Solaris. ODI on 32 bit Windows.

    Hi,
    I have Hyperion planning on 64 bit Solaris and ODI installed on 32 bit windows server. Could not reverse a planning app in ODI.
    The error message says - Could not connect to Planning instance.
    I have checked the RMI service at port 11333 on solaris and its running. I can telnet to this port from the windows server successfully.
    Has any one come across such an issue before or knows of any issues regarding this?
    Any help will be greatly appreciated.
    Thanks.

    I had a problem with ODI being on linux and planning on windows.
    I could telnet the ping / telnet across between boxes. When reversing it could connect to planning but could not return, it turned out to be an issue with loopback on linux that had an extra ip of 10.0.0.0
    I removed the loopback from the host and it started reversing without a problem.
    If you telnet then maybe it is some sort of routing host file issue.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Display Postscript Toolkit (dpstk library) for 64 bit Solaris

    Does anyone know whether the
    DPS Toolkit (dpstk library) is available for 64 bit Solaris operating systems?

    Thanks for getting me to the troublemaker ArielK. 
    I can confirm disabling APSDaemon.exe, aka, new Apple Push for WiFi Sync and renaming (or deleting if you are more risk oriented) APSDaemon.exe and APSDaemon_main.dll in this folder "C:\Program Files (x86)\Common Files\Apple\Apple Application Support" resolved my issue. 
    Alternatively, another slightly more annoying but less techy workaround for those nervous about changing filenames is to start iTunes in Safe Mode every time.  You must do it via Programs > iTunes > hold down Ctrl-Shift then click iTunes (does not work if you do it by clicking a short cut in programs list or taskbar, whatever...).  Maybe this disables WiFi Sync by default, dunno.  Don't care at this point, but it seemed to work.
    I can live without WiFi Sync for now, but its a nice feature I would really like to use in the future.
    Apple please fix!!!
    Running: Windows 7 Home Premium x64, iTunes 10.5.2.11.

  • Where is the 64-bit download for oracle_proxy.so for 64-bit Solaris ?

    Hi, Experts,
    We tried to start the 64-bit Sun ONE web server in 64-bit Solaris env. with the Oracle AS plugin,
    oracle_proxy.so library. But then hit below error,
    [06/Jul/2011:15:44:13] failure (12345): CORE2253: Error running Init
    function load-modules: dlopen of /xyz/proxy/oracle_proxy.so failed (ld.so.1:
    webservd: fatal: /xyz/proxy/oracle_proxy.so:
    wrong ELF class: ELFCLASS32)
    We tried to search from
    http://www.oracle.com/technetwork/middleware/ias/downloads/index.html
    Oracle 10gR3 Companion (10.1.3.x) CD
    And downloaded AS101330_companionCD_sparc64_disk1.cpio however the file
    is still 32 BIT file :
    xxxyyy$ file oracle_proxy.so
    oracle_proxy.so: ELF 32-bit MSB dynamic lib SPARC Version 1,
    dynamically linked, not stripped
    Where can I get a 64-bit version of this above file, oracle_proxy.so ?
    Walter

    Here's a download location:
    http://support.apple.com/kb/DL1577

  • 64 BIT SOLARIS ON INTEL

    When is the 64 BIT SOLARIS ON INTEL IS EXPECTED to be released
    Does Solaris on INtel Support clustering.If yes how how many
    machines in a cluster
    Thanks
    Noby([email protected])

    When is the 64 BIT SOLARIS ON INTEL IS EXPECTED to be released
    Does Solaris on INtel Support clustering.If yes how how many
    machines in a cluster
    Thanks
    Noby([email protected])

  • Change default communication port for BITS

    We are currently using ConfigMgr2007 (native mode).  We currently have a global GPO wihich is throttling BITS to 56kpbs during current business hours (8am-5pm).  It has been suggest to use QoS to controll the amount of traffic used by SCCM distributions
    to clients.  Seeing the BITS uses HTTP (80) and HTTPS (443) by default, is there a way to change the default ports used by BITS.
    I did find the following article (About Configuration Manager Client Installation Properties)
    that there are two setting which can change the default ports. 
    CCMHTTPPORT=
    CCMHTTPSPORT=
    Is there any other methods to change the Default port for BITS communication as a whole.

    Thanks Kent and Jason.  I know I posted in the ConfigMgr forum and you pointed my to the proper documentation.  We have non-Microsoft email archiving product which utilizes BITS which is the reason for the general question regarding BITS. 
    I did not see a dedicated forum for BITS so I posted here. 
    The documentation as suggested by Kent will assist with making changes for ConfigMgr if necessary.

  • Porting open source application to SAP WAS

    Hi,
      I'm porting jZForum ( http://www.jzforum.org ) to integrate it with SAP WAS and SAP Dictionary instead of internally used
    HypersonicSQL database. I mainly changed obtaining connection to the database directly through JDBC:
    jdbc:hsqldb:hsql://localhost:1476
    into connection obtained through JNDI with Spring Framework (more precisely through org.springframework.jndi.JndiObjectFactoryBean class) :
    jdbc/MY_DATABASE
    with connection pooling parameters:
    initial connections: 1
    maximum connections: 50
    maximum time to wait for connection: 120
    expiration: yes
    connection lifetime: 600
    cleanup thread: 300
    Unfortunately ported jzForum seems to "hang on". I see in Log Viewer (Visual Administrator) log that it is quering database with a lot of SELECTs,
    I assume that it is indexer which on startup is indexing all objects from the forum to speed up searching this objects in the future.
    After about 2-3 minutes hanging on, application shows generated page, but every subsequent request to
    the server cause hanging on in the same way.
    I assume that it might be the case that application is obtaining through JNDI connection to the database, but is
    not releasing it. I have examined entire jzForum code, and closed all unnecesary Connection in final Java statements,
    but it unfortunately didn't help.
    Original jzForum (not ported to SAP Dictionary) works on SAP WAS just perfectly.
    Have someone else experience with porting open source application from some database (eg. HSQL) to SAP Dictionary ?
    Maybe it is a problem with Spring Framework implementation ? Maybe it is a problem with wrongly configured connection pool ?
    I have no idea at the moment. Every help will be appreciated.
    Kind regards,
      Marcin Zduniak

    Hi Marcin,
    from what you are describing, the port to JNDI obtained connections and your "research" in visual admin uncovered some issues with the original code ( not closing open connection ).
    My attempt to explain your difficulties:
    1. Working with hsqldb in direct mode, where hsqldb connection are obtained by driver.getConnection(), works well, becuse GC "reclaims" unused but not closed
    connections. Things seems to work out this way.
    2. Getting connections through JNDI involves a datasource with its associated db pool. Not closed connections are then "trapped" in the pool as long as is specified by the "connection lifetime" DS parameter. Things get worse by the time, becuse the application leaks constantly connections.
    Remedy for the problems described in 2:
    - middle term: fix the application: here spring might be useful, consider using its JDBC support classes!
    - short term: set the connection lifetime to a small value to let pool reclaim the unclosed connections
    Hope it helps a bit,
    Gregor

  • Open same UDP port from multiple applications

    I need to write to a local UDP port from one application, and read from that same UDP port from another application. (We're doing two-way communication, but use one port to send from A to B, and another port to send from B to A.) One of the applications is written in C++, and the C++ UDP open includes ReuseAddress in the socket options; there seems to be no way to specify this functionality from LV. Note that these applications are deployed to a Vista (64-bit) system with the LV Runtime (not the LV development environment).
    This used to work when we were using LV 8.5 (as long as we ran the LV application before running the C++ application), but when we updated to LV
    8.6.1 it no longer works -- the second application to be run cannot open the UDP port.
    Sometimes the applications are run on different machines, and then everything works fine. But sometimes we need to run both applications on the same machine, and then we encounter this problem. So whatever solution we come up with, we need to be able to make it work in both configurations (same machine, or different machines).

    I discovered that I can open any port (e.g., 0, and let it allocate a port for me), and then write to the port I want to write to with no problems, bypassing the problem.

  • Deploying forms application on Oracle Application Server 10g on Solaris

    Hi Guys,
    We have to deploy our forms application on Application Server 10g on Solaris platform.
    I understand we have to specify the hosting directory in the formsweb.cfg file from where forms will be picked up.
    Now the query is -
    We have a directory structure, we want to keep the directory structure intact as every directory contains forms and reports executables belonging to that module.
    So can I mention the parent directory structure as launching directory and still the forms will be picked and hosted as web forms when user tries to access the form via a link, the forms executables being in inidividual directories inside the parent directory?
    - Hosting Directory (formsweb.cfg entry)
      - Sub Directory1
          - Form1
          - Form2 
      - Sub Directory2
          - Form3
          - Form4
      - Sub Directory3
          - Form5
          - Form6I hope I am able to put my query across in accurate way.
    Thanks!
    Av.

    Hi FormsEleven,
    When you say you can do this or you have done for demo then considering following directory structure if I have two forms having common form names how it will be resolved?
    Or how the url to access these forms will be?
    As shown in the following structure consider we have Form1 in sub directory1 as well as in sub-directory2 then how the link to access these forms will be?
    - Hosting Directory (formsweb.cfg entry)
      - Sub Directory1
          - Form1
          - Form2 
      - Sub Directory2
          - Form1
          - Form4
      - Sub Directory3
          - Form5
          - Form6

  • Application dumps core on solaris with BDB 4.6.21

    Hi,
    my application dumps core on solaris during the appication startup:
    The solaris box detail is :
    SunOS wcturgo3 5.10 Generic_137111-08 sun4v sparc SUNW,Netra-T5220.
    I compiled the BDB with the following configuration:
    ./buildall.sh -p solaris -c cc -x CC -m gmake
    the core file loks like :
    fdc28c68 __db_pthread_mutex_init (50878, 0, 13, 0, ffbfca18, 0) + 88
    fdca3bec __mutex_open (50878, 271638, 2058000, fdd47d1c, 271490, 0) + 224
    fdce56ec __env_open (50878, 0, 880081, 8a0081, 0, 0) + 3bc
    fdc206f4 int DbEnv::open(const char*,unsigned,int) (502f0, 0, 880081, 0, 502f0, fdce50c4) + 5c
    fcb12824 void DbXml::Manager::initTempDbEnv(DbEnv*) (502d8, 503e0, 0, 15540, fe03c9f8, aa878) + 144
    fcb11ea0 DbXml::Manager::Manager #Nvariant 1(unsigned) (502d8, 0, fe2ae760, 15540, fe03c9f8, 502d8) + 430
    fcb059ec DbXml::XmlManager::XmlManager #Nvariant 1() (fe3697ec, fcdef0c0, fcdee994, 40, 13080, 0) + 24
    fe234d68 NemiConfigToolInit::NemiConfigToolInit #Nvariant 1() (fe3697d4, 0, 0, 0, 0, fe36957c) + 60
    fe2ae760 ???????? (0, 0, 0, 0, 0, 0)
    fe2aeb04 ???????? (0, fc665440, aca5c, fe0272cc, fc665400, fe369544)
    fe2f77d0 _init    (ff3f40fc, ff3f5a70, 2b3f4, 0, ff3f4910, 821) + f8
    ff3c5280 call_init (60c10081, 1, ff2f0788, fe2f76d8, ff3f4910, ffdfffff) + 16c
    ff3c47e8 setup (200000, 2801, 602, ff3f40fc, 60c10001, 446) + 1568
    ff3d35cc _setup   (10034, ffffffff, 0, ff3b0000, ffffffff, ffffffff) + 40c
    ff3b8480 rtboot (0, 0, 0, 0, 0, 0) + 88
    00000000 ???????? (0, 0, 0, 0, 0, 0)
    i tried using dbxml build with this BDB. i was able to execute one or two commands without the dbxml dumping core.
    But my application dumps core during startup as sigbus (memory alignment issue).
    I googled and found that people have faced problems of sigbus on solaris. when i checked with solaris, it seems that if the solaris box has 137111-0 to 137111-08 will face core dumps due to memory alignment issue which they say is because the application has misaligned mutex.
    please suggest what should i do .
    a)apply the sloaris kernel patch to temporary solution(as they claim the patch for thsi problem will give temporary solution .)
    b) i have to compile the BDB with different options.

    Hello,
    You need to apply the patch below on top of Berkeley
    DB 4.6.21:
    *** dbinc/mutex_int.h     Tue Jul 01 15:03:43 2008 +1000
    --- dbinc/mutex_int.h     Tue Jul 01 16:11:06 2008 +1000
    *** 616,621 ****
    --- 616,623 ----
    #ifdef HAVE_MUTEX_SPARC_GCC_ASSEMBLY
    typedef unsigned char tsl_t;
    +
    + #define     MUTEX_ALIGN     8
    #ifdef LOAD_ACTUAL_MUTEX_CODE
    This corrects a Solaris-only alignment problem.
    Thanks,
    Sandra

  • How to port custom forms application from oracle apps to standard Forms

    Hi All
    I have developed a small custom forms application inside Oracle EBS.
    I have used the TEMPLATE.fmb for all of my custom forms and followed all the standard metalink docs for building a custom forms application inside Oracle EBS 11i.
    Now i kindly want to ask if there is any possibility on hos to port this custom application in a standard forms and reports services with oracle database, not using the Oracle EBS technology stack.
    Is there any doc or step by step procedures?
    thank you very much in advance
    Soni

    Now i kindly want to ask if there is any possibility on hos to port this custom application in a standard forms and reports services with oracle database, not using the Oracle EBS technology stack.If you want to register this custom form and integrate it with EBS then you need to do it from EBS.
    Is there any doc or step by step procedures?https://forums.oracle.com/forums/search.jspa?threadID=&q=custom+AND+form+AND+register&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=custom+AND+application+AND+register&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Application runs slower on Solaris

    We have developed an Application in Java (Servlets, JSP & Core Java classes including thread).
    My Application runs fast on Windows, but its terribly slow on Solaris. When the application is run on Solaris the CPU usage is very less around 3 to 5 % only and there is no major io bound operation also. Please comment on this behaviour when am running the application on Solaris.
    For eg: A while loop in my program took around 16 msecs to execute in Windows machine, but the same while loop is taking 250 msecs to run in solaris.
    Note: The solaris machine is very powerful than the desktop windows machine.
    Thanks & Regards,
    Salin

    Which version of Solaris are you running and what threading library is currently in use? Did you use some profiling application to arrive at the benchmark results you obtained or some other means were used? Does the code within the while loop call any classes making use of Java threads and synchronization mechanisms?

  • How can we change default port 8080 of application express

    Hi all,
    Does anyone know how to change default port 8080 in application express to run on only "80"? I have tried the following link, but when i am trying to run using 80, error is being thrown.
    http://www.mypi.ch/?p=33
    I have checked that no other thing is running on 80 port. I am using Windows Vista
    With Regards,
    Sunil Bhatia

    I am really a newbie in this application express field.
    I have installed oracle application express 3.2 over oracle 10G Database as per steps provided on forum. Can you let me know how can i find which webserver i am using? is there any query which i could run to find this out...thanks for ur help. Do reply soon
    With Regards,
    Sunil Bhatia

Maybe you are looking for