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