kompilace ProFTPd
Libor Chocholaty
libor_ml1 na mts.cz
Čtvrtek Duben 6 14:14:39 CEST 2006
Ted jsem si to prohlid jeste jednou a pripada mi podezrele, ze linker
(ld) nemuze najit knihovnu libc. Zkuste udelat
$ ldd <nejaka binarka>
a poslete to sem.
A jako drhou vec si zkopirujte ten zdrojak do souboru.c a zkuste ho
prelozit rucne:
gcc soubor.c -o soubor
a pokud to projde, tak jeste to ldd:
ldd soubor
A o vysledky se s nama podelte.
Libor
bambas wrote:
> Zdravim,
> nainstaloval jsem 64bit linux (Slamd64) na server a rad bych
> zkompiloval proFTPd, nebot potrebuji aplikovat jeden patch.
>
> nicmene mi pro ./configure vypise hlasku: "C compiler cannot create
> executables"
>
> vice je v config.log, ktery prikladam. vubec z toho nejsem chytry,
> muzete poradit? diky za kazdou radu.
>
>
> bambas
> ------------------------------------------------------------------------
>
> configure:1533: checking for gcc
> configure:1549: found /usr/bin/gcc
> configure:1559: result: gcc
> configure:1803: checking for C compiler version
> configure:1806: gcc --version </dev/null >&5
> gcc (GCC) 3.4.4
> Copyright (C) 2004 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:1809: $? = 0
> configure:1811: gcc -v </dev/null >&5
> Reading specs from /usr/lib/gcc/x86_64-slackware-linux/3.4.4/specs
> Configured with: ../gcc-3.4.4/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=x86_64-slackware-linux --host=x86_64-slackware-linux
> Thread model: posix
> gcc version 3.4.4
> configure:1814: $? = 0
> configure:1816: gcc -V </dev/null >&5
> gcc: `-V' option must have argument
> configure:1819: $? = 1
> configure:1843: checking for C compiler default output
> configure:1846: gcc conftest.c >&5
> /usr/lib/gcc/x86_64-slackware-linux/3.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-slackware-linux/3.4.4/../../../libc.so when searching for -lc
> /usr/lib/gcc/x86_64-slackware-linux/3.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-slackware-linux/3.4.4/../../../libc.a when searching for -lc
> /usr/lib/gcc/x86_64-slackware-linux/3.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
> /usr/lib/gcc/x86_64-slackware-linux/3.4.4/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
> /usr/lib/gcc/x86_64-slackware-linux/3.4.4/../../../../x86_64-slackware-linux/bin/ld: cannot find -lc
> collect2: ld returned 1 exit status
> configure:1849: $? = 1
> configure: failed program was:
> | #line 1822 "configure"
> | /* confdefs.h. */
> |
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | /* end confdefs.h. */
> |
> | int
> | main ()
> | {
> |
> | ;
> | return 0;
> | }
> configure:1888: error: C compiler cannot create executables
> See `config.log' for more details.
>
Další informace o konferenci Linux