Opened 13 years ago

Closed 13 years ago

#30192 closed defect (worksforme)

apr 1.4.5: stdio.h: No such file or directory

Reported by: mramiragha@… Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: lion Cc:
Port: apr

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi,

From what I can see stdio.h is not found when trying to compile a conftest.c. Log files are attached.

Regards,
Amir

Attachments (2)

main.log (3.2 KB) - added by mramiragha@… 13 years ago.
main.log
config.log (10.9 KB) - added by mramiragha@… 13 years ago.
config.log

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by mramiragha@…

Attachment: main.log added

main.log

Changed 13 years ago by mramiragha@…

Attachment: config.log added

config.log

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: lion added
Owner: changed from macports-tickets@… to dluke@…
Port: apr added
Summary: apr 1.4.5 fails to buildapr 1.4.5: stdio.h: No such file or directory

A-ha: you're on Lion using llvm-gcc-4.2. That might be relevant.

On the other hand, why is stdio.h not found? It ought to be in /usr/include. Is it?

comment:2 in reply to:  1 ; Changed 13 years ago by mramiragha@…

I'm really surprised. There is no /usr/include anymore!?!

iMac:~ amir$ ls -al /usr/include ls: /usr/include: No such file or directory

I have to check with others who are on Lion if their /usr/include also disappeared. I googled a bit but couldn't find anything. This is all I got, hope it helps:

iMac:~ amir$ sudo find / -name stdio.h Password: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/usr/include/c++/4.2.1/tr1/stdio.h /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/usr/include/stdio.h /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/usr/include/stdio.h /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/usr/include/c++/4.2.1/tr1/stdio.h /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/usr/include/stdio.h /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/usr/include/c++/4.2.1/tr1/stdio.h /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/usr/include/stdio.h /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/include/c++/4.2.1/tr1/stdio.h /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/include/stdio.h /Developer/SDKs/MacOSX10.5.sdk/usr/include/stdio.h /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/tr1/stdio.h /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdio.h /opt/local/include/gcc43/c++/tr1/stdio.h /opt/local/include/gcc44/c++/tr1/stdio.h /opt/local/lib/gcc43/gcc/x86_64-apple-darwin10/4.3.5/include/ssp/stdio.h /opt/local/lib/gcc44/gcc/x86_64-apple-darwin10/4.4.6/include/ssp/stdio.h /opt/local/var/macports/software/gcc43/4.3.5_0/opt/local/include/gcc43/c++/tr1/stdio.h /opt/local/var/macports/software/gcc43/4.3.5_0/opt/local/lib/gcc43/gcc/x86_64-apple-darwin10/4.3.5/include/ssp/stdio.h /opt/local/var/macports/software/gcc43/4.3.5_1/opt/local/include/gcc43/c++/tr1/stdio.h /opt/local/var/macports/software/gcc43/4.3.5_1/opt/local/lib/gcc43/gcc/x86_64-apple-darwin10/4.3.5/include/ssp/stdio.h /opt/local/var/macports/software/gcc43/4.3.5_2/opt/local/include/gcc43/c++/tr1/stdio.h /opt/local/var/macports/software/gcc43/4.3.5_2/opt/local/lib/gcc43/gcc/x86_64-apple-darwin10/4.3.5/include/ssp/stdio.h /opt/local/var/macports/software/gcc44/4.4.4_1/opt/local/include/gcc44/c++/tr1/stdio.h /opt/local/var/macports/software/gcc44/4.4.4_1/opt/local/lib/gcc44/gcc/x86_64-apple-darwin10/4.4.4/include/ssp/stdio.h /opt/local/var/macports/software/gcc44/4.4.4_2/opt/local/include/gcc44/c++/tr1/stdio.h /opt/local/var/macports/software/gcc44/4.4.4_2/opt/local/lib/gcc44/gcc/x86_64-apple-darwin10/4.4.4/include/ssp/stdio.h /opt/local/var/macports/software/gcc44/4.4.5_0/opt/local/include/gcc44/c++/tr1/stdio.h /opt/local/var/macports/software/gcc44/4.4.5_0/opt/local/lib/gcc44/gcc/x86_64-apple-darwin10/4.4.5/include/ssp/stdio.h /opt/local/var/macports/software/gcc44/4.4.6_0/opt/local/include/gcc44/c++/tr1/stdio.h /opt/local/var/macports/software/gcc44/4.4.6_0/opt/local/lib/gcc44/gcc/x86_64-apple-darwin10/4.4.6/include/ssp/stdio.h

comment:3 in reply to:  2 Changed 13 years ago by danielluke (Daniel J. Luke)

Replying to mramiragha@…:

I'm really surprised. There is no /usr/include anymore!?!

I seriously doubt it.

iMac:~ amir$ ls -al /usr/include ls: /usr/include: No such file or directory

I have to check with others who are on Lion if their /usr/include also disappeared. I googled a bit but couldn't find anything.

Maybe you're just missing some optional package that's part of the OS install or developer tools? (Something equivalent to the BSD SDK on previous OS releases?)

I don't have Lion (and probably couldn't talk about it if I did), so I probably can't be of much help.

comment:4 Changed 13 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

Others who had this sort of problem hadn't actually installed Xcode, just downloaded the installer from the app store.

Note: See TracTickets for help on using tickets.