SliTaz SliTaz Forum

You are not logged in.

#1 2012-03-29 14:41:04

searchfgold6789
Member
Registered: 2011-09-13
Posts: 41

error: C compiler cannot create executables

Hi,

I am trying to compile a program called extundelete.

When I try to ./configure it I get the message above. I tried installing glibc and gcc. I guess I need g++ to install this? But I don't know how to get g++. Thanks much.

- searchfgold6789

PS I can include configure.log but I'll have to get it first.

Offline

#2 2012-03-29 15:32:40

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: error: C compiler cannot create executables

Connect to the internet.

Open terminal:

#tazpkg get-install slitaz-toolchain

Retry ./configure

Offline

#3 2012-03-30 01:39:24

searchfgold6789
Member
Registered: 2011-09-13
Posts: 41

Re: error: C compiler cannot create executables

OK, thank you very much for your reply, ./configure worked!! now I have these errors:

http://paste.ubuntu.com/906536/

Offline

#4 2012-03-30 02:46:33

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: error: C compiler cannot create executables

Find the first error: extundelete.cc:107:27: error: ext2fs/ext2fs.h: No such file or directory

Search the slitaz repo for missing file:

tazpkg search-pkgname ext2fs/ext2fs.h

Search result for file ext2fs/ext2fs.h

======================================================================

e2fsprogs-dev

======================================================================

1 pkg(s) found with file: ext2fs/ext2fs.h

tazpkg get-install e2fsprogs-dev

Search for and install the tazpkg  that contains each file that stops make until make is able to finish.

You can look at the README in the extracted source and other docs which should tell you the build depends.

Offline

#5 2012-03-30 13:37:15

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: error: C compiler cannot create executables

It can compile on SliTaz and I have done it before. Just follow mojo advice and install the -dev packages as detailed in the README and INSTALL files.

Offline

#6 2012-04-03 23:51:57

searchfgold6789
Member
Registered: 2011-09-13
Posts: 41

Re: error: C compiler cannot create executables

Thank you, installing e2fsprogs-dev fixed it. Thank you very much! I just have the warning:

===

/usr/bin/ld: warning: libcom_err.so.2, needed by /usr/lib/gcc/i486-pc-linux-gnu/4.4.1/../../../libext2fs.so, may conflict with libcom_err.so.3

===

but I think I will ignore it.

Offline

#7 2012-04-03 23:58:42

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: error: C compiler cannot create executables

You can safely ignore it yes. As a side note, I noticed the most files recovered come from the lost+found directory.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]