Last active
August 29, 2015 14:07
-
-
Save thanhtam92/4679b7461486ec60c9ad to your computer and use it in GitHub Desktop.
Compiling problems: cannot find crt1.o
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Proftpd-user] Re: configure: error: cannot run C compiled programs | |
From: malena rios <malena.rios@us...> - 2003-08-27 22:45:24 | |
Well inf firts email I wrote: | |
> Hi! | |
> | |
> I have a trouble when I try to compile the proftpd-1.2.8.tar.gz. | |
> My server is a Linux RedHat 8.0, and it has installed. | |
> | |
> glibc-2.2.93-5 glibc-devel-2.2.93-5 glibc-common-2.2.93-5 | |
> glib-1.2.10-8 glibc-kernheaders-2.4-7.20 glibc-utils-2.2.93-5 | |
> glib2-2.0.6-2 | |
> gcc-g77-3.2-7 gcc-java-3.2-7 gcc-c++-3.2-7 gcc-3.2-7 libgcj-3.2-7 | |
> libgcj-devel-3.2-7 pkgconfig-0.12.0-3 jdkgcj-0.2.3-1 libgcc-3.2-7 | |
> gcc-gnat-3.2-7 gconf-editor-0.3-1 | |
> | |
> but, whe i try to compile proftpd, i obtain the next message. | |
> | |
> [root@... proftpd]# sh configure | |
> checking build system type... i686-pc-linux-gnu | |
> checking host system type... i686-pc-linux-gnu | |
> checking target system type... i686-pc-linux-gnu | |
> 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. | |
> | |
> I want to know the pre requisites that I need to compile and install | |
> proftpd with support ldap. | |
> | |
> Thanks. | |
> Malena. | |
> | |
Well, I still try to resolve my problem. | |
My server configurations are: | |
Linux RedHat 8.0 2.4.19-SGI_XFS_1.2.0 i686 athlon i386 GNU/Linux | |
Now, I compiled it whit this command: | |
sh configure --host=i386-redhat-linux --prefix=/usr/local | |
--with-modules=mod_ldap | |
I did it, because the message error said: " If you meant to cross | |
compile, use `--host'." | |
But, now I have other message: | |
COMPILATION TIME | |
. | |
. | |
checking for alloca in -lucb... no | |
checking whether i386-redhat-linux-gcc needs -traditional... no | |
checking whether setpgrp takes no argument... configure: error: cannot | |
check setpgrp when cross compiling | |
CONFIG.LOG FILE | |
. | |
. | |
configure:1885: checking whether the C compiler works | |
configure:1891: ./a.out | |
configure: line 1: ./a.out: Permiso denegado | |
. | |
. | |
configure:12018: result: no | |
configure:12032: checking whether i386-redhat-linux-gcc needs -traditional | |
configure:12076: result: no | |
configure:12083: checking whether setpgrp takes no argument | |
configure:12089: error: cannot check setpgrp when cross compiling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can do so like this on Debian: | |
aptitude show libc-dev | |
Ubuntu: | |
apt-get install libc-dev | |
On Ubuntu, if you don't have libc-dev, since I cannot find it on packages.ubuntu.com, you can try installing libc6-dev directly. | |
Or on Redhat like systems: | |
yum install glibc-devel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment