pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/51970: Ethernet (libpcap) support not compiled in emulators/simh (4.0.0.20161218)



The following reply was made to PR pkg/51970; it has been noted by GNATS.

From: Rin Okuyama <rokuyama%rk.phys.keio.ac.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost, maya%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/51970: Ethernet (libpcap) support not compiled in
 emulators/simh (4.0.0.20161218)
Date: Wed, 15 Feb 2017 21:40:44 +0900

 Thank you, maya, for your rapid response. However, unfortunately, it
 still does not work properly:
 
    % /usr/pkg/bin/simh-vax
    MicroVAX 3900 simulator V4.0-0 Beta        git commit id: 7964e2b7        Build: Unsupported=include+lib
    sim> show eth
    ETH devices:
     eth0   tap:tapN                             (Integrated Tun/Tap support)
     eth1   nat:{optional-nat-parameters}        (Integrated NAT (SLiRP) support)
     eth2   udp:sourceport:remotehost:remoteport (Integrated UDP bridge support)
    sim> attach xq tap:tap0
    Eth: opened OS device tap0
    Wed Feb 15 20:09:58 2017
    Sockets: eth_reader(tap):  error 35 - Operation would block
    Wed Feb 15 20:09:59 2017
    Sockets: eth_reader(tap):  error 35 - Operation would block
    sim> q
    Goodbye
    Eth: closed tap0
 
 In addition, with your patch which adds -DUSE_NETWORK to CFLAGS, simh-vax
 is linked to libpcap, but binary generated by manually executed gmake, is
 not linked:
 
    % ldd /usr/pkg/bin/simh-vax | grep libpcap
            -lpcap.5 => /usr/lib/libpcap.so.5
    % ldd BIN/vax | grep libpcap
    %
 
 The latter dynamically loads libpcap when it is necessary, as its
 makefile says:
 
    21  # Dynamic loading of libpcap is the preferred default behavior if pcap.h
    22  # is available at build time.  Support to statically linking against libpcap
    23  # is deprecated and may be removed in the future.  Static linking against
    24  # libpcap can be enabled if GNU make is invoked with USE_NETWORK=1 on the
    25  # command line.
 


Home | Main Index | Thread Index | Old Index