Konuyu görüntüle
IUCODERS FORUM > İşletim Sistemleri & Donanım & Network > UNIX,LINUX > Ubuntu da GCC Kurduğum halde GCC Hatası
Yazar
halitoz


avatar
GÖKSUN
Kayıt: 19.11.2006
14.06.2009-15:28 #61150
Arkadaşlar UBUNTU'ta GCC yi kurduğum halde aşağıdaki hatayı alıyorum. Nedendir?

halit@halit-desktop:~/Masaüstü/ns/otcl-1.13$ ./configure
No .configure file found in current directory
Continuing with default options...
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... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.


halit@halit-desktop:~/Masaüstü/ns/otcl-1.13$ sudo apt-get install gcc build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gcc zaten en yeni sürümde.
build-essential zaten en yeni sürümde.
0 yükseltildi, 0 yeni kuruldu, 0 kaldırılacak ve 2 yükseltilmeyecek.






YASASIN ZALiMLER iCiN CEHENNEM...




Yazar
halitoz


avatar
GÖKSUN
Kayıt: 19.11.2006
14.06.2009-16:54 #61151
Yukarıdaki problemi hallettim ama şimdi de başka bi problem var. Ne anlama geldiğini bilen var mı?

halit@halit-desktop:~/Desktop/ns/otcl-1.13$ ./configure
No .configure file found in current directory
Continuing with default options...
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 file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... no
checking standard STL is available... no
checking for tcl.h... no
checking for tclInt.h... no
checking for libtcl8.4... no
checking for init.tcl... no
checking for http.tcl... no
checking Tcl http.tcl library... configure: error: Couldn't find http.tcl in  	 /http 	/http2.4 	/http2.3 	/http2.1 	/http2.0 	/http1.0 	
halit@halit-desktop:~/Desktop/ns/otcl-1.13$ 






YASASIN ZALiMLER iCiN CEHENNEM...




Yazar
hamdikan


avatar
dünya
Kayıt: 23.01.2006
14.06.2009-16:58 #61152
sudo ln -s /usr/share/tcltk/tcl8.4 /usr/share/
sudo ln -s /usr/share/tcltk/tk8.4 /usr/share/

sonra yine configure de

sunları dene bakalım bende bılmıyıorum ama ınternetten bunu buldum bı tek :)
http://ubuntuforums.org/showthread.php?t=803445





yok

Yazar
halitoz


avatar
GÖKSUN
Kayıt: 19.11.2006
14.06.2009-17:00 #61153
aynı mesaj Hamdi. dediklerini denedim ama.

checking Tcl http.tcl library... configure: error: Couldn't find http.tcl in  	 /http 	/http2.4 	/http2.3 	/http2.1 	/http2.0 	/http1.0 	






YASASIN ZALiMLER iCiN CEHENNEM...




Yazar
halitoz


avatar
GÖKSUN
Kayıt: 19.11.2006
14.06.2009-17:33 #61154
hallettim arkadaşlar. şimdiye kadar bi problem yok. program kuruluyor. inşallah da sorunsuz kurulur.
teşekkürler...





YASASIN ZALiMLER iCiN CEHENNEM...




Yazar
halitoz


avatar
GÖKSUN
Kayıt: 19.11.2006
14.06.2009-20:14 #61158
Arkadaşlar ubuntu da karşılaştığım bir sorun var. Çözümünü nette buldum ama ne anlama geldiğini bilmiyorum. Fikri olan var mı?

 
* Description: Linking stage fails with error:

/usr/bin/ld: ns: hidden symbol `__stack_chk_fail_local' in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status

* Solution: Apply the following patch to configure.in in otcl-1.12 or otcl-1.13:

diff -uNr otcl-1.12/configure.in otcl-1.12-patched/configure.in
--- otcl-1.12/configure.in 2006-09-25 01:02:37.000000000 -0400
+++ otcl-1.12-patched/configure.in 2007-04-12 11:45:09.000000000 -0400
@@ -74,7 +74,7 @@
;;
Linux*)
SHLIB_CFLAGS="-fpic"
- SHLIB_LD="ld -shared"
+ SHLIB_LD="${CC} -shared"
SHLIB_SUFFIX=".so"
DL_LIBS="-ldl"
SHLD_FLAGS=""

then rebuild the OTcl configure script:

otcl-1.13$ autoconf -f

You should now be able to build OTcl (and everything else) normally. Thanks go to Chia-Yung Su for figuring this out and for providing a reference to a similar problem in a different program.

* Alternative: To work around the problem, install gcc-4.0 and g++-4.0 and use them to compile OTcl:

otcl-1.13$ ./configure CC="gcc-4.0" CXX="g++-4.0" --with-tcl=../tcl8.4.14 --with-tk=../tk8.4.14

You can also use gcc-4.0 and g++-4.0 to compile everything. This may be simpler than using 4.0 for just OTcl (as suggested above). Type the following before you start building the programs:

export CC="gcc-4.0"
export CXX="g++-4.0"

[edit]
ubuntu:

if previous tips dont work and after the configure.in tric, do the following (source : [1]). It solves the issue on edgy with

gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)


* for otcl use ./configure then manualy edit Makefile:8

- CFLAGS= -g -O2
+ CFLAGS= -g -O2 -fno-stack-protector

* for ns nam use ./configure then manualy edit Makefile:82

- CFLAGS += $(CCOPT) $(DEFINE)
+ CFLAGS += $(CCOPT) $(DEFINE) -fno-stack-protector







YASASIN ZALiMLER iCiN CEHENNEM...




Del.icio.us
Digg
Facebook
Furl
Google
Blink
Simpy
Spurl
Y! MyWeb