LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-17-2003, 05:44 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
migrating code from RH7.3 to RH9.0 - linking problems


I just built a new computer with RH9 and am having some problems getting my old code (that works under RH7.3) to link in properly with the host app (I'm dealing with plugins) under RH9.

Trying not to be too wordy, here's the problem. The host app isn't really designed to run on RH9, so it's quite possible that what I'm trying to do is impossible. That said, in order to get the host app running, I've set LD_ASSUME_KERNEL=2.4.1
My build method under 7.3 links against /usr/lib/libdb1.so.2 (using the sym link /usr/lib/libdb1.so). It also would add /user/include/db1 to the include path.
Under RH9, I've added the sym link /usr/lib/libdb1.so to the regular file /usr/lib/libdb1.so.2 that exists under RH9 (that happens to be quite a bit larger than the db1 on RH 7.3), and changed my inlude path to add /usr/include/db4 because db1 does not exist.

When I build, I've tried linking against db1 or db (db is a sym link - libdb.so -> ../../lib/libdb-4.0.so)... both of which compile, neither of which link into the host app properly. If I nm the compiled dso under RH7.3 and RH9, I get very different symbol lists, however, most of the difference is that a large number of the RH9 symbols have _ZN or _ZT prepended to them.

What is the _ZN or _ZT?

Are the libdb's wildly different between RH9 and RH7.3?

Am I trying to accomplish the impossible?

Something to note: If I copy the dso from the RH7.3 box to the RH9 box, it works fine under RH9. The problem only comes up when I try to compile and use the dso under RH9.

Any help is much appreciated.
 
  


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
Migrating from Clone RH9 to xSeries RH9 noelcantona Linux - General 3 02-20-2005 05:24 AM
Migrating from RH9 to ES3 noelcantona Linux - General 2 01-18-2005 07:37 PM
Compiling and linking 64bit code fskmh Slackware 0 01-15-2005 07:04 AM
Migrating RH7.3 to RH9 pablob Red Hat 4 10-25-2003 08:11 AM
migrating C code from linux to windows Paula01 Linux - General 2 03-13-2002 10:22 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:39 AM.

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