Opened 12 years ago

Last modified 12 years ago

#35843 new defect

mod_wsgi: error: stdarg.h: No such file or directory

Reported by: thestrongestonethereis@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: mod_wsgi

Description

On Snow Leopard: sudo port install mod_wsgi +python27

Log File included: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_mod_wsgi/mod_wsgi/main.log

Attachments (1)

main.log (32.1 KB) - added by thestrongestonethereis@… 12 years ago.
Log File

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by thestrongestonethereis@…

Attachment: main.log added

Log File

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

Summary: mod_wsgi install failsmod_wsgi: error: stdarg.h: No such file or directory

The log says:

:info:build In file included from /opt/local/include/apr-1/apr_tables.h:29,
:info:build                  from /opt/local/include/apr-1/apr_hooks.h:22,
:info:build                  from /opt/local/apache2/include/ap_config.h:26,
:info:build                  from /opt/local/apache2/include/httpd.h:43,
:info:build                  from mod_wsgi.c:34:
:info:build /usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory

stdarg.h existed in OS X 10.4 Tiger, but not thereafter. This inclusion is coming from apr; the relevant lines of apr_tables.h say:

#if APR_HAVE_STDARG_H
#include <stdarg.h>     /* for va_list */
#endif

apr should know that stdarg.h doesn't exist anymore. The fact that it doesn't suggests something is wrong with your apr, so try rebuilding it:

sudo port clean apr
sudo port selfupdate
sudo port -n upgrade --force apr

Do you have anything in /usr/local? If so it might be interfering; remove or rename it, clean and try again.

comment:2 Changed 12 years ago by jmroot (Joshua Root)

What are you talking about, Ryan?

% ls -l /usr/include/stdarg.h 
-r--r--r--  1 root  wheel  234 30 Sep  2009 /usr/include/stdarg.h

The file obviously exists on the reporter's machine because that's where the error is being generated.

Reporter, do you have /usr/lib/gcc/i686-apple-darwin10/4.2.1/include/stdarg.h? If it's missing, you probably need to reinstall the Xcode "UNIX Development" component.

Note: See TracTickets for help on using tickets.