libpcap.0.6.2 make install problem

From: F. Winter (winter@PHYSnet.uni-hamburg.de)
Date: Thu Sep 26 2002 - 07:58:46 EDT


Greetings,

while compiling portsentry2 from psionic I got compile
errors due to the absence of libpcap on my system - like
I have been warned before. Now I am trying to install
libpcap0.6.2. Configure and make command went well.
But make install aborts with

bash-2.05a# make install
LOCK: -d /server/local/libpcap0.6.2/lib
 || (mkdir -p /server/local/libpcap0.6.2/lib; chmod 755
/server/local/libpcap0.6.2/lib)
sh: syntax error at line 1: `||' unexpected
*** Exit 2
Stop.

I took a look at the install section in Makefile.
It seems ok to me:

----------------------Makefile-----------------------
install:
        [ -d $(DESTDIR)$(libdir)] || \
            (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
        $(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a
        $(RANLIB) $(DESTDIR)$(libdir)/libpcap.a
        [ -d $(DESTDIR)$(includedir) ] || \
            (mkdir -p $(DESTDIR)$(includedir); chmod 755 $(DESTDIR)$(includedir))
        $(INSTALL_DATA) $(srcdir)/pcap.h $(DESTDIR)$(includedir)/pcap.h
        $(INSTALL_DATA) $(srcdir)/pcap-namedb.h \
            $(DESTDIR)$(includedir)/pcap-namedb.h
        [ -d $(DESTDIR)$(includedir)/net ] || \
            (mkdir -p $(DESTDIR)$(includedir)/net; chmod 755 $(DESTDIR)$(includedir)/net)
        $(INSTALL_DATA) $(srcdir)/bpf/net/bpf.h \
            $(DESTDIR)$(includedir)/net/bpf.h
        [ -d $(DESTDIR)$(mandir)/man3 ] || \
                (mkdir -p $(DESTDIR)$(mandir)/man3; chmod 755 $(DESTDIR)$(mandir)/man3)
        $(INSTALL_DATA) $(srcdir)/pcap.3 \
            $(DESTDIR)$(mandir)/man3/pcap.3
-----------------------------------------------------

I searched the FAQs from libpcap/tcpdump - but without
finding anything related. Neither a traditional search engine
can find something similar.

Although I tried gmake3.79.1 as the make command.
I am using Compaq UNIX 5.1a.

I hope my request is not off topic here.

Bye

--
 Frank Winter          Tel.: +(49)-40-42838-2404
 PHYSnet RZ            Email: winter@PHYSnet.uni-hamburg.de
 Uni Hamburg
 Jungiusstr. 9
 D-20355 Hamburg


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:54 EDT