Need to compile C code for Solaris 5.4 target

Hi,
I'm current on a project where the target platform is Solaris 5.4. I believe the SunOS version is 2.4. Unfortunately, there is no way I can get the customer to upgrade their server or OS.
In my search so far I've been unsuccessful in finding a compiler for that platform. The oldest gcc I can find is for SunOS 2.5.
What other options do I have?
Will code compiled with the C compiler in the Sun Studio 12 be able to run on SunOS 2.4? If so, is there a command line option I need to set while compiling the code?

No available Sun compiler can be used on, or to generate code for, SunOS 5.4 (Solaris 2.4). Even Sun Workshop 5.0, released in 1998, did not support Solaris 2.4.
If you develop code to be run on Solaris 2.4, you need to compile on Solaris 2.4 (or earlier). Binaries created on a later version of Solaris will not in general run on an earlier version of Solaris. I think that Sun WorkShop 3.0 was the last version that supported Solaris 2.4, but it might have been WorkShop 2.0. Those antiques are not available from Sun.
If I were in this situation, I would tell the customer that the OS and all support software are many years past End Of Service Life. No support is available, the software is no longer available, and I can't help them unless they are willing to upgrade to supported software. (I might also ask the customer if they still use Windows 3.1 on their PCs. The situation is comparable.)
If you don't have that option, your next best hope is that the customer has a C compiler on their system. If so, find a way to use it. If it's a Sun compiler, you will have a problem acquiring a license to run it. You will probably have to run it on their system.
If the customer doesn't have a compiler, I guess you have to keep trolling in newsgroups and forums, looking for a compiler that supports Solaris 2.4. Good luck.

Similar Messages

  • I need to compile a code in dev c++ how can I do it on my mac?

    I need to compile a code in dev c++ how can I do it on my mac?

    XCode http://developer.apple.com/technologies/mac/
    Stefan

  • Hard drive died.  Need to reinstall on new laptop with windows 7 64 bit system,  Need to get activation code for CS3 Web Premium.

    Hard drive died.  Cannot uninstall CS3 to remove copy registration. Need to reinstall on new laptop with windows 7 64 bit system,  Need to get activation code for CS3 Web Premium.

    Thank you Bob.
    Just to clarify - in terms of backing up one set of these, would that just be so I had it on disk and didn't need to re-download from Adobe if the installation got corrupted somehow?  Or do I need a backup for some other reason?
    Thanks

  • Do we need to compile the code migrating from JDK 1.4.2.11. to 1.4.2.15

    Hi
    Currently our application is running in JDK 1.4.2.11 and because of the SSL vulnerability issues we are planning to upgrade the JDK to 1.4.2.15 version.
    Just wanted to know do we need to complie the code for this change.

    In general, no. However, if your code depends on code that was changed as part of a bugfix, you may have to make source changes, and then recompile.
    Test and see. And review the release documents for the versions involved.

  • What are the compiler generated codes for objective-c?

    After the compilation, the code for c/c++ is known as "object code" i.e. ".obj" file, and the binary executable file is ".exe" .
    Similarly for java the compiled code is known as ".class" file.
    In case of Objective-c what is the output of Compiler and what is the Executable file?

    Strictly speaking, .obj and .exe refer only to the output of the compiler and linker for a Windows system (or cross compiler).  For *nix compliant systems the output of the compiler is usually given a .o suffix and the executable produced after linking is named whatever you choose; but usually with no suffix at all.
    Also, technically speaking, Java .class fiels don't fit neatly into this paradigm.  The output of a Java compiler isn't object code, per se; it's optimized byte-code that can be run by the JRE.

  • Need platform independent java code for TNS PING

    Hi, I am able to ping server /ip address. but unable to ping some TNS entry.
    There is one way to ping TNS entry using System command, but that will make my code platform dependent. i want platform independent code.. need code help for TNS Ping to database server.. here are my code:
    ---Code for server / Ip address ping:---------
    package DBM;
    import java.io.IOException;
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    import java.util.ArrayList;
    import oracle.net.TNSAddress.*;
    public class PingServer
    public static void main(String[] args)
    System.out.println(" Server Pinging Starts...");
    ArrayList<String> list=new ArrayList<String>();
    list.add("g5u0660c.atlanta.hp.com");
    list.add("g1u1675c.austin.hp.com");
    list.add("gvu1785.atlanta.hp.com");
    list.add("10.130.14.109");
    list.add("10.130.0.173");
    list.add("DESCRIPTION = (SDU = 32768) (enable = broken) (LOAD_BALANCE = yes) (ADDRESS = (PROTOCOL = TCP)(HOST = gvu1515.atlanta.hp.com)(PORT = 1525))(ADDRESS = (PROTOCOL = TCP)(HOST = gvu1785.atlanta.hp.com)(PORT = 1525)");
    list.add("IDSENGI");
    //This Ipadd variable is used to convert the arraylist into String
    String ipadd="";
    try
         for(String s: list)
              ipadd=s;
              // InetAddress is class.in this class getByName()is used to take only string parameter.
              InetAddress inet = InetAddress.getByName(ipadd);
              //InetAddress inet1 =InetAddress.getAllByName("IDESENGP");
              System.out.println("Sending Ping Request to " + ipadd);
              //in InetAddress call IsReachabe(3000)method is used to ping the server IP and if ping is successfully then return true otherwise false.
              //IsReachable()take time in millisecond and return type is boolean.
              System.out.println("Host is reachable: "+inet.isReachable(3000));
         System.out.println("Server Pinging program is working fine........");
    catch (UnknownHostException e)
         System.err.println("Host does not exists");
    catch (IOException e)
         System.err.println("Error in reaching the Host");
    ----Code for TNS ping using system host----
    package DBM;
    import java.io.*;
    public class doscmd
    public static void main(String args[])
    try
    Process p=Runtime.getRuntime().exec("cmd /c tnsping IDSENGP");
    p.waitFor();
    BufferedReader reader=new BufferedReader(new InputStreamReader(p.getInputStream()));
    String line=reader.readLine();
    while(line!=null)
    System.out.println(line);
    line=reader.readLine();
    catch(IOException e1) {}
    catch(InterruptedException e2) {}
    System.out.println("Done");
    The above two codes are working absolutely fine... but need TNS ping program is platform dependent..we need to deploy it in both windows, unix...
    Please help.

    You don't need to install another JDK, just use the api from 1.2 and you should be fine. You can even use the 1.4 jdk to compile as if it were 1.2 by using the -target option in javac.

  • Need help with LabVIEW code for motor control.

    Hi,
    My name is Sasi. I am a BME grad student working on my thesis topic of evaluating spine implants for low back pain. For this I am building a test machine that would apply pure moments to a spine specimen. I am using LabVIEW 8.5 to implement control of a brushless AC servo motor. My requirement is,
    Step 1: Initialize the motor.
    Step 2: Start moving it at a uniform RPM to the right (This RPM value too user can enter).
    Step
    3: While doin Step 2; simultaneously read torque cell data (Using DAQ
    asst.). DAQ o/p is from 0 V to 10 V; 0 V being -10 Nm n
                10 V being  +10 Nm
    Step 4: When Torque value reaches +10 Nm, i.e 10 V, the motor stops.
    Step
    5: From the position where motor stopped (i.e no need to reset to
    initial position) Start moving in the opposite direction at the same
                uniform RPM as in Step 2 while reading torque cell data.
    Step 6: Once again when torque reaches -10 Nm, i.e. 0 V, the motor should stop.
    Step 7: Repeat 'Step 2' to 'Step 6' 3 times.
    Step 8: Reset motor postion.
    Till now I have managed to get the motor to move forward n backward @ a desired vel, accl, n deceleration for 3 cycles. I am attaching my code. I am having problem inserting the code for reading DAQmx amidst all this. Can anyone help me out.
    Thnks,
    Sasi.
    Solved!
    Go to Solution.
    Attachments:
    Test_012609.vi ‏35 KB

    Hi Sasidhar,
    I took a look at your problem and I think I have a workable solution for you.  I definitely agree with Lynn's suggestion of using parallel loops.  This will allow the DAQmx portion to run uninhibited by the motion portion, and vice versa.  Plus, you only need to iterate the motion loop whenever the voltage level crosses a threshold.  So, by iterating on the motion code in the same loop that you are iterating on DAQmx code, you are essentially wasting processor.
    I created a VI that should do what you are wanting.  I tested it out myself and it works great.  You might have a tweak a few things to apply to your system (like motion board ID and DAQmx physical channel, etc.).  I used two parallel loops and event-based programming.  Basically the motion loop starts the motor spinning at the specified velocity.  Once the motor is spinning, it waits for the DAQmx loop to tell it that the voltage value has crossed the threshold.  When the voltage value exceeds the maximum threshold (which I set to a value slightly less than 10 to allow for jitter and saturation), the DAQmx loop signals the motion loop that it can finish its iteration.  The motion loop stops the motion, reverses the direction, and starts the motion again.  Once motion has started, it again waits for the DAQmx loop to tell it that a threshold has occurred, but this time, it is looking for a minimum threshold.  I used "Occurrences" to implement the event-based programming in LabVIEW.
    I have commented the code rather thouroughly, so hopefully the comments will answer any remaining questions.  The benefit of using event-based programming for this is that you save processor time, and your motion is more closely synchonized with the DAQmx.  Instead of iterating the motion loop as fast as you can, checking for updates each time, you just pause it, and wait for the other loop to tell you when to start up again.  In the mean time, the processor doesn't have to worry about iterating that loop over and over again.  Also, when the occurrence does occur, you catch it immediately, instead of having to wait until the next iteration.  Thus, you are more closely synchronized with the DAQmx portion of the code.
    I hope this will help you.  Please post back if you have any questions about the code or its implementation.  Good Luck!
    Message Edited by Wes P on 02-03-2009 05:18 PM
    Wes P
    Certified LabVIEW Developer
    Attachments:
    Motion and DAQ.vi ‏59 KB
    DAQmx Loop.png ‏24 KB
    Motion Loop.png ‏17 KB

  • Need help with Labview code for DAQmx

    I'm currently trying to write Labview code for some thesis research and am having problems.  I'm using the cDAQ 9172 with strain gage modules and two voltage input modules.  I'll be reading/recording a voltage from an external source on one channel, while recording strains and accelerations with the other channels.  I need to do all this simultaneously.
    Everything I've done to this point has been in SignalExpress so I'm not sure how to program any of this.  I also need to be able to calibrate the strain gages prior to each set of recordings.  Any help you guys could offer would be greatly appreciated.  Thanks.

    Hi,
    I'm not sure how much this will help you, but I've attached a screen dump of code from a project I did that sounds pretty similar to what you're working on. The code is from a subVI that I used to create the daqMX measurement task for my data acquisition. I was also using a 9172. This was written in 8.5, but the only thing that you may not have access to is the functions for null offset and shunt cal of the strain gage channels. Hopefully this will at least get you started on your way to setting this up.
    Andrew Carollo
    Attachments:
    create task.jpg ‏208 KB

  • Need a succussion about Antivirus for Solaris

    In my office we have SUN SPARC MACHINE with SOLARIS 7 which is connected by other machine (all the other machine OS are in Windows). I am affraid of virus. Can anyone give good idea or good antivirus which take care of all virus.
    Thanks in advance.
    Dwarak

    Hello,
    I don�t exactly understand what you ask for. Are you looking for an antivirus to protect your Solaris box? If this is your problem, don�t be afraid of it, because windows viruses won�t afect Solaris. There�s no virus problem with Solaris.
    Other thing is virus transmision. For example, IIf you get an infected email on Solaris and send it to a user with Windows, it will receive the virus. In this line, and considering that Solaris machines are usually email servers, gateways, etc... some companies have developed Antivirus Gateways for filtering all incoming and outgoing viruses (for example, a gateway like this would work like a virus firewall on a corporate email server, so the users won�t receive any infected network traffic).
    Also most antivirus companies, considering Solaris stability, availability, etc... have developed antivirus servers for solaris, that act like a central server for the windows clients for actualizations, cleaning shcheduling, etc...
    You can take a look and learn about this, for example at trend-micros web page:
    www.antivirus.com
    If you have other needs just post them. Bye,
    Joseba M. Iturbe

  • Need Adobe Reader 9.x for Solaris 10 x86

    There used to be a link on your web site for the Solaris 10 x86 download for Adobe Reader 9.x products. Could you please send me an updated link or an alternative method of downloading the Solaris intel version of Adobe Reader? Would prefer the link comes directly from Adobe since verification is needed that it is from a trusted source. Thanks!

    Hi,
    there is no actual release of Acrobat Reader
    ftp://ftp.adobe.com/pub/adobe/reader/unix/  
    later then Acrobat Reader 4 for Solaris x86
    ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/4.x/sunx86-ar-405.tar.gz.
    All posts that announce Solaris x86 support for release 8 are untrue.
    The only working extended Pdf-Editor (comparable to Adobe Acrobat XI)
    for Solaris x86 at the moment is PDFStudio Java
    http://www.qoppa.com/pdfstudio/buy/
    Best regards
    Axel Arnold Bangert - Herzogenrath 2013 - Solaris 10 (x86)

  • Need to know transaction code for category

    Hi Gurus ,
    I had like to know the transaction code for product category in CRM 2007
    Please reply me asap
    Regards,
    Srinivas.

    Hi Srinivas
    For CRM 2007 the correct method for maintaining the Product Category & Products is via the WEB UI.
    Refer to Best Practice Guide C04. Make sure you follow the necessary settings for setting yourself up with Role POWERUSER.
    Oce this is done.
    Log into Webclient, select Poweruser Role if multiple options provided.
    From the navigation bar select Master Data, within this option will be various options relating to Product Hierarchies, etc.
    Hope this helps.
    Regards
    Arden

  • Need a copy of acroread for Solaris 10 on SPARC

    I've checked the ftp download pages and any Solaris  reference to acroread is a dead link, Can someone post me a working link where I can download the latest Solaris on SPARC copy of acroread?

    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Unix
    I think (but not sure) that 8.1.7 is the last version for Solaris/sparc.

  • Parse errors in ib_linux.h when I try to compile C code for GPIB in Linux.

    Keep getting parse errors starting at line 63 of ib_linux.h when I try to compile C code linked
    to the drivers. Using ver 0.6 driver, compiling using gcc name.c cib.o -o name, and I have
    ugpib.h as an include in the c code. The Linux box currently has the 2.2 kernel running.
    Any ideas?

    Hello-
    It shouldn't be necessary to compile by hand. After the 0.6 driver is untarred, there should be an INSTALL script to run. Be sure to "su" to have root permissions before running this script. It may also be necessary to "chmod" the INSTALL file before doing a "./INSTALL"
    Randy Solomonson
    Applications Engineer
    National Instruments

  • Need help to write code for 'Print" button......!

    Hi all,
    I am working in oracle forms 6i.I am creating forms for ordering product/quantity(Entering quantity/product details). In my form i have "Print button" to print the quantity details which is in multi-record block(database item).Please help me of how to write code for print button. If u had any source code please post it.
    Please help asap......!
    Thanks
    regards,
    jame

    You haven't got an answer or a reply because this question is asked so many times.
    Why don't you search the forum to find them?

  • Need help in simple code for LayeredPane

    Hi,
    here is my simple code for displaying layered pane,
    why is it not working, when i comment label.setBounds();
    also is there a way to have a transparent layer, like
    what i want to do it
    have ont JPanel with some painting on it
    then i want to add one more JPanel over it which is transparent
    Ashish
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TestLayeredPaneFrame extends JFrame
         public TestLayeredPaneFrame()
              super("layered pane");
              this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              JLayeredPane layeredPane =new JLayeredPane();
              layeredPane.setPreferredSize(new Dimension(400,600));
    int x = 30;
    int y = 30;
    for (int i = 0; i < 3; i++) {
    x +=30;
    y +=30;
    origin.x += offset;
    origin.y += offset;
    layeredPane.add(new myLabel(x ,y ), new Integer(i));
              Container contentPane = this.getContentPane();
              contentPane.add(layeredPane, BorderLayout.CENTER);
              JPanel panel = myGlassPane();
              this.setGlassPane(panel);
              setSize(new Dimension(800,600));
              this.setVisible(true);
         private JLabel myLabel(int x, int y)
         JLabel label = new JLabel("My Name");
    label.setVerticalAlignment(JLabel.TOP);
    label.setHorizontalAlignment(JLabel.CENTER);
    label.setOpaque(true);
    label.setBackground(Color.BLUE);
    label.setForeground(Color.black);
    label.setBorder(BorderFactory.createLineBorder(Color.black));
    label.setBounds(x, y, 140, 140);     
    return label;     
         public static void main(String args[])
    TestLayeredPaneFrame tlp = new TestLayeredPaneFrame();
    }     

    Hi,
    here is my simple code for displaying layered pane,
    why is it not working, when i comment label.setBounds();
    also is there a way to have a transparent layer, like
    what i want to do it
    have ont JPanel with some painting on it
    then i want to add one more JPanel over it which is transparent
    Ashish
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TestLayeredPaneFrame extends JFrame
         public TestLayeredPaneFrame()
              super("layered pane");
              this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              JLayeredPane layeredPane =new JLayeredPane();
              layeredPane.setPreferredSize(new Dimension(400,600));
    int x = 30;
    int y = 30;
    for (int i = 0; i < 3; i++) {
    x +=30;
    y +=30;
    origin.x += offset;
    origin.y += offset;
    layeredPane.add(new myLabel(x ,y ), new Integer(i));
              Container contentPane = this.getContentPane();
              contentPane.add(layeredPane, BorderLayout.CENTER);
              JPanel panel = myGlassPane();
              this.setGlassPane(panel);
              setSize(new Dimension(800,600));
              this.setVisible(true);
         private JLabel myLabel(int x, int y)
         JLabel label = new JLabel("My Name");
    label.setVerticalAlignment(JLabel.TOP);
    label.setHorizontalAlignment(JLabel.CENTER);
    label.setOpaque(true);
    label.setBackground(Color.BLUE);
    label.setForeground(Color.black);
    label.setBorder(BorderFactory.createLineBorder(Color.black));
    label.setBounds(x, y, 140, 140);     
    return label;     
         public static void main(String args[])
    TestLayeredPaneFrame tlp = new TestLayeredPaneFrame();
    }     

Maybe you are looking for

  • Error when configuring the userstore in OAM for OUD

    Hi, I installed the OIM/OAM sucessfully. I would like to do a PoC to protect one web based application using the OAM. Using the OUD as user story. When trying to create a userstore in OAM, i am getting the below error. However, when i click on test c

  • Multiplexing error in iDVD

    I've read some of the other posts about this, but none mentioned the same symptoms I'm having. iDVD throws a multiplexing error if I have chapters in my video. If I remove the chapters in iMovie and then use iDVD to burn, it works great. But adding t

  • Types statement

    Hi ABAP Experts,   I have some doubt on declaring Internal tables, could you tell me which case  case1 or case 2  is correct. Case1. types: begin of t_kunnr,            name1(30) type c,            name2(30) type c,            kunnr(10) type c,      

  • OBIEE Error in Logical column

    Hi, I want to use dynamic variable and filter the dates. I am creating new logical column in BMM using the below case statement. I am getting the error.Please suggest me for this issue. CASE statement: CASE WHEN VALUEOF(CURRENT_MONTH_FNC_STG) = '08 2

  • Bar codes (Smartforms vs. Sapscript)

    Hello, I need to print sapscript bar code on every kind of printers, is it possible in sapscript? I found out solution only for certain printer. I know I can do this in smartform, but there is completed sapscript form and customer requests upgrade th