Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sablotron will not compile.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
hooligan
n00b
n00b


Joined: 18 Feb 2003
Posts: 48

PostPosted: Sat Aug 09, 2003 2:18 am    Post subject: Sablotron will not compile. Reply with quote

Ok... I have tried messing with my USE flags, and my C flags, here is the most "whitebread" CFLAGS that I can put up, and Sablotron will not compile. Here are the last few lines of the emerge attempt...
I searched for "sablotron" on the forum, saw a few issues with it not compiling, but none with this specific error.

Code:

checking whether the C compiler (gcc march=pentium3 -O2 -pipe -mmmx -msse -lstdc++) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

!!! ERROR: app-text/sablotron-0.97 failed.
!!! Function econf, Line 320, Exitcode 1
!!! econf failed

sauron root #

_________________
hooligan
shellbent.com, useful only in its uselessness.
Back to top
View user's profile Send private message
Carlos
Guru
Guru


Joined: 07 Aug 2002
Posts: 458
Location: Providence, RI

PostPosted: Sat Aug 09, 2003 3:51 am    Post subject: Reply with quote

Are you able to emerge other ebuilds? Also, are you using distcc?

Doing a search here for the error you're getting - "compiler cannot create executables" - might be helpful.
_________________
Man must shape his tools lest they shape him.
Back to top
View user's profile Send private message
hooligan
n00b
n00b


Joined: 18 Feb 2003
Posts: 48

PostPosted: Sat Aug 09, 2003 12:45 pm    Post subject: Reply with quote

I am able to emerge other ebuilds...
I will try enabling distcc
_________________
hooligan
shellbent.com, useful only in its uselessness.
Back to top
View user's profile Send private message
hooligan
n00b
n00b


Joined: 18 Feb 2003
Posts: 48

PostPosted: Sat Aug 09, 2003 12:46 pm    Post subject: Reply with quote

enabling distcc didn't work... gonna try a search now...
_________________
hooligan
shellbent.com, useful only in its uselessness.
Back to top
View user's profile Send private message
Carlos
Guru
Guru


Joined: 07 Aug 2002
Posts: 458
Location: Providence, RI

PostPosted: Sat Aug 09, 2003 12:51 pm    Post subject: Reply with quote

hooligan wrote:
I am able to emerge other ebuilds...
I will try enabling distcc
Oh, sorry, I basically meant that if you were, you might want to try disabling it, not the other way around. :oops:

You might also want to try unpacking the tarball in some directory and ./configure-ing it yourself to see whether the problem lies in Portage.
_________________
Man must shape his tools lest they shape him.
Back to top
View user's profile Send private message
hooligan
n00b
n00b


Joined: 18 Feb 2003
Posts: 48

PostPosted: Sat Aug 09, 2003 12:57 pm    Post subject: Reply with quote

with or without distcc, same error message.
I also tried making some very vanilla CFLAGS (mcpu=pentium3 -O2 -pipe) and disabling all features.

still no dice...

but... I can /configure the binary just fine, when downloading the sablotron tarball... perhaps an issue with portage and this app?
_________________
hooligan
shellbent.com, useful only in its uselessness.
Back to top
View user's profile Send private message
Carlos
Guru
Guru


Joined: 07 Aug 2002
Posts: 458
Location: Providence, RI

PostPosted: Sat Aug 09, 2003 1:04 pm    Post subject: Reply with quote

hooligan wrote:
with or without distcc, same error message.
I also tried making some very vanilla CFLAGS (mcpu=pentium3 -O2 -pipe) and disabling all features.

still no dice...

but... I can /configure the binary just fine, when downloading the sablotron tarball... perhaps an issue with portage and this app?
Can you give me the "checking whether the C compiler can create executable" line from the output you get from ./configure on the tarball (without Portage)? Maybe if you removed the -mmmx and -msse stuff it would work.

Also, what does "checking for gcc" find? Just plain 'gcc'?

Just for kicks, try doing an env-update and source /etc/profile
_________________
Man must shape his tools lest they shape him.
Back to top
View user's profile Send private message
hooligan
n00b
n00b


Joined: 18 Feb 2003
Posts: 48

PostPosted: Sat Aug 09, 2003 2:43 pm    Post subject: Reply with quote

my last CFLAGS didn't have -mmmx or -msse, it was dumbed down as much as possible... (mcpu=pentium3 -O2 -pipe)... I even took out USE varibles and FEATURES.
And I also have done env-update after each edit...

I don't know what else to try... gonna delete the ebuild and rsync...
_________________
hooligan
shellbent.com, useful only in its uselessness.
Back to top
View user's profile Send private message
hooligan
n00b
n00b


Joined: 18 Feb 2003
Posts: 48

PostPosted: Sat Aug 09, 2003 3:23 pm    Post subject: Reply with quote

ok... deleted the ebuild and rsync'd, same problem... I then perused the search a bit deeper and tried this:
Code:

root@sauron# USE="" CFLAGS="mcpu=i686 -O2 -pipe" CXXFLAGS="mcpu=i686 -O2 -pipe" emerge sablotron



SAME thing...
funny thing is, my webserver was hacked into (wouldn't have happened if I was admin... ) :-), the admin has now decided to run that *mainstream* server OS, and I need to make my system php-apache capable just so I can test out my php pages before I upload... and he dosen't have php installed on the server yet. He told me that the hosting company wouldn't allow him to update the Linux server ssh and ftp software, which was outdated and caused the exploited hack... however they do not mind him updating a Windows server daily... :?
_________________
hooligan
shellbent.com, useful only in its uselessness.
Back to top
View user's profile Send private message
hooligan
n00b
n00b


Joined: 18 Feb 2003
Posts: 48

PostPosted: Sun Aug 10, 2003 7:36 pm    Post subject: Reply with quote

has anyone found a resolution to this? I am able to ./configure the binaries manually... but I am unable to emerge sablotron... getting the "compiler can't create executables" error message.
_________________
hooligan
shellbent.com, useful only in its uselessness.
Back to top
View user's profile Send private message
hooligan
n00b
n00b


Joined: 18 Feb 2003
Posts: 48

PostPosted: Sun Aug 10, 2003 9:19 pm    Post subject: Reply with quote

Found it!
Don't know why emerging perl and XML-Parser (when they were already installed) fixed it, but it did...
I found this fix here:
https://forums.gentoo.org/viewtopic.php?t=47090&start=0&postdays=0&postorder=asc&highlight=sablotron
_________________
hooligan
shellbent.com, useful only in its uselessness.
Back to top
View user's profile Send private message
BServiss
n00b
n00b


Joined: 24 Nov 2002
Posts: 62

PostPosted: Fri Sep 12, 2003 11:16 pm    Post subject: Reply with quote

While seeing a problem in the emerge of sablotron I decided to re-emerge perl. At the end of the emerge I saw:

* If this is an upgrade to a perl 5.6.1 system,
* ~OR~ an upgrade to a previous Gentoo release
* of perl 5.8.0, prior to -r8
* you may need to recompile applications that
* were emerged against the old libperl.so
*
* /usr/portage/dev-lang/perl/files/libperl_rebuilder
* is provided to assist with this.
* PLEASE DO NOT INTERRUPT THE RUNNING OF THIS SCRIPT.
* Part of the rebuilding of applications compiled against
* your old libperl involves temporarily unmerging
* them - interruptions could leave you with unmerged
* packages before they can be remerged.
*
* If you have run the rebuilder and a package still gives
* you trouble, and re-emerging it fails to correct
* the problem, please check https://bugs.gentoo.org/
* for more information or to report a bug.
Back to top
View user's profile Send private message
laststraw
n00b
n00b


Joined: 18 Mar 2003
Posts: 16

PostPosted: Fri Oct 03, 2003 5:44 pm    Post subject: Sablotron enum error Reply with quote

For those of you seeing the sablotron enum error ....
Go here ....
http://cvs.sourceforge.net/viewcvs.py/expat/expat/lib/expat.h
install in your /usr/local/include dir

This should take of it!
Back to top
View user's profile Send private message
Target
Apprentice
Apprentice


Joined: 25 Apr 2002
Posts: 200

PostPosted: Mon Feb 09, 2004 3:38 am    Post subject: Reply with quote

I've seen this one. It's caused by the -lstdc++ flag, which is added by the ebuild because it's required for mod_php to work with apache without causing a segfault...

Basically, your libstdc++ is broken. This is very common with gcc updates. I think that possibly insufficient testing is being done with the C++ compiler before marking ebuilds stable.

Currently, this is what you get in config.log with sablotron and GCC 3.3.2:
Code:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so: undefined reference to `_Unwind_Resume_or_Rethrow@GCC_3.3'

That error is caused by old libs laying around (namely libgcc_s.so.1), and sure enough the last gcc ebuild (3.3.2... don't know about any previous as I haven't used them) left 3.2.3 stuff behind... So your build environment is no longer sane.

Code:
$ ls /lib/libgcc* -la
-rwxr-xr-x    1 root     root       235626 Oct  6 17:31 /lib/libgcc-3.2.3.a
-rwxr-xr-x    1 root     root       153827 Oct  6 17:31 /lib/libgcc-3.2.3_s.so
lrwxrwxrwx    1 root     root           17 Oct  6 17:42 /lib/libgcc_s.so.1 -> libgcc-3.2.3_s.so

$ gcc --version
gcc (GCC) 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Refs:
http://dot.kde.org/1067849710/1067902887/
http://gcc.gnu.org/ml/gcc-help/2003-07/msg00143.html

The fix? Link to the proper libgcc:
Code:
ln -sf /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc_s.so.1 /lib/libgcc_s.so.1
Back to top
View user's profile Send private message
Richie
n00b
n00b


Joined: 03 Sep 2003
Posts: 52
Location: Home

PostPosted: Sat May 08, 2004 8:13 am    Post subject: Reply with quote

Code:
$ ls /lib/libgcc* -la

doesn't show any files, however, Targets solution:
Code:
ln -sf /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc_s.so.1 /lib/libgcc_s.so.1

fixes it for me anyway.

I find it strange that previous versions of sablotron hasn't complained, as it appears I never had a symlink there..
Back to top
View user's profile Send private message
robert0380
n00b
n00b


Joined: 14 Oct 2003
Posts: 62
Location: Atlanta, GA

PostPosted: Tue May 25, 2004 4:41 pm    Post subject: im getting the same bogus error Reply with quote

i get the same message about the compiler when i try to emerge sablotron:

Code:

checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! ERROR: app-text/sablotron-1.0 failed.
!!! Function econf, Line 365, Exitcode 77
!!! econf failed


before i came here i had the idea to ./configure it mysef and it worked fine:

Code:

checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes



i re-emerged XML-Parse and that didnt fix anything.
my CFLAGS are fine, i dont get all exotic with them and my USE doesnt really come into play because sablotron only USEs perl and doc and all i USE is perl, and when i did my ./configure on the tar ball, i did it with perl support

./configure --enable-perlconnect --with-readline

and it worked, so the problem is with gentoo/portage or something.
_________________
Mars Bitches!
-Black George Bush (David Shapell)
Back to top
View user's profile Send private message
robert0380
n00b
n00b


Joined: 14 Oct 2003
Posts: 62
Location: Atlanta, GA

PostPosted: Tue May 25, 2004 7:24 pm    Post subject: fixed it Reply with quote

it was a stupid "bug-fix" in the ebuild.


remove the line that says -llibstc++ or some shit that's in the ebuild and it will work.

yea...some bug fix.


Code:

    # rphillips, fixes bug #3876
    # this is fixed for me with apache2, but keeping it in here
    # for apache1 users and/or until some clever detection
    # is added <obz@gentoo.org>



that right there mucked up the gcc test, remove that line that's after it if u are having problems with the ./configure like i was.
_________________
Mars Bitches!
-Black George Bush (David Shapell)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum