Home »
Public Forums »
archive »
Problem with call_external on SunOS 4.1.3 with acc 3.0.1
Problem with call_external on SunOS 4.1.3 with acc 3.0.1 [message #6563] |
Sat, 13 July 1996 00:00 |
rivers
Messages: 228 Registered: March 1991
|
Senior Member |
|
|
I am trying to build a shareable object for use with call_external under SunOS
4.1.3 with the Sun acc compiler version 3.0.1, IDL 4.0.1b. Following the
suggestions in the IDL manual I have used -fsingle and -pic in the acc command
and -assert pure-text in the ld command.
(Note that this shareable object builds and runs fine with IDL on Solaris, SGI
and DEC Alpha.)
The -assert pure-text fails as shown below. This is presumably because
libansi.a and libm.a are not shareable(?). Note that the failure of
-assert pure-text is effectively a warning, and a .so file is still produced.
However, running this .so file leads to a failure when call_external is
called.
acc -Xa -O -pic -fsingle -DSUNOS4 -I../../../../extensions/include
-I/usr/local/epics/R3.12.2/extensions/include -I. -I..
-I../../../../base/include -DUNIX -c -DIDL ../ezcaIDL.c
ld -L/usr/lang/SC3.0.1/lib -assert pure-text
-L../../../../extensions/lib/sun4
-L/usr/local/epics/R3.12.2/extensions/lib/sun4
-L../../../../base/lib/sun4 -o ezcaIDL.so ezcaIDL.o
-lezca -lEzca -lca -lCom -lansi -lm
ld: /usr/lang/SC3.0.1/lib/libansi.a(strerror.o): assert pure-text failed:
reference to __sys_num_err at 1e090 in /usr/lang/SC3.0.1/lib/libansi.a
ld: /usr/lang/SC3.0.1/lib/libansi.a(strerror.o): assert pure-text failed:
reference to __sys_num_err at 1e094 in /usr/lang/SC3.0.1/lib/libansi.a
ld: /usr/lang/SC3.0.1/lib/libansi.a(strerror.o): assert pure-text failed:
reference to __sys_index at 1e0ac in /usr/lang/SC3.0.1/lib/libansi.a
(There are many more such errors from ld)
cars1> idl
IDL. Version 4.0.1b (sunos sparc).
Copyright 1989-1996, Research Systems, Inc.
All rights reserved. Unauthorized reproduction prohibited.
Installation number: 1921-13.
Licensed for use by: CARS - Univ. of Chicago
IDL> .run ezcaIDL
IDL> cainit
ld.so: Undefined symbol: __lib_version
cars1>
I would appreciate any suggestions!
____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
|
|
|
Current Time: Thu Oct 09 23:05:10 PDT 2025
Total time taken to generate the page: 0.48379 seconds