[Linux] Re: Suse 7.2 Derleme Sorunu

---------

New Message Reply About this list Date view Thread view Subject view Author view

From: Tufan Sen (tufan@itu.edu.tr)
Date: Mon 02 Jul 2001 - 14:15:19 EEST


> -----Original Message-----
> From: linux-bounce@linux.org.tr
> [mailto:linux-bounce@linux.org.tr]On Behalf Of
> fatih.ozavci@mail.superonline.com
> Sent: 02 Temmuz 2001 Pazartesi 12:51
> To: linux@linux.org.tr
> Subject: [Linux] Re: Suse 7.2 Derleme Sorunu
>
>
>
> configure:1157: checking whether the C compiler (gcc ) works
> configure:1173: gcc -o conftest conftest.c 1>&5
> /usr/i486-suse-linux/bin/ld: cannot find -lgcc

Hiç SUSE kullanmadim ama RedHat sistemlerde gcc için /usr/lib/gcc-lib/
altindaki dizinler kullanilir. Hatayi da libgcc dosyasini bulamadigi için
veriyor ve bu dosya /usr/lib/gcc-lib/makine_tipi/versiyon dizini altinda.
(örnek : /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/ ) gcc'nin man
page'inde asagidaki bilgi var.

 -Bprefix
              This option specifies where to find the executables, libraries
and data files of the compiler it­
              self.

              The compiler driver program runs one or more of the
subprograms `cpp', `cc1' (or, for C++,
              `cc1plus'), `as' and `ld'. It tries prefix as a prefix for
each program it tries to run, both with
              and without `machine/version/'.

              For each subprogram to be run, the compiler driver first
tries the `-B' prefix, if any. If that
              name is not found, or if `-B' was not specified, the driver
tries two standard prefixes, which are
              `/usr/lib/gcc/' and `/usr/local/lib/gcc-lib/'. If neither of
those results in a file name that is
              found, the compiler driver searches for the unmodified program
name, using the directories speci­
              fied in your `PATH' environment variable.

              The run-time support file `libgcc.a' is also searched for
using the `-B' prefix, if needed. If it
              is not found there, the two standard prefixes above are tried,
and that is all. The file is left
              out of the link if it is not found by those means. Most of
the time, on most machines, `libgcc.a'
              is not actually necessary.

              You can get a similar result from the environment variable
GCC_EXEC_PREFIX; if it is defined, its
              value is used as a prefix in the same way. If both the `-B'
option and the GCC_EXEC_PREFIX vari­
              able are present, the `-B' option is used first and the
environment variable value second.

GCC_EXEC_PREFIX çevre degiskeni veya -B parametresi ile sorunu
giderebilirsin belki. Tüm sistem için bu ayarlar nerden yapiliyor
bilemiyorum ama /etc/profile dosyasinda GCC_EXEC_PREFIX degiskenini
ayarladinmi tüm kullanicilar için geçerli olamasi lazim herhalde. (Bu dosya
yanlis hatirlamiyor isem sadece bash için geçerli , diger kabuklar içinde
buna benzer dosyalar olmali.)

Bu bilgiler sadece Red Hat sistemlerde geçerli olabilir. Umarim bir yol
gösterebilmisimdir.

> collect2: ld returned 1 exit status
> configure: failed program was:
>
> #line 1168 "configure"
> #include "confdefs.h"
>
> main(){return(0);}
>
> config.log da bunlar yaziyor... yardimci oluran sevinirim....
> ld calisiyor bu arada... sanirim gcc pathinde filan bir sor=
> un var...
> Original Message:
>
> -----------------
>
> From: Tufan Sen tufan@itu.edu.tr
>
> Date: Mon, 2 Jul 2001 12:30:30 +0300
>
> To: linux@linux.org.tr
>
> Subject: [Linux] Re: Suse 7.2 Derleme Sorunu
>
>
>
>
>
>
>
> config.log (isimde yaniliyor olabilirim.) dosyasinda hata
> mesaji yaziyor
>
> olmali. Hata mesajini bildirirsen yardimci olmaya =E7alisirim...
>
>
>
> --------------------------------------------------------------------
> Mail2Web - Check your email from the web at
> http://www.mail2web.com/ .
>
> --------------------------------------------------------------
> ---------
> Liste üyeliğiniz ile ilgili her türlü işlem için
> http://liste.linux.org.tr adresindeki web arayüzünü kullanabilirsiniz.
>
> Listeden çıkmak için: 'linux-request@linux.org.tr' adresine,
> "Konu" kısmında "unsubscribe" yazan bir e-posta gönderiniz.
> --------------------------------------------------------------
> ---------

-----------------------------------------------------------------------
Liste üyeliğiniz ile ilgili her türlü işlem için
http://liste.linux.org.tr adresindeki web arayüzünü kullanabilirsiniz.

Listeden çıkmak için: 'linux-request@linux.org.tr' adresine,
"Konu" kısmında "unsubscribe" yazan bir e-posta gönderiniz.
-----------------------------------------------------------------------


New Message Reply About this list Date view Thread view Subject view Author view

---------

Bu arsiv hypermail 2b29 tarafindan uretilmistir.