Discussion:
Trying compile in OpenServer 5.0.7 with cobol compiler from 5.0.2
(too old to reply)
d***@gmail.com
2008-05-19 14:39:18 UTC
Permalink
Hi,

I have an application that runs in SCO OpenServer 5.0.2.
It compiles with MF Cobol and static linked with 'C' routines.
Now I need to compile it with OpenServer 5.0.7

I installed development package for 5.0.7 and also installed MF Cobol
compiler 4 for openserver 5.0.2.

It compiles ok, but it procude a lot of undefined symbols at linked.

This is are the undefined symbol list:

_res_gethostbyname /usr/tmp/cob7912/ldtab.o
_res_gethostbyaddr /usr/tmp/cob7912/ldtab.o
_res_getnetbyaddr /usr/tmp/cob7912/ldtab.o
_res_getnetbyname /usr/tmp/cob7912/ldtab.o
_res_setdborder /usr/tmp/cob7912/ldtab.o
_res_close /usr/tmp/cob7912/ldtab.o
v1prot_dofirst /usr/tmp/cob7912/ldtab.o
v1prot_donext /usr/tmp/cob7912/ldtab.o
_nis_gethostbyaddr /usr/tmp/cob7912/ldtab.o
_nis_gethostbyname /usr/tmp/cob7912/ldtab.o
_nis_getnetbyaddr /usr/tmp/cob7912/ldtab.o
_nis_getnetbyname /usr/tmp/cob7912/ldtab.o
p_cdname /usr/tmp/cob7912/ldtab.o
p_fqname /usr/tmp/cob7912/ldtab.o
p_rr /usr/tmp/cob7912/ldtab.o
_stdtryunlock /usr/tmp/cob7912/ldtab.o
_stdinitlock /usr/tmp/cob7912/ldtab.o
_dll_bss_bugfix /usr/tmp/cob7912/ldtab.o
_yprequest_arms /usr/tmp/cob7912/ldtab.o
ypbind_resp_arms /usr/tmp/cob7912/ldtab.o
BYADDR /usr/tmp/cob7912/ldtab.o
_net_stayopen /usr/tmp/cob7912/ldtab.o
_res_resultcodes /usr/tmp/cob7912/ldtab.o

I couldn't found any docs about 5.0.2 to 5.0.7 changes that could
explain this.
It seems that the old compiler is referencing symbols that are no
longer valid in 5.0.7 environment.
Any of you know if the changes in the libraries interfaces are
documented in some public place?
I was thinking of doing wrapper routines in order to compile this but
as I said I could found the right docs.

Any help will be appreciated.
Thanks in advance.
Daniel
Bill Campbell
2008-05-19 16:21:02 UTC
Permalink
Post by d***@gmail.com
Hi,
I have an application that runs in SCO OpenServer 5.0.2.
It compiles with MF Cobol and static linked with 'C' routines.
Now I need to compile it with OpenServer 5.0.7
I installed development package for 5.0.7 and also installed MF Cobol
compiler 4 for openserver 5.0.2.
It compiles ok, but it procude a lot of undefined symbols at linked.
_res_gethostbyname /usr/tmp/cob7912/ldtab.o
_res_gethostbyaddr /usr/tmp/cob7912/ldtab.o
_res_getnetbyaddr /usr/tmp/cob7912/ldtab.o
_res_getnetbyname /usr/tmp/cob7912/ldtab.o
_res_setdborder /usr/tmp/cob7912/ldtab.o
_res_close /usr/tmp/cob7912/ldtab.o
v1prot_dofirst /usr/tmp/cob7912/ldtab.o
v1prot_donext /usr/tmp/cob7912/ldtab.o
_nis_gethostbyaddr /usr/tmp/cob7912/ldtab.o
_nis_gethostbyname /usr/tmp/cob7912/ldtab.o
_nis_getnetbyaddr /usr/tmp/cob7912/ldtab.o
_nis_getnetbyname /usr/tmp/cob7912/ldtab.o
p_cdname /usr/tmp/cob7912/ldtab.o
p_fqname /usr/tmp/cob7912/ldtab.o
p_rr /usr/tmp/cob7912/ldtab.o
_stdtryunlock /usr/tmp/cob7912/ldtab.o
_stdinitlock /usr/tmp/cob7912/ldtab.o
_dll_bss_bugfix /usr/tmp/cob7912/ldtab.o
_yprequest_arms /usr/tmp/cob7912/ldtab.o
ypbind_resp_arms /usr/tmp/cob7912/ldtab.o
BYADDR /usr/tmp/cob7912/ldtab.o
_net_stayopen /usr/tmp/cob7912/ldtab.o
_res_resultcodes /usr/tmp/cob7912/ldtab.o
I think most of these require the ``-lsocket'' option when linking.

Bill
--
INTERNET: ***@celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
Voice: (206) 236-1676 Mercer Island, WA 98040-0820
Fax: (206) 232-9186

We'll show the world we are prosperous, even if we have to go broke to do
it. -- Will Rogers
Loading...