Operating System - HP-UX
1833088 Members
3172 Online
110050 Solutions
New Discussion

lftp 3.0.11 compilation - resolv.h, dn_expand

 
Roger Storvik
Advisor

lftp 3.0.11 compilation - resolv.h, dn_expand

Does anybody know what the problem is with dn_expand? See also http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=616916

if /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/usr/local/include -O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -Winline -MT Resolver.lo -MD -MP -MF ".deps/Resolver.Tpo" -c -o Resolver.lo Resolver.cc; \
then mv -f ".deps/Resolver.Tpo" ".deps/Resolver.Plo"; else rm -f ".deps/Resolver.Tpo"; exit 1; fi
Resolver.cc: In function `int extract_domain(const unsigned char*, const unsigned char*, int, char*, int)':
Resolver.cc:395: error: `dn_expand' undeclared (first use this function)
Resolver.cc:395: error: (Each undeclared identifier is reported only once for each function it appears in.)
Resolver.cc:396: error: `dn_skipname' undeclared (first use this function)
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
First they ignore you, Then they laugh at you, Then they fight you, Then you win. - Gandhi -
2 REPLIES 2
Roger Storvik
Advisor

Re: lftp 3.0.11 compilation - resolv.h, dn_expand

Does this have to do with me installing a GCC depot instead of building GCC on my machine? Anyone? Please help! :)

Roger
First they ignore you, Then they laugh at you, Then they fight you, Then you win. - Gandhi -
Ermin Borovac
Honored Contributor

Re: lftp 3.0.11 compilation - resolv.h, dn_expand

Please try the following.

After running configure edit /include/config.h and uncomment HAVE_DN_EXPAND line as follows.

/* #define HAVE_DN_EXPAND 1 */

Then run make and hope it works :-)