Subject: Compiling: build gso

From: [email-masked]
Date: Fri, 17 May 96 14:48:00 PDT

Dear PINE Gurus:

I am running Solaris 2.3 and I am trying to use the build command to make a new version of PINE on my machine.. I type "build gso" for building the solaris version using gcc as we the pine-ports document.. but I get the following errors on the first "leg" of the compiling process (making c-client library, mtest and imapd)....

In file included from os_sol.c:73:
tz_sv4.c:47: `tzname' undeclared (first use this function)
tz_sv4.c:47: (Each undeclared identifier is reported only once
tz_sv4.c:47: for each function it appears in.)
tz_sv4.c:47: `daylight' undeclared (first use this function)
*** Error code 1
make: Fatal error: Command failed for target `osdep.o'
Current working directory /export/home3/thomas/dev/pine/pine3.93/imap/non-ANSI/c-client
*** Error code 1
make: Fatal error: Command failed for target `gso'
Current working directory /export/home3/thomas/dev/pine/pine3.93/imap/non-ANSI/c-client
*** Error code 1
make: Fatal error: Command failed for target `build'
Current working directory /export/home3/thomas/dev/pine/pine3.93/imap
*** Error code 1
make: Fatal error: Command failed for target `gso'

This is a snipet from what is attached below (the full compile log)...

pico and pilot seem to compile without a hitch and then when it tries to make pine itself, it seems to die again.  I suspect it can't build pine since it needs the c-client and it didn't build the c-client correctly...

Any help is appreciated, in fact, precomipled Solaris 2.3 executables would be great! ;)

I know this message is a little vauge, but I haven't had much experience building pine before.. just thought it would be plug-and-play... but I guess not (at least for me).

Tom.

<Compiling Dump follows:>

build gso
make args are "CC=gcc "
ln: cannot create c-client: File exists
ln: cannot create imapd: File exists
Making c-client library, mtest and imapd
make build SYSTYPE=non-ANSI OS=gso
echo gso > OSTYPE
rm -rf systype
ln -s non-ANSI systype
cd non-ANSI/c-client; make gso
make mtest OS=sol EXTRADRIVERS="" CC=gcc \
        STDPROTO=bezerkproto MAILSPOOL=/var/mail \
        ACTIVEFILE=/usr/share/news/active NEWSSPOOL=/var/spool/news \
        RSHPATH=/usr/bin/rsh CFLAGS="-g -O2 -DNFSKLUDGE " \
        RANLIB=true LDFLAGS="-lsocket -lnsl -lgen"
./drivers  imap nntp pop3 mh tenex mtx mmdf bezerk news phile dummy
rm -f CCTYPE CFLAGS LDFLAGS osdep.h
echo gcc > CCTYPE
echo -g -O2 -DNFSKLUDGE > CFLAGS
echo -lsocket -lnsl -lgen  > LDFLAGS
ln -s os_sol.h osdep.h
gcc -g -O2 -DNFSKLUDGE  -c  mail.c
gcc -g -O2 -DNFSKLUDGE  -c  bezerk.c
gcc -g -O2 -DNFSKLUDGE  -c  mtx.c
gcc -g -O2 -DNFSKLUDGE  -c  tenex2.c
gcc -g -O2 -DNFSKLUDGE  -c  mbox.c
gcc -g -O2 -DNFSKLUDGE  -c  mh.c
gcc -g -O2 -DNFSKLUDGE  -c  mmdf.c
gcc -g -O2 -DNFSKLUDGE  -c  imap2.c
gcc -g -O2 -DNFSKLUDGE  -c  pop3.c
gcc -g -O2 -DNFSKLUDGE  -c  news.c
gcc -g -O2 -DNFSKLUDGE  -c  nntpcunx.c
gcc -g -O2 -DNFSKLUDGE  -c  phile.c
gcc -g -O2 -DNFSKLUDGE  -c  dummy.c
gcc -g -O2 -DNFSKLUDGE  -c  smtp.c
gcc -g -O2 -DNFSKLUDGE  -c  nntp.c
gcc -g -O2 -DNFSKLUDGE  -c  rfc822.c
gcc -g -O2 -DNFSKLUDGE  -c  misc.c
gcc -g -O2 -DNFSKLUDGE -DSTDPROTO=bezerkproto -DMAILSPOOL=\"/var/mail\" \
-DACTIVEFILE=\"/usr/share/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \
-DRSH=\"rsh\" -DRSHPATH=\"/usr/bin/rsh\" \
 -c os_sol.c
tz_sv4.c: In function `rfc822_timezone':
In file included from os_sol.c:73:
tz_sv4.c:47: `tzname' undeclared (first use this function)
tz_sv4.c:47: (Each undeclared identifier is reported only once
tz_sv4.c:47: for each function it appears in.)
tz_sv4.c:47: `daylight' undeclared (first use this function)
*** Error code 1
make: Fatal error: Command failed for target `osdep.o'
Current working directory /export/home3/thomas/dev/pine/pine3.93/imap/non-ANSI/c-client
*** Error code 1
make: Fatal error: Command failed for target `gso'
Current working directory /export/home3/thomas/dev/pine/pine3.93/imap/non-ANSI/c-client
*** Error code 1
make: Fatal error: Command failed for target `build'
Current working directory /export/home3/thomas/dev/pine/pine3.93/imap
*** Error code 1
make: Fatal error: Command failed for target `gso'

Making Pico and Pilot
rm -f osdep.c
cp os_unix.c osdep.c
rm -f osdep.h
cp os_unix.h osdep.h
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE attach.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE ansi.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE basic.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE bind.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE browse.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE buffer.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE composer.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE display.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE file.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE fileio.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE line.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE osdep.c
osdep.c: In function `alt_editor':
osdep.c:908: warning: assignment makes pointer from integer without a cast
osdep.c:909: warning: assignment makes pointer from integer without a cast
osdep.c:911: warning: assignment makes pointer from integer without a cast
osdep.c: In function `P_open':
osdep.c:1811: warning: return makes pointer from integer without a cast
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE pico.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE random.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE region.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE search.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE spell.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE tinfo.c
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE window.c                                                                       
gcc -c  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE word.c
ar ru libpico.a attach.o ansi.o basic.o bind.o browse.o buffer.o  composer.o display.o file.o fileio.o line.o osdep.o  pico.o random
.o region.o search.o spell.o tinfo.o  window.o word.o
ar: creating libpico.a
true libpico.a
gcc  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE main.c libpico.a  -ltermlib -o pico
gcc  -O -Dsv4 -DPOSIX -DJOB_CONTROL -ansi -DMOUSE pilot.c libpico.a  -ltermlib -o pilot

Making Pine.
rm -f os.h
ln -s osdep/os-gso.h os.h
./cmplhlp2.sh  < pine.hlp > helptext.h
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  addrbook.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  adrbklib.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  args.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  context.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  filter.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  folder.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  help.c
./cmplhelp.sh  < pine.hlp > helptext.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  helptext.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  imap.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  init.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  mailcap.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  mailcmd.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  mailindx.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  mailpart.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  mailview.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  newmail.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  other.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  pine.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  reply.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  screen.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  send.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  signals.c                                                       
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  status.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  strings.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  ttyin.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  ttyout.c
cd osdep; make includer os-sv4.c; cd ..
gcc -o includer includer.c
./includer < os-sv4.ic > os-sv4.c
rm -f os.c
ln -s osdep/os-sv4.c os.c
gcc   -g -DDEBUG  -DSV4 -ansi -DANSI -DSYSTYPE=\"GSO\" -DMOUSE  -c  os.c
os.c: In function `open_system_pipe':
os.c:1665: warning: assignment makes pointer from integer without a cast
os.c:1670: warning: assignment makes pointer from integer without a cast
make: Fatal error: Don't know how to make target `../c-client/c-client.a'

Links to executables are in bin directory:
size: bin/pine: cannot open
size: bin/mtest: cannot open
size: bin/imapd: cannot open
bin/pico: 155056 + 11136 + 7956 = 174148
bin/pilot: 154048 + 11032 + 7956 = 173036
Done

---

From: Mark Crispin <[email-masked]>
Date: Sat, 18 May 1996 12:07:22 -0700

There is a prebuilt Solaris executable on ftp.cac.washington.edu in
unix-bin.

You must have a broken version of GCC.  You can try to change "tz_sv4.c"
to "tz_nul.c" in pine3.93/imap/non-ANSI/c-client/os_sol.c

> bin/pilot: 154048 + 11032 + 7956 = 173036

-- Mark --

DoD #0105, R90/6 pilot, FAX: (206) 685-4045  ICBM: N 47 39'35" W 122 18'39"
Science does not emerge from voting, party politics, or public debate.