PCC-S-02015, unable to open include file(gnu/stubs-32.h)

Hi,
I was trying to precompile one of the sample files from the "Pro*C/C++ Precompiler
Programmer’s Guide" and I got this error message:
Fehler in Zeile 7, Spalte 11, in Datei /usr/include/gnu/stubs.h
# include <gnu/stubs-32.h>
..........1
PCC-S-02015, Einfügedatei konnte nicht geöffnet werden.
(Which means "unable to open include file")
I couldn't find any an answer on the forum, so I figured it out for myself.
I just wanted to post it so in case somebody else faces the same problem, they would have the solution here.
The machine is a virtual Linux host running on a 64Bit architecture, so I was surprised why is it looking for stubs-32.h and not stubs-64.h.
The answer is in the stubs.h file:
#include <bits/wordsize.h>
#if __WORDSIZE == 32
# include <gnu/stubs-32.h>
#elif __WORDSIZE == 64
# include <gnu/stubs-64.h>
#else
# error "unexpected value for __WORDSIZE macro"
#endifSo let's check the bits/wordsize.h file:
#if defined __x86_64__
# define __WORDSIZE     64
# define __WORDSIZE_COMPAT32    1
#else
# define __WORDSIZE     32
#endifSo I figured out you can define __x86_64__ in two places:
The file: precomp/admin/pcscfg.cfg
Most probably you just need to add define=__x86_64__ and that should do the trick.
Unfortunately I couldn't try it because I didn't have write permission on that file.
The other way is to pass it in the command line:
proc sample1.pc MODE=ORACLE DEFINE=__x86_64__+
This way the precompiler created the output .c file without errors.
Cheers
PS: Don't try to define the __x86_64__ in the .pc file, or you'll get a warning when you compile the .c file. Not a big deal, just desn't look good :-D
Edited by: VincentFreeman on Feb 12, 2009 4:09 AM
Edited by: VincentFreeman on Feb 12, 2009 4:16 AM

Ideally speaking your pcscfg.cfg should have the paths to the directories where you will be getting all your headers from
Based on what linux flavor & version of gcc you have the following directory will have the headers you are missing
/usr/lib/gcc/ABC-XYZ-linux/<gcc_version_no>/include
where ABC could be i386/i586 depending on the hardware and XYZ could be the linux flavor like redhat/suse/whatever you have

Similar Messages

  • Pro*C/C++ generates error "PCC-S-02015, unable to open include file"

    I'm running a .pc file through the pre-compiler (on Windows 7x64 with instant client 12.1) and get the following error:
    Error at line 78, column 1 in file XXX.pc
    EXEC SQL INCLUDE SQLCA;
    1
    PCC-S-02015, unable to open include file
    If I change the content of my file to the following
    #include "sqlca.h"
    //EXEC SQL INCLUDE SQLCA;
    the pre-compiler does it's job nicely.
    My pcscfg.cfg looks like this:
    include="C:\PROGRA~2\Oracle\INSTAN~1\sdk\include"
    include="C:\PROGRA~2\MICROS~2.0\VC\include"
    define=(WIN32_LEAN_AND_MEAN)
    DEFINE=_WSTDIO_DEFINED
    Has there been a change in the syntax of Pro*C or why can't it resolve the EXEC SQL INCLUDE?
    PS: I'm an absolute newbie to this and am trying to get to compile some veeery old code, build under instant client 9/10/11)

    Karl Esau (guest) wrote:
    : Hi,
    : I have problems to get the precompiler running - executing the
    : precompiler leads to a segfault.
    I meanwhile solved the problem, so that I can compile and
    run the samples.
    a strace on 'proc' showed:
    open("/oracle/precomp/public/SQLCA.H", O_RDONLY) = -1 ENOENT
    (Nosuch file or directory)
    I made a symbolic link for an upper case SQLCA.H, needed to add
    SQLCHECK=SEMANTICS in ~/precomp/admin/pcscfg.cfg and one more
    lib for the make: /lib/libdl.so.2 because 'dlclose' and other
    symbols were undefined.
    bye
    Karl Esau
    null

  • SegFault PCC-S-02015 unable to open include file

    Hi,
    I have problems to get the precompiler running - executing the
    precompiler leads to a segfault.
    btw: don3t have ORACLE_HOME/precomp/demo/proc
    oracle@los13529 > make -f demo_plsql.mk examp9
    sqlplus scott/tiger @exampbld </dev/null
    System default option values taken from:
    /oracle/precomp/admin/pcscfg.cfg
    Error at line 53, column 1 in file examp9.pc
    EXEC SQL INCLUDE SQLCA;
    1
    PCC-S-02015, unable to open include file
    make[1]: *** [examp9.o] Segmentation fault
    make[1]: Leaving directory `/oracle/plsql/demo'
    make: *** [examp9] Error 2
    a 'strace' says:
    oracle@los13529:/oracle/plsql/demo > strace proc examp9
    open(ptrace: umoven: Input/output error
    0x85a7dc0, O_RDONLY) = -1 ENOENT (No such file or directory)
    i have to admit, i had to change /oracle/precomp/admin/pcscfg.cfg
    as follows and set two links in order to fix include errors on
    stdarg.h and stddef.h:
    /oracle/precomp/admin/pcscfg.cfg:
    sys_include=(/usr/include)
    include=(/oracle/precomp/public)
    include=/oracle/precomp/hdrs
    include=/oracle/tpcc2x_2/src
    include=/oracle/precomp/include
    include=/oracle/oracore/include
    include=/oracle/oracore/public
    include=/oracle/rdbms/include
    include=/oracle/rdbms/public
    include=/oracle/rdbms/demo
    include=/oracle/nlsrtl/include
    include=/oracle/nlsrtl/public
    include=/oracle/network_src/include
    include=/oracle/network_src/public
    include=/oracle/network/include
    include=/oracle/network/public
    include=/oracle/plsql/public
    ltype=short
    oracle@los13529 > l /usr/include/std[ad]*
    lrwxrwxrwx 1 root root 57 Mar 15 10:18 /usr/include/stdarg.h
    -> /usr/lib/gcc-lib/i486-linux/egcs-2.91.60/include/stdarg.h
    lrwxrwxrwx 1 root root 57 Mar 15 10:18 /usr/include/stddef.h
    -> /usr/lib/gcc-lib/i486-linux/egcs-2.91.60/include/stddef.h
    system related info:
    oracle@los13529:/oracle/plsql/demo > uname -a
    Linux los13529 2.2.3 #1 Wed Mar 10 14:54:34 MET 1999 i586
    unknown
    oracle@los13529:/oracle/plsql/demo > cc --version
    egcs-2.91.60
    path/environment-settings seem to be proper:
    johndoe@los13529:/home/johndoe > set|grep orac
    LD_LIBRARY_PATH=:/oracle/lib
    ORACLE_BASE=/oracle
    ORACLE_HOME=/oracle
    ORACLE_PATH=/oracle/sqlplus
    ORA_NLS32=/oracle/ocommon/nls/admin/data
    ORA_NLS33=/oracle/ocommon/nls/admin/data
    PATH=/oracle/bin:/oracle/buildtools/bin:/usr/local/bin:/usr/bin:
    /usr/X11R6/bin:/bin:/usr/games/bin:/usr/games:/opt/kde/bin:.
    TNS_ADMIN=/oracle/network/admin
    ora/listener-connect is OK, even ODBC from a W95-client works:
    johndoe@los13529:/home/johndoe > sqlplus scott/tiger@quad
    SQL*Plus: Release 8.0.5.0.0 - Production on Mon Mar 15
    14:8:18 ...
    SQL> select count(*) from tab;
    COUNT(*)
    17
    SQL> exit
    Disconnected from Oracle8 Release 8.0.5.0.0 - Production
    PL/SQL Release 8.0.5.0.0 - Production
    please give me a hint. mailto:[email protected]
    null

    Karl Esau (guest) wrote:
    : Hi,
    : I have problems to get the precompiler running - executing the
    : precompiler leads to a segfault.
    I meanwhile solved the problem, so that I can compile and
    run the samples.
    a strace on 'proc' showed:
    open("/oracle/precomp/public/SQLCA.H", O_RDONLY) = -1 ENOENT
    (Nosuch file or directory)
    I made a symbolic link for an upper case SQLCA.H, needed to add
    SQLCHECK=SEMANTICS in ~/precomp/admin/pcscfg.cfg and one more
    lib for the make: /lib/libdl.so.2 because 'dlclose' and other
    symbols were undefined.
    bye
    Karl Esau
    null

  • Problem! To compile Samples PCC-F-NOERRFILE, unable to open error message file

    make -f demo_proc.mk sample1
    make -
    f /u2/oracle/base/product/8.0.5/precomp/demo/proc/demo_proc.mk
    OBJS=sampld
    make[1]: Entering directory
    `/u2/oracle/base/product/8.0.5/precomp/demo/proc'
    /u2/oracle/base/product/8.0.5/bin/proc iname=sample1
    PCC-F-NOERRFILE, unable to open error message file, facility PR2
    make[1]: *** [sample1.o] Error 1
    make[1]: Leaving directory
    `/u2/oracle/base/product/8.0.5/precomp/demo/proc'
    make: *** [sample1] Error 2
    null

    Cross-posted:
    http://stackoverflow.com/questions/19534883/oracle-proc-gives-error-pcc-f-noerrfile-unable-to-open-error-message-file-fac

  • Unable to open .chm file from a link in Weblogic 7.0

    Unable to open .chm file from a link in weblogic server. But the same
    jsp code works in Websphere
    Sample Code :
    <!-- < a href="JavaScript:window.navigate('help/manual.CHM')">
    Linked Text</a> -->
    The above link, works well in websphere. help is a folder that
    resides in the server. But when i tried to execute the same in
    Weblogic, some junk characters appeared . so i tried to direct the
    link to Display.jsp and passed the path of the chm file as the
    parameter. I cleared teh out buffer using out.clearBuffer() . i set
    the content type to application/x-msdownload and also set the header
    to content disposition.
    Nothing worked .
    I also tried another way.. That is the following
    I even tried including the mime type
    <mime-mapping>
    <extension>chm</extension>
    <mime-type>application/x-msdownload</mime-type>
    </mime-mapping>
    in the web.xml file. and still it doesnt work
    Nothing Worked . What should i do ? I need immediate help to sort out
    this issue. Can anybody help me
    - Angel

    This could be a Launch Services issue. The following article describes how to manually reset Launch Services — the notes at the bottom of the article also provide information about the side effects of deleting each of the files involved:
    Resetting Launch Services
    If you prefer using a cache cleaning utility instead of following the manual procedure described in the previous article, take a look at this other article for general troubleshooting and cache-cleaning procedures. Actually, you should also verify/repair the startup disk (not just permissions), as described there:
    Resolving Disk, Permission, and Cache Corruption
    The most appropriate utility for this particular problem probably is Tiger Cache Cleaner, but you may also want to consider other utilities, such as OnyX, or Cache Out X, which are free. Whatever utility you choose, be sure to read this first:
    Side effects of System cache cleaning
    As an example, this is how you should proceed with OnyX:
    1. Quit all applications.
    2. Launch OnyX and enter your administrator password.
    3. Go to Maintenance > Reset and check LaunchServices database.
    4. Un-check any other pre-checked options.
    5. Click the Execute button.
    6. Restart the computer.
    BTW, if you’re running Mac OS X 10.4 (Tiger), as your profile indicates, it would have been more appropriate to discuss this in the Mail & Address Book - Tiger forum. If the discussion applies to both Mail 1.x and Mail 2.x, it doesn’t really matter, but it’s difficult to know that in advance.

  • Unable To Open Any Files In Photoshop CC

    Hi All,
    I am unable to open any file formats in my trial version of Photoshop CC. This problem seems to occur daily and the only way to resolve it is by restarting my laptop?
    File formats I am trying to open include a new PSD file, old PSD files and also jpg files, png files and pdf files.
    I am using an HP ProBook laptop but not sure of the model number.
    Any help to prevent this from happening would be greatly appreciated and if anyone needs anymore information don't hesitate to ask me?
    Thanks

    Allyson,
    Another welcome here.
    Along with the answers to Trevor's questions, how are you attempting to Open those Image files, i.e. Dbl-clicking on them in Windows Explorer, or from the File>Open menu in the Toolbar? If you are using the former, please try the latter. If you want to work from Windows Explorer, Rt-click on the file, and choose Open With, then Photoshop.
    Your comment about WMP being the default viewing program, seems to indicate that your File Associations have been changed, with WMP now set as the target program. If this is the case, then you will likely want to go to Folder Options (check for your specific version of Windows), and reset the File Associations for, say PSD, PSB, JPEG, etc., to point to Ps.
    Good luck,
    Hunt

  • Procob32 err: "PCB-F-NOERRFILE , unable to open message file, facility PCB"

    procob32 gives errmsg: "PCB-F-NOERRFILE , unable to open message file, facility PCB"
    I have installed from linux.x64_11gR1_database_1013.zip
    An old post said there should be files at $ORACLE_HOME/precomp/mesg/pcb*.msg (1st file with pc* is pccus.msb)
    An old post suggested I had to install the CLIENT as well as the server ?
    BUT I do not see how to install the client, It seems it is now included with 11g ?
    Hope somebody knows what the problem is
    Thanks, [email protected]

    Hi
    Have you read the following note? :
    Doc ID:      Note:351034.1
    Subject:      Pro*COBOL Precompilation Fails With PCB-F-NOERRFILE
    I do not see how to install the client, It seems it is now included with 11g ?
    Herewith all the 11g documentation
    http://www.oracle.com/pls/db111/homepage
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28428/pco14opt.htm#i12295
    By the way have you tried as root to do
    find / -name "pcb*.msg"
    is something installed`?

  • I am unable to open raw files from my Canon T1i in Adobe Camera Raw of my version CS3 of Photoshop.  I have tried to update my ACR by downloading version 4.6 from the Adobe website but I am still unable to open raw files, just JPEG.  Is there a way to use

    I am unable to open raw files taken on my Canon Rebel T1i in my version of Photoshop CS3.  When I import raw files into Bridge they come up as patches with CR2 on them and when clicked on, a notice comes up stating that Photoshop does not recognize these files.  I tried to update my Adobe Camera Raw by downloading version 4.6 from the Adobe Website, but when I clicked on the plus-in, I got another message that Photoshop does not recognize this file.  I spoke with a representative from Canon who said that I could not update CS3 and that I should subscribe to the Cloud.  I would prefer to use my CS3, if possible.  Can anyone advise me what to do?

    The T1i was first supported by Camera Raw 5.4 which is only compatible with CS4 and later
    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications
    Some options:
    Upgrade to CS6
    Join the Cloud
    Download the free Adobe DNG converter, convert all T1i Raw files to DNGs then edit the DNGs in CS3
    Camera raw, DNG | Adobe Photoshop CC

  • ERROR: Unable to open TUXCONFIG file

    Hi,
    I installed and installed the following software successfully on Windows XP
    Oracle WebLogic Server 11gR1 (10.3.1) Microsoft Windows
    PeopleSoft Enterprise PeopleTools 8.50
    PeopleSoft Enterprise Human Resources Management System 9.1 - Revision 2
    Tuxedo 10gR3 for MS Windows Server 2003 w/MS VS 2005 (32-bit x86, AMD64/EM64T x64) 32-bit
    i am at the point of installing the Application Server. Domain created sucessfully but i got boot errors as shown below.
    I searched for the TUXCONFIG file but could not find it in the tuxedo installation folder.
    I read that i have to create the TUXCONFIG,if missing, using tmloadcf.exe and the ubbconfig file, but the only UBBCONFIG file is located in "\samples\atmi\rpcsimp\" folder.
    How do i create the TUXCONFIG file?
    Did i miss something with the installation? What location should this file exist after your tuxedo installation?
    thanks
    K
    BOOT ERRORS:
    PeopleSoft Domain Boot Menu
    Domain Name: hrms
    1) Boot (Serial Boot)
    2) Parallel Boot
    q) Quit
    Command to execute (1-2, q) [q]: 1
    Attempting to boot bulletin board...
    tmadmin - Copyright (c) 2007-2008 Oracle.
    Portions * Copyright 1986-1997 RSA Data Security, Inc.
    All Rights Reserved.
    Distributed under license by Oracle.
    Tuxedo is a registered trademark.
    No bulletin board exists. Entering boot mode.
    115818.SU1491!PSWATCHSRV.5832.6140.-2: LIBTUX_CAT:1519: ERROR: TUXCONFIG value (C:\Documents an
    d Settings\klondon\psft\pt\8.50\appserv\hrms\PSTUXCFG) is longer than the allowed length of 64
    115818.SU1491!PSWATCHSRV.5832.6140.-2: LIBTUX_CAT:588: ERROR: Unable to open TUXCONFIG file
    115818.SU1491!PSWATCHSRV.5832.6140.-2: LIBTUX_CAT:6272: ERROR: Unable to get bulletin board par
    ameters
    115818.SU1491!tmboot.2652.1488.-2: CMDTUX_CAT:825: ERROR: Process PSWATCHSRV at SU1491 failed w
    ith /T tperrno (TPESYSTEM - internal system error)
    115818.SU1491!tmboot.2652.1488.-2: tmboot: CMDTUX_CAT:827: ERROR: Fatal error encountered; init
    iating user error handler
    115821.SU1491!BBL.2956.4352.0: CMDTUX_CAT:26: INFO: The BBL is exiting system
    115825.SU1491!PSADMIN.3088: End boot attempt on domain hrms
    Edited by: user2932595 on Apr 17, 2010 1:17 PM
    Edited by: user2932595 on Apr 17, 2010 1:21 PM

    Hi
    The TUXCONFIG file normally is created automatically when you create your domain.
    In this case I think you ran into trouble because the path of installation is too long!
    Note the error in your log:
    115818.SU1491!PSWATCHSRV.5832.6140.-2: LIBTUX_CAT:1519: ERROR: TUXCONFIG value (C:\Documents and Settings\klondon\psft\pt\8.50\appserv\hrms\PSTUXCFG) is longer than the allowed length of 64
    Your path is 69 chars long!
    I would suggest that you re-try the configuration with a shorter tuxedo and PS_HOME: perhaps in the root directory (c:\PSHOME)
    In the past I've also noticed that installations have problems with paths that have spaces - ex: 'Documents and settings' , so I would avoid that as well.
    Edited by: Alternate on Apr 19, 2010 2:00 AM

  • ERROR: Unable to open structapps file!

    Hello,
    Having modified the structapps.fm in FM10, I am getting the following error within a dialog when attempting to use the same file in FM8:
    ERROR: Unable to open structapps file! FA_errno -43
    Is FM not backward compatible ? OR do I need to reread the file in FM8
    Thanks

    The file should be saved in the FM version that you're using it in. You can't use any newer FM version file in any older version of FM, e.g. FM8 can't open any FM10 files (except for the MIF formats).

  • ZAV 10 - Unable to open parameter file error

    When trying to launch a ZAV 10 app, C-Cure Administration Console, users are getting an error "**Unable to open parameter file cc800cl.pf, errno 2. (1247)". This only appears to be happening on Win7. This did work when first created, but after a few weeks the error has started to pop-up.

    If this was working and is not now, and you are certain nothing has changed on the client systems (or at least nothing that could interfere here), then this might be an issue with the license used when building the application. What is the expiry date of your license and was it applied prior to building this exe?
    If this isn't expiring please open an SR for this issue, if you can. This is the information the support team will require:
    - Copies of any warnings or errors around the time the issue occurs (or a copy of the application and system event logs, in .evtx format)
    - A copy of the exe you are using
    - If you can build the exe again as a diagnostic-mode executable and provide the diagnostics generated when attempting to run, that can be very helpful
    - It may also be required that you send installation media for the application and your build process, so the team can attempt to reproduce the issue in-house
    - You will also typically be asked for the .xappl file and associated Files folder, if reproducing in-house is required. This will become absolutely necessary if a ticket needs to be filed with Spoon, so sending it ahead of time is a good idea

  • "Unable to open config file" Error when starting tomcat

    hi all,
    Here is the output from two of the log files when I start tomcat4 on my linux box. I have configured the mod_jk on the tomcat side.
    From the output of the second log file, it seems that the ajp13 worker I defined was started successfully. What I don't understand is the following:
    1) In catalina.out, where des the line 'Unable to open config file' come from? Which config file?
    2) Tomcat4 is supposed to generate a mod_jk.conf automatically, but I don't see any file generated in 'conf/auto/'.
    Content of 'catalina.out'
    Unable to open config file
    Starting service Tomcat-Standalone
    Apache Tomcat/4.0.4
    Unable to open config file
    Starting service Tomcat-Apache
    Apache Tomcat/4.0.4content of 'catalina_log.2002-08-16.txt'
    2002-08-16 01:05:22 HttpConnector Opening server socket on all host IP addresses
    2002-08-16 01:05:28 Ajp13Connector[8009] Opening server socket on all host IP addresses
    2002-08-16 01:05:28 Ajp13Connector[8009] Starting background thread
    2002-08-16 01:05:29 Ajp13Processor[8009][0] Starting background thread
    2002-08-16 01:05:29 Ajp13Processor[8009][1] Starting background thread
    2002-08-16 01:05:29 Ajp13Processor[8009][2] Starting background thread
    2002-08-16 01:05:29 Ajp13Processor[8009][3] Starting background thread
    2002-08-16 01:05:29 Ajp13Processor[8009][4] Starting background thread

    I have all those files too.
    I think the 'config file' mentioned in the error log is the mod_jk.conf.
    On Jason Hunter's tomcat4 guide, it says don't use the tomcat4 RPM to installed. What is the difference bettween the RPM version and the tar.gz version? The only difference I can think of is that in the RPM version, the conf directory is in the 'etc/tomcat4/conf'. Could it be the reason that tomcat4 cannot read the config file? But it has no problem reading the server.xml though.

  • "Unable to open project file" Error Message

    I pulled an all-nighter (13 hours of editing) last night to create a critical project in FCE 3.5.1 on my Intel iMac running 10.4.11 then left this afternoon for a few hours and shut down my machine. Came back tonight and tried to open the project (which I saved on my Maxtor 1 TB external drive along with all of the scratch disk files). To my absolute panic, it won't open the file now with an error message that simply says, "Unable to open project file". HELP!!!! Anyone have any suggestions?!?!

    In the past I found (and reported to Apple Feedback) the same bug Steve reports here, but I should recall that the problem:
    - only appeared in PAL projects (probably not the case for kscritch) - never heard of it in NTSC
    - was consistent in FCE 3.x, not so in FCE 4
    I made tests importing .psd images with transparency into PAL projects using FCE 4, and I had various behaviours: sometimes the project worked, sometimes I couldn't open the project again (as in FCE 3), sometimes I had error messages with inconsistent behaviour (msg like "file error", but the project opened and file was there...), etc. so I decided to do without.
    Now I only import .tif or .png images when I need transparency
    Piero

  • Unable to open pst file error details access to the path is denied

    Hello,
    iam trying to do a mailboximport-request from a QNAP-nas that is member of the domain.
    When doing the mailboximport i am getting the following error : unable to open pst file error details access to the path is denied.
    Which permissions do i need to have on the folder/file on the qnap to import the .pst-file?
    Thx

    Move your PST files to a windows server.  Exchange Trusted Subsystem is a universal group in Active Directory.
    Read more here: http://technet.microsoft.com/en-us/library/ee633455(v=exchg.141).aspx#Pre
    Mike Crowley | MVP
    My Blog --
    Planet Technologies

  • "Unable to Open Project File" - error

    Does anyone know how to resolve an "Unable to Open Project File" - error. I accidentally shut down my computer wrong, although Final Cut wasn't open.

    Welcome to the forums.
    The project file might have gotten corrupted. Look for the AUTOSAVE VAULT (typically in the DOCUMENTS>FINAL CUT PRO DOCUMENTS folder) and open the most recent version. Copy it to your main project folder if it works.
    If not, then try trashing your prefs with FCP Rescue.
    Shane

Maybe you are looking for