Unix Technical Forum

compilation problem on old slackware 7.1

This is a discussion on compilation problem on old slackware 7.1 within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Dear all, I have an old system running slackware 7.1, with security fixes and various upgrades, but still 7.1 ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 11:15 AM
Stefano Ghirlanda
 
Posts: n/a
Default compilation problem on old slackware 7.1

Dear all,

I have an old system running slackware 7.1, with security fixes and
various upgrades, but still 7.1 at its core.

I have run into a compliation problem installing Sablot-1.0.2,
although the problem actually seems to lie more with the (ancient)
C/C++ compiler, egcs-2.91.66.

The Sablot configure script checks for expat, of which I have the
latest version, expat-1.95.8, correctly installed. However, the
configure script uses g++ (rather than gcc) to compile the test
program, which results in errors of the form:

/usr/local/include/expat.h:142: parse error before `__attribute__'
/usr/local/include/expat.h:148: type specifier omitted for parameter
/usr/local/include/expat.h:148: parse error before `)'

(many of them, always same form)

These problems disapper if I invoke the compiler as gcc, on the same
test program... I have tried to wrap the #include <expath.h> into an
extern "C" {} block without results.

I have tried to simply comment out the test but Sablot is a C++
library and actually uses g++ in its comilation...

I am reluctant to make any major upgrades (like C compielr and
libraries) at the moment, partly because I am 2500 km from that
machine and partly because I am not very familiar with the process,
and I suspect that it is a lot of work to bring a while system from
egcs-2.91.66 to current gcc/g++.

Any help is appreciated!

Stefano

--
Stefano | Department of Psychology, University of Bologna
Ghirlanda | Interdisciplinary cultural research, Stockholm University
http://www.intercult.su.se/~stefano
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 11:15 AM
William Park
 
Posts: n/a
Default Re: compilation problem on old slackware 7.1

Stefano Ghirlanda <stefano.ghirlanda@unibo.it> wrote:
> I am reluctant to make any major upgrades (like C compielr and
> libraries) at the moment, partly because I am 2500 km from that
> machine and partly because I am not very familiar with the process,
> and I suspect that it is a lot of work to bring a while system from
> egcs-2.91.66 to current gcc/g++.


How about compiling locally, and make a Slackware "tgz" package out of
it. Then, install to remote machine.

--
William Park <opengeometry@yahoo.ca>, Toronto, Canada
ThinFlash: Linux thin-client on USB key (flash) drive
http://home.eol.ca/~parkw/thinflash.html
BashDiff: Super Bash shell
http://freshmeat.net/projects/bashdiff/
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 06:06 AM.


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