Unix Technical Forum

Slackbuild: "C compiler cannot create executables"?

This is a discussion on Slackbuild: "C compiler cannot create executables"? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi! I'm trying to use this slackbuild for slackware 12 http://www.slacky.eu/repository/slac...tor.SlackBuild on a slackware 11 (is it ok?). During ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 04:36 AM
nbukf
 
Posts: n/a
Default Slackbuild: "C compiler cannot create executables"?

Hi!
I'm trying to use this slackbuild for slackware 12
http://www.slacky.eu/repository/slac...tor.SlackBuild
on a slackware 11 (is it ok?).
During the script execution this messages come up:

> <cut>
> checking host system type... i486-slackware-linux-gnu
> checking for gcc... gcc
> checking for C compiler default output file name...
>
> ************************************************** ****
> configure: error: C compiler cannot create executables
> ************************************************** ****
>
> See `config.log' for more details.
> make: *** No targets specified and no makefile found. Stop.
> make: *** No rule to make target `install'. Stop.
> find: /tmp/tgz/package/usr/man: No such file or directory
> mv: cannot stat `/tmp/tgz/package/etc/tor/tor-tsocks.conf': No

such file or directory
> cp: cannot stat `/tmp/tgz/package/etc/tor/torrc.sample': No such

file or directory
> ./tor.SlackBuild: line 70: requiredbuilder: command not found
>
> Slackware package maker, version 2.1.
> </cut>


What's the problem?
You can see the whole "config.log" here:
http://tinyurl.com/2p492k

THX!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 04:36 AM
Jim Diamond
 
Posts: n/a
Default Re: Slackbuild: "C compiler cannot create executables"?

On 2007-09-25, nbukf <hg875@hje8n.kl> wrote:
> Hi!
> I'm trying to use this slackbuild for slackware 12
> http://www.slacky.eu/repository/slac...tor.SlackBuild
> on a slackware 11 (is it ok?).
> During the script execution this messages come up:
>
>> <cut>
>> checking host system type... i486-slackware-linux-gnu
>> checking for gcc... gcc
>> checking for C compiler default output file name...
>>
>> ************************************************** ****
>> configure: error: C compiler cannot create executables
>> ************************************************** ****
>>
>> See `config.log' for more details.
>> make: *** No targets specified and no makefile found. Stop.
>> make: *** No rule to make target `install'. Stop.
>> find: /tmp/tgz/package/usr/man: No such file or directory
>> mv: cannot stat `/tmp/tgz/package/etc/tor/tor-tsocks.conf': No

> such file or directory
>> cp: cannot stat `/tmp/tgz/package/etc/tor/torrc.sample': No such

> file or directory
>> ./tor.SlackBuild: line 70: requiredbuilder: command not found
>>
>> Slackware package maker, version 2.1.
>> </cut>

>
> What's the problem?
> You can see the whole "config.log" here:
> http://tinyurl.com/2p492k


Did you see the line
gcc: installation problem, cannot exec `as': No such file or directory
It pretty much says it all. You should have /usr/bin/as installed,
but it says it can't execute that file (or that file is missing).

On Slack 12 the required package is binutils-2.17.50.0.17-i486-1, you
should look for the right package for Slack 11.0 and install it.

I don't know if the Slack 12.0 slackbuild will work on Slack 11, but
you will need "as" anyway.

Jim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 04:36 AM
nbukf
 
Posts: n/a
Default Re: Slackbuild: "C compiler cannot create executables"?

Jim Diamond wrote:

> On Slack 12 the required package is binutils-2.17.50.0.17-i486-1, you
> should look for the right package for Slack 11.0 and install it.


Thanks Jim!
I was also missing glibc and gcc... speaking of newbies.
Now, after a few steps forward, I'm stuck again with a series of

checking for gettimeofday... no
checking for ftime... no
checking for socketpair... no
checking for uname... no
checking for inet_aton... no
checking for strptime... no
checking for getrlimit... no
checking for strlcat... no
checking for strlcpy... no
checking for strtoull... no
checking for ftello... no
checking for getaddrinfo... no
checking for localtime_r... no
checking for gmtime_r... no
checking for memmem... no
checking for strtok_r... no

These are functions in some missing package, right?
I've tried googleing, but I can't figure out what package I'm
missing. :-(

I've also updated the config.log:
http://tinyurl.com/2p492k

Thanks again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 04:36 AM
Thomas Overgaard
 
Posts: n/a
Default Re: Slackbuild: "C compiler cannot create executables"?


nbukf wrote :

> These are functions in some missing package, right?


Packages! Your missing more than just one.

> I've tried googleing, but I can't figure out what package I'm
> missing. :-(


Stop Googeling and search /slackware/MANIFEST.bz2 for the files you are
missing.
--
Thomas O.

This area is designed to become quite warm during normal operation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 04:36 AM
Manuel Otto
 
Posts: n/a
Default Re: Slackbuild: "C compiler cannot create executables"?

On Wed, 26 Sep 2007 16:30:01 +0200, Thomas Overgaard
<thover@post2.tele.dk> wrote:

>
>nbukf wrote :
>
>> These are functions in some missing package, right?

>
>Packages! Your missing more than just one.
>
>> I've tried googleing, but I can't figure out what package I'm
>> missing. :-(

>
>Stop Googeling and search /slackware/MANIFEST.bz2 for the files you are
>missing.


Didn't know about slackware/MANIFEST.bz2 (never took the the time to
look what's inside, I think).

Very useful!

Allready had PACKAGES.TXT and FILE_LIST on Desktop, now I'vee added
MANIFEST too :-)

Knowing this could could have solved a similair problem I had just
starting Linux a year ago, trying to compile something.

= :-))

Thanks!
Manuel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 04:36 AM
nbukf
 
Posts: n/a
Default Re: Slackbuild: "C compiler cannot create executables"?

Thomas Overgaard wrote:

> Stop Googeling and search /slackware/MANIFEST.bz2 for the files you are
> missing.


I'm having a hard time understanding how to use /slackware/MANIFEST.bz2.

For example, "gettimeofday" is only in this line:
-rw... ...usr/man/man2/gettimeofday.2.gz

>From "man gettimeofday" i know that I should have "sys/time.h".

I have "/usr/include/sys/time.h" already.

How do I proceed from here?

Thanks for your patience!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 04:36 AM
Manuel Otto
 
Posts: n/a
Default Re: Slackbuild: "C compiler cannot create executables"?

On Wed, 26 Sep 2007 18:31:03 +0200, nbukf <hg875@hje8n.kl> wrote:

>Thomas Overgaard wrote:
>
>> Stop Googeling and search /slackware/MANIFEST.bz2 for the files you are
>> missing.

>
>I'm having a hard time understanding how to use /slackware/MANIFEST.bz2.
>
>For example, "gettimeofday" is only in this line:
>-rw... ...usr/man/man2/gettimeofday.2.gz


And twice in kernel-source-2.6.21.5_smp-noarch-2.tgz :

usr/src/linux-2.6.21.5/arch/powerpc/kernel/vdso64/gettimeofday.S
usr/src/linux-2.6.21.5/arch/powerpc/kernel/vdso32/gettimeofday.S

Open with text editor, search, then search next occurance, untill no
more is found.

>>From "man gettimeofday" i know that I should have "sys/time.h".

>I have "/usr/include/sys/time.h" already.
>
>How do I proceed from here?
>
>Thanks for your patience!
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 04:36 AM
nbukf
 
Posts: n/a
Default Re: Slackbuild: "C compiler cannot create executables"?

Manuel Otto wrote:

> And twice in kernel-source-2.6.21.5_smp-noarch-2.tgz :
>
> usr/src/linux-2.6.21.5/arch/powerpc/kernel/vdso64/gettimeofday.S
> usr/src/linux-2.6.21.5/arch/powerpc/kernel/vdso32/gettimeofday.S


Uhmm, I can see that, but I'm running on a slack 11 with a 2.4.33.3
kernel. Does this mean that I cannot use that slackbuild?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 04:36 AM
nbukf
 
Posts: n/a
Default Re: Slackbuild: "C compiler cannot create executables"?

nbukf wrote:
> Manuel Otto wrote:
>
>> And twice in kernel-source-2.6.21.5_smp-noarch-2.tgz :
>>
>> usr/src/linux-2.6.21.5/arch/powerpc/kernel/vdso64/gettimeofday.S
>> usr/src/linux-2.6.21.5/arch/powerpc/kernel/vdso32/gettimeofday.S

>
> Uhmm, I can see that, but I'm running on a slack 11 with a 2.4.33.3
> kernel. Does this mean that I cannot use that slackbuild?
>
> Thanks



Wait!
I've tried the slackbuild for slack11
http://www.slacky.eu/repository/slac...tor.SlackBuild
but the errors are the same...
Now I'm really scratching my head!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 04:36 AM
Jim Diamond
 
Posts: n/a
Default Re: Slackbuild: "C compiler cannot create executables"?

On 2007-09-26, nbukf <hg875@hje8n.kl> wrote:
> Jim Diamond wrote:
>
>> On Slack 12 the required package is binutils-2.17.50.0.17-i486-1, you
>> should look for the right package for Slack 11.0 and install it.

>
> Thanks Jim!
> I was also missing glibc and gcc... speaking of newbies.
> Now, after a few steps forward, I'm stuck again with a series of
>
> checking for gettimeofday... no
> checking for ftime... no
> checking for socketpair... no
> checking for uname... no
> checking for inet_aton... no
> checking for strptime... no
> checking for getrlimit... no
> checking for strlcat... no
> checking for strlcpy... no
> checking for strtoull... no
> checking for ftello... no
> checking for getaddrinfo... no
> checking for localtime_r... no
> checking for gmtime_r... no
> checking for memmem... no
> checking for strtok_r... no
>
> These are functions in some missing package, right?
> I've tried googleing, but I can't figure out what package I'm
> missing. :-(
>
> I've also updated the config.log:
> http://tinyurl.com/2p492k
>
> Thanks again.


Well, it says (among other things) you are missing dlopen().

To cut to the chase, why don't you make sure you installed EVERY
package in the development ("d") series. Presumably you decided to
install only some of the packages when you installed Slackware 11, and
this decision is causing you grief. I can only assume you would do
that because you are low on disk space. In any case, install all the
"d" packages, try again, and report back on how things went.

Jim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:45 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com