Can't build code that uses cpc_event_t

Hello;
I'm running on:
69: uname -a
SunOS chroma 5.10 Generic sun4u sparc SUNW,Sun-Fire-V490
70: CC -V
CC: Sun C++ 5.7 2005/01/07
71:
I can't think of why my program fails to build. This little test program has the same problem though:
489: cat cpc_example.cpp
#include <libcpc.h>
main()
cpc_event_t event;
int cpuver = cpc_getcpuver();;
char *setting = "pic0=EC_ref,pic1=EC_hit";
cpc_strtoevent(cpuver, setting, &event);
490: CC -lcpc cpc_example.cpp -o cpc_example -lcpc
"cpc_example.cpp", line 5: Error: The type "_cpc_event" is incomplete.
"cpc_example.cpp", line 7: Warning: String literal converted to char* in initialization.
1 Error(s) and 1 Warning(s) detected.
I greped under the /usr/include tree and my compiler installation tree and only found one reference for cpcevent.. It's used to define cpc_event_t in libcpc.h but doesn't seem to be defined any place.
Thoughts?
Kevin

This seems a bug in Solaris 10 as the error didn't show up in Solaris 9. Please install all the recent Solaris 10 patches and see whether it goes away.
Or try posting your question on Solaris OS forum at: http://forum.sun.com/category.jspa?categoryID=2
Rose

Similar Messages

  • How can I write code that uses schemas returned by one query to run another

    I need to use the data returned by this SQL
    Select owner
    From dba_tables
    Where tablename = 'TRANSACT';
    To run the following SQL for every schema in the database:
    Select $vschema, count(*)
    from $vschema..transact;
    Where I am using $vschema as a variable to hold owners returned by the first statement.
    I have tried using 1 cursor, 2 cursors, 1 coursor and an execute immediate command and either my code fails or I get a message that it ran successful but I cant see the data that I want returned by the second query.

    I don't actually want to get the count on the transact table for each schema I just used that as an example to simplify... Maybe the code that I have written so far would be better... Here is one attempt:
    SET SERVEROUTPUT ON SIZE 1000000
    SET VERIFY OFF
    DECLARE
    v_schema Varchar2(50);
    v_chgdate DATE;
    v_debits NUMBER(14,4);
    v_amount NUMBER(14,2);
    /* First cursor */
    CURSOR get_schemas (v_schema OUT char) IS
    SELECT DISTINCT t.owner
    FROM sys.dba_tables t
    WHERE t.table_name = 'GERCVLOG'
    ORDER BY t.owner;
    /* Second cursor */
    CURSOR get_stats (v_schema IN char) IS
    SELECT MAX(g.chgdate),
    SUM(g.debits),
    SUM(g.totalamt)
    FROM &&v_schema..gercvlog g
    WHERE g.chgdate >= '01-Jan-07' or
    g.chgdate = (SELECT MAX(g1.chgdate)
    FROM &&v_schema..gercvlog g1);
    BEGIN
    /* Open first cursor*/
    OPEN get_schemas (v_schema OUT char);
    LOOP
    FETCH get_schemas INTO v_schema;
    EXIT WHEN get_schemas%NOTFOUND;
    dbms_output.put_line('Schema: '||v_schema);
    OPEN get_stats (v_schema IN char);
    LOOP
    FETCH get_stats INTO v_chgdate, v_debits, v_amount;
    FETCH get_schemas INTO v_schema;
    EXIT WHEN get_stats%NOTFOUND;
    dbms_output.put_line('Latest Import: '||v_chgdate);
    dbms_output.put_line('Total Debits: '||v_debits);
    dbms_output.put_line('Total Dollars: '||v_amount);
    dbms_output.put_line('______________________________');
    END LOOP;
    CLOSE get_stats;
    END LOOP;
    CLOSE get_schemas;
    END;
    /

  • Can I share queries that use Web.Contents() need ApiKeyName at Power BI ?

    Can I share queries that use Web.Contents() need ApiKeyName at Power BI ?
    I want to share queries at Power BI.
    These queries include Web.Contents function.
    And Web.Contents function have ApiKeyName for Web API authentication.
    Ex:
    Web.Contents("http://jlp.yahooapis.jp/KeyphraseService/V1/extract", [ Query=[ #"sentence"=t2 ], ApiKeyName="appid" ])
    I try share this queries to Power BI.
    But I cannot use this query at the other excel workbook.
    Regards,
    Yoshihiro Kawabata

    Ok that makes sense. Thank you for the translation! That error isn't specific to your use of an API key. It is hitting our privacy firewall feature. There is more information here:
    http://office.microsoft.com/en-us/excel-help/privacy-levels-HA104009800.aspx
    I encourage you to read that help document to get the full information, but basically it's saying that you're trying to combine two datasources and Power Query doesn't know the relative privacy level of each source. We need that info so we can make sure
    that we don't leak private data out to the world.
    The error message suggests that you build the query from scratch. When you do that, you'll get prompted for the privacy levels of each source and you won't have this problem. If you want to reuse this query without rebuilding it and you're absolutely sure
    that none of the data involved is private, you can disable the privacy firewall by clicking the Fast Combine button. That's located in the Power Query ribbon in Excel in the Workbook Settings group. (Sorry I don't know what that is called in Japanese.)

  • Can I build a database, using my Contacts and then email them?

    Can I build a database, using my Contacts and then email them?

    If you mean email them as a group you need to get a group messaging app first. If you mean email the database you need to take a screen shot and email the photo.

  • Can I play videos that use adobe flash player

    Can I play videos that use adobe flash player

    5 Flash Player Alternatives http://www.techshout.com/features/2011/01/flash-player-for-ipad-apps/
     Cheers, Tom

  • How can I open websites that use adobe flash ?

    How can I open websites that use adobe flash ?

    The website should open, but the Adobe Flash will not work as there's no Flash plug-in for mobile Safari.
    After some failed attempts by Adobe to work out Flash for iPad, Apple decided to forgo it, and Steve Jobs published a famous letter on the reasons why Apple would not be supporting Flash on iPad.
    The fall, Adobe announced that they were abandoning Flash on all mobile platforms, including Android, and they have deprecated the use of Flash as a plug-in on Desktop platforms. Flash will be moving to become a platform for development of cross-platform desktop applications and HTML5 will replace it for web and mobile purposes.
    Web sites that still use Flash will slowly move away from the technology in the next few months. Most web sites that expected traffic from mobile device users have already moved away from using Flash.

  • How many times can the photoshop code be used?  Like can I download it on one computer then later download it on a different computer?

    Basically the title explains my question.  How many times can the photos hop code be used?  Like can I download it on one computer then later download it on a different computer?

    You're allowed two installations/registrations. Anything above that requires deregistration on one of those computers.
    Take note that if this is Photoshop CC, it's as easy as signing out on a system; there aren't any serial numbers involved as it's all tied to your Adobe ID.

  • Issue while deploying code that uses OIM api: OIMClient

    We are trying to deploy a war file with some java code that interfaces with OIM by using the OIMClient api. Note that we have all the spring jars needed and it works fine on Tomcat. Our production env is on weblogic, and when we deploy the war file on weblogic it deploys fine. But when we test some of the web pages, we get the following error:
    ]] Root cause of ServletException.
    java.lang.NoClassDefFoundError: org/springframework/jndi/JndiTemplate
    at oracle.iam.platform.OIMClient.<init>(OIMClient.java:83)
    Truncated. see log file for complete stacktrace
    >
    The class file is available in a jar called spring-context with the same package structure: org.springframework.jndi.jnditemplate. I wonder why it cannot find the definition for that class. I also tried removing these jars from the war file and adding them to the domain's lib dir. I still end up with the same exception.
    Appreciate all the help I can get.
    Edited by: 958829 on Sep 12, 2012 11:01 PM

    Good one. I just threw every single spring jar the webapp needed into the domain's lib. I did not declare them as "provided" though. and it worked. I bet going into console/deployment and adding the jars individually would've worked too. Thanks mate. Cheers !

  • How can change my code without using if else in procedure

    Hai ,
    I have wrote code like this
    if RPTFORMNTH='M' then
    SELECT coalesce(SUM(IN_RWEEKS),0),
    INTO C2_COL1
    FROM HS_CASEDTA_DTLS_TB
    WHERE UPPER(VR_HAUNM) like NVL(case when HAUNM='0' then null else UPPER(HAUNM) END , UPPER(VR_HAUNM))||'%'
    AND IN_ULBOBJID=ULBOBJID AND CH_FLAG!='D'
    AND VR_RPTFORMNTH=VR_RPTFORMNTH
    AND IN_YEAR=IN_YEAR;
    ELSE
    SELECT
    coalesce(SUM(IN_RWEEKS),0),
    INTO C2_COL1
    FROM HS_CASEDTA_DTLS_TB
    WHERE UPPER(VR_HAUNM) like NVL(case when HAUNM='0' then null else UPPER(HAUNM) END , UPPER(VR_HAUNM))||'%'
    AND IN_ULBOBJID=ULBOBJID AND CH_FLAG!='D'
    AND
    TO_DATE(('01/'||VR_RPTFORMNTH||'/'||IN_YEAR),'DD/MM/YYYY')
    BETWEEN to_date('04/' || to_char(RPTYEAR-1),'MM/YY')
    AND add_months(to_date(RPTFORMNTH || to_char(RPTYEAR),'MonYYYY'),1)-1;
    END IF;
    My query is without using if else and replicate data in if and else how can i modify code.Observe that only where condition i want changes that's why i used if else without that how can i modify where clause with that two conditions.Please give me guidance.
    Regards ,
    rajendar.

    hi,
    I think you want your condition to change inside the where clause so you could have only one select statement. If that is so try this:
    SELECT coalesce(SUM(IN_RWEEKS),0),
    INTO   C2_COL1
    FROM   HS_CASEDTA_DTLS_TB
    WHERE  1 = CASE WHEN RPTFORMNTH='M' THEN
                    CASE WHEN UPPER(VR_HAUNM) like NVL(case when HAUNM='0' then null else UPPER(HAUNM) END , UPPER(VR_HAUNM))||'%'
                              AND IN_ULBOBJID=ULBOBJID AND CH_FLAG!='D'
                              AND VR_RPTFORMNTH=VR_RPTFORMNTH
                              AND IN_YEAR=IN_YEAR
                   THEN 1
                         ELSE 0
                    END
               ELSE --  RPTFORMNTH !='M'
                    CASE WHEN UPPER(VR_HAUNM) like NVL(case when HAUNM='0' then null else UPPER(HAUNM) END , UPPER(VR_HAUNM))||'%'
                              AND IN_ULBOBJID=ULBOBJID AND CH_FLAG!='D'
                              AND TO_DATE(('01/'||VR_RPTFORMNTH||'/'||IN_YEAR),'DD/MM/YYYY')
                              BETWEEN to_date('04/' || to_char(RPTYEAR-1),'MM/YY')
                              AND add_months(to_date(RPTFORMNTH || to_char(RPTYEAR),'MonYYYY'),1)-1
                         THEN 1
                         ELSE 0
                    END
               ENDMessage was edited by:
    Bobbydj
    hi Are, after belatedly reading Rob's post, I think his post is better. I was only looking at your highlighted code, but he took the most common conditions inside the where clause.

  • How can I identify reports that use specific tables

    Hi, is there a way that I can identify the reports that select from specific tables?  We have 3,000 reports in business object enterprise XI R2 SP5. and we're trying to identify all the reports that use a specific table.

    Or if you have a developer in Java or .NET available you can write one. Fairly simple to get the info.
    In .NET you would open each report, write the name of the report to a log file with the output of the SQL Statement:
    Using RAS as the report engine.
                GroupPath gp = new GroupPath();
                string tmp = String.Empty;
                rptClientDoc.RowsetController.GetSQLStatement(gp, out tmp);
                MessageBox.Show(tmp, "Data Source Set and SQL Statement", MessageBoxButtons.OK, MessageBoxIcon.Information);
    If you want more details is is available with a few more lines of code. The above would only show you what is used in the report.
    I don't believe there is a BOE tool that can do this but they may have one.
    Here's a link to the BOE Admin forum: BI Platform
    Thank you
    Don

  • Can Double Byte Codes be used in SharePoint 2013?

    Hello,
    I am looking to create a SharePoint but for Japanese users.  I understand that Double Byte Codes will need to be used when entering information due to the Japanese language.  I have been informed that this can sometimes cause an issue with SharePoint.
    I am looking to test this however I wanted to understand if this can be done / are there any considerations when using DBC's on SharePoint etc and any limitations.
    Any assistance would be greatly appreciated.
    Thanks
    KP

    Hi KP,
    Yes, SharePoint 2013 supports Double Byte Unicode characters:
    If you have non-standard ASCII characters, such as high-ASCII or double-byte Unicode characters, in the SharePoint URL, each of those characters is URL-encoded into two or more ASCII characters when they are passed to the Web browser. Thus, a URL with many
    high-ASCII characters or double-byte Unicode characters can become longer than the original un-encoded URL. The list below gives examples of the multiplication factors:
    High-ASCII characters — for example, (!, ", #, $, %, &, [Space]): multiplication factor = 3
    Double byte Unicode characters — for example, Japanese, Chinese, Korean, Hindi: multiplication factor = 9
    For example, when you translate the names of sites, library, folder, and file in the URL path http://www.contoso.com/sites/marketing/documents/Shared%20Documents/Promotion/Some%20File.xlsx into Japanese, the resulted encoded URL path will become something
    like the following:
    http://www.contoso.com/sites/%E3%83%9E%E3%83%BC%E3%82%B1%E3%83%86%E3%82%A3%E3%83%B3%E3%82%B0/%E6%96%87%E6%9B%B8/DocLib/%E3%83%97%E3%83%AD%E3%83%A2%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB.xlsx. This path is 224 characters,
    whereas the original URL path is only 94 characters.
    In most cases, one UTF-16 character equals one UTF-16 code unit. However, characters that use Unicode code points greater than U+10000 will equal two UTF-16 code units. These characters include, but are not limited to, Japanese or Chinese surrogate pair
    characters. If your paths include these characters, the URL length will exceed the URL length limitation with fewer than 256 or 260 characters.
    Reference:
    https://technet.microsoft.com/en-us/library/ff919564%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected].

  • After project build, code that opened a sub VI no longer works

    I have a project that I am ready to build into a .exe.
    I have code in the main VI that opens and runs another VI when an operator clicks on a button. When the operator is done manipulating the popup vi, he closes it and continues working in the main VI. He opens this popup VI often. The code that opens this popup vi is shown in a .jpg file attached. Obviously, if the project is built into a .exe, this code will no longer work (even if I still have the "PID Popup.vi" file in the correct location.
    What is the proper method of opening a "popup" vi from a "main vi" that will still work when I build a project?
    Hopefully that made sense!
    Michael
    Michael Hampson
    President
    XL Automation, Inc.
    Attachments:
    Popup.jpg ‏329 KB

    simple question, did you retain the pop-up's front panel in the build?  My guess is that you have not, and that you are getting an error when you invoke it, but since the errors are not handled you would not know that.
    Just a guess and my $.02
    Of course reflecting about 20 more seconds, you would not need to include it in the build.  But remember, if you are calling other VIs that are in the build, it is a possibility of getting a compile error as you are running in the RTE and not the development environment.  I would wire the error terminals and output that error cluster and look there.
    Message Edited by Stradis on 05-30-2007 12:27 PM
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • Would like help with treeset ,the codes that using for sorting, please ?

    hi every body. i faced a problem while writing this program, everything worked properly except this one. The program is related to Jframe and it asks the user to add three labels , three text field , one text area and three Jbuttons which are add sort and exit. i could deal with add and exit but sort, i couldn't do it properly because i don't know the codes that should be added in actionperfomed?
    These codes are :
    package gui;
    import javax.swing.SwingUtilities;
    import java.awt.BorderLayout;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import java.awt.Rectangle;
    import java.util.ArrayList;
    import javax.swing.JButton;
    import javax.swing.JTextField;
    import javax.swing.JTextArea;
    import sun.misc.Sort;
    import domain.Student;
    public class StudentFrame extends JFrame {
          * This method initializes btnAdd     
          * @return javax.swing.JButton     
         private JButton getBtnAdd() {
              if (btnAdd == null) {
                   btnAdd = new JButton();
                   btnAdd.setBounds(new Rectangle(13, 135, 59, 27));
                   btnAdd.setText("Add");
                   btnAdd.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                        btnAddClicked(); // TODO Auto-generated Event stub actionPerformed()
              return btnAdd;
         protected void btnAddClicked() {
              // TODO Auto-generated method stub
         String name = txtName.getText();
         String id = txtID.getText();
         String age = txtAge.getText();
         Student s = new Student(name , id , age);
         txtArea.setText(String.valueOf(s ));
          * This method initializes btnSort     
          * @return javax.swing.JButton     
         private JButton getBtnSort() {
              if (btnSort == null) {
                   btnSort = new JButton();
                   btnSort.setBounds(new Rectangle(95, 136, 62, 25));
                   btnSort.setText("Sort");
                   btnSort.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             btnSortClicked(); // TODO Auto-generated Event stub actionPerformed()
              return btnSort;
         protected void btnSortClicked() {
              // TODO Auto-generated method stub
          * This method initializes btnExit     
          * @return javax.swing.JButton     
         private JButton getBtnExit() {
              if (btnExit == null) {
                   btnExit = new JButton();
                   btnExit.setBounds(new Rectangle(173, 134, 61, 23));
                   btnExit.setText("Exit");
                   btnExit.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             System.exit(0); // TODO Auto-generated Event stub actionPerformed()
              return btnExit;
          * This method initializes txtName     
          * @return javax.swing.JTextField     
         private JTextField getTxtName() {
              if (txtName == null) {
                   txtName = new JTextField();
                   txtName.setBounds(new Rectangle(79, 11, 60, 23));
              return txtName;
          * This method initializes txtID     
          * @return javax.swing.JTextField     
         private JTextField getTxtID() {
              if (txtID == null) {
                   txtID = new JTextField();
                   txtID.setBounds(new Rectangle(73, 55, 65, 26));
              return txtID;
          * This method initializes txtAge     
          * @return javax.swing.JTextField     
         private JTextField getTxtAge() {
              if (txtAge == null) {
                   txtAge = new JTextField();
                   txtAge.setBounds(new Rectangle(74, 96, 61, 24));
              return txtAge;
          * This method initializes txtArea     
          * @return javax.swing.JTextArea     
         private JTextArea getTxtArea() {
              if (txtArea == null) {
                   txtArea = new JTextArea();
                   txtArea.setBounds(new Rectangle(138, 5, 154, 128));
              return txtArea;
          * @param args
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        StudentFrame thisClass = new StudentFrame();
                        thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                        thisClass.setVisible(true);
          * This is the default constructor
         public StudentFrame() {
              super();
              initialize();
          * This method initializes this
          * @return void
         private void initialize() {
              this.setSize(300, 200);
              this.setContentPane(getJContentPane());
              this.setTitle("JFrame");
              return jContentPane;
    }Edited by: hypocrisy on Apr 26, 2009 6:51 PM

    There are three actionPerformed in that program.One for add Jbutton , Sort , and Exit
    the codes that i have added for add button after action performed are
    String name = txtName.getText();
    String id = txtID.getText();
    String age = txtAge.getText();
    Student s = new Student ( name , id , age);
    System.out.println(s);
    the codes for Exit button to make it works properly was :
    System.out.println(0);
    But when i came to Sort Button and i tried to enter many codes but it didn't sort properly so would you like to help me with the right codes :)

  • Can't open links that use Javascript even if Javascript enabled

    I've tried to open links on a recruitment website but the ones that use javascript, or at least I assume they do as this appears at the bottom of the screen when i click on the link javascript:%20OpenWindow(350,402,%20'details.asp?dir=1&id=39649&type=O&checksum=df089b6b4eab6c4134db5582a6d77a31',%20'Update',%20'True'); but nothing happens. Direct links to another website work ok. i'm having no problems with this when using internet explorer.
    many thanks.

    I went to the web site. No problem loading.

  • Instead of using the make file can you build nirlpk.sys using MS WDK 8.0 on VS2012?

    After downloading the NI nimhddk_windowsWDM-2 and -1
    Instead of using the make file I built nirlpk.sys using MS WDK 8.0 on VS2012
    I copied the source files out of the dir /nirlpk to the MS template for WDM drivers
    It built after turning warnings as errors off.
    After uninstalling the NI_DMX driver I tried to install the RLP driver that consisted of nirlp.inf and nirlpk.sys
    I got this message:
    Windows found driver software for your device but encounted and error while attempting to install it.
    PCI-6602 RLP WDM
    Driver is not intended for this platform
    Is the nirlp.inf file correct for loading on Windows 7 64 bit?
    Any ideas?

    I have now altered the example along lines
    suggested by ghaneman*, who pointed out that
    a trusted application did not need to use the
    FileOpenService/FileContents just to get an
    InputStream.
    * Mentioned on 'File associations / sandboxed app.'
    http://forum.java.sun.com/thread.jspa?threadID=785224
    The altered code is..
    /** Load a file into the editing area.
    @param path A string representing the path to the desired file. */
    public void loadFile(String path) {
        // first try as if this were a trusted application..
        if (!path.equals(".")) {
            try {
                FileInputStream inputStream = new
                    FileInputStream(path);
                loadFile(inputStream);
            } catch (Exception e) {
                // we do not have trust, use the FileOpenService
                loadFileByFileService(path);
        } else {
            // we only have a directory, use the FileOpenService
            loadFileByFileService(path);
    public void loadFileByFileService(String path) {
        try {
            if (fileOpenService==null) {
                fileOpenService = (FileOpenService)ServiceManager.
                    lookup("javax.jnlp.FileOpenService");
            fileContents = fileOpenService.openFileDialog(path, xtns);
            // the user may have cancelled the action..
            if (fileContents!=null) {
                loadFile( fileContents.getInputStream() );
        } catch(UnavailableServiceException use) {
            use.printStackTrace();
        } catch(IOException ioe) {
            ioe.printStackTrace();
    }If the user launches the trusted version, and
    selects 'always trust' for the (self signed)
    certificate, the end user can thereafter double
    click a file and see it appear in the application's
    editing area with no further user interaction.

Maybe you are looking for

  • How to change the screen settings in my laptop

    Hello. I have a Satellite Toshiba laptop and as my daughter started pressing some buttons she changed the settings on the screen. When I go to my email or to some web pages the page and the letters look bigger and maybe of a different style, although

  • Issues in processing the Parameter as a set of values

    Hi Group, I have a requirement as under: In my selection screen, I am using a parameter ( name : Sales order ) and on click of this, all the Sales orders and Sales order Items will be shown as : Sales order     Item  S0100               0001 S0100   

  • Global outline creation

    hi,   i am using SRM 5.0.. i created a Global Outline Agreement in SRM and i try to distribute to backend system as contract...after distribution the document is not distribute in backend system ..in ststus it shows Distribution Incorrect. Before a w

  • Importing material from dvd

    does anyone know how to import video from a dvd for editing? i have material that isn't on a camcorder, it's contained in dvd and i can't seem to figure out how to import. thank you! claire

  • Why Indesign CS6 keeps opening the same old Indesign documents multiple times?

    I just installed the Indesign CS6 trial version before I purchase the professional version. I opened one of my old Indesign file from CS5 and a weird thing is hapenning on Indesing CS6. Everytime I click on the page or tab of the Indesign file that I