The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   ./configure fails for all packages (http://hintsforums.macworld.com/showthread.php?t=27941)

paragonconcept 09-13-2004 12:37 AM

./configure fails for all packages
 
On every package i try and install i get the same error -

checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

within the config.log file i get

configure: failed program was:
| /* confdefs.h. */

i have no idea what that means

ive been running this install for about a month - with fluxbox all kinds of neet goodies - i have no idea what caused this to come about - i did run the apple software update last night - other than that i'm stumped

any help would be appreciated - thx

B-Zero 09-13-2004 01:10 AM

Can you compile short C programs? Eg:

Code:

$ echo 'main(){}' > test.c
$ gcc test.c

Does that work?

hayne 09-13-2004 01:36 AM

What do you get from the following command (in a Terminal window):

gcc --version

sao 09-13-2004 01:48 AM

Quote:

paragonconcept wrote:
configure: error: C compiler cannot create executables
The error historically has been seen when the OS has been updated without updating the Developer Tools or when possibly you missed an optional package install.

For example, if you installed Xcode Tools v1.5 did you also installed the gcc3.1.pkg and the gcc2.95.2 pkg?

(they are hidden in a "personalized" installation option, unchecked by default, same with the "X11SDK")

.

paragonconcept 09-13-2004 02:32 AM

Quote:

Originally Posted by B-Zero
Can you compile short C programs? Eg:

Code:

$ echo 'main(){}' > test.c
$ gcc test.c

Does that work?


John-Murphys-Computer:~ johnmurphy$ echo 'main(){}' > test.c
John-Murphys-Computer:~ johnmurphy$ gcc test.c
cc1: /usr/local/include: Not a directory

paragonconcept 09-13-2004 02:34 AM

i manually installed gcc3.1 after i started getting the error from > applications > Installers > x code tools > packages > gcc3.1.pkg

im also wondering about this

John-Murphys-Computer://usr/bin johnmurphy$ ls -a | grep gcc
gcc
gcc-3.3
gcc3

$//usr/bin johnmurphy$ gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)

$//usr/bin johnmurphy$ gcc3 -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1256, based on gcc version 3.1 20021003 (prerelease)

$://usr/bin johnmurphy$ gcc-3.3 -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)

paragonconcept 09-13-2004 02:36 AM

Quote:

Originally Posted by hayne
What do you get from the following command (in a Terminal window):

gcc --version


John-Murphys-Computer:~ johnmurphy$ gcc --version
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1495)
Copyright (C) 2002 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.

sao 09-13-2004 03:00 AM

Code:

[pm @ Sao: bin] % ls -a | grep gcc
gcc
gcc-3.3
gcc2
gcc3

[pm @ Sao: ~] % gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1666)

[pm @ Sao: ~] % gcc3 -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1257, based on gcc version 3.1 20021003 (prerelease)

[pm @ Sao: ~] % gcc-3.3 -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1666)

[pm @ Sao: ~] % gcc2 -v
Reading specs from /usr/libexec/gcc/darwin/ppc/2.95.2/specs
Apple Computer, Inc. version gcc-939, based on gcc version 2.95.2 19991024 (release)

[pm @ Sao: ~] % gcc --version
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1666)
Copyright (C) 2002 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.


paragonconcept 09-13-2004 03:25 AM

Quote:

Originally Posted by sao
Code:

[pm @ Sao: bin] % ls -a | grep gcc
gcc
gcc-3.3
gcc2
gcc3

[pm @ Sao: ~] % gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1666)

[pm @ Sao: ~] % gcc3 -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1257, based on gcc version 3.1 20021003 (prerelease)

[pm @ Sao: ~] % gcc-3.3 -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1666)

[pm @ Sao: ~] % gcc2 -v
Reading specs from /usr/libexec/gcc/darwin/ppc/2.95.2/specs
Apple Computer, Inc. version gcc-939, based on gcc version 2.95.2 19991024 (release)

[pm @ Sao: ~] % gcc --version
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1666)
Copyright (C) 2002 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.



ok i was just wondering if it was possible that the diferant versions where conflicting -

hayne 09-13-2004 09:51 AM

Quote:

Originally Posted by paragonconcept
i manually installed gcc3.1 after i started getting the error from > applications > Installers > x code tools > packages > gcc3.1.pkg

The compilation system is rather complicated. I think it will be hard to get it right if you try to do things manually. The right way to go is to download the latest XCode Tools and use the default install.

paragonconcept 09-13-2004 11:47 PM

Quote:

Originally Posted by hayne
The compilation system is rather complicated. I think it will be hard to get it right if you try to do things manually. The right way to go is to download the latest XCode Tools and use the default install.

i ran installer for Xcode Tools and im still getting the same error - i even made sure that the Gcc options where checked during the install

hayne 09-13-2004 11:51 PM

Quote:

Originally Posted by paragonconcept
i ran installer for Xcode Tools and im still getting the same error

Which version of "XCode Tools"? The latest one (1.5)?

So what do you get for 'gcc --version' now?

paragonconcept 09-14-2004 12:14 AM

Quote:

Originally Posted by hayne
Which version of "XCode Tools"? The latest one (1.5)?

So what do you get for 'gcc --version' now?

Xcode Tools 1.5 Release for Mac OS X version 10.3 (Panther)

johnmurphy$ gcc --version
gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1666)
Copyright (C) 2002 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.

hayne 09-14-2004 12:45 AM

Please show us what you get when you do ./configure
and show us the full contents of the file config.log

paragonconcept 09-14-2004 05:29 AM

Quote:

Originally Posted by hayne
Please show us what you get when you do ./configure
and show us the full contents of the file config.log


John-Murphys-Computer:/Users/johnmurphy/httpd-2.0.50 root# ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... powerpc-apple-darwin7.5.0
checking host system type... powerpc-apple-darwin7.5.0
checking target system type... powerpc-apple-darwin7.5.0

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... powerpc-apple-darwin7.5.0
checking host system type... powerpc-apple-darwin7.5.0
checking target system type... powerpc-apple-darwin7.5.0
Configuring APR library
Platform: powerpc-apple-darwin7.5.0
checking for working mkdir -p... yes
APR Version: 0.9.5
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr
John-Murphys-Computer:/Users/johnmurphy/httpd-2.0.50 root#



Config.log -->


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

It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure

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

hostname = John-Murphys-Computer.local
uname -m = Power Macintosh
uname -r = 7.5.0
uname -s = Darwin
uname -v = Darwin Kernel Version 7.5.0: Thu Aug 5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC

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

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = Mach kernel version:
Darwin Kernel Version 7.5.0:
Thu Aug 5 19:26:16 PDT 2004; root:xnu/xnu-517.7.21.obj~3/RELEASE_PPC


Kernel configured for a single processor only.
1 processor is physically available.
Processor type: ppc7450 (PowerPC 7450)
Processor active: 0
Primary memory available: 1024.00 megabytes.
Default processor set: 67 tasks, 174 threads, 1 processors
Load average: 2.08, Mach factor: 0.42
unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /sw/bin
PATH: /sw/sbin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/X11R6/bin


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

configure:1617: checking for chosen layout
configure:1619: result: Apache
configure:2412: checking for working mkdir -p
configure:2428: result: yes
configure:2445: checking build system type
configure:2463: result: powerpc-apple-darwin7.5.0
configure:2471: checking host system type
configure:2485: result: powerpc-apple-darwin7.5.0
configure:2493: checking target system type
configure:2507: result: powerpc-apple-darwin7.5.0
configure:2536: checking for APR
configure:2596: result: reconfig

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

ac_cv_build=powerpc-apple-darwin7.5.0
ac_cv_build_alias=powerpc-apple-darwin7.5.0
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_LDFLAGS_set=
ac_cv_env_LDFLAGS_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=powerpc-apple-darwin7.5.0
ac_cv_host_alias=powerpc-apple-darwin7.5.0
ac_cv_mkdir_p=yes
ac_cv_target=powerpc-apple-darwin7.5.0
ac_cv_target_alias=powerpc-apple-darwin7.5.0

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

APACHECTL_ULIMIT=''
APR_BINDIR=''
APR_INCLUDEDIR=''
APU_BINDIR=''
APU_INCLUDEDIR=''
AP_BUILD_SRCLIB_DIRS=''
AP_CLEAN_SRCLIB_DIRS=''
AP_LIBS=''
AP_SIG_GRACEFUL=''
AP_SIG_GRACEFUL_SHORT=''
AP_SIG_GRACEFUL_STRING=''
AWK=''
BUILTIN_LIBS=''
CC=''
CFLAGS=''
CORE_IMPLIB=''
CORE_IMPLIB_FILE=''
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
DEFS=''
DSO_MODULES=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_CFLAGS=''
EXTRA_CPPFLAGS=''
EXTRA_CXXFLAGS=''
EXTRA_INCLUDES=''
EXTRA_LDFLAGS=''
EXTRA_LIBS=''
HTTPD_LDFLAGS=''
INCLUDES=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_PROG_FLAGS=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTCFLAGS=''
LTFLAGS=''
LTLIBOBJS=''
LT_LDFLAGS=''
MK_IMPLIB=''
MODULE_CLEANDIRS=''
MODULE_DIRS=''
MPM_LIB=''
MPM_NAME=''
MPM_SUBDIR_NAME=''
NOTEST_CFLAGS=''
NOTEST_CPPFLAGS=''
NOTEST_CXXFLAGS=''
NOTEST_LDFLAGS=''
NOTEST_LIBS=''
OBJEXT=''
OS=''
OS_DIR=''
OS_SPECIFIC_VARS=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PORT=''
POST_SHARED_CMDS=''
PRE_SHARED_CMDS=''
RANLIB=''
RM=''
SHELL='/bin/sh'
SHLIBPATH_VAR=''
SHLTCFLAGS=''
SH_LDFLAGS=''
SH_LIBS=''
SH_LIBTOOL=''
UTIL_LDFLAGS=''
ab_LTFLAGS=''
abs_srcdir=''
ac_ct_CC=''
ac_ct_RANLIB=''
ap_make_delimiter=''
ap_make_include=''
bindir='${exec_prefix}/bin'
build='powerpc-apple-darwin7.5.0'
build_alias=''
build_cpu='powerpc'
build_os='darwin7.5.0'
build_vendor='apple'
cgidir='${datadir}/cgi-bin'
checkgid_LTFLAGS=''
datadir='${prefix}'
errordir='${datadir}/error'
exec_prefix='${prefix}'
exp_bindir='/usr/local/apache2/bin'
exp_cgidir='/usr/local/apache2/cgi-bin'
exp_datadir='/usr/local/apache2'
exp_errordir='/usr/local/apache2/error'
exp_exec_prefix='/usr/local/apache2'
exp_htdocsdir='/usr/local/apache2/htdocs'
exp_iconsdir='/usr/local/apache2/icons'
exp_includedir='/usr/local/apache2/include'
exp_installbuilddir='/usr/local/apache2/build'
exp_libdir='/usr/local/apache2/lib'
exp_libexecdir='/usr/local/apache2/modules'
exp_localstatedir='/usr/local/apache2'
exp_logfiledir='/usr/local/apache2/logs'
exp_mandir='/usr/local/apache2/man'
exp_manualdir='/usr/local/apache2/manual'
exp_proxycachedir='/usr/local/apache2/proxy'
exp_runtimedir='/usr/local/apache2/logs'
exp_sbindir='/usr/local/apache2/bin'
exp_sysconfdir='/usr/local/apache2/conf'
host='powerpc-apple-darwin7.5.0'
host_alias=''
host_cpu='powerpc'
host_os='darwin7.5.0'
host_vendor='apple'
htdbm_LTFLAGS=''
htdigest_LTFLAGS=''
htdocsdir='${datadir}/htdocs'
htpasswd_LTFLAGS=''
iconsdir='${datadir}/icons'
includedir='${prefix}/include'
infodir='${prefix}/info'
installbuilddir='${datadir}/build'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/modules'
localstatedir='${prefix}'
logfiledir='${localstatedir}/logs'
logresolve_LTFLAGS=''
mandir='${prefix}/man'
manualdir='${datadir}/manual'
nonssl_listen_stmt_1=''
nonssl_listen_stmt_2=''
oldincludedir='/usr/include'
other_targets=''
perlbin=''
prefix='/usr/local/apache2'
progname=''
program_transform_name='s,x,x,'
proxycachedir='${localstatedir}/proxy'
rel_bindir='bin'
rel_cgidir='cgi-bin'
rel_datadir=''
rel_errordir='error'
rel_exec_prefix=''
rel_htdocsdir='htdocs'
rel_iconsdir='icons'
rel_includedir='include'
rel_installbuilddir='build'
rel_libdir='lib'
rel_libexecdir='modules'
rel_localstatedir=''
rel_logfiledir='logs'
rel_mandir='man'
rel_manualdir='manual'
rel_proxycachedir='proxy'
rel_runtimedir='logs'
rel_sbindir='bin'
rel_sysconfdir='conf'
rotatelogs_LTFLAGS=''
runtimedir='${localstatedir}/logs'
sbindir='${exec_prefix}/bin'
shared_build=''
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/conf'
target='powerpc-apple-darwin7.5.0'
target_alias=''
target_cpu='powerpc'
target_os='darwin7.5.0'
target_vendor='apple'

configure: exit 1

hayne 09-14-2004 09:35 AM

It is strange the the config.log didn't show any details on the problem (as was promised in the message from ./configure)

Please show us the output from the following command applied to the "configure" script that you have been having trouble with:

grep -B20 "diagnose broken compilers" configure

You didn't edit the "configure" scripts by any chance did you?

paragonconcept 09-14-2004 06:33 PM

No i didn't edit any configure scripts

root# grep -B20 "diagnose broken compilers" configure
(exit $ac_status); }

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */

int
main ()
{

;
return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition

hayne 09-14-2004 11:43 PM

Please try again the test suggested by B-Zero - to compile a trivial C program. Last time you tried this you got a strange error. This may be an easier thing to debug.
So please copy & paste the following commands into a Terminal window and show us the result:

echo 'int main(){return 0;}' > test.c
gcc test.c

paragonconcept 09-15-2004 03:18 AM

Quote:

Originally Posted by hayne
Please try again the test suggested by B-Zero - to compile a trivial C program. Last time you tried this you got a strange error. This may be an easier thing to debug.
So please copy & paste the following commands into a Terminal window and show us the result:

echo 'int main(){return 0;}' > test.c
gcc test.c


teleform:~ johnmurphy$ echo 'int main(){return 0;}' > test.c
teleform:~ johnmurphy$ gcc test.c
cc1: /usr/local/include: Not a directory

Las_Vegas 09-15-2004 03:42 AM

Have you installed the Developer Disc that came with your OS X?

hayne 09-15-2004 03:51 AM

Quote:

Originally Posted by paragonconcept
teleform:~ johnmurphy$ echo 'int main(){return 0;}' > test.c
teleform:~ johnmurphy$ gcc test.c
cc1: /usr/local/include: Not a directory

Well, this does indeed seem like fertile ground for debugging.
Not only do I not know why you would get that error, I don't know why you would get any error at all.

Please show us the results of the following commands (copy & paste the commands into Terminal to be sure to get them exactly the same):

which gcc

ls -l `which gcc`

ls -ld /usr/local/include

env

paragonconcept 09-15-2004 06:20 AM

teleform://usr/bin johnmurphy$ which gcc
/usr/bin/gcc
teleform://usr/bin johnmurphy$ ls -l `which gcc`
lrwxr-xr-x 1 root wheel 7 13 Sep 19:48 /usr/bin/gcc -> gcc-3.3
teleform://usr/bin johnmurphy$ ls -ld /usr/local/include
-rw-r--r-- 1 root wheel 5824 12 Sep 15:21 /usr/local/include
teleform://usr/bin johnmurphy$ env
MANPATH=/sw/share/man:/usr/share/man:/usr/X11R6/man
TERM_PROGRAM=Apple_Terminal
TERM=xterm-color
SHELL=/bin/bash
PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin
TERM_PROGRAM_VERSION=100
QTDIR=/sw
SGML_CATALOG_FILES=/sw/etc/sgml/catalog
USER=johnmurphy
GDK_USE_XFT=1
KDEDIR=/sw
__CF_USER_TEXT_ENCODING=0x1F5:0:0
PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
XML_CATALOG_FILES=/sw/etc/xml/catalog
PWD=//usr/bin
QMAKESPEC=/sw/share/qt3/mkspecs/darwin-g++
SHLVL=1
HOME=/Users/johnmurphy
LOGNAME=johnmurphy
INFOPATH=/sw/share/info:/sw/info:/usr/share/info
SECURITYSESSIONID=20f510
_=/usr/bin/env
OLDPWD=//usr

hayne 09-15-2004 10:32 AM

Quote:

Originally Posted by paragonconcept
teleform://usr/bin johnmurphy$ ls -l `which gcc`
lrwxr-xr-x 1 root wheel 7 13 Sep 19:48 /usr/bin/gcc -> gcc-3.3

Okay, just to check, please show us the result of:

ls -l /usr/bin/gcc-3.3

Quote:

teleform://usr/bin johnmurphy$ ls -ld /usr/local/include
-rw-r--r-- 1 root wheel 5824 12 Sep 15:21 /usr/local/include
I don't understand why gcc is looking in /usr/local/include, but it appears to be (from the previous test where you compiled a trivial C program). And your /usr/local/include is a file (as seen from the above 'ls -ld') not a directory as it should be.
Where did this file come from?
What is in it? You could start by seeing what the 'file' command tells you about it:

file /usr/local/include

And look at the first part of the contents like this:

hexdump -c /usr/local/include | head -20

If you conclude that this is a garbage file, then delete it. Otherwise try just moving it elsewhere. (There is no need to create a directory /usr/local/include to replace it - I don't have one on my system and everything works fine.)
Then do the compile of the trivial C program again and show us the results:

echo 'int main(){return 0;}' > test.c
gcc test.c

sao 09-15-2004 11:04 AM

paragonconcept,

It looks you have libraries in /usr/local/lib or headers in /usr/local/include. Try renaming /usr/local to something else, for example:

sudo mv /usr/local /usr/local.moved

Then, as you have fink installed, please try to compile a small package with Fink, and see if it works...


.

blb 09-15-2004 04:39 PM

I believe /usr/local is a directory gcc likes to check for includes/libs by default. Since it looks like paragonconcept installed something at some point which assumed /usr/local/include already existed as a directory when it didn't, the file that something installed became "include" (eg, cp myheader.h /usr/local/include assumes the directory already exists).

If it can be determined what that file should be called, it should be renamed, so /usr/local/include can be made a directory, then that original file placed inside it.

hayne 09-15-2004 04:46 PM

Quote:

Originally Posted by blb
it looks like paragonconcept installed something at some point which assumed /usr/local/include already existed as a directory when it didn't, the file that something installed became "include" (eg, cp myheader.h /usr/local/include assumes the directory already exists)

Excellent and very plausible theory of what has happened!
Since whatever program installed this header file that is currently at /usr/local/include is obviously not finding its header file (since it is looking for it inside /usr/local/include, it won't break anything to just rename that file to foo.h and get on with the main task.

paragonconcept:
We're waiting to hear what happens when you rename the file that is currently at /usr/local/include and retry compiling that trivial C program:

mv /usr/local/include /usr/local/foo.h

echo 'int main(){return 0;}' > test.c
gcc test.c

paragonconcept 09-16-2004 12:56 AM

Quote:

Originally Posted by hayne
Excellent and very plausible theory of what has happened!
Since whatever program installed this header file that is currently at /usr/local/include is obviously not finding its header file (since it is looking for it inside /usr/local/include, it won't break anything to just rename that file to foo.h and get on with the main task.

paragonconcept:
We're waiting to hear what happens when you rename the file that is currently at /usr/local/include and retry compiling that trivial C program:

mv /usr/local/include /usr/local/foo.h

echo 'int main(){return 0;}' > test.c
gcc test.c

teleform:/Users/johnmurphy root#
teleform:/Users/johnmurphy root# mv /usr/local/include /usr/local/foo.h
teleform:/Users/johnmurphy root# echo 'int main(){return 0;}' > test.c
teleform:/Users/johnmurphy root# gcc test.c
teleform:/Users/johnmurphy root#


looking good! let me go try and run ./configure


!!!SUCCESS!!!!

thank you all very much for your help - this has been a frusrating experience. Its good to know that forums like this exists.

paragonconcept 09-16-2004 04:06 AM

hrmmm that file has come back ..... i changed it again and it fixed my errors ......

hayne 09-16-2004 10:40 AM

Quote:

Originally Posted by paragonconcept
hrmmm that file has come back

It seems that (according to blb's theory) something that you are installing is assuming that there is a /usr/local/include folder - so maybe you should create one:

mkdir /usr/local/include

Of course, whatever software whose installer was trying to put those files into /usr/local/include may need to be reinstalled since its files didn't make it into the folder it expected. Don't worry about this until you see a problem.

paragonconcept 10-27-2004 05:20 PM

its back.....
 
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables

root# echo 'int main(){return 0;}' > test.c
root# gcc test.c
/var/tmp//ccK84GdY.s:18:Unknown pseudo-op: .subsections_via_symbols
:eek:


even though this sounds similar im not sure if it is - so im gonna start a new post


All times are GMT -5. The time now is 05:55 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.