Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: netsupport on January 01, 2011, 07:39:26 AM

Title: Error in Extension Creation
Post by: netsupport on January 01, 2011, 07:39:26 AM
hi
I want to create netcat extension for use in tiny core
i am download netcat.-0.7.1.tar_2.gz
 and do this steps:
open terminal and type this instructions

tar xzvf netcat-0.7.1.tar_2.gz
cd netcat
./configure --prefix= /usr/local --->error appear.
i put result below
1 configure:WARNING: you should use --build, --host, --target
2 configure:warning:invalid host type:/usr/local
3 checking build system type.../usr/local
4 checking target system type.../usr/local
5 checking for a BSD-compatible install.../usr/bin/install -c
6 checking whether build environment is sane...yes
7 checking for gawk...gawk
8 checking whether make sets $(MAKE)...yes
9 checking for /usr/local-gcc...no
10 checkig for gcc...gcc
11 checking for C compiler default output file name... configure: error:C compiler cannot create executables
see 'config.log' for more details

i think #1,#2,#11 lines are my errors and want help

my english is not good excuse me!! ;)
Title: Re: Error in Extension Creation
Post by: Juanito on January 01, 2011, 07:50:53 AM
did you load the compiletc extension using the apps browser?
Title: Re: Error in Extension Creation
Post by: netsupport on January 01, 2011, 08:06:23 AM
yes
also i load:
coreutils
squashfs
gcc
gawk
tcc
Title: Re: Error in Extension Creation
Post by: curaga on January 01, 2011, 08:33:39 AM
--prefix= /usr/local

^ no space between = and /usr/local.
Title: Re: Error in Extension Creation
Post by: tinypoodle on January 01, 2011, 11:39:34 AM
Are you aware that nc as a busybox applet is in base and socat an already available extension?
Title: Re: Error in Extension Creation
Post by: netsupport on January 02, 2011, 03:32:43 AM
i corrected the below pharse:
--prefix= /usr/local
to
--prefix=/usr/local

dear tinypoodle In response you say
yes this extensions are fully compatible with TinyCore
I've been struggle with this error And I think the problem is in gcc
It is possible that the problem is in gcc?
Please help because this error cause trouble for me ???
Title: Re: Error in Extension Creation
Post by: maro on January 02, 2011, 09:57:52 PM
I fail to see what the problem is. I just did
Code: [Select]
tce-load -wi compiletc squashfs-tools-4.x
tar xf netcat-0.7.1.tar.bz2
cd netcat-0.7.1/
./configure --prefix=/usr/local
make
DESTDIR=/tmp/pkg/netcat make install
strip /tmp/pkg/netcat/usr/local/bin/netcat
mksquashfs /tmp/pkg/netcat ~/netcat.tcz
and ended up with a private extension.

So having installed surplus extensions (e.g. 'coreutils.tcz' and 'tcc.tcz') might not have helped, but should not have caused the reported problems. Mind you I might have downloaded a slightly different source archive (http://sourceforge.net/projects/netcat/files/netcat/0.7.1/netcat-0.7.1.tar.bz2).
Title: Re: Error in Extension Creation
Post by: netsupport on January 03, 2011, 12:21:28 AM
Thank you all friends
My problem was solved
problem was in gcc because Was not installed correctly
So I removed all the contents of the tce/optional directory and re-install them :D