Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problems compiling Pine

14 views
Skip to first unread message

Sjaakie Helderhorst

unread,
Jul 30, 2002, 4:48:49 AM7/30/02
to
Hi,

I'm having problems installing PINE 4.44 from source on Debian Linux.
I copied the source-file to /tmp and ran 'build slx', this produces alot of
output. At the stage of building Pico and Pine things go wrong.

/usr/bin/ld: cannot find -lncurses
Which results in error 1

I included some of the output, maybe one of you can help me out.

Thanx in advance!

-- the code -->

Making Pico and Pilot
make CC=cc -f makefile.lnx
rm -f os.h
ln -s osdep/os-lnx.h os.h
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o main.o main.
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o attach.o att
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o basic.o basi
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o bind.o bind.
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o browse.o bro
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o buffer.o buf
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o composer.o c
.c
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o display.o di
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o file.o file.
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o fileio.o fil
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o line.o line.
cd osdep; make includer os-lnx.c; cd ..
make[1]: Entering directory `/tmp/pine4.44/pico/osdep'
cc -o includer includer.c
./includer < os-lnx.ic > os-lnx.c
make[1]: Leaving directory `/tmp/pine4.44/pico/osdep'
rm -f pico_os.c
ln -s osdep/os-lnx.c pico_os.c
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o pico_os.o pi
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o pico.o pico.
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o random.o ran
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o region.o reg
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o search.o sea
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o window.o win
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE -c -o word.o word.
ar ru libpico.a attach.o basic.o bind.o browse.o buffer.o composer.o disp
ile.o fileio.o line.o pico_os.o pico.o random.o region.o search.o window.
o
ranlib libpico.a
cc -g -DDEBUG -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE main.o libpico.a -l
-o pico
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [pico] Error 1

Making Pine and rpload/rpdump.
make CC=cc -f makefile.lnx
rm -f os.h
ln -s osdep/os-lnx.h os.h
./cmplhlp2.sh < pine.hlp > helptext.h
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o addrbook.o addr
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o adrbkcmd.o adrb
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o adrbklib.o adrb
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o args.o args.c
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o bldaddr.o bldad
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o context.o conte
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o filter.o filter
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o folder.o folder
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o help.o help.c
./cmplhelp.sh < pine.hlp > helptext.c
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o helptext.o help
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o imap.o imap.c
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o init.o init.c
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o mailcap.o mailc
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o mailcmd.o mailc
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o mailindx.o mail
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o mailpart.o mail
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o mailview.o mail
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o newmail.o newma
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o other.o other.c
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o pine.o pine.c
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o reply.o reply.c
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o screen.o screen
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o send.o send.c
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o signals.o signa
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o status.o status
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o strings.o strin
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o takeaddr.o take
cd osdep; make includer os-lnx.c; cd ..
make[1]: Entering directory `/tmp/pine4.44/pine/osdep'
cc -o includer includer.c
./includer < os-lnx.ic > os-lnx.c
make[1]: Leaving directory `/tmp/pine4.44/pine/osdep'
rm -f os.c
ln -s osdep/os-lnx.c os.c
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -c -o os.o os.c
echo "char datestamp[]="\"`date`\"";" > date.c
echo "char hoststamp[]="\"`hostname`\"";" >> date.c
cc -g -DDEBUG -DLNX -DSYSTYPE=\"LNX\" -DMOUSE -o pine addrbook.o adr
adrbklib.o args.o bldaddr.o context.o filter.o folder.o help.o helptext.
o init.o mailcap.o mailcmd.o mailindx.o mailpart.o mailview.o newmail.o o
pine.o reply.o screen.o send.o signals.o status.o strings.o takeaddr.o os
.c ../pico/libpico.a ../c-client/c-client.a -lncurses `cat ../c-client/L
/usr/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make: *** [pine] Error 1

Links to executables are in bin directory:
size: bin/pine: No such file or directory
text data bss dec hex filename
630275 7720 2176 640171 9c4ab bin/mtest
665261 7876 9460 682597 a6a65 bin/imapd
size: bin/pico: No such file or directory
size: bin/pilot: No such file or directory
size: bin/rpdump: No such file or directory
size: bin/rpload: No such file or directory
627789 7716 2176 637681 9baf1 bin/ipop2d
632941 7748 1280 641969 9cbb1 bin/ipop3d
Done


Aaron Hall

unread,
Jul 30, 2002, 5:58:01 AM7/30/02
to
In article <3d46576a$0$12277$e4fe...@dreader4.news.xs4all.nl>, Sjaakie
Helderhorst <ju...@guess.it> wrote:

> Hi,
>
> I'm having problems installing PINE 4.44 from source on Debian Linux.
> I copied the source-file to /tmp and ran 'build slx', this produces alot of
> output. At the stage of building Pico and Pine things go wrong.
>
> /usr/bin/ld: cannot find -lncurses
> Which results in error 1

Debian splits libraries into runtime and development packages. You need
the development packages to compile software. Install libncurses5-dev,
and try it again.

- Aaron

--
Aaron Hall : "...but hey, it just so happens that we've got
ah...@vitaphone.net : the pattern recognition skills of a narcoleptic
: whippet on crack..."
: -- As The Apple Turns, Episode 3720

Macintosh/UNIX Geek, Network Flack, and...eh, whatever.

Tzafrir Cohen

unread,
Jul 30, 2002, 6:25:49 AM7/30/02
to
On Tue, 30 Jul 2002, Aaron Hall wrote:

> In article <3d46576a$0$12277$e4fe...@dreader4.news.xs4all.nl>, Sjaakie
> Helderhorst <ju...@guess.it> wrote:
>
> > Hi,
> >
> > I'm having problems installing PINE 4.44 from source on Debian Linux.
> > I copied the source-file to /tmp and ran 'build slx', this produces alot of
> > output. At the stage of building Pico and Pine things go wrong.
> >
> > /usr/bin/ld: cannot find -lncurses
> > Which results in error 1
>
> Debian splits libraries into runtime and development packages. You need
> the development packages to compile software. Install libncurses5-dev,
> and try it again.

Actually, I figure you need more. When you'll start building the pine
source package (as detailed in my other message) you'll get some error
messages regarding packages that are missing. For instance: libldap2-dev
or something similar for ldap support and libssl0-dev (or something
similar) for ssl support.

--
Tzafrir Cohen /"\
mailto:tza...@technion.ac.il \ / ASCII Ribbon Campaign
Taub 229, 972-4-829-3942, X Against HTML Mail
http://www.technion.ac.il/~tzafrir / \

Tzafrir Cohen

unread,
Jul 30, 2002, 6:22:31 AM7/30/02
to
On Tue, 30 Jul 2002, Sjaakie Helderhorst wrote:

> Hi,
>
> I'm having problems installing PINE 4.44 from source on Debian Linux.
> I copied the source-file to /tmp and ran 'build slx',

debian has an existing pine source package, which compiles well
(anecdotial evidence)

Generally what you need to do is:

apt-get source pine
cd pine-4.44
fakeroot dpkg-buildpackage

If all goes well, you should get a number of deb packages, that you can
install on your system. Also install the pine-tracker package to keep
track of new pine versions...

WorksForMe

Sjaakie Helderhorst

unread,
Jul 30, 2002, 9:39:18 AM7/30/02
to
Thank you for answering, this did the trick!
Since I'm a newbie to Linux this also contributed to my knowledge about the
phenomenon.


"Tzafrir Cohen" <tza...@technion.ac.il> wrote in message
news:Pine.GSO.4.33_heb2.09.0207301318260.12540-100000@csd...

0 new messages