Re: [exim-dev] Second candidate for 4.52 release -- make fai…

Inizio della pagina
Delete this message
Reply to this message
Autore: OpenMacNews
Data:  
To: Philip Hazel
CC: exim-dev
Oggetto: Re: [exim-dev] Second candidate for 4.52 release -- make failure onOSX 10.4.1
hi philip,

a bit of stepwise progress re: the make failure tail:

    > awk '{ print ($1+1) }' cnumber.h > cnumber.temp
    > rm -f cnumber.h; mv cnumber.temp cnumber.h
    > cc version.c
    > rm -f exim
    > cc -o exim
    > /usr/bin/ld: Undefined symbols:
    > _GETSHORT
    > _strnlen
    > collect2: ld returned 1 exit status
    > make[1]: *** [exim] Error 1
    > make: *** [go] Error 2



a simple check on the errant GETSHORT shows:

    % grep -rln GETSHORT .
        ./src/acl.c
        ./src/dns.c
        ./src/host.c
        ./src/lookups/dnsdb.c


since EACH of those file contains an "#include exim.h", i simply EDITed *each*
of the four (4) source files with/as:


        #include "exim.h"
    +++    #include "/usr/include/arpa/nameser_compat.h"


, adding the direct include of ".../nameser_compat.h".

a subsequent clean & (re)make results, now in:

    awk '{ print ($1+1) }' cnumber.h > cnumber.temp
    rm -f cnumber.h; mv cnumber.temp cnumber.h
    cc version.c
    rm -f exim
    cc -o exim
    /usr/bin/ld: Undefined symbols:
    _strnlen
    collect2: ld returned 1 exit status
    make[1]: *** [exim] Error 1
    make: *** [go] Error 2


i.e., the undef'd GETSHORT seems to be 'resolved' ... leaving now just the
undef'd "strnlen".

richard