Bug 62124 - mpqc on ppc64: ClassDesc::load_class looking for "./classes"
Bug#: 62124 Product:  Gentoo Linux Version: unspecified Platform: PPC64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: ppc64@gentoo.org Reported By: boris@macbeth.rhoen.de
Component: Applications
URL: 
Summary: mpqc on ppc64: ClassDesc::load_class looking for "./classes"
Keywords:  
Status Whiteboard: 
Opened: 2004-08-29 10:43 0000
Description:   Opened: 2004-08-29 10:43 0000
When I emerge mpqc-2.2.2 on my ppc64 system (Dual G5 Mac) and run the binary:

ClassDesc::load_class looking for "./classes"
ClassDesc::load_class("CLKS"): load failed
Either "CLKS" is an invalid class name or the code
for "CLKS" was not linked into the executable.
Segmentation fault
....

When I add --enable-shared to configure in mpqc-2.2.2.ebuild and emerge
again - the binary work as expected.


Reproducible: Always
Steps to Reproduce:
1.emerge mpqc
2.mpqc test.in
3.

Actual Results:  
mpqc test.in
[cut cut]
ClassDesc::load_class looking for "./classes"
ClassDesc::load_class("CLKS"): load failed
Either "CLKS" is an invalid class name or the code
for "CLKS" was not linked into the executable.
Segmentation fault


Expected Results:  
mpqc test.in
[cut cut]
  Reading file /usr/share/mpqc/2.2.2/atominfo.kv.
  Molecule: setting point group to c1

  IntCoorGen: generated 119 coordinates.
  Forming optimization coordinates:
[cut cut]


gcc-3.4.1; binutils-2.15.90.0.3-r3; CFLAGS="-O2";

------- Comment #1 From Tom Gall 2004-08-29 18:48:45 0000 -------
moving this over to ppc64, where it looks like it belongs.

------- Comment #2 From Markus Rothe 2005-05-10 11:48:17 0000 -------
can you please provide that test.in file.

Also mpqc-2.2.3 has been released some while ago, but is not yet in portage. Could you try this version?

------- Comment #3 From Markus Rothe 2005-05-12 23:07:21 0000 -------
as I don't have a test case and the user doesn't submit the test.in, I cannot
test this. Please reopen if a test case is provided.

------- Comment #4 From Markus Rothe 2005-05-15 03:21:32 0000 -------
boris provided me a test4.in. thanks!

------- Comment #5 From Markus Rothe 2005-05-15 03:23:42 0000 -------
Created an attachment (id=58941) [details]
test4.in

The test4.in for testing. We'll have to wait for 2.2.3 to get into portage
untill we can test that. maybe it is fixed.. I just don't want to spend time on
a bug, which might be already fixed in a newer version. ;-)

------- Comment #6 From Markus Rothe 2005-05-18 11:58:05 0000 -------
how about adding IUSE="static" and build the package shared without that set.
Something like: if ! ( use static && use ppc64 ) then ...

------- Comment #7 From Markus Rothe 2005-05-18 12:29:53 0000 -------
Created an attachment (id=59233) [details]
mpqc-ebuild.patch

this is a diff which applies against mpqc-2.2.2-r1.ebuild and makes use of
--enable-shared. now test4.in works for me.

basicly the solution was given in the bug report itself.. thx! ;-)

------- Comment #8 From Markus Rothe 2005-06-11 09:24:45 0000 -------
I finaly could run `mpqc test4.in` with success! 
 
I've added a patch to the ebuild so that --enable-shared is used on ppc64.  
  
sorry, that this took so so so long.. 
 
also added ~ppc64 of cause.