Subject: Cannot get pine/addrbook.c to compile under Solaris 2.5.1

From: James Dryfoos <[email-masked]>
Date: Wed, 17 Apr 2002 21:22:56 -0400 (EDT)

Am stuck on this one. Cannot find answer. Don't think this is dependant on the
LDAP stuff?

Making Pine and rpload/rpdump.
make CC=gcc LDAPLIBS=../ldap/libraries/libldap.a ../ldap/libraries/liblber.a
LDAPCFLAGS=-DENABLE_LDAP -I../ldap/include -f makefile.gs5
gcc   -g -DDEBUG  -DENABLE_LDAP -I../ldap/include  -DSV4 -DSYSTYPE=\"GSO\"
-DMOUSE  -c  addrbook.c
addrbook.c: In function `addr_book':
addrbook.c:2998: `h_abook_config' undeclared (first use this function)
addrbook.c:2998: (Each undeclared identifier is reported only once
addrbook.c:2998: for each function it appears in.)
addrbook.c:3002: `h_abook_select_nicks_take' undeclared (first use this function)
addrbook.c:3004: `h_abook_select_nick' undeclared (first use this function)
addrbook.c:3006: `h_abook_select_checks' undeclared (first use this function)
addrbook.c:3008: `h_abook_select_listmode' undeclared (first use this function)
addrbook.c:3010: `h_abook_select_addr' undeclared (first use this function)
addrbook.c:3013: `h_abook_select_top' undeclared (first use this function)
addrbook.c:3016: `h_abook_opened' undeclared (first use this function)
addrbook.c:3016: `h_abook_top' undeclared (first use this function)
addrbook.c: In function `search_book':
addrbook.c:6651: `h_oe_searchab' undeclared (first use this function)
*** Error code 1
make: Fatal error: Command failed for target `addrbook.o'

Thanks in advance.

  -- Jim

--
James Dryfoos
Manager - TACEng Proactive Analysis
Worldcom - http://www.worldcom.com

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see:
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Steve Hubert <[email-masked]>
Date: Wed, 17 Apr 2002 21:44:02 -0700 (Pacific Standard Time)

No, it doesn't look like it has anything to do with LDAP. Try "build
clean" and start over. It looks like the help routines were incorrectly
built in an earlier build attempt.

-- 
Steve Hubert <[email-masked]>
Networks and Distributed Computing, Univ. of Washington, Seattle

---

From: James Dryfoos <[email-masked]>
Date: Thu, 18 Apr 2002 08:57:59 -0400 (EDT)

Thanks. Have tried. Also tried various combinations doing a clean in between each.
Am building with GS5.

  -- Jim

---

From: James Dryfoos <[email-masked]>
Date: Thu, 18 Apr 2002 09:54:06 -0400 (EDT)

Ok, this was solved be downloading the source again. Perhaps in last extraction
of source something went wrong?

Thanks for all responces.

  -- Jim

---

From: Steve Hubert <[email-masked]>
Date: Thu, 18 Apr 2002 10:30:20 -0700 (Pacific Daylight Time)

In between the

  make CC=gcc ...

line and the addrbook.c lines you should get something like

  ./cmplhlp2.sh  < pine.hlp > helptext.h

and later

  ./cmplhelp.sh  < pine.hlp > helptext.c

Those two files are where h_abook_config and friends are declared
and defined. A build clean should do this, too, but perhaps you could try
just removing

   .../pine/helptext.h and .../pine/helptext.c

and running the "build gs5" again. Maybe that will show you where it is
failing. Take a look at those two files, they should contain references to
the missing declarations.

Steve

---

From: Steve Hubert <[email-masked]>
Date: Thu, 18 Apr 2002 10:38:25 -0700 (Pacific Daylight Time)

Oops, sorry. I didn't see the other responses in the mailing list before
responding to my personal copies. I see now that the problem is solved
already.

Steve