help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mkoctfile-2.1.34 gives ld errors AIX 4.3.2/gcc-2.95.2


From: A. Danial
Subject: mkoctfile-2.1.34 gives ld errors AIX 4.3.2/gcc-2.95.2
Date: Wed, 16 May 2001 20:26:37 -0700
User-agent: Mutt/1.2.5i

I built octave 2.1.34 with gcc 2.95.2 on an RS/6000 AIX 4.3.2 box, 
and octave itself runs well.  When I try to build the example
function oregonator.oct with mkoctfile, however, I get load errors:

  /tmp> mkoctfile oregonator.cc
  ld: 0711-317 ERROR: Undefined symbol: error_state
  ld: 0711-317 ERROR: Undefined symbol: octave_value::~octave_value(void)
  ld: 0711-317 ERROR: Undefined symbol: Array<double>::~Array(void)
  ld: 0711-317 ERROR: Undefined symbol: .check_version(basic_string<char, 
  [et cetera]

I checked to see if dynamic loading is supported on my system:

  /tmp> octave
  GNU Octave, version 2.1.34 (powerpc-ibm-aix4.3.2.0).
  Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 John W. Eaton.
  This is free software with ABSOLUTELY NO WARRANTY.
  For details, type `warranty'.
  
  *** This is a development version of Octave.  Development releases
  *** are provided for people who want to help test, debug, and improve
  *** Octave.
  ***
  *** If you want a stable, well-tested version of Octave, you should be
  *** using one of the stable releases (when this development release
  *** was made, the latest stable version was 2.0.16).
  
  EDITOR = vi
  octave:1> octave_config_info ("dld") 
  ans = 1


Looks good; "ans = 1" leads me to believe dynamic loading works.  Following 
a suggestion jwe made a while ago on this list I checked to see if my 
g++ recognizes -rdynamic:

  /tmp> g++ -rdynamic hello.cc
  g++: unrecognized option `-rdynamic'

No, it doesn't.  So now I wonder why octave_config_info("dld") says dynamic 
loading is supported but g++ does not recognize -rdynamic?  Is this a 
discrepancy?

Am I correct in assuming I need to fix my g++ installation to get
it to recognize -rdynamic before I can expect mkoctfile to work?

If this is the problem, does anyone have suggestions on how to get a 
proper build of g++ on an AIX system?            -- Al



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]