LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Broken ./configure (https://www.linuxquestions.org/questions/slackware-14/broken-configure-72215/)

bersl2 07-12-2003 08:33 PM

Broken ./configure
 
OK, I've got a weird one. (What I was trying to install in this case was the latest snapshot of Wine, but the same thing happens for all configure runs.)

bersl2@cx15455-a:/usr/src/wine-20030709$ ./configure --enable-opengl
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

bersl2@cx15455-a:/usr/src/20030709$ cat 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 Wine configure 20030709, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ./configure

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

hostname = cx15455-a
uname -m = i686
uname -r = 2.4.21
uname -s = Linux
uname -v = #1 Thu Jun 19 18:37:21 CDT 2003

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

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/www/htdig/bin
PATH: /opt/kde/bin
PATH: /usr/lib/qt-3.1.2/bin
PATH: /usr/share/texmf/bin
PATH: .


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

configure:1404: checking build system type
configure:1422: result: i686-pc-linux-gnu
configure:1430: checking host system type
configure:1444: result: i686-pc-linux-gnu
configure:1452: checking whether make sets $(MAKE)
configure:1472: result: yes
configure:1527: checking for gcc
configure:1543: found /usr/bin/gcc
configure:1553: result: gcc
configure:1797: checking for C compiler version
configure:1800: gcc --version </dev/null >&5
gcc (GCC) 3.2.2
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.

configure:1803: $? = 0
configure:1805: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/3.2.2/specs
Configured with: ../gcc-3.2.2/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i386-slackware-linux --host=i386-slackware-linux
Thread model: posix
gcc version 3.2.2
configure:1808: $? = 0
configure:1810: gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:1813: $? = 1
configure:1837: checking for C compiler default output
configure:1840: gcc conftest.c >&5
configure:1843: $? = 0
configure:1889: result: a.out
configure:1894: checking whether the C compiler works
configure:1900: ./a.out
./configure: line 1: ./a.out: Permission denied
configure:1903: $? = 126
configure:1912: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

and a whole lot of empty environment variables left out for sanity's sake.

Hmm... there is no conftest.c... fun...

fancypiper 07-12-2003 08:41 PM

Is kernel-source installed? I don't know if wine needs it or not, it's just a shot in the dark.

bersl2 07-13-2003 11:20 AM

It's not a Wine issue. I have the same problem with every attempt to run configure.

I'm thinking I might want to remove and install again the whole D series of packages. Can't hurt too much...

(later)

...doesn't help too much, either.

Proud 07-13-2003 11:26 AM

Quote:

configure:1894: checking whether the C compiler works
configure:1900: ./a.out
./configure: line 1: ./a.out: Permission denied
configure:1903: $? = 126
configure:1912: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
Have you changed security policies recently, or changed the permissions of any compiler/important apps? You are loggin in as root right?

fancypiper 07-13-2003 11:32 AM

Your prompt is showing user account ( $ ) and not root ( # ).

Try this command first and answer the prompt with the root password
Code:

fancy@uilleann $ su -
Password:
root@uilleann #


bersl2 07-13-2003 11:39 AM

I usually do the whole compile process as root, yes. (Looks at first post. Oops.)

As for security policies, I'll go look at the permissions of the executables, but...

Could a strange umask have anything to do with this? :D Such as umask 133... :o

Proud 07-13-2003 11:43 AM

umask 133 gives permissions 744, which seems an ok set of permissions. Just logging in as root should fix it, and as long as you havent been playing with the security or permissions, nothing should be wrong. :)

bersl2 07-13-2003 11:44 AM

I'm gonna cry. Thanks for putting up with my brain cramps.

Proud 07-13-2003 11:46 AM

Still not working? :confused:


All times are GMT -5. The time now is 12:11 AM.