/usr/include/AvailabilityInternal.h:4098:10: error:

I have recently updated the Xcode.
When I try to compile a c code (xsfconvert) I get the following error
make
cpp  -DPROGNAME='"lm2xsf"' lm_main.c  tmp.c
In file included from lm_main.c:17:
In file included from ./lm_all.h:16:
In file included from /usr/include/stdio.h:65:
In file included from /usr/include/Availability.h:148:
/usr/include/AvailabilityInternal.h:4098:10: error: #else without #if
        #else
         ^
/usr/include/AvailabilityInternal.h:4158:10: error: unterminated conditional directive
        #if __MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_6
         ^
/usr/include/AvailabilityInternal.h:4131:10: error: unterminated conditional directive
        #if __MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_5
         ^
/usr/include/AvailabilityInternal.h:4108:10: error: unterminated conditional directive
        #if __MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_4
         ^
4 errors generated.
make: *** [lm_main.o] Error 1
Since this is an Apple distributed file, I am reluctant to fix the error myself. What is wrong? The strange nested ifs are intentional? Or my Xcode update through app-store went wrong somehow?
update:
I have installed fink compilers, and they do work. Thus, I conclude Xcode is broken.

I am fully aware that the problem is in the preprocessor.
I wouldn't call not being able to preprocess anything that does not have apple specific flags as working "fine". 
I had to switch to fink supplied compiler suite (which includes an alternative preprocessor) even for Quantum Espresso. It was compiling reasonably well with slighthly modified gcc settings before the update.
Last, but not the least, the aforementioned include file has nothing to do with fink.

Similar Messages

  • Cannot upgrade PCManFM: libfm: /usr/include/libfm exists in filesystem

    Hey,
    It's been a few days now that I am not able anymore to mount any usb stick or external hdd with PCManFM.
    Maybe it's related to this news: "ConsoleKit replaced by logind" by if that's the case I don't know how to deal with it.
    Anyway, I thought that a pacman -Syu could be a good start, I happily saw a upgrade of libfm & pcmanfm was available, but I can't get the upgrade done:
    [david@laptop ~]$ sudo pacman -Syu
    [sudo] password for david:
    :: Synchronizing package databases...
    core is up to date
    extra                   1424.5 KiB   510K/s 00:03 [######################] 100%
    community               1775.9 KiB   572K/s 00:03 [######################] 100%
    multilib is up to date
    :: Starting full system upgrade...
    resolving dependencies...
    looking for inter-conflicts...
    Targets (2): libfm-1.1.0-1  pcmanfm-1.1.0-1
    Total Download Size:    0.60 MiB
    Total Installed Size:   4.86 MiB
    Net Upgrade Size:       -1.16 MiB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from community...
    libfm-1.1.0-1-x86_64     455.3 KiB   304K/s 00:01 [######################] 100%
    pcmanfm-1.1.0-1-x86_64   160.5 KiB   502K/s 00:00 [######################] 100%
    (2/2) checking package integrity                   [######################] 100%
    (2/2) loading package files                        [######################] 100%
    (2/2) checking for file conflicts                  [######################] 100%
    error: failed to commit transaction (conflicting files)
    libfm: /usr/include/libfm exists in filesystem
    Errors occurred, no packages were upgraded.
    If it can be of anyhelp:
    My .xinitrc:
    #!/bin/sh
    # ~/.xinitrc
    # Executed by startx (run your window manager from here)
    if [ -d /etc/X11/xinit/xinitrc.d ]; then
      for f in /etc/X11/xinit/xinitrc.d/*; do
        [ -x "$f" ] && . "$f"
      done
      unset f
    fi
    exec openbox-session
    # exec gnome-session
    # exec startkde
    # exec startxfce4
    # ...or the Window Manager of your choice
    Thank you !

    Every installed package provides /var/lib/pacman/local/$package-$version/files file that contains metadata about this package. If this file gets corrupted - is empty or missing - it results in "file exists in filesystem" errors when trying to update the package. Such an error usually concerns only one package and instead of manually renaming and later removing all the files that belong to the package in question, you can run pacman -S --force $package to force pacman to overwrite these files.
    Do not run pacman -Syu --force.
    https://wiki.archlinux.org/index.php/Pa … stem.22.21

  • /usr/include/libusb-1.0/libusb.h error update with libusb1

    Hi,
    today I run pacman -Syu but I have problem with core/libusb instead libusb1 update
    errore: impossibile eseguire l'operazione richiesta (file in conflitto)
    libusb: /usr/include/libusb-1.0/libusb.h è già presente nel filesystem
    libusb: /usr/lib/libusb-1.0.a è già presente nel filesystem
    libusb: /usr/lib/libusb-1.0.so è già presente nel filesystem
    libusb: /usr/lib/libusb-1.0.so.0 è già presente nel filesystem
    libusb: /usr/lib/libusb-1.0.so.0.0.0 è già presente nel filesystem
    libusb: /usr/lib/pkgconfig/libusb-1.0.pc è già presente nel filesystem
    Si sono verificati degli errori, nessun pacchetto è stato aggiornato.
    Try force update?
    tnx

    I tried bauerbill -Syu and it failed with the same errors.  Using pacman -Syu instead, I was prompted for a replacement, I think it was to replace libusb1 with libusb and there were no errors.
    Seems like its a common failure of pacman/libalpm wrappers.
    Last edited by jowilkin (2010-12-08 09:57:36)

  • Getting syntax error in /usr/include/sys/ header files during Compilation

    Hi,
    I am migrating old PRO C code from Oracle 8 + Solaris 8 to Oracle 10 + Solaris 10 environment. While compiling the code it is giving error :*
    Syntax error at line 69, column 2, file /usr/include/sys/uio.h:
    Error at line 69, column 2 in file /usr/include/sys/uio.h
    lloff_t uiooffset; /* file offset */
    .1
    PCC-S-02201, Encountered the symbol "lloff_t" when expecting one of the followin
    g:
    } char, const, double, enum, float, int, long, ulong_varchar,
    OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
    OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
    OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
    struct, union, unsigned, utext, uvarchar, varchar, void,
    volatile, a typedef name,
    The symbol "enum," was substituted for "lloff_t" to continue.
    Any guess why this is happening?

    Hi,
    Try using the PARSE=PARTIAL USERID=user/password[@SID] SQLCHECK=SEMANTICS precompiler options.
    All your hosts variables must be declared inside a Declare section.
    Reference: Pro C/C++ Programmers Guide, chapter 5
    Reguards,
    Rene Rivet

  • /usr/include/libxml2/libxml ???

    I'm trying to compile a little contrib package in postgresql and I found something strange.
    The package requires libxml2 headers to compile. Default installation path for arch libxml2 package is under /usr/include/libxml2/libxml.
    Application tries to include (for example) libxml/xpath.h and it fails to find the file. Of course I can change it to libxml2/libxml/xpath.h, but then in xpath.h there is "#include <libxml/xmlversion.h>" which (of course :-)) fails again.
    I made a link /usr/include/libxml which points to /usr/include/libxml2/libxml and then I can compile the application without errors.
    Now, I don't know much about libxml2 and I'm just not sure if the default config is ok or is it a bug?
    Should the libxml2 package make a link mentioned above during installation or it needs recompiling with other options? Or....
    Any ideas?

    Patching the source package will not solve the problem. Only changing libxml2 package or making a symbolic link from /usr/lib/libxml to /usr/lib/libxml2/libxml (workaround) will work. And the package needs libxml2 not v1
    Prerequisite:
    pgxml_dom.c:
    libxml2 (http://xmlsoft.org)
    It compiles fine with a link. I think the problem is within libxml2 package but I'm not 100% sure since I couldn't find anybody complaining about these paths when making other packages which depend on libxml2 (or I just poorly searched).
    I did take a look at libxml2 pkgbuild and sources. It's quite standard. No special options (I think). The library orignally has a directory /include/libxml and it gets installed in /usr/include/libxml2/libxml. And that's the problem. Some of the libxml2 header files are referencing to other libxml2 header files. For example xpath.h wants to include libxml/xmlerror.h that of course can't be found.
    Now, there are several options:
    1. Adding a link creation command to libxml2 package build function.
    2. Forcing the installation directory for include files to /usr/lib/libxml (no other subdirs inside and forgetting about /usr/lib/lixml2)
    3. Patching libxml2 header files (and maybe some other files too) to fully conform arch standards. This is the hardest way because it may require a lot of other things to be done for all dependent packages etc. This could also be done in two ways: change libxml/something.h to libxml2/libxml/something.h or (to make it perfect) libxml2/something.h
    4. Other options that didn't come to my mind :-)
    Did anybody else has problems with paths when building some package that depends on libxml2 ? I think I should report a bug for arch libxml2 package (or to libxml team if this is just error in makefiles etc, or both) but I'm trying to make sure I'm right before I do this.

  • Kernel-headers: /usr/include/linux/ivtv.h exists in filesystem

    can't update kernelheaders caus that file exist issue!
    kernel-headers: /usr/include/linux/ivtv.h exists in filesystem

    Find out which package it belongs to (pacman will do this for you), then report it on the bugtracker, if it hasn't already been reported.

  • /usr/sbin/httpd2-prefork: symbol lookup error: /opt/oracle/instant_client_1

    I get the following error in the Apache Webserver error-log when I load a site which is using oracle functions:
    "/usr/sbin/httpd2-prefork: symbol lookup error: /opt/oracle/instant_client_10_2/lib/libclntsh.so.10.1: undefined symbol: A_X931RandomInit"
    Following environments are set:
    LD_LIBRARY_PATH=/opt/oracle/instant_client_10_2/lib:/usr/local/tivoli/lcf/lib/linux-ix86:/usr/lib
    TNS_ADMIN=/opt/oracle/instant_client_10_2/network/admin
    ORA_HOME=/opt/oracle/instant_client_10_2
    ORACLE_HOME=/opt/oracle/instant_client_10_2
    Has anyone a idea where I could have the error?

    Did you ever resolve this?
    -- cj

  • Firefox won't open and displays error "/usr/lib64/firefox/firefox: symbol lookup error: /usr/lib64/firefox/libxul.so: undefined symbol : gdk_window_get_visual

    Updated Firefox to 31.2 on RHEL6 - Red Hat Enterprise Linux Server release 6.0 (Santiago):
    [RHEL6-1 ~]$ rpm -qa firefox xulrunner nspr
    firefox-31.2.0-3.el6_6.x86_64
    nspr-4.10.6-1.el6_5.x86_64
    xulrunner-17.0.10-1.el6_4.x86_64
    But when trying to launch firefox the following error is displayed:
    [RHEL6-1 ~]$ firefox
    /usr/lib64/firefox/firefox: symbol lookup error: /usr/lib64/firefox/libxul.so: undefined symbol: gdk_window_get_visual
    I've tried removing and installing and always seem to get this error.
    Any help is much appreciated!

    RedHat provided firefox works if you update GTK2
    Run:
    # yum update gtk2*
    See (login required):
    https://access.redhat.com/solutions/1239853

  • Error /usr/lib64/firefox/firefox: symbol lookup error: /usr/lib64/firefox/libxul.so: undefined symbol: gdk_window_get_visual when I try to open Firefox

    Hi,
    I recently installed firefox in a RH 6.5 server. When I try to open the browser I get the error
    /usr/lib64/firefox/firefox: symbol lookup error: /usr/lib64/firefox/libxul.so: undefined symbol: gdk_window_get_visual
    This is my configuration
    [root@server1 ~]# rpm -qa nspr{-devel,} firefox xulrunner
    xulrunner-17.0.10-1.el6_4.x86_64
    firefox-31.2.0-3.el6_6.x86_64
    nspr-4.10.6-1.el6_5.x86_64

    Try to update your nspr.

  • HT203255 Why "Include Text CD" option causes error 4000 when burning disk on Itunes?

    Why "Include Text CD" option causes error 4000 when burning disk on Itunes?

    After running a diagnostics check in iTunes for CD/DVD drives it passed successfully:
    Microsoft Windows 8 x64 Home Premium Edition (Build 9200)
    Dell Inc. Inspiron 5421
    iTunes 11.0.4.4
    QuickTime 7.7.4
    FairPlay 2.4.14
    Apple Application Support 2.3.4
    iPod Updater Library 10.0d2
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 6.1.0.13
    Apple Mobile Device Driver 1.64.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.6.502
    Gracenote MusicID 1.9.6.115
    Gracenote Submit 1.9.6.143
    Gracenote DSP 1.9.6.45
    iTunes Serial Number xxx
    Current user is an administrator.
    The current local date and time is 2013-06-29 16:42:52.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is supported.
    Core Media is supported.
    **** External Plug-ins Information ****
    No external plug-ins installed.
    Genius ID: fc2309a02da463fa503e9fbc2dbb6401
    iPodService 11.0.4.4 (x64) is currently running.
    iTunesHelper 11.0.4.4 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    **** CD/DVD Drive Tests ****
    No drivers in LowerFilters.
    UpperFilters: GEARAspiWDM (2.2.3.0),
    D:   HL-DT-ST DVD+/-R, Rev 
    Audio CD in drive.
    Found 8 songs on CD, playing time 27:37 on Audio CD.
    Track 1, start time 00:02:00
    Track 2, start time 03:55:20
    Track 3, start time 07:17:07
    Track 4, start time 11:37:15
    Track 5, start time 14:40:03
    Track 6, start time 17:46:68
    Track 7, start time 20:52:56
    Track 8, start time 24:52:26
    Audio CD reading succeeded.
    Get drive speed succeeded.
    The drive CDR speeds are:   4 8 10 16 20 24.
    The drive CDRW speeds are:   4.
    The drive DVDR speeds are:   4.
    The drive DVDRW speeds are:   4.
    The last failed audio CD burn had error code 4310(0x000010d6). It happened on drive D:   HL-DT-ST DVD+/-R on CDR media at speed 10X.

  • /usr/include liberaries

    Hello everyone,
    Can someone assist me on where can I get Solaris 10 system liberaries. I had installed the OS , but /usr/include doesn't contains all the libraries required by studio10 compiler. How can manually install it? Please help me asap.
    Thanks.

    now.. /usr/lib is the place where you are expected to find your libraries, the /usr/include contians the include files, at least according to the terms i learned..
    Certain freeware libraries might also install under /usr/sfw/lib.
    Having said that, when you install Solaris 10 it gives you an few options, depending on which options you choose you will get different amount of packages.. If you want everything you should install the "Entire Distrubution" onto your system.
    In order to install libraries after the installation you need to know which package they are in, if Sun Studio 10 is at all helpful it should tell you which packages you need, othervise you can always grep for the library in the Packages/*/pkginfo files on your CDs.
    If you have access to another Solaris 10 system you can use pkginfo to determine which package a file belongs to, or you could do a grep "<file>" /var/sadm/install/contents .
    //Magnus

  • What package contains /usr/include header files?

    (Sorry for the x-post; put it in the wrong place originally.)
    I'm trying to find out which package contains the header files located in /usr/include/. I'm trying to compile some stuff and these headers aren't found. Any ideas? This is Solaris 10 x86 8/07.

    Alan, thanks for the reply -- I've sorted it out.
    I was looking for the "standard" headers in /usr/include/ such as stdio.h, sys/stat.h, to name a few. Found them in the SUNWhea package.

  • Where to get header files under /usr/include/snmp

    My source codes relate to SNMP subagent. Currently mu codes is conpiled in a SOlaris 7 machine. I can find the needed header files in /usr/include/snmp. Now I want to build another compiling machine with SOlaris 9. But after I installed Solaris 9, I can not find the header files under /usr/include/snmp/. Is there some specific packages I need to install? Or Solaris 9 has removed or changed the name of these files?
    Thanks!
    Yong

    So say if My page ProjectPG.xml has main controller ProjectPGCO then I have to write a class xyzProjectPGCO which extends ProjectPGCO .
    Write me logic here ....in ProjectPGCO
    After that I have to modify ProjectPG.xml and set its controller as xyzProjectPGCO
    Please let me know if this is right way of doing ?
    Thanks,
    Milind

  • /usr/include missing key ingredients

    On my resale SunUltra running (Solaris 8 4/01 s28s_u4wos_08 SPARC), I'm missing crutial header files such as stdio.h.
    Loading in my sun c/c++ compilers didn't cure the problem.
    Anyone with an explaination (or remedy) please shout.
    [email protected]

    #grep stdio.h /var/sadm/install/contents
    /usr/include/stdio.h f none 0644 root bin 11066 35657 947110182 SUNWhea
    SUNWhea is on CD 2 of 2. The Sol 8 Installation should have asked you to insert CD 2 of 2 unless you only installed Core or End User software cluster. If you selected Developer, Entire, or Entire + OEM then it looks like you have an incomplete installation.

  • /usr/include header library

    Hi,
    In Solaris 5.6, header files such as time.h and setjmp.h can be found in the /usr/include directory. I have an application running on 5.7 that tries to link to these header files. However, they are not located here on the box in question. I'd like to know if this is normal. I suspect that there may be some sort of option in the Solaris install that allows you to omit the files.
    I would be very greatfull for any help.
    Chris

    Chris,
    Files time.h and setjmp.h on 2.7 are in same directory. While installing Solaris what option you have selected? If you do deafult installation it will do only end user
    support . Please do custom installation and choose option entire distribution.
    Please check on same. Hope this helps you.
    Thanks,
    Santosh

Maybe you are looking for