Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

vishwa

macrumors newbie
Original poster
Jun 7, 2007
5
0
Hi Guys,
I just downloaded and installed dports from the disk image to install rlpr when I found out that gcc was not installed on my MaC OS X 10.4.9 system. When I did install gcc 4.0 and ran 'sudo port -d selfupdate', I got the following error logged in my config.log file:

----------------------------------------------------------------------------------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by MacPorts configure 1.4.42, which was
generated by GNU Autoconf 2.61. Invocation command line was

$ ./configure --prefix=/opt/local --with-install-user=root --with-install-group=admin --with-tclpackage=/Library/Tcl

## --------- ##
## Platform. ##
## --------- ##

hostname = dh094167
uname -m = i386
uname -r = 8.9.3
uname -s = Darwin
uname -v = Darwin Kernel Version 8.9.3: Fri Apr 27 14:50:07 PDT 2007; root:xnu-792.19.5~2/RELEASE_I386

/usr/bin/uname -p = i386
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 8.9.3: Fri Apr 27 14:50:07 PDT 2007; root:xnu-792.19.5~2/RELEASE_I386
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 2.00 gigabytes
Default processor set: 72 tasks, 250 threads, 2 processors
Load average: 0.94, Mach factor: 1.05
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/X11R6/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1858: checking build system type
configure:1876: result: i686-apple-darwin8.9.3
configure:1898: checking host system type
configure:1913: result: i686-apple-darwin8.9.3
configure:1935: checking target system type
configure:1950: result: i686-apple-darwin8.9.3
configure:2053: checking for gcc
configure:2069: found /usr/bin/gcc
configure:2080: result: gcc
configure:2318: checking for C compiler version
configure:2325: gcc --version >&5
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5250)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2328: $? = 0
configure:2335: gcc -v >&5
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5250.obj~12/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --build=powerpc-apple-darwin8 --with-arch=pentium-m --with-tune=prescott --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5250)
configure:2338: $? = 0
configure:2345: gcc -V >&5
gcc: argument to `-V' is missing
configure:2348: $? = 1
configure:2371: checking for C compiler default output file name
configure:2398: gcc conftest.c >&5
/usr/bin/ld: can't locate file for: -lcrt1.o
collect2: ld returned 1 exit status
configure:2401: $? = 1
configure:2439: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "MacPorts"
| #define PACKAGE_TARNAME "macports"
| #define PACKAGE_VERSION "1.4.42"
| #define PACKAGE_STRING "MacPorts 1.4.42"
| #define PACKAGE_BUGREPORT "macports-dev@lists.macosforge.org"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2446: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-apple-darwin8.9.3
ac_cv_env_BZIP2_set=
ac_cv_env_BZIP2_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CVS_set=
ac_cv_env_CVS_value=
ac_cv_env_GNUTAR_set=
ac_cv_env_GNUTAR_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_MTREE_set=
ac_cv_env_MTREE_value=
ac_cv_env_OPEN_set=
ac_cv_env_OPEN_value=
ac_cv_env_RSYNC_set=
ac_cv_env_RSYNC_value=
ac_cv_env_SVN_set=
ac_cv_env_SVN_value=
ac_cv_env_TAR_set=
ac_cv_env_TAR_value=
ac_cv_env_XAR_set=
ac_cv_env_XAR_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-apple-darwin8.9.3
ac_cv_prog_ac_ct_CC=gcc
ac_cv_target=i686-apple-darwin8.9.3

## ----------------- ##
## Output variables. ##
## ----------------- ##

BZIP2=''
CC='gcc'
CFLAGS=''
CFLAGS_DEBUG=''
CFLAGS_LIBCURL=''
CFLAGS_OPTIMIZE=''
CFLAGS_QUICHEEATERS=''
CPP=''
CPPFLAGS=''
CURL_CONFIG=''
CVS=''
DEFS=''
DPORTSDIR=''
DSTGRP=''
DSTMODE=''
DSTUSR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_PROGS=''
GNUTAR=''
GREP=''
HAVE_FRAMEWORK_COREFOUNDATION=''
HAVE_FRAMEWORK_IOKIT=''
HAVE_FRAMEWORK_SYSTEMCONFIGURATION=''
HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER=''
HAVE_LAUNCHD=''
INCLUDES=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LAUNCHCTL=''
LDFLAGS=''
LDFLAGS_LIBCURL=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
MD5_LIBS=''
MTREE=''
OBJEXT=''
OPEN=''
OUR_INCLUDED_PACKAGES=''
PACKAGE_BUGREPORT='macports-dev@lists.macosforge.org'
PACKAGE_NAME='MacPorts'
PACKAGE_STRING='MacPorts 1.4.42'
PACKAGE_TARNAME='macports'
PACKAGE_VERSION='1.4.42'
PATH_SEPARATOR=':'
PORTCONFIGDIR=''
PORTCONFIGDIR_EXPANDED=''
READLINK_IS_NOT_P1003_1A=''
REPLACEMENT_PROGS=''
RSYNC=''
SET_MAKE=''
SHELL='/bin/sh'
SHLIB_CFLAGS=''
SHLIB_LD=''
SHLIB_LDFLAGS=''
SHLIB_SUFFIX=''
SQLITE3_DIR=''
STLIB_LD=''
SVN=''
TAR=''
TAR_CMD=''
TCLSH=''
TCL_BIN_DIR=''
TCL_CC=''
TCL_DEFS=''
TCL_INCLUDES=''
TCL_LIB_FILE=''
TCL_LIB_FLAG=''
TCL_LIB_SPEC=''
TCL_PACKAGE_DIR=''
TCL_SRC_DIR=''
TCL_STUB_LIB_FILE=''
TCL_STUB_LIB_FLAG=''
TCL_STUB_LIB_SPEC=''
TCL_VERSION=''
XAR=''
XCODEBUILD=''
XMKMF=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build='i686-apple-darwin8.9.3'
build_alias=''
build_cpu='i686'
build_os='darwin8.9.3'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-apple-darwin8.9.3'
host_alias=''
host_cpu='i686'
host_os='darwin8.9.3'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
localstatedir_expanded=''
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/opt/local'
prefix_expanded=''
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='${prefix}/etc'
target='i686-apple-darwin8.9.3'
target_alias=''
target_cpu='i686'
target_os='darwin8.9.3'
target_vendor='apple'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "MacPorts"
#define PACKAGE_TARNAME "macports"
#define PACKAGE_VERSION "1.4.42"
#define PACKAGE_STRING "MacPorts 1.4.42"
#define PACKAGE_BUGREPORT "macports-dev@lists.macosforge.org"

configure: exit 77
------------------------------------------------------------------------------------

I tried using an earlier (3.3) version of gcc but it yielded the same result.
Any suggestions?

Thanks,
-v
 

Krevnik

macrumors 601
Sep 8, 2003
4,100
1,309
Usually, things like MacPorts assumes that you have installed the developer tools. Without the whole set of developer tools, you are missing libraries that you need to build with.

Especially considering your error is that GCC couldn't link to crt1, which is provided in the dev tools, IIRC.
 

vishwa

macrumors newbie
Original poster
Jun 7, 2007
5
0
Thanks Krevnik. This worked really well. Though I had installed Xcode tools, I had done so on a customized basis and therefore, I did not install all of the required software. Once I did that, everything worked just fine and now rlpr works nicely.

-v


Usually, things like MacPorts assumes that you have installed the developer tools. Without the whole set of developer tools, you are missing libraries that you need to build with.

Especially considering your error is that GCC couldn't link to crt1, which is provided in the dev tools, IIRC.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.