Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-12-2004, 03:21 AM
|
#1
|
LQ Newbie
Registered: Dec 2003
Posts: 13
Rep:
|
error: C compiler cannot create executables
I am using SuSE 9.1. I am trying to install xine and I always get this message. I have gcc version 3.3.3 installed. I always get this:
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
I tried to paste in the config.log, but it was too big.
|
|
|
06-12-2004, 06:25 PM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381
|
"checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details."
Without the details I can only guess what the problem is. My first guess is that this is a permissions problem. Did you run the compile as user?
___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html
Steve Stites
|
|
|
06-12-2004, 11:59 PM
|
#3
|
LQ Newbie
Registered: Dec 2003
Posts: 13
Original Poster
Rep:
|
I was logged in as a user, however I used the "su" command in the terminal. This is from the config.log, it it helps:
configure:2489: $? = 0
configure:2491: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --with-slibdir=/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-shared --enable-threads=posix --enable-languages=c,c++,f77,java,objc --enable-__cxa_atexit --enable-c99 --enable-nls --enable-long-long --enable-multilib --with-gnu-as --with-gnu-ld --with-system-zlib --without-x i386-redhat-linux
Thread model: posix
gcc version 3.3.3
configure:2494: $? = 0
configure:2496: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2499: $? = 1
configure:2523: checking for C compiler default output
configure:2526: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2529: $? = 1
configure: failed program was:
| #line 2502 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define XINE_MAJOR 1
| #define XINE_MINOR 0
| #define XINE_SUB 0
| #define PACKAGE "xine-lib"
| #define VERSION "1-rc4a"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2568: error: C compiler cannot create executables
See `config.log' for more details.
|
|
|
06-13-2004, 12:19 PM
|
#4
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381
|
"/usr/bin/ld: crt1.o: No such file: No such file or directory"
I have the beginning of an explanation. The linker cannot find crt1.o. This is the output of the compile of crt1. My explanation simply moves the question to why didn't gcc compile crt1 to crt1.o. Do you know what crt1 is?
___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html
Steve Stites
|
|
|
06-13-2004, 12:46 PM
|
#5
|
LQ Newbie
Registered: Dec 2003
Posts: 13
Original Poster
Rep:
|
I have no idea what crt1 is, or what it is for.
|
|
|
06-13-2004, 03:32 PM
|
#6
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381
|
"I have no idea what crt1 is, or what it is for."
Neither do I. Does xine depend on a separate crt driver?
--------------------------
Steve Stites
|
|
|
06-14-2004, 10:17 PM
|
#7
|
LQ Newbie
Registered: Dec 2003
Posts: 13
Original Poster
Rep:
|
I have no idea what a crt driver is, or what it is used for, and have no idea if it uses a different crt driver or not. Sorry, I am a newby with almost no knowledge about this stuff.
|
|
|
06-14-2004, 10:28 PM
|
#8
|
Member
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288
Rep:
|
Looks like a permisions problem. One thing that gets overlooked is whether the partition containing the source is mounted with exec in fstab.
|
|
|
06-14-2004, 10:38 PM
|
#9
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381
|
Here is a guess as to what the problem is. I think that xine depends on a kernel driver called crt1.o. crt1.o should be somewhere in the /lib/modules tree. You can check to see if it is with:
find /lib -iname "*crt*"
With kernel 2.6 the endings of the names of the drivers has been switched from .o to .ko. So now that you are on SuSE 9.1 with kernel 2.6.4 xine should be looking for crt1.ko which may or may not be available in /lib/modules. So I suspect that you need to find a version of xine that works on kernel 2.6.4 and download that.
Is the version of xine that you are trying to install one that you previously installed on kernel 2.4.x?
___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html
Steve Stites
|
|
|
All times are GMT -5. The time now is 02:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|