Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th May 2008, 23:22
craig baker craig baker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 147
Thanks: 0
Thanked 6 Times in 6 Posts
Default stupid semi-newbie question

I've built myself a shiny centOs 5.1 server and am in the process of migrating from an aging fedora core 2 server, and I've run into a problem.
I have an application built under fedora 2 that used 2 libraries supplied by the pseudo-developer. so far so good all linked up and worked.
but under centos, the libraries are rejected as incompatible.
and pseudo-developer has no updated libraries since 2004 (no joke) - and the only versions they have are for rh6,rh7,rh8 and rh9 (I think I used the rh9 ones for fedora core 2).
I dont have the source code for the two incompatible libraries (of course) - but is there any trick that would let me bind them in in some compatibility mode?
or is there an older version of gcc available that might install along side the current version that would make a current-kernel-ok binary using the old libraries.
and I'm running the x64 kernel. am I being stupid trying to link 2 32-bit libraries into a binary at all?
who's going to win in Indiana and NC tonight?

inquiring minds and all that
thanks
cdb.

am I making sense?
Reply With Quote
Sponsored Links
  #2  
Old 8th May 2008, 00:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by craig baker
and I'm running the x64 kernel. am I being stupid trying to link 2 32-bit libraries into a binary at all?
I don't think this will work.

Have you tried http://rpm.pbone.net to find packages for CentOS?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 8th May 2008, 00:57
craig baker craig baker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 147
Thanks: 0
Thanked 6 Times in 6 Posts
Default alas - no source or rpm available

the libraries in question are proprietary
so I'm not going to find them anywhere.

any way to install and older gcc from the fedora 2 age to try and recompile?
I assume I could compile it as 32-bit only, and avoid any 64bit-32bit conflicts.

cdb.
Reply With Quote
  #4  
Old 8th May 2008, 16:23
craig baker craig baker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 147
Thanks: 0
Thanked 6 Times in 6 Posts
Default more info and maybe a path to success?

putting -m32 in the make file to force 32bit compilation eliminated the incompatible library errors (confirming they are pure 32bit).

but the binary gets a link error:
/usr/bin/ld: warning: libstdc++.so.5, needed by ./liblptxn.so, may conflict with libstdc++.so.6

and the binary segfaults. now from what I've determined it looks like I need to install and older gcc version.

the fedora core 2 system had gcc-3.3.3 installed.

so can I safely install gcc-3.3.3 and use it to compile and link this on my 64bit centos system?
and where is gcc-3.3.3 to be found these days. can I yum it?
how to install it safely?
and how do I keep the 2 compilers separate? I may possibly have to do this again in future as I migrate off the fedora 2 server...

thanks for your help.
cdb.
Reply With Quote
  #5  
Old 8th May 2008, 17:05
craig baker craig baker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 147
Thanks: 0
Thanked 6 Times in 6 Posts
Default one more thing

I see reference to gcc-3.3.3* rpms for various distributions and under centos 5 I see compat-libstd* rpms.
do I need either or both?
cdb.
Reply With Quote
  #6  
Old 8th May 2008, 18:20
craig baker craig baker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 147
Thanks: 0
Thanked 6 Times in 6 Posts
Default looked at the repository

I looked in the repository you listed and only gcc-3.3.3 it finds is 3.3.3.7 for suse and fedora 2
nothing for centos.
there may be srpms - can I recompile it under centos5?
any chance that would work?
Reply With Quote
  #7  
Old 8th May 2008, 23:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

I found gcc-3.4.6: http://rpm.pbone.net/index.php3/stat....i386.rpm.html
and gcc-3.2.3: http://rpm.pbone.net/index.php3/stat....i386.rpm.html

Maybe one of these works for you.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 10th May 2008, 00:45
craig baker craig baker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 147
Thanks: 0
Thanked 6 Times in 6 Posts
Default I can try installing

anything special I need to do with the rpms since I dont want to overwrite the gcc 4.1 that comes with centos 5.1?

thanks for your help
cdb.
Reply With Quote
  #9  
Old 10th May 2008, 18:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

I don't think it will overwrite gcc-4.1, but install additional gcc versions in /usr/bin. I think you should create a symlink from /usr/bin/gcc to the gcc version you want to use afterwards.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 12th May 2008, 22:15
craig baker craig baker is offline
Senior Member
 
Join Date: Mar 2008
Posts: 147
Thanks: 0
Thanked 6 Times in 6 Posts
 
Default trying it...

I tried downloading 3.2.3 and

rpm -i gcc-3.2.3-etc gave me a required dependency for cpp-3.2.3
downloading and rpm -i cpp-3.2.3 gave me lots of warnings that
files were conflicting with the same files from gcc-4.1-etc.

if I use --force it will surely overwrite those files - how do I get rpm to install
them differently?

cdb.
Reply With Quote
Reply

Bookmarks

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
stupid question? complete neewbie. Kev King HOWTO-Related Questions 12 7th May 2008 12:35
DNS - nslookup's - Stupid Question. SamTzu General 9 21st November 2007 15:11
Newbie DNS question Upyr Server Operation 12 17th October 2007 06:29
Question from a newbie: can't login on proftpd Chris_elmp Installation/Configuration 2 24th August 2007 22:36
Newbie question thedude General 2 15th August 2005 15:38


All times are GMT +2. The time now is 05:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.