home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / c / 11450 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.9 KB  |  49 lines

  1. Path: sparky!uunet!gatech!prism!comlab.gatech.edu!bob
  2. From: bob@comlab.gatech.edu (Bob Baggerman)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: popper - UC Berkeley Post Office Protocol Server, __res
  5. Message-ID: <64128@hydra.gatech.EDU>
  6. Date: 22 Jul 92 21:23:25 GMT
  7. References: <54780@mentor.cc.purdue.edu>
  8. Sender: news@prism.gatech.EDU
  9. Organization: Georgia Institute of Technology
  10. Lines: 37
  11.  
  12. In article <54780@mentor.cc.purdue.edu> brian@brazil.psych.purdue.edu (Brian Berndt) writes:
  13. >
  14. >ld: Undefined symbol 
  15. >   __res 
  16. >
  17. >Does anyone know what this sysmbol might be, it is not defined in any of
  18. >the c source files.
  19.  
  20. _res is used in only one place, "pop_init.c".  _res is defined in "resolve.h"
  21. and is used in the DNS name resolving code.  The actual variable lives in
  22. the "resolv" library.
  23.  
  24. >Has anyone set up popper on their system?  Anyone seen this problem?
  25.  
  26. The first time I built popper everything went fine.  Later I had occasion to
  27. rebuild it and I got the same errors you did.  I don't really know why it 
  28. worked the first time and bombed the second time but the solution for me was
  29. to explicitly reference the "resolv" library in the Makefile.  Mine looks like:
  30.  
  31. CFLAGS          =       -O -lresolv -DBIND43 -DHAVE_VSPRINTF
  32.  
  33. Note I have added the "-lresolv" library reference.  It has also been reported
  34. that removing the "-DBIND43" definition will produce the desired results.  In
  35. this case about 25 lines of code including the offending statement are replaced
  36. with one simple line and all of a sudden the world is good again.  I'm still
  37. confounded though as to why all this worked the first time for me but not the
  38. second.  Oh well.
  39.  
  40. Bob
  41.  
  42.  
  43.  
  44. --
  45. Bob Baggerman                         !  bob.baggerman@gtri.gatech.edu
  46. Communications Laboratory             !  bob@comlab.gatech.edu
  47. Georgia Tech Research Institute       !  qseclrb@prism.gatech.edu
  48. Atlanta, GA  30332  USA               !  404-894-3525
  49.