Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#32327 closed defect (invalid)

glib2 @2.30.2 cannot run C compiled programs

Reported by: giordano.marcello@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port:

Description

I'm trying to compile glib2 on my Macbook pro, Os 10.7.2, Xcode 4.2

The configure stage fails with this error output

checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.30.2':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/work/glib-2.30.2" && ./configure --prefix=/opt/local --enable-static --disable-dtrace " returned error 1
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
DEBUG: Backtrace: configure failure: shell command failed (see log for details)
    while executing
"$procedure $targetname"
Warning: the following items did not execute (for glib2): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Log for glib2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_glib2/glib2/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

The config.log is attached

Attachments (1)

config.log (15.1 KB) - added by giordano.marcello@… 13 years ago.

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by giordano.marcello@…

Attachment: config.log added

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

Resolution: invalid
Status: newclosed

The log shows:

error: /usr/local/include/stdio.h: Permission denied

Remove this file and anything else in /usr/local; software installed there often interferes with MacPorts, as it has done in this case, which is why we don't support having software installed there. Once you've removed it, "sudo port clean glib2" and try again.

comment:2 Changed 13 years ago by giordano.marcello@…

thank you for pointing this out. turns out that the permission in /usr/local were messed up (700 instead of 755). Once I fixed that everything compiled smoothly,

Thanks again!

Note: See TracTickets for help on using tickets.