LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-11-2005, 11:35 PM   #1
kierse
Member
 
Registered: Apr 2003
Distribution: Slackware!
Posts: 73

Rep: Reputation: 15
Question small problem after slackware upgrade


Alrighty, a couple of days ago I decided to upgrade from slackware 10.0 to 10.1. For whatever reason, I decided to use swaret to upgrade all my packages rather than following the instructions on the slack cd. Anyway, everything seemed to go ok until I tried to compile something. I get the following message when running a configure script:

Code:
...
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
I had a quick look at config.log but couldn't make heads or tails of it. I checked and /lib/cpp exists and points to /usr/bin/cpp. I've tried installing/upgrading all gcc/g++ slackware packages I can find but nothing seems to fix the problem.

Does anyone have an ideas?
thanks

Kierse
 
Old 02-11-2005, 11:40 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Re: small problem after slackware upgrade

Quote:
Originally posted by kierse


Does anyone have an ideas?
thanks

Kierse
Ya, never use swaret! Pat V. does not include it on Slackware and does not support the
use of swaret at all.....................
 
Old 02-12-2005, 09:37 AM   #3
kierse
Member
 
Registered: Apr 2003
Distribution: Slackware!
Posts: 73

Original Poster
Rep: Reputation: 15
...not quite what I was looking for.
 
Old 02-12-2005, 09:59 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Maybe some compatibility problem ? eg /usr/bin/cpp linked with another glibc version
 
Old 02-12-2005, 11:09 AM   #5
kierse
Member
 
Registered: Apr 2003
Distribution: Slackware!
Posts: 73

Original Poster
Rep: Reputation: 15
I checked the version of cpp and it returns gcc 3.3.4 which is the package version I have installed.

I started reading the generated log file and determined that it seems to be failing with the following:

Code:
configure:2725: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2728: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
The code in question that generates this error is as follows:

Code:
# Some people use a C++ compiler to compile C.  Since we use `exit',
# in C++ we need to declare it.  In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
  choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  (eval $ac_compile) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
        { ac_try='test -s conftest.$ac_objext'
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); }; }; then
  for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <stdlib.h>
$ac_declaration
int
main ()
{
exit (42);
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext
It doesn't seem to be getting past the macro ifndef __cplusplus but I don't know where it's set/declared
 
Old 02-12-2005, 11:28 AM   #6
At0mic_PC
Member
 
Registered: Jul 2003
Location: Mississippi
Distribution: Slack9.1
Posts: 159

Rep: Reputation: 30
Maybe try upgrading the way UPGRADE.txt says. I did have a few problems doing it like this, but I was able to fix them with a kernel compile.
 
Old 02-12-2005, 01:11 PM   #7
kierse
Member
 
Registered: Apr 2003
Distribution: Slackware!
Posts: 73

Original Poster
Rep: Reputation: 15
ya, I've been thinking about trying the steps described in UPGRADE.txt. I'll give them a try and let you know how it turns out
 
Old 02-13-2005, 06:59 AM   #8
amos
Member
 
Registered: Dec 2002
Location: Bolton, UK
Distribution: Kubuntu
Posts: 224

Rep: Reputation: 30
I upgraded last week using slapt-get, which also tells you to follow the instructions in UPGRADE.TXT for part of the process. As At0mic_PC says you'll probably need a kernel recompile before everything works.

Only problems I've got now are that when I restart my machine the Kicker Menu appears in the wrong part of the screen, and Konqueror has a problem with web browsing ( as I open pages in new tabs bars appear at the side of the page called "Document Relations" until they obscure half the page).

Chhers
Amos
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SH!T. My /var partition is too small for slackware to upgrade to current.. DreameR-X Slackware 4 12-18-2004 06:31 PM
slackware 10 sound problem after upgrade salahuddin_66 Slackware 5 08-09-2004 02:24 AM
Just a small problem after kernel-upgrade (I hope) ingvald Slackware 3 06-19-2004 08:09 AM
Slackware Gimp 2.0 Upgrade Problem DrLazardo Linux - Software 3 05-15-2004 12:10 PM
upgrade Redhat 9 to Fedora with /boot volume too small jmanjohn61 Fedora 5 01-11-2004 02:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration