PROC: warnings from CC compiler when compiling a .pc to .c file

Dears,
I'm getting unexpected warnings from CC compiler while compiling a C file generated from a PROC file.
Below is the list of warnings (there are only 2 warnings appearing multiple times) that I'm encountering:
line 43: Warning: Partially bracketed initialization for sqladt.
line 57: Warning: Partially bracketed initialization for sqltds.
line 114: Warning: Partially bracketed initialization for sqlstm.
line 601: Warning: sqlstm hides the same name in an outer scope.
line 674: Warning: sqlstm hides the same name in an outer scope.
line 755: Warning: sqlstm hides the same name in an outer scope.
line 818: Warning: sqlstm hides the same name in an outer scope.
line 849: Warning: sqlstm hides the same name in an outer scope.
line 957: Warning: sqlstm hides the same name in an outer scope.
line 1004: Warning: sqlstm hides the same name in an outer scope.
line 1076: Warning: sqlstm hides the same name in an outer scope.
line 1124: Warning: sqlstm hides the same name in an outer scope.
line 1199: Warning: sqlstm hides the same name in an outer scope.
Please find below the details of the precompiler & compiler that I'm using:
PROC version:
Pro*C/C++: Release 10.2.0.4.0
CC version:
CC: Sun C++ 5.8 Patch 121017-01 2005/12/11
I'm using the following Oracle flags in the Makefile:
SQLCHECK=FULL \
USERID=$(ORACLE_PROCUSR) \
CODE=CPP \
MODE=ORACLE
Please let me know why I'm getting these warnings & will they pose any problem while executing the binary under any special circumstances (like core dump).
Also please let me know if you need anymore information.
Any help is greatly appreciated.
Thanks in advance.
Regards,
Supreeth

C++ 5.8, part of Studio 11, is End Of Life, and little support is available for it. You should consider updating to a newer release. The current release, Studio 12.3, supports Solaris 10 and 11. If you are using an older version of Solaris, earlier Studio release are still available:
http://www.oracle.com/technetwork/server-storage/solarisstudio/overview/index.html
The warnings are likely to be harmless, but you would have to inspect the C++ code to be sure.
Partially-bracketed initialization means code similar to this: struct A {int i, j; };
struct B { A a1, a2; };
B b = { {1, 2}, 3, 4 }; // the a2 initializer is not bracketed The code is only a problem when the number of initializers does not match the number of struct members being initialized, and the initializers don't match up with what you want to initialize. Only the programmer knows whether the code is OK.
This warning appears only when you compile using the +w2 option, which asks for extra-picky warnings that normally would be suppressed. You can evaluate whether you want to use this option.
The "hiding name" warning appears when a local name has the same spelling as a name in an outer scope. Duplicating names is generally a poor programming practice, since it can introduce errors that are hard to find. That is, you might think you are referring to a global x when a local x hides it. Or you might remove a local x and code referencing it does not generate an error because it now incorrectly refers to a global x.
If you have questions specifically about using PRO*C, you are more likely to find an answer in an Oracle database programming forum. Start here:
https://forums.oracle.com/forums/category.jspa?categoryID=18

Similar Messages

  • Firefox 3.6 does not open onto my desktop from the dock when links in email or other files are opened. I have eMac with system 10.4.11 in English

    Firefox 3.6 does not open onto my desktop from the dock when links in email or other files are opened, use to. I have eMac with system 10.4.11 in English
    Thanks, Claude Combs
    [email protected]

    Firefox 3.6 does not open onto my desktop from the dock when links in email or other files are opened, use to. I have eMac with system 10.4.11 in English
    Thanks, Claude Combs
    [email protected]

  • Warnings from last compilation!!!

    Note: C:\Document\testfileprogram\testfile.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    can someone explain me what this compile warnings means
    thanks in advance
    Jay

    Reading Text from a File
    try {
    BufferedReader in = new BufferedReader(new
    ader(new FileReader("infilename"));
    String str;
    while ((str = in.readLine()) != null) {
    process(str);
    in.close();
    } catch (IOException e) {
    oki i have taken this example from a site,
    http://javaalmanac.com/egs/java.io/ReadLinesFromFile.h
    tml?l=findThis bit of code isn't causing your warning message from the compiler.
    PS use the code button it makes everything so pretty.

  • HT201272 How can I recover music I've purchased from iTunes store when my iTunes cannot find the file

    I cannot re-download music I purchased from the iTunes store.  I followed the instructions from iTunes support but that did not work. 
    When I find the music in the iTunes store under purchases, it states "downloaded" and will not let me re-download it.
    What other tricks are there to use.  I do not have the music on an iPod or CD because I always thought that once you bought it on iTunes, you could always re-download it if you got a new computor, etc.

    If they appear under the Purhcased link as 'downloaded' then do you still have them listed in your iTunes library (where you would click on them to play them) ? If youdo then iTunes assumes that you still have them somewhere, and that there is no need to re-download them - try deleting one of them from your library and it should then get the cloud symbol for re-downloading.

  • How do I put all the songs from a compilation album into the same /album/folder in Itunes v12

    How do I put all the songs from a compilation album into the same /album/folder in Itunes v12 i know in other versions it was via get info but as all of the tunes have the same album title , I am not sure what tio change to achieve this ?

    I don't see your screenshot but I assume you're starting with something like this, i.e., the compilation split into multiple albums:
    If you select all the items that you want to be in a single album, right-click > Get Info you'll see this:
    As you say, in iTunes 12 you don't see a field to enter a distinct Album Artist value.  You can, however, address this by clicking the Add Field button and selecting Album Artist:
    That makes the field available in the metadata dialog so that you can enter the required value:
    You can also show the pre-iTunes 12 version of the dialog by holding the SHIFT key when selecting Get Info - this allows you to enter the Album Artist directly:

  • Error from ejbc: Compiler failed executable.exec

    Hi all,
    I am using weblogic server 8.1 and encounter an error when I build my project, could anyone give me a helping hand? Thank you.
    This is my Configuration:
    Application Type: Empty Application
    Project Type: EJB Project
    Project Name: LibraryEJBProject
    DataSource: LibraryDataSource using cgPool
    Table: Library_Book under Schemas\Weblogic\Tables of pointbase server
    EJB name: BookBean.EJB under LibraryEJBProject\book
    When I right click LibraryEJBProject and click build, the following error comes out:
    ======================================================
    Build project LibraryEJBProject started.
    BUILD STARTED
    build:
    Created dir: C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build
    check-env:
    WARNING: Checking to see if there is anything new to build...
    Created dir: C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_ejb_crc
    no-ejbgen:
    run-build:
    clean-modules:
    removed module 'LibraryEJBProject.jar'
    WARNING: Running EJBGen...
    Loading source file C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\/wlw_LibraryEJBProject_build/../wlw_ejb_crc//ejbgentemp/Book\BookBean.java...
    Constructing Javadoc information...
    EJBGen 2.16
    [Info:] Creating C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\/wlw_LibraryEJBProject_build/../wlw_ejb_crc//ejbgentemp\Book\Book.java
    [Info:] Creating C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\/wlw_LibraryEJBProject_build/../wlw_ejb_crc//ejbgentemp\Book\BookHome.java
    [Info:] Creating C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\/wlw_LibraryEJBProject_build/../wlw_ejb_crc//ejbgentemp\META-INF\ejb-jar.xml
    [Info:] null [Bean] MAKE CLASS NAME G:BookHome P:Book N:BookHome
    [Info:] null [Bean] MAKE CLASS NAME G:Book P:Book N:Book
    [Info:] Creating C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\/wlw_LibraryEJBProject_build/../wlw_ejb_crc//ejbgentemp\META-INF\weblogic-ejb-jar.xml
    [Info:] Creating C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\/wlw_LibraryEJBProject_build/../wlw_ejb_crc//ejbgentemp\META-INF\weblogic-cmp-rdbms-jar.xml
    [Info:] Creating C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\/wlw_LibraryEJBProject_build/../wlw_ejb_crc//ejbgentemp\ejbgen-build.xml
    post-ejbgen:
    clean-ejbc:
    Copying 7 files to C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build
    WARNING: EJBGen ok. Compiling...
    runjavac:
    Compiling 3 source files to C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build
    WARNING: All files compiled. Running ejbc...
    <Dec 3, 2004 12:18:44 PM CST> <Warning> <EJB> <BEA-010212> <The EJB 'Book(Jar: C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build)' contains at least one method without an explicit transaction attribute setting. The default transaction attribute of Supports will be used for the following methods: local-home[createQuery(), remove(java.lang.Object), findByPrimaryKey(java.lang.Integer), create(java.lang.Integer)] local[getBookID(), getIsbn(), getName(), setPublisher(java.lang.String), getPublisher(), setAuthor(java.lang.String), setBookID(java.lang.Integer), remove(), setIsbn(java.lang.String), getAuthor(), setName(java.lang.String)] >
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:76: cannot resolve symbol
    symbol : class BookBean
    location: interface Book.Book
    public final class Book_5wlu3i__WebLogic_CMP_RDBMS extends Book.BookBean
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:760: cannot resolve symbol
    symbol : class Book_5wlu3i_Intf
    location: interface Book.Book
    Book.Book_5wlu3i_Intf beanIntf)
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i_Intf.java:39: cannot resolve symbol
    symbol : class Book_5wlu3i_Intf
    location: interface Book.Book
    (java.sql.ResultSet rs, java.lang.Integer offset, Object __WL_pk, Book.Book_5wlu3i_Intf var)
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i_ELOImpl.java:15: cannot resolve symbol
    symbol : class Book
    location: interface Book.Book
    implements Book.Book, weblogic.utils.PlatformConstants, java.io.Serializable
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i_LocalHomeImpl.java:13: cannot resolve symbol
    symbol : class BookHome
    location: interface Book.Book
    implements Book.BookHome, weblogic.utils.PlatformConstants
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i_LocalHomeImpl.java:76: cannot resolve symbol
    symbol : class Book
    location: interface Book.Book
    public Book.Book create (java.lang.Integer arg0)
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i_LocalHomeImpl.java:101: cannot resolve symbol
    symbol : class Book
    location: interface Book.Book
    public Book.Book findByPrimaryKey(java.lang.Integer arg0)
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:244: cannot resolve symbol
    symbol : variable super
    location: class Book.Book_5wlu3i__WebLogic_CMP_RDBMS
    super.setEntityContext(arg0);
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:257: cannot resolve symbol
    symbol : variable super
    location: class Book.Book_5wlu3i__WebLogic_CMP_RDBMS
    super.unsetEntityContext();
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:269: cannot resolve symbol
    symbol : variable super
    location: class Book.Book_5wlu3i__WebLogic_CMP_RDBMS
    super.ejbActivate();
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:490: cannot resolve symbol
    symbol : class Book_5wlu3i__WebLogic_CMP_RDBMS
    location: interface Book.Book
    Book.Book_5wlu3i__WebLogic_CMP_RDBMS __WL_bean = null;
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:566: cannot resolve symbol
    symbol : class Book_5wlu3i__WebLogic_CMP_RDBMS
    location: interface Book.Book
    __WL_bean = (Book.Book_5wlu3i__WebLogic_CMP_RDBMS)__WL_pm.getBeanFromRS(__WL_pk, __WL_rsInfo);
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:763: cannot resolve symbol
    symbol : class Book_5wlu3i__WebLogic_CMP_RDBMS
    location: interface Book.Book
    Book.Book_5wlu3i__WebLogic_CMP_RDBMS __WL_bean = (Book.Book_5wlu3i__WebLogic_CMP_RDBMS)beanIntf;
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:763: cannot resolve symbol
    symbol : class Book_5wlu3i__WebLogic_CMP_RDBMS
    location: interface Book.Book
    Book.Book_5wlu3i__WebLogic_CMP_RDBMS __WL_bean = (Book.Book_5wlu3i__WebLogic_CMP_RDBMS)beanIntf;
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:922: cannot resolve symbol
    symbol : variable super
    location: class Book.Book_5wlu3i__WebLogic_CMP_RDBMS
    super.ejbLoad();
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:936: cannot resolve symbol
    symbol : variable super
    location: class Book.Book_5wlu3i__WebLogic_CMP_RDBMS
    super.ejbStore();
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:950: cannot resolve symbol
    symbol : variable super
    location: class Book.Book_5wlu3i__WebLogic_CMP_RDBMS
    super.ejbRemove();
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:1051: cannot resolve symbol
    symbol : class Book_5wlu3i__WebLogic_CMP_RDBMS
    location: interface Book.Book
    case 0: __WL_loadGroup0FromRS(rs, offset, __WL_pk, (Book.Book_5wlu3i__WebLogic_CMP_RDBMS)eb); break;
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:1167: reference to + is ambiguous, both method +(java.lang.String,java.lang.String) in and method +(java.lang.String,int) in match
    if(__WL_verbose) Debug.say("setting("+this+") 'author' using column " __WL_num ". Value is " + this.author);
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:1178: reference to + is ambiguous, both method +(java.lang.String,java.lang.String) in and method +(java.lang.String,int) in match
    if(__WL_verbose) Debug.say("setting("+this+") 'isbn' using column " __WL_num ". Value is " + this.isbn);
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:1189: reference to + is ambiguous, both method +(java.lang.String,java.lang.String) in and method +(java.lang.String,int) in match
    if(__WL_verbose) Debug.say("setting("+this+") 'name' using column " __WL_num ". Value is " + this.name);
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:1200: reference to + is ambiguous, both method +(java.lang.String,java.lang.String) in and method +(java.lang.String,int) in match
    if(__WL_verbose) Debug.say("setting("+this+") 'publisher' using column " __WL_num ". Value is " + this.publisher);
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:1663: cannot resolve symbol
    symbol : variable super
    location: class Book.Book_5wlu3i__WebLogic_CMP_RDBMS
    super.ejbCreate( arg0);
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:1702: cannot resolve symbol
    symbol : variable super
    location: class Book.Book_5wlu3i__WebLogic_CMP_RDBMS
    super.ejbPostCreate( arg0);
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:1847: cannot resolve symbol
    symbol : variable super
    location: class Book.Book_5wlu3i__WebLogic_CMP_RDBMS
    super.ejbRemove();
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:1907: cannot resolve symbol
    symbol : variable super
    location: class Book.Book_5wlu3i__WebLogic_CMP_RDBMS
    super.ejbLoad();
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:1938: cannot resolve symbol
    symbol : variable super
    location: class Book.Book_5wlu3i__WebLogic_CMP_RDBMS
    super.ejbStore();
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i__WebLogic_CMP_RDBMS.java:2072: cannot resolve symbol
    symbol : variable super
    location: class Book.Book_5wlu3i__WebLogic_CMP_RDBMS
    super.ejbPassivate();
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i_LocalHomeImpl.java:80: cannot resolve symbol
    symbol : class Book
    location: interface Book.Book
    return (Book.Book) super.create(md_ejbCreate_I,
    ^
    C:\DOCUME~1\NICHOL~1.LAB\LOCALS~1\Temp\wlw_LibraryEJBProject_build\Book\Book_5wlu3i_LocalHomeImpl.java:105: cannot resolve symbol
    symbol : class Book
    location: interface Book.Book
    return (Book.Book)
    ^
    30 errors
    ERROR: ERROR: Error from ejbc: Compiler failed executable.exec
    ERROR: ERROR: ejbc couldn't invoke compiler
    BUILD FAILED
    ERROR: ERROR: Error from ejbc: Compiler failed executable.exec
    ERROR: ERROR: ejbc couldn't invoke compiler
    ======================================================
    What would be the cause of the error, would it be related to the way I create the datasource and the table? Or other causes, please help. Thank you.
    Regards,
    Nicholas Lok

    It's difficult to tell solely by the messages. One there seems to be a problem finding a base class. One thing that I notice is that the package seems to contain 'book' with a lower case 'b' as in:
    EJB name: BookBean.EJB under LibraryEJBProject\book
    Whereas all the error messages are saying that they are having trouble finding something with a package name like 'Book' with a capital 'B'.
    Perhaps that is the problem, the package has to be consistently 'book' or 'Book' and can't be both.
    Hope I'm right and hope this helps.
    thorick

  • JAXWS Webservice from WSDL - Compilation errors in schemas

    Hello,
    I am creating a webservice (Java EE1.5 JAX-WS ) from wsdl .
    When I build the artifacts in JDeveloper, I get few compilation errors related to schemas.
    Error(5412,31): com.service.gsrl.FingEvntType.FINGEVNTENTR.ROLEPLYR is already defined in com.service.gsrl.FingEvntType.FINGEVNTENTR
    •     GSRL_Vers7_Rls21.xsd and DALGSRLService.wsdl both define a ROLE_PLYR and FINGEVNTENTR element.
    There could be a conflict when mapping this to Java class names.
    Not sure if there is a way around in JAX-WS and if this is a bug.
    Any one faced this ort of issue? How to resolve this??
    Appreciate your help.
    Thanks,
    Ram

    There are few problems with your WSDL
    1. targetNamespace in schema section is missing trailing '/', it should be 'http://10.25.98.19:8080/dart/'
    2. in portType section 'fault' element is missing 'wsdl:' prefix, it should be '<wsdl:fault>'
    3. in binding section type is wrong, it should be 'tns:DartServicesImpl'
    4. Also fault element is wrongly defined in binding section it should be
    <wsdl:fault name="DARTException">
    <soap:fault name="DARTException" use="literal"/>
    </wsdl:fault>
    Hope this helps.

  • Am I wasting my time with from source compiles?

    Greetings all,
    I have a question, and it may be silly. I'm a gamer but not a hardcore "zOMG I needZ moRe powAh tHan I actUAlly n33d!" type.
    I've used Gentoo from 2002 - 2006.
    I started using Arch Linux in fall of 2006 and have used it since.
    Couple days ago I "upgraded" from my AMD 64 x2 - 2Ghz system, to a Intel Core 2 Duo E8400 3Ghz system with 4 GB Ram and Geforce 560 Ti. I installed Arch Linux and then I installed Gentoo just for nostalgic and curiosities sake, I had a working Gentoo install within a few hours. I'm not noticing that much of a difference in performance between the two, X seems to load a bit faster on Gentoo but other apps in general load the same, have same performance quality and games have about the same exact framerates. Reguardless if I use "default" USE flags or "all dependencies" USE flags (I tend to be an all dependencies type of guy -- but I did both types for my testings) im not seeing that much, if any at all, performance differences.
    I should also note that: Phoronix Test Suite actually provided better performance numbers in Arch Linux than in Gentoo Linux.
    Now my "silly" question and I want true answers and not just speculative answers.
    Am I wasting my time with Gentoo and from source compiles in general? If I generally tend to do all dep compiles, and im not seeing any performance difference reguardless if I do or don't do the all deps USE flags approach, simular gaming framerates, etc... am I really wasting my time with all the compiles and compile time? Thanks in advance.
    Last edited by Chaniyth (2011-11-21 17:08:26)

    Chaniyth wrote:.....I installed Arch Linux and then I installed Gentoo just for nostalgic and curiosities sake, I had a working Gentoo install within a few hours. I'm not noticing that much of a difference in performance between the two.....I should also note that: Phoronix Test Suite actually provided better performance numbers in Arch Linux than in Gentoo Linux. ..... Am I wasting my time with .. source compiles..?
    IME yes, if your goal is overall performance you ARE wasting your time. I have the same results in benchmarking stock Archlinux vs. the same system recompiled with CFLAGS="-march=native etc." on Sandy Bridge. The recompiled system ran slightly slower on some tests. Quite a bit faster on bzip2 compression. Better x264 performance. Much lower latencies, measured using the interbench package from AUR. But the lower latency depends primarily on the kernel.  I use linux-lqx with arch=native; it is better than linux-ck or linux-pf in my tests.
    I compile everything on my Archlinux system, using xmonad/lxpanel/rox as desktop or, when I'm in an alternate mood, KDE/rox. I don't compile from source for speed (except for math packages like sage-mathematics which can sometimes take advantage of the extra registers and SIMD instructions). I compile from source so that I have a complete system on hand. I once lived off-grid (in a cabin in the Ozark National Forest) and got in the habit of keeping my system ready for self-reliance. I enjoy having source code available for perusal and I modify a few of my packages. I use my own build script that uses meld to help me quickly bring forward my modifications into updated PKGBUILDs from the Arch repository (hey, there's no USE flags but I find that just modifying the PKGBUILD is actually cleaner, less baroque than the circular mess that can happen in Gentoo.)
    One word of caution on your Phoronix benchmarks. Phoronix Test Suite was invented for comparing hardware. It uses its own binaries for many of the tests. When looking for the effect of software changes on the same hardware you should use the changed software (obviously). To do this with PTS you need to go into the ~/.phoronix-test-suite/installed-tests/pts/<test>/ folder and move aside the folder containing the phoronix version of the binary being tested and link to your /usr directory. For example, in the sqlite test folder I move aside "sqlite_" and "ln -s /usr sqlite_"  You can figure how to get each test to run local software by looking at the script in the test folder. If you don't do this, IMO you're getting misleading results from the PTS.

  • Proc Error During C Compilation

    Hi
    I have written a proc code. I compiled it.
    The corresponding c code has been created.
    When I compile the c code using cc compiler in Unix
    platform. The following error has come.
    Undefined symbol sqlcxt
    Can not create a.out
    I am using default options for both proc and c compilation.
    Expecting early advices.
    Jeya Raman R
    null

    Hello Jeya,
    Are you including Proc file, i mean makefile. Please check there is proc.mk file in the same directory where the sample programs lies. You need to change that file according to you need.
    Good Luck
    Pankaj

  • Error while running ejbc. Fatal error from EJB Compiler ---- Error while pr

    Hi!
    I was deploying a test application for a session bean with sun 1 studio 5 and I started getting this message while deploying.
    I had tested the bean previously and I had no problems.
    I found this in the sun app server 7 release notes, but I don't understand what I'm supposed to do...
    "Deployment of CMP beans fails.
    The following error is thrown because there are no <query-params> entries in the container-managed persistence (CMP) bean in sun-ejb-jar.xml file:
    Error while running ejbc. Fatal error from EJB Compiler ---- Error while processing CMP beans.
    Solution
    Even if it isn't necessary for the CMP beans, add the query-params tag for finders in the sun-ejb-jar.xml file with the empty parameters."
    Here is my sun-ejb-jar.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Sun ONE Application Server 7.0 EJB 2.0//EN" "http://www.sun.com/software/sunone/appserver/dtds/sun-ejb-jar_2_0-0.dtd">
    <sun-ejb-jar>
    <enterprise-beans>
    <name>GestorDoBanco_EJBModule</name>
    <ejb>
    <ejb-name>Cliente</ejb-name>
    <jndi-name>ejb/Cliente</jndi-name>
    <pass-by-reference>false</pass-by-reference>
    <cmp>
    <mapping-properties>pcImpl0/moduleComp1/Data/Cliente.mapping</mapping-properties>
    </cmp>
    <refresh-period-in-seconds>600</refresh-period-in-seconds>
    </ejb>
    <ejb>
    <ejb-name>ClienteAssociadoAConta</ejb-name>
    <jndi-name>ejb/ClienteAssociadoAConta</jndi-name>
    <pass-by-reference>false</pass-by-reference>
    <cmp>
    <mapping-properties>pcImpl0/moduleComp1/Data/ClienteAssociadoAConta.mapping</mapping-properties>
    </cmp>
    <refresh-period-in-seconds>600</refresh-period-in-seconds>
    </ejb>
    <ejb>
    <ejb-name>Conta</ejb-name>
    <jndi-name>ejb/Conta</jndi-name>
    <pass-by-reference>false</pass-by-reference>
    <cmp>
    <mapping-properties>pcImpl0/moduleComp1/Data/Conta.mapping</mapping-properties>
    </cmp>
    <refresh-period-in-seconds>600</refresh-period-in-seconds>
    </ejb>
    <ejb>
    <ejb-name>GestorDoBanco</ejb-name>
    <jndi-name>ejb/GestorDoBanco</jndi-name>
    <pass-by-reference>false</pass-by-reference>
    </ejb>
    <ejb>
    <ejb-name>MensagemM003</ejb-name>
    <jndi-name>ejb/MensagemM003</jndi-name>
    <pass-by-reference>false</pass-by-reference>
    <cmp>
    <mapping-properties>pcImpl0/moduleComp1/Data/MensagemM003.mapping</mapping-properties>
    </cmp>
    <refresh-period-in-seconds>600</refresh-period-in-seconds>
    </ejb>
    <ejb>
    <ejb-name>MensagemM003Rejeitada</ejb-name>
    <jndi-name>ejb/MensagemM003Rejeitada</jndi-name>
    <pass-by-reference>false</pass-by-reference>
    <cmp>
    <mapping-properties>pcImpl0/moduleComp1/Data/MensagemM003Rejeitada.mapping</mapping-properties>
    </cmp>
    <refresh-period-in-seconds>600</refresh-period-in-seconds>
    </ejb>
    <ejb>
    <ejb-name>MensagemM012</ejb-name>
    <jndi-name>ejb/MensagemM012</jndi-name>
    <pass-by-reference>false</pass-by-reference>
    <cmp>
    <mapping-properties>pcImpl0/moduleComp1/Data/MensagemM012.mapping</mapping-properties>
    </cmp>
    <refresh-period-in-seconds>600</refresh-period-in-seconds>
    </ejb>
    <ejb>
    <ejb-name>MensagemM012Rejeitada</ejb-name>
    <jndi-name>ejb/MensagemM012Rejeitada</jndi-name>
    <pass-by-reference>false</pass-by-reference>
    <cmp>
    <mapping-properties>pcImpl0/moduleComp1/Data/MensagemM012Rejeitada.mapping</mapping-properties>
    </cmp>
    <refresh-period-in-seconds>600</refresh-period-in-seconds>
    </ejb>
    <ejb>
    <ejb-name>MensagemM103</ejb-name>
    <jndi-name>ejb/MensagemM103</jndi-name>
    <pass-by-reference>false</pass-by-reference>
    <cmp>
    <mapping-properties>pcImpl0/moduleComp1/Data/MensagemM103.mapping</mapping-properties>
    </cmp>
    <refresh-period-in-seconds>600</refresh-period-in-seconds>
    </ejb>
    <ejb>
    <ejb-name>MensagemM112</ejb-name>
    <jndi-name>ejb/MensagemM112</jndi-name>
    <pass-by-reference>false</pass-by-reference>
    <cmp>
    <mapping-properties>pcImpl0/moduleComp1/Data/MensagemM112.mapping</mapping-properties>
    </cmp>
    <refresh-period-in-seconds>600</refresh-period-in-seconds>
    </ejb>
    <ejb>
    <ejb-name>Registo</ejb-name>
    <jndi-name>ejb/Registo</jndi-name>
    <pass-by-reference>false</pass-by-reference>
    <cmp>
    <mapping-properties>pcImpl0/moduleComp1/Data/Registo.mapping</mapping-properties>
    </cmp>
    <refresh-period-in-seconds>600</refresh-period-in-seconds>
    </ejb>
    <ejb>
    <ejb-name>TransaccaoConfirmada</ejb-name>
    <jndi-name>ejb/TransaccaoConfirmada</jndi-name>
    <pass-by-reference>false</pass-by-reference>
    <cmp>
    <mapping-properties>pcImpl0/moduleComp1/Data/TransaccaoConfirmada.mapping</mapping-properties>
    </cmp>
    <refresh-period-in-seconds>600</refresh-period-in-seconds>
    </ejb>
    <ejb>
    <ejb-name>TransaccaoFinalizada</ejb-name>
    <jndi-name>ejb/TransaccaoFinalizada</jndi-name>
    <pass-by-reference>false</pass-by-reference>
    <cmp>
    <mapping-properties>pcImpl0/moduleComp1/Data/TransaccaoFinalizada.mapping</mapping-properties>
    </cmp>
    <refresh-period-in-seconds>600</refresh-period-in-seconds>
    </ejb>
    <ejb>
    <ejb-name>TransaccaoIniciada</ejb-name>
    <jndi-name>ejb/TransaccaoIniciada</jndi-name>
    <pass-by-reference>false</pass-by-reference>
    <cmp>
    <mapping-properties>pcImpl0/moduleComp1/Data/TransaccaoIniciada.mapping</mapping-properties>
    </cmp>
    <refresh-period-in-seconds>600</refresh-period-in-seconds>
    </ejb>
    <pm-descriptors>
    <pm-descriptor>
    <pm-identifier>SunONE</pm-identifier>
    <pm-version>1.0</pm-version>
    <pm-class-generator>com.iplanet.ias.persistence.internal.ejb.ejbc.JDOCodeGenerator</pm-class-generator>
    <pm-mapping-factory>com.iplanet.ias.cmp.NullFactory</pm-mapping-factory>
    </pm-descriptor>
    <pm-inuse>
    <pm-identifier>SunONE</pm-identifier>
    <pm-version>1.0</pm-version>
    </pm-inuse>
    </pm-descriptors>
    <cmp-resource>
    <jndi-name>mysqlpmanager</jndi-name>
    <default-resource-principal>
    <name>bes</name>
    <password>besbes</password>
    </default-resource-principal>
    </cmp-resource>
    </enterprise-beans>
    </sun-ejb-jar>
    Thanks in advance for any help.
    Nuno

    http://docs.sun.com/source/817-2175-10/decmp.html
    Please go to the above docs and look thru the examples given in it.
    Example 2
    This query returns all products in a specified price range. It defines two query parameters which are the lower and upper bound for the price: double low, double high. The filter compares the query parameters with the price field:
    "low < price && price < high"
    The finder element of the sun-ejb-jar.xml file would look like this:
    <finder>
    <method-name>findInRange</method-name>
    <query-params>double low, double high</query-params>
    <query-filter>low < price && price &lt
    high</query-filter
    </finder>
    I hope this hepls. In your case u just have to make it null.

  • [svn] 1625: Avoiding an NPE instead of blindly instantiating a new localization manager here when encoding the compilation result of a CSS file to a SWF to unblock QE .

    Revision: 1625
    Author: [email protected]
    Date: 2008-05-08 13:53:33 -0700 (Thu, 08 May 2008)
    Log Message:
    Avoiding an NPE instead of blindly instantiating a new localization manager here when encoding the compilation result of a CSS file to a SWF to unblock QE.
    Doc: No
    QE: Yes
    Bugs: SDK-15490 - Compiler gives nullpointer in encode of incremental compile if benchmark is set to true
    Reviewer: Paul
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-15490
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java

    Hi, thank you for your replies, I found out few things about my servlet, and its portability
    and i have few questions, although i marked this topic as answered i guess its ok to post
    I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
    of the modified files to the user for them to download the modified files.
    What i am using to get the tempdir i will paste
    File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
    System.out.println(baseurl);
    baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
    baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
    links to the user for download ?
    and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
    And i want to create unique directory for each request made to the servlet , so file names dont clash.
    one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
    Reply A.S.A.P. please..
    Thanks and regards,
    Mihir Pandya

  • How to compile and run a .java file from another java program

    hello,
    can any one tell me how to compile and run a *.java* file from another java program which is not in same directory?

    Well a smarter way of implementing this is by using a solution provided by Java Itself.
    If you are using J2SE 6.0+ there is an in built solution provided along with JDK itself and inorder to go ahead with solution the below are set of API which you;d be using it for compiling Java Programs (Files)
    http://java.sun.com/javase/6/docs/api/javax/tools/package-summary.html
    How do i do that ??
    Check out the below articles which would help you of how to do that
    http://www.ibm.com/developerworks/java/library/j-jcomp/index.html
    http://www.javabeat.net/javabeat/java6/articles/java_6_0_compiler_api_1.php
    http://books.google.com/books?id=WVbpv8SQpkEC&pg=PA155&lpg=PA155&dq=%22javax+tools%22+compiling+java+file&source=web&ots=XOt0siYe-f&sig=HH27ovuwvJgklIf8omTykUmy-eM
    Now once we are done with compilation.In order to run a Specific class all you ought to do is create an object and its specific methods of a specified class included in the CLASSPATH which you can manage it easily by usage little bit reflections.
    Hope that might help :)
    REGARDS,
    RaHuL

  • I want to set deadlock priority of a stored proc to low so that when ever any one call it from entity or command object it should use same priority

    Hi,
       I want to set deadlock priority of a stored proc to low so that when ever any one calls it from entity or command object it should use same priority.
    some body sugested to put 
    set deadlockprioirty low 
    go
    exec yourSP()
    but in this case i have to change my bussiness layer.
    is there any other way from database which do the task?
    yours sincerley.

    You can modify your stored procedures and add the code line
    set deadlock_priority low
    at the very beginning of the SP.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • JAXB: Error compiling classes generated by xjc (file name too long)

    Hi friends,
    I am trying to compile classes that are generated by using XJC tool on xsd file. The compilation fails with following message.
    buildxsdmodel:
        [javac] Compiling 794 source files to /home/uchamad/working/teleworker/ejb/build/classes
        [javac] /home/uchamad/working/teleworker/ejb/build/tmpsrc/uk/co/novatel/teleworker/model/wlr/bulksearch
    results/impl/ApplicationInformationTypeImpl.java:58372: error while writing
    uk.co.novatel.teleworker.model.wlr.bulksearchresults.impl.ApplicationInformationTypeImpl.XMLRequestID
    TypeImpl.SearchOrderResultsTypeImpl.SearchTypeDetailTypeImpl.OrderTypeImpl.OrderDetailsTypeImpl.
    OrderLinesTypeImpl.NumberPortingTypeImpl.OLODetailsTypeImpl.NumberLocationTypeImpl.OLOMainP
    STN1AddressTypeImpl.Unmarshaller: /home/uchamad/working/teleworker/ejb/build/classes/uk/co/novatel
    /teleworker/model/wlr/bulksearchresults/impl/ApplicationInformationTypeImpl$XMLRequestIDTypeImpl$S
    earchOrderResultsTypeImpl$SearchTypeDetailTypeImpl$OrderTypeImpl$OrderDetailsTypeImpl$OrderLin
    esTypeImpl$NumberPortingTypeImpl$OLODetailsTypeImpl$NumberLocationTypeImpl$OLOMainPSTN1A
    ddressTypeImpl$Unmarshaller.class (File name too long)
        [javac]                                             public class Unmarshaller
        [javac]                                                    ^
        [javac] 1 error
    The compiler is complaining about the file name being too long. This is happening because the java classes when generated from XSD contains deep nesting of inner classes. So when it comes to compile the .class name file is too long for the operating system.
    I am trying this on unix box.
    I wonder if there is a way to configure XJC so that it does not produce inner classes but instead keep them out.
    Any help would be appreciated.
    many thanks
    Usmangani

    Flattening your schema definition will flatten the output files, too -- that will probably be nice for coding as well since you wont have to use class names such as SomeTypeNestedInAnotherTypeThatHasYetAnotherType. Instead of having all of the elements defined directly within the enclosing root element, define logical chunks at the top level and incorporate them in the definition of real root element of your documents by reference.

  • How to Compile (Overwrite .Fmx) if fmx file is opened?

    Hi,
    How to Compile (Overwrite .Fmx) if fmx file is opened? Is there any parameter to be set on server or something else?
    i am using 10g application server

    I think W1zard is refering to the setting/usage of FORMS_MMAP=FALSE, which means NOT working with memory mapping, that is the problem.
    Both metalink notes advise against Setting FORMS_MMAP=FALSE in Production environments.
    I also found another website where they advise against it for Production environments.
    We do not use it because of that...
    Excerpt from Metalink note 151618.1 - Unable to Replace .fmx Files 'On The Fly' During Forms Runtime
    When the FORMSxx_MMAP value to 0 or FALSE, Oracle Forms by-passes the default memory mapping
    and writes the file to memory for each time accessed. Thus, the executables are left closed
    on the file system, allowing for updates even during Forms Runtime. The disadvantage is that
    this may increase memory usage and reduce performance because the whole file structure
    is loaded into memory.
    For production systems, it is recommended that FORMSxx_MMAP should be unset or set to a value of 1 or TRUE
    Excerpt from Metalink note 286762.1 - How to Replace Forms Runtime Files in Production Environments 'On The Fly'
    One solution for this problem is to use parameter FORMS_MMAP/FORMS90_MMAP/
    FORMS60_MMAP/FORMS50_MMAP/FORMS45_MMAP as described
    in the following document :
    Note 151618.1 "Unable to Replace .fmx Files 'On The Fly' During Forms Runtime"
    However as described in this document, this parameter should not be used in production
    environments.http://orafrm.blogspot.com/2007/07/formsmmap.html
    Edited by: Rodolfo Ferrari on Jul 8, 2009 9:09 PM

Maybe you are looking for