Menu

#6 Makefile broken - Suggested Patch

open
nobody
5
2005-10-30
2005-10-30
Anonymous
No

Hello Mark / Miles,

I posted this message earlier on the DomainKeys
Implementor's Group on Yahoo and posting it here as
well so that you can take a note of the patch thats
required.

On the fifth Line of Makefile, you need to add
-lresolv, otherwise compilation throws out unknown
symbol error for res_query etc.

It should read as follows :
"LIBS=-L. -ldomainkeys -lcrypto -lresolv"

Currently it is :
"LIBS=-L. -ldomainkeys -lcrypto"

Kindly have the neccesary update made in the next
release or the current release.

Thanks & Regards,
Mitul Limbani,
Founder & CEO,
Enterux Solutions,
The Enterprise Linux Company (TM),
www.enterux.com

Discussion

  • Russ Nelson

    Russ Nelson - 2005-11-11

    Logged In: YES
    user_id=71186

    Somebody F'ed the Makefile in re dns.lib, and no, your patch
    is not correct. I'll fix it shortly in the CVS version, as
    soon as the CVS server comes back up.
    -russ

     
  • Nobody/Anonymous

    Logged In: NO

    What ditro of linux are you using? and any other platforms you
    are currently testing on would help? I have the same problem
    on my slackware system, simpling doing a:
    echo "-lresolv" > dns.lib
    before running make will fix it but it is an inconvienence.

     
  • Nobody/Anonymous

    Logged In: NO

    The error is line 40. If dnstest fails then we need lresolv
    (reverse).

    -dns.lib: dnstest.c
    - (if $(MAKE) dnstest >/dev/null 2>&1; then echo -lresolv;
    else echo ""; fi) >dns.lib

    +dns.lib: dnstest.c
    + (if $(MAKE) dnstest >/dev/null 2>&1; then echo ""; else
    echo -lresolv; fi) >dns.lib

     
  • Nobody/Anonymous

    Logged In: NO

    This problem seem's that is not been fixed yet :(

     
  • Nobody/Anonymous

    Logged In: NO

    Ola Mitul,
    Thank yu very much for yur help. I had browsed the entire
    internet try to find a solution for this problem, and only
    found it here(Thank you). Yahoo could not come with a
    solution neither.

    I added -lresolv and BINGO, it workerd. You have a friend
    in Brazil now. If you ever need any thing from Brazil,
    just let me know.

    Below is a copy of the problem I was having (it my help
    some one)>

    ns1:/usr/local/src/libdomainkeys-0.68# make
    gcc -DBIND_8_COMPAT -O2 -o makeheader makeheader.c
    ./makeheader <domainkeys.c >domainkeys.h
    gcc -DBIND_8_COMPAT -O2 -c dktest.c -I.
    gcc -DBIND_8_COMPAT -O2 -c domainkeys.c -I.
    gcc -DBIND_8_COMPAT -O2 -c dns_txt.c
    gcc -DBIND_8_COMPAT -O2 -c -o dktrace.o dktrace.c
    rm -f libdomainkeys.a
    ar cr libdomainkeys.a domainkeys.o dns_txt.o dktrace.o
    ranlib libdomainkeys.a
    (if make dnstest >/dev/null 2>&1; then echo -lresolv; else
    echo ""; fi) >dns.lib
    gcc -DBIND_8_COMPAT -O2 -o dktest dktest.o -L. -
    ldomainkeys -lcrypto `cat dns.lib`
    ./libdomainkeys.a(dns_txt.o)(.text+0x58): In function
    `dns_text':
    undefined reference to `__res_query'
    ./libdomainkeys.a(dns_txt.o)(.text+0xdb): In function
    `dns_text':
    undefined reference to `__dn_expand'
    ./libdomainkeys.a(dns_txt.o)(.text+0x145): In function
    `dns_text':
    undefined reference to `__dn_expand'
    collect2: ld returned 1 exit status
    make: ** [dktest] Erro 1

    Armando
    armando@bragem.com

     
  • Nobody/Anonymous

    Logged In: NO

    Dear
    I think you know me .So if you want I TO HEAR YOU AND YOUR PROGRAMME you send denand draft for$ 10,000=00 in favour of 'Binay kumar gupta'.Send confirmation of this.

     

Log in to post a comment.

MongoDB Logo MongoDB