WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Error in Extension Creation  (Read 2540 times)

Offline netsupport

  • Newbie
  • *
  • Posts: 6
Error in Extension Creation
« 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!! ;)
« Last Edit: January 01, 2011, 07:46:55 AM by netsupport »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: Error in Extension Creation
« Reply #1 on: January 01, 2011, 07:50:53 AM »
did you load the compiletc extension using the apps browser?

Offline netsupport

  • Newbie
  • *
  • Posts: 6
Re: Error in Extension Creation
« Reply #2 on: January 01, 2011, 08:06:23 AM »
yes
also i load:
coreutils
squashfs
gcc
gawk
tcc

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Error in Extension Creation
« Reply #3 on: January 01, 2011, 08:33:39 AM »
--prefix= /usr/local

^ no space between = and /usr/local.
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Error in Extension Creation
« Reply #4 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?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline netsupport

  • Newbie
  • *
  • Posts: 6
Re: Error in Extension Creation
« Reply #5 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 ???

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Error in Extension Creation
« Reply #6 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.

Offline netsupport

  • Newbie
  • *
  • Posts: 6
Re: Error in Extension Creation
« Reply #7 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