Trying compile in OpenServer 5.0.7 with cobol compiler from 5.0.2 - SCO

This is a discussion on Trying compile in OpenServer 5.0.7 with cobol compiler from 5.0.2 - SCO ; 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 ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Trying compile in OpenServer 5.0.7 with cobol compiler from 5.0.2

  1. Trying compile in OpenServer 5.0.7 with cobol compiler from 5.0.2

    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


  2. Re: Trying compile in OpenServer 5.0.7 with cobol compiler from 5.0.2

    On Mon, May 19, 2008, dardison@gmail.com wrote:
    >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 think most of these require the ``-lsocket'' option when linking.

    Bill
    --
    INTERNET: bill@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

+ Reply to Thread