Subject: Pine 4.33 + LDAP Compile Problems

From: Cameron Palmer <[email-masked]>
Date: Sat, 7 Jul 2001 18:05:25 -0700 (PDT)

I cannot get ./build slx or any other variation to build with or without
openLDAP.  The compile chokes because it can't locate c-client.a.  Which
isn't there.  My system is running Slackware v8.0 2.4.5 kernel...

snippit of the compile:

>  ./build slx

make args are CC=cc

Including LDAP functionality
Making c-client library, mtest and imapd
make CC=cc slx
make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox'
EXTRAAUTHENTICATORS='' SPECIALAUTHENTICATORS='' PASSWDTYPE=std
EXTRASPECIALS='' OS=slx
make[1]: Entering directory `/diskiii/pine_ldap/pine4.33/imap'
Building c-client for slx...
echo GSSDIR=/usr/local  > c-client/SPECIALS
cd c-client;make slx EXTRACFLAGS=''\
 EXTRALDFLAGS=''\
 EXTRADRIVERS='mbox'\
 EXTRAAUTHENTICATORS=''\
 SPECIALAUTHENTICATORS=''\
 PASSWDTYPE=std\
 GSSDIR=/usr/local
make[2]: Entering directory `/diskiii/pine_ldap/pine4.33/imap/c-client'
You are building for libc6/glibc versions of Secure Linux
If you want libc5 versions you must use sl5 instead!
If you want libc4 versions you must use sl4 instead!
make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox'
EXTRAAUTHENTICATORS='' PASSWDTYPE=std SPECIALAUTHENTICATORS='' `cat
SPECIALS` OS=slx \
 SIGTYPE=psx CHECKPW=psx CRXTYPE=nfs \
 SPOOLDIR=/var/spool \
 ACTIVEFILE=/var/lib/news/active \
 RSHPATH=/usr/bin/rsh \
 BASECFLAGS="-g -fno-omit-frame-pointer -O6" \
 BASELDFLAGS="-lcrypt"
make[3]: Entering directory `/diskiii/pine_ldap/pine4.33/imap/c-client'
sh -c 'rm -rf auths.c crexcl.c flockbsd.c linkage.[ch] siglocal.c
osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE c-client.a || true'
Once-only environment setup...
echo cc > CCTYPE
echo -g -fno-omit-frame-pointer -O6 '' > CFLAGS
echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \
 -DMAILSPOOL=\"/var/spool/mail\" \
 -DANONYMOUSHOME=\"/var/spool/mail/anonymous\" \
 -DACTIVEFILE=\"/var/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \
 -DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"/etc/mlock\" > OSCFLAGS
echo -lcrypt  > LDFLAGS
echo "ar rc c-client.a mail.o misc.o newsrc.o smanager.o osdep.o utf8.o
siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o
smtp.o imap4r1.o pop3.o unix.o mbox.o mbx.o mmdf.o tenex.o mtx.o news.o
phile.o mh.o mx.o;ranlib c-client.a" > ARCHIVE
./drivers mbox imap nntp pop3 mh mx mbx tenex mtx mmdf unix news phile
dummy
./mkauths  md5  log
make[4]: Entering directory `/diskiii/pine_ldap/pine4.33/imap/c-client'
echo -DMD5ENABLE=\"/etc/cram-md5.pwd\" >> OSCFLAGS
make[4]: Leaving directory `/diskiii/pine_ldap/pine4.33/imap/c-client'
ln -s os_slx.h osdep.h
ln -s os_slx.c osdepbas.c
ln -s log_std.c osdeplog.c
ln -s sig_psx.c siglocal.c
ln -s crx_nfs.c crexcl.c
sh -c '(test -f /usr/include/sys/statvfs.h -a slx != sc5 -a slx != sco) &&
ln -s flocksun.c flockbsd.c || ln -s flocksv4.c flockbsd.c'
ln -s ckp_psx.c osdepckp.c
cat osdepbas.c osdepckp.c osdeplog.c > osdep.c
`cat CCTYPE` -c `cat CFLAGS` mail.c
`cat CCTYPE` -c `cat CFLAGS` misc.c
`cat CCTYPE` -c `cat CFLAGS` newsrc.c
`cat CCTYPE` -c `cat CFLAGS` smanager.c
`cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
In file included from osdep.c:42:
env_unix.c: In function `do_date':
env_unix.c:296: warning: initialization makes pointer from integer without
a cast
env_unix.c:297: dereferencing pointer to incomplete type
env_unix.c:297: dereferencing pointer to incomplete type
env_unix.c:298: dereferencing pointer to incomplete type
env_unix.c:299: warning: assignment makes pointer from integer without a
cast
env_unix.c:301: dereferencing pointer to incomplete type
env_unix.c:301: dereferencing pointer to incomplete type
env_unix.c:309: dereferencing pointer to incomplete type
env_unix.c:312: dereferencing pointer to incomplete type
env_unix.c:316: dereferencing pointer to incomplete type
env_unix.c:316: dereferencing pointer to incomplete type
env_unix.c:316: dereferencing pointer to incomplete type
env_unix.c:317: dereferencing pointer to incomplete type
env_unix.c:317: dereferencing pointer to incomplete type
env_unix.c:317: dereferencing pointer to incomplete type
In file included from osdep.c:46:
tz_sv4.c: In function `rfc822_timezone':
tz_sv4.c:30: `tzname' undeclared (first use in this function)
tz_sv4.c:30: (Each undeclared identifier is reported only once
tz_sv4.c:30: for each function it appears in.)
tz_sv4.c:30: `daylight' undeclared (first use
tz_sv4.c:30: dereferencing pointer to incomplete type
osdep.c: In function `checkpw':
osdep.c:81: warning: initialization makes pointer from integer without a
cast
osdep.c:82: dereferencing pointer to incomplete type
osdep.c:82: dereferencing pointer to incomplete type
osdep.c:83: dereferencing pointer to incomplete type
osdep.c:84: warning: assignment makes pointer from integer without a cast
osdep.c:86: dereferencing pointer to incomplete type
osdep.c:86: dereferencing pointer to incomplete type
osdep.c:94: dereferencing pointer to incomplete type
make[3]: *** [osdep.o] Error 1
make[3]: Leaving directory `/diskiii/pine_ldap/pine4.33/imap/c-client'
make[2]: *** [slx] Error 2
make[2]: Leaving directory `/diskiii/pine_ldap/pine4.33/imap/c-client'
make[1]: *** [OSTYPE] Error 2
make[1]: Leaving directory `/diskiii/pine_ldap/pine4.33/imap'
make: *** [slx] Error 2

Making Pico and Pilot
make CC=cc -f makefile.lnx
make: Nothing to be done for `all'.

Making Pine.
make CC=cc LDAPLIBS=../ldap/libraries/libldap.a
../ldap/libraries/liblber.a LDAPCFLAGS=-DENABLE_LDAP -I../ldap/include -f
makefile.lnx
make: *** No rule to make target `../c-client/c-client.a', needed by
`pine'.  Stop.

Links to executables are in bin directory:
size: bin/pine: No such file or directory
size: bin/mtest: No such file or directory
size: bin/imapd: No such file or directory
   text    data     bss     dec     hex filename
 191219    5144    2620  198983   30947 bin/pico
 189203    5016    2652  196871   30107 bin/pilot
Done

Thank you in advance,
cameron.

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

---

From: "Ed Greshko" <[email-masked]>
Date: Mon, 9 Jul 2001 10:03:38 +0800

Cameron,

> isn't there.  My system is running Slackware v8.0 2.4.5 kernel...

It seems you are running a newer version of gcc which is more standards
compliant than earlier versions.  It causes programs like pine to not
compile....but it isn't the fault of gcc.  (see
http://www.bero.org/gcc296.html )

In any event, you can pick up SRPMS for pine4.33 from redhat and it compiles
just fine.

The fixes to pine will be included in the next release of pine.

Regards,
Ed

---

From: Cameron Palmer <[email-masked]>
Date: Mon, 9 Jul 2001 02:02:05 -0700 (PDT)

Thank you very much.  Iwill try it and report back the results.

cameron.

---

From: Cameron Palmer <[email-masked]>
Date: Mon, 9 Jul 2001 14:30:24 -0700 (PDT)

OK. Tried the Redhat SRPM.  Doesn't compile either.  Even after applying
the patches.  I did download the pine binary from redhat and after sorting
out the dependencies I got pine to start and it has LDAP configuration
options.  But whenever I try to do a search in the LDAP address book it
either gives the results and then exits pine or it just exits pine.  I
have a feeling that this wouldn't be happening if I could just get pine to
compile properly.

cameron.

---

From: "Ed Greshko" <[email-masked]>
Date: Tue, 10 Jul 2001 06:16:50 +0800

Cameron,

> have a feeling that this wouldn't be happening if I could just get pine to

Hummmm....  are the compile failures the same as before?  I ask this since the
original failures you reported were the same as what I got until I used the
SRPM's from RH.

BTW, I run RH 7.1

Ed

---

From: "Mike A. Harris" <[email-masked]>
Date: Mon, 9 Jul 2001 18:37:02 -0400 (EDT)

On Mon, 9 Jul 2001, Cameron Palmer wrote:

>Date: Mon, 9 Jul 2001 14:30:24 -0700 (PDT)
>From: Cameron Palmer <[email-masked]>
>To: Pine Discussion Forum <[email-masked]>
>Content-Type: TEXT/PLAIN; charset=US-ASCII
>Subject: RE: Pine 4.33 + LDAP Compile Problems
>

What OS / distribution are you using?  And what compiler, glibc
are you using?  PINE compiles and works fine from our RPM's in
Red Hat Linux 5.2, 6.2, 7.*.  Of course you have to read the spec
and set the Build_# define for the release you are using first..

It should work similarly on Mandrake, and other similar RPM based
distros also.

----------------------------------------------------------------------
Mike A. Harris                  Shipping/mailing address:
OS Systems Engineer             190 Pittsburgh Ave., Sault Ste. Marie,
Red Hat Inc.                    Ontario, Canada, P6C 5B3
http://www.redhat.com           Phone: (705)949-2136
----------------------------------------------------------------------
Latest XFree86 test RPMS:      ftp://people.redhat.com/mharris/testing

---

From: Cameron Palmer <[email-masked]>
Date: Tue, 10 Jul 2001 15:58:46 -0700 (PDT)

Slackware 8
glibc 2.2.3
gcc 2.95.3

cameron.

---

From: Cameron Palmer <[email-masked]>
Date: Tue, 10 Jul 2001 16:00:11 -0700 (PDT)

Sam exact compile problems as before.  Essentially c-client.a has problems
compiling.

cameron.

---

From: "Ed Greshko" <[email-masked]>
Date: Wed, 11 Jul 2001 07:09:37 +0800

Cameron,

> Sam exact compile problems as before.  Essentially c-client.a has problems

Yes....  That is due to the combination of factors.  As I said, I had the same
problem with the original source.  Getting the patched version from RH cured
my problems.  I think you may have to delve into the questions asked by Mike
Harris.  Or, you could wait until the next release of pine...which will have
the code updated.

Ed

---

From: "Mike A. Harris" <[email-masked]>
Date: Tue, 10 Jul 2001 19:24:48 -0400 (EDT)

On Tue, 10 Jul 2001, Cameron Palmer wrote:

>Date: Tue, 10 Jul 2001 15:58:46 -0700 (PDT)
>To: Mike A. Harris <[email-masked]>
>Cc: Pine Discussion Forum <[email-masked]>

Hmm.  It could possibly be a gcc 2.95 problem, but I couldn't say
for sure.  We've never shipped gcc 2.95 before for various
reasons so I can't say for certain.

Our PINE rpm builds ok with gcc2.96-RH, as well as egcs2.91.66,
gcc 2.7.2.3, and various others..  Perhaps it is failing for you
due to missing dependancies or broken dependancies?

What specific errors are you getting?  If you can cut'n'paste
them into the email, or attach them it might help shed some
light.

TTYL

----------------------------------------------------------------------
Mike A. Harris                  Shipping/mailing address:
OS Systems Engineer             190 Pittsburgh Ave., Sault Ste. Marie,
XFree86 maintainer		Ontario, Canada, P6C 5B3
Red Hat Inc.                    Phone: (705)949-2136
http://www.redhat.com		ftp://people.redhat.com/mharris
----------------------------------------------------------------------

---

From: "Nick Birkett (x8289)" <[email-masked]>
Date: Tue, 24 Jul 2001 09:50:21 -0400 (EDT)

I've just installed pine 4.33 on a new SUN computer (solaris 8).  I had
some problems with the SUN LAN configuration.  Now, when I start pine with
a new user account, it complains that the hostname is unqualfied and the
return path is wrong.  I can fix this by going into the pine config and
setting the 'user-domain' option.  However, i was wondering if should be
needed or if I might still have some configuration problems with the SUN
LAN?

Thanks.

========================================================================
Nicholas Birkett, M.D., M.Sc.
Epidemiology and Community Medicine
University of Ottawa                        [email-masked]
451 Smyth Rd.,                              (613)-562-5800 x 8289 (voice)
Ottawa, Ontario,                            (613)-562-5465          (fax)
Canada.   K1H 8M5
=========================================================================