Hi
CentOS4.2 - Is it possible to have an older version of gcc as well as the one that ships with this OS? I need to compile aspseek to run on this distro but it seems to only like older gcc's
any ideas?
On 10/24/05, Tom Brown tom.brown@goodtechnology.com wrote:
Hi
CentOS4.2 - Is it possible to have an older version of gcc as well as the one that ships with this OS? I need to compile aspseek to run on this distro but it seems to only like older gcc's
any ideas?
Yes. You can have more than one version of gcc installed on your system.
Take a look at this. http://gcc.gnu.org/install/configure.html
_______________________________________________
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-- Take a look at http://copperskull.blogspot.com/ http://www.tekcities.com/copperskull/
On Monday 24 October 2005 16.29, Tom Brown wrote:
Hi
CentOS4.2 - Is it possible to have an older version of gcc as well as the one that ships with this OS? I need to compile aspseek to run on this distro but it seems to only like older gcc's
you can get gcc-3.2.3 from the package compat-gcc-32 (yum install compat-gcc-32)
You can also try gcc-4.x from the package gcc4
/Peter
any ideas?
On Monday 24 October 2005 16.46, Tom Brown wrote:
you can get gcc-3.2.3 from the package compat-gcc-32 (yum install compat-gcc-32)
You can also try gcc-4.x from the package gcc4
thanks - thats the version i know this will compile against. Any ideas how to instruct the compiler to user this version of gcc rather than the default?
I think they will differ in name, use "rpm -ql xxx | grep bin" when you have installed them.
I think they will differ in name, use "rpm -ql xxx | grep bin" when you have installed them.
# rpm -ql gcc | grep bin /usr/bin/c89 /usr/bin/c99 /usr/bin/cc /usr/bin/gcc /usr/bin/gcov /usr/bin/i386-redhat-linux-gcc /usr/bin/protoize /usr/bin/unprotoize
seems i can only see 3.4.4 but i have installed the compat-gcc-32 rpm ?
On Monday 24 October 2005 17.01, Tom Brown wrote:
I think they will differ in name, use "rpm -ql xxx | grep bin" when you have installed them.
# rpm -ql gcc | grep bin /usr/bin/c89 /usr/bin/c99 /usr/bin/cc /usr/bin/gcc /usr/bin/gcov /usr/bin/i386-redhat-linux-gcc /usr/bin/protoize /usr/bin/unprotoize
good, now do the same rpm -ql command for the package named "compat-gcc-32"
/Peter
seems i can only see 3.4.4 but i have installed the compat-gcc-32 rpm ?
Quoting Tom Brown tom.brown@goodtechnology.com:
I think they will differ in name, use "rpm -ql xxx | grep bin" when you have installed them.
# rpm -ql gcc | grep bin /usr/bin/c89 /usr/bin/c99 /usr/bin/cc /usr/bin/gcc /usr/bin/gcov /usr/bin/i386-redhat-linux-gcc /usr/bin/protoize /usr/bin/unprotoize
seems i can only see 3.4.4 but i have installed the compat-gcc-32 rpm ?
Because its in the compat-gcc-32 package, not gcc package. Try "rpm -ql compat-gcc-32 | grep bin". The exe you want to use is gcc32.
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Because its in the compat-gcc-32 package, not gcc package. Try "rpm -ql compat-gcc-32 | grep bin". The exe you want to use is gcc32.
yes sorry - I moved the origional gcc to another name to symlink gcc32 to gcc to test a build but alas it still died. So i'm rather stuck now as the software is not mine and c hacking is not my fortei
Has anyone else ever managed to get aspseek to compile on a recent linux version? I have it running on 3.x but i need to upgrade the boxes to 4.x but also have this software run.
On 10/24/05, Tom Brown tom.brown@goodtechnology.com wrote:
Has anyone else ever managed to get aspseek to compile on a recent linux version? I have it running on 3.x but i need to upgrade the boxes to 4.x but also have this software run.
Hmm, it's been a while since we've looked at ASPseek... The only problem I'm remembering is the STL incompatibilities, but I guess that if you got it working under 3.x, you've already fixed those.
It looks like ASPseek's forums may have more information, including a link to an "aspseek-ng" at http://www.awp.nnov.ru/~jk/aspseek-ng.tar.gz.
I decided that it was easier to just switch to ht://Dig (comparable feature set, still being developed, provided by CentOS / RH) rather than figure out how to get ASPseek to work. YMMV.
Josh Kelley
On Mon, 2005-10-24 at 16:36 +0100, Tom Brown wrote:
Because its in the compat-gcc-32 package, not gcc package. Try "rpm -ql compat-gcc-32 | grep bin". The exe you want to use is gcc32.
yes sorry - I moved the origional gcc to another name to symlink gcc32 to gcc to test a build but alas it still died. So i'm rather stuck now as the software is not mine and c hacking is not my fortei
This is the wrong thing to do. What you want to do is assign gcc32 to the CC environment variable, as well as g++32 to CXX. Unless, of course, ASPseek doesn't look at those variables in which case feel free to talk to the developers.
Quoting Ignacio Vazquez-Abrams ivazquez@ivazquez.net:
This is the wrong thing to do. What you want to do is assign gcc32 to the CC environment variable, as well as g++32 to CXX. Unless, of course, ASPseek doesn't look at those variables in which case feel free to talk to the developers.
It does look at them. If SRPM is downloaded, to rebuild it, the beggining of %build should be changed to look like this (some extra changes needed since gcc32/g++32 bark on -mtune option, but equivalent -mcpu works just fine). Note that %configure changes to ./configure (otherwise it resets CFLAGS and CXXFLAGS)! This is how far I got, I don't really need this RPM, so I'll leave it to others to continue ;-)
%build CC=gcc32 CXX=g++32 CFLAGS="`echo %{optflags} | sed 's/mtune=/mcpu=/g'`" CXXFLAGS="`echo %{optflags} | sed 's/mtune=/mcpu=/g'`" export CC CXX CFLAGS CXXFLAGS ./configure --sysconfdir=%{sysconfdir} \ --localstatedir=%{localstatedir} \ --libdir=%{libdir} \ --bindir=%{http_dir_cgibin} \ --sbindir=%{sbindir} \ --mandir=%{_mandir} --enable-apache-module
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Quoting Tom Brown tom.brown@goodtechnology.com:
yes sorry - I moved the origional gcc to another name to symlink gcc32 to gcc to test a build but alas it still died. So i'm rather stuck now as the software is not mine and c hacking is not my fortei
Has anyone else ever managed to get aspseek to compile on a recent linux version? I have it running on 3.x but i need to upgrade the boxes to 4.x but also have this software run.
I just took a quick look into it. Seems that your problem is not compiler version (btw, you'd also need compat-gcc-32-c++ if you want to compile the thing with the old version of compiler). Looks more like version of mysql header files. Your best bet would be to either contact author(s) of aspseek or ask on mysql (devel?) list what to do with program that expects old header files if you attempt to build it against new(er) mysql.
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
I just took a quick look into it. Seems that your problem is not compiler version (btw, you'd also need compat-gcc-32-c++ if you want to compile the thing with the old version of compiler). Looks more like version of mysql header files. Your best bet would be to either contact author(s) of aspseek or ask on mysql (devel?) list what to do with program that expects old header files if you attempt to build it against new(er) mysql.
well in the end it did work using
aspseek1.2.10 gcc3.2.3 mysql-4.1.14
and the exact same combination of aspseek and mysql did not compile using gcc3.4.4 - So not sure what the exact issue was but i got there in the end!!
thanks
Tom Brown wrote:
you can get gcc-3.2.3 from the package compat-gcc-32 (yum install compat-gcc-32)
You can also try gcc-4.x from the package gcc4
thanks - thats the version i know this will compile against. Any ideas how to instruct the compiler to user this version of gcc rather than the default?
Most (sane) packages will use ENV vars CC CXX, so export CC=gcc4 export CXX=g++4
before should hopefully work.
-- Rex
thanks - thats the version i know this will compile against. Any ideas how to instruct the compiler to user this version of gcc rather than the default?
Most (sane) packages will use ENV vars CC CXX, so export CC=gcc4 export CXX=g++4
before should hopefully work.
thanks for all the tips - i have actually managed to get this to build - I had to give it the g++ as well as the gcc versions from gcc32 to build.
thanks for all the help as this was a show stopper
Tom Brown wrote:
Hi
CentOS4.2 - Is it possible to have an older version of gcc as well as the one that ships with this OS? I need to compile aspseek to run on this distro but it seems to only like older gcc's
any ideas?
4.2 ships with a recent vintage GCC 3 and there's an option to include GCC4. If your program won't compile with a very stable GCC3, then you might want to fix the broken software rather than install an obsolete development environment, no?
Cheers,