Opened 13 years ago

Closed 13 years ago

#33306 closed defect (worksforme)

virtualbox: /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory

Reported by: jfcaron3 Owned by: royliu@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: royliu@…
Port: virtualbox

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

MacPorts version: 2.0.3

Xcode version: 4.2.1 Build 4D502

MacOS version: Lion 10.7.3

Mailing list discussion: http://lists.macosforge.org/pipermail/macports-users/2012-February/027424.html

Things checked by request of mailing list:

openssl is installed (1.0.0g_0)

file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.1.8_OSE/configure.log is attached

file /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h exists

Problem apparently similar to comment:ticket:31734:10 and https://bugzilla.mozilla.org/show_bug.cgi?id=681678

Also attached is the error log mentioned upon failed build.

Note the mailing list people recommended uninstalling Xcode and reinstalling, but I am unwilling to do that. I will just use a .dmg provided for the same software by Oracle.

Attachments (2)

configure.log (3.8 KB) - added by jfcaron3 13 years ago.
Someone on the mailing list asked for this
main.log (82.0 KB) - added by jfcaron3 13 years ago.
Error log from attempted build

Download all attachments as: .zip

Change History (10)

Changed 13 years ago by jfcaron3

Attachment: configure.log added

Someone on the mailing list asked for this

Changed 13 years ago by jfcaron3

Attachment: main.log added

Error log from attempted build

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

Description: modified (diff)
Summary: virtualbox @4.1.8 configure error - build failurevirtualbox: /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory

If you are unwilling to uninstall and reinstall Xcode to test whether the problem is with your Xcode, then we will need somebody else who has Lion 10.7.3 and Xcode 4.2.1 to test whether they can install virtualbox or not.

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

Cc: royliu@… added

Roy, I wonder if you have any ideas here.

comment:3 Changed 13 years ago by mf2k (Frank Schima)

Keywords: stdarg.h openssl removed

I just tried to install with Mac OS X 10.7.3 and Xcode 4.2.1 and I see the same error as the reporter. So it does not look like an Xcode problem on the reporter's end.

comment:4 Changed 13 years ago by royliu@…

Owner: changed from macports-tickets@… to royliu@…

Take note that previous versions of Xcode leave junk behind. For example, you'll have to delete

/usr/bin/gcc-4.2

just to be sure. If you don't, then some compilations will pick up on its existence and think that the headers are there, too (which they're not). See ticket #31734 and for how I helped someone with a similar problem to the one described above (search for the keyword gcc-4.2).

comment:5 Changed 13 years ago by mf2k (Frank Schima)

I do indeed have /usr/bin/gcc-4.2. I'm going to completely uninstall Xcode, reinstall 4.2.1, and try again. I'll let you know how it goes.

comment:6 in reply to:  5 Changed 13 years ago by royliu@…

Uninstalling might not help, in which case you'll have to manually remove it.

Replying to macsforever2000@…:

I do indeed have /usr/bin/gcc-4.2. I'm going to completely uninstall Xcode, reinstall 4.2.1, and try again. I'll let you know how it goes.

comment:7 Changed 13 years ago by mf2k (Frank Schima)

It worked and virtualbox installed fine. Now I no longer have /usr/bin/gcc-4.2. To be clear I ran the following to completely uninstall Xcode:

sudo /Developer/Library/uninstall-devtools --mode=all

comment:8 Changed 13 years ago by royliu@…

Resolution: worksforme
Status: newclosed

I am closing this issue. If you continue to have problems after uninstalling/reinstalling Xcode, please let me know and I'll reopen.

Note: See TracTickets for help on using tickets.