comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Callable IDL on Fedora 1
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Callable IDL on Fedora 1 [message #38901] Tue, 06 April 2004 13:52
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
Problem solved! RSI tech support pointed me to a variation of the
compile I hadn't tried yet and I can now compile calltest.

Here's a section of the RSI provided Makefile for calltest that defines
all of the linker flags.

LDFLAGS= -L$(BINDIR) -lidl -Wl,-rpath,. -Wl,-rpath $(BINDIR)\
/usr/X11R6/lib/libXm.a \
-lXp -L/usr/X11R6/lib -lXpm -lXext -lXt -lSM -lICE -lX11 -ldl \
-ltermcap -lrt -lm -lpthread

I changed the reference to libXm.a to refer to the libXm.so shared
object instead. Replacing /usr/X11R6/lib/libXm.a with -lXm was the
first trick. At this point I still couldn't compile with gcc 3.x. The
second trick was to use the gcc 2.96 compiler instead of gcc 3.x. Using
gcc296 and -lXm finally got me a clean compile and an executable that
wouldn't segfault.

w00t

-Mike
Re: Callable IDL on Fedora 1 [message #38903 is a reply to message #38901] Tue, 06 April 2004 11:38 Go to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> I don't know if this is the problem, but FC1 uses the gcc 3.3 compiler.
> The chances are, that if it works on RH9 but fails on FC1, that it's due
> to the use of the 3.3 rather than the 3.2 compiler.
>
> It might be worth installing the gcc32 package and trying again using
> gcc32 in place of gcc as the compiler.

I tried using gcc32, however I see the very same compilation error I had
before, except this time the error references gcc 3.2.3 instead of gcc
3.3.2. It would be nice if RSI would at least provide some
documentation that tells which versions of gcc, libc, etc they used to
compile.

/usr/bin/ld: calltest: hidden symbol `__fixunssfdi' in
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/libgcc.a(_fixunssfd i.oS) is
referenced by DSO
collect2: ld returned 1 exit status
make: *** [calltest] Error 1

I also tried using gcc296 but that brought up other errors relating to
libXm.a which is part of the openmotif library. I then downgraded the
openmotif and openmotif-devel packages and use the RSI provided RPMs
instead. I tried compiling with the RSI openmotif RPMs, but no matter
what I used (gcc296, gcc32, gcc) nothing got me any farther along in the
compile. The classic __fixunssdi error was still present. *Sigh*

-Mike
Re: Callable IDL on Fedora 1 [message #38908 is a reply to message #38903] Tue, 06 April 2004 02:28 Go to previous message
Nigel Wade is currently offline  Nigel Wade
Messages: 286
Registered: March 1998
Senior Member
Michael Wallace wrote:
> A quick follow-up. If I add the -shared flag to my compilation
> statement, I do not see the original error. However, there is still a
> big problem because running ./calltest gives me a segfault. I have
> LD_LIBRARY_PATH pointing to where it should,
> /usr/local/rsi/idl/bin/bin.linux.x86.
>
> Ideas?
>
> -Mike

I don't know if this is the problem, but FC1 uses the gcc 3.3 compiler. The
chances are, that if it works on RH9 but fails on FC1, that it's due to the
use of the 3.3 rather than the 3.2 compiler.

It might be worth installing the gcc32 package and trying again using gcc32
in place of gcc as the compiler.

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
Re: Callable IDL on Fedora 1 [message #38911 is a reply to message #38908] Mon, 05 April 2004 12:44 Go to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
A quick follow-up. If I add the -shared flag to my compilation
statement, I do not see the original error. However, there is still a
big problem because running ./calltest gives me a segfault. I have
LD_LIBRARY_PATH pointing to where it should,
/usr/local/rsi/idl/bin/bin.linux.x86.

Ideas?

-Mike
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: automated file input possible?
Next Topic: volume transparency in iVolume

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 19:22:15 PDT 2025

Total time taken to generate the page: 1.36056 seconds