Questions tagged [netbsd]

NetBSD is an advanced unix-like operating system for modern server, desktop, and embedded computer platforms. It is open source and licensed under the BSD license.

This tag should be used for question pertaining specifically to the NetBSD operating system. In keeping with the intent of SO, this is limited to programming, not such things as use, installation, configuration, or maintenance. Such questions generally belong on Superuser if related to personal/workstation use, or on ServerFault if related to use as a server.

101 questions
2
votes
4 answers

Using sysctl(3) to write safe, portable code: good idea?

When writing safe code in straight C, I'm sick and tired of coming up with arbitrary numbers to represent limitations -- specifically, the maximum amount of memory to allocate for a single line of text. I know I can always say stuff like #define…
christiank
  • 21
  • 1
2
votes
3 answers

How to use IPMI to monitor local settings?

I currently am being tasked to cross-reference ENVSTAT data with IPMITOOL data. I managed to get envstat working well without too much pain, but I have been stuck at configuring iPMITOOL for quite awhile now. As far as I am aware, the only way to…
Lafferty
  • 31
  • 1
  • 3
2
votes
1 answer

Git Install as User?

I am trying to install git as a user on a netbsd system (4.0.1_PATCH) by compiling git 1.8.0 from source using the source tarball from github. I have user privileges on this system but do not have root privileges. I am compiling the source code in…
haziz
  • 12,994
  • 16
  • 54
  • 75
1
vote
0 answers

Application freezes when 2xclick on the binary but ok if run from a terminal

I have a fpc (free pascal) with msegui widgetset application that compiles ok on OpenBSD. It runs perfectly when launched from terminal. But if 2xclick on the binary in the window manager, the app launch and freezes directly and 100% of the cpu is…
fredvs
  • 29
  • 6
1
vote
1 answer

Solaris 8's gcc isn't searching for header files on NetBSD

I have a gcc 2.95.1 binary installed on a Solaris 8 VM. For an experiment, I'm trying to get it working in a NetBSD environment. However, I can't run the compilation phase on any program that involves #include directives, as the binary doesn't seem…
fireshadow52
  • 6,298
  • 2
  • 30
  • 46
1
vote
1 answer

Cannot locate /usr/share/examples/svr4 on NetBSD 9.2 32-bit

I'm attempting to setup a (32-bit) NetBSD 9.2 virtual machine with QEMU so that I can run SPARC binaries on it, specifically those that were compiled on Solaris machines (currently I've compiled a short C program on Solaris 8 and am trying to run it…
fireshadow52
  • 6,298
  • 2
  • 30
  • 46
1
vote
2 answers

What is NetBSD's FIONSPACE ioctl equivalent in Linux?

I'm using Linux 2.6.38 (fc14). What is the ioctl flag to get the amount of free space on a socket file descriptor (say, a TCP socket)? I found NetBSD has FIONREAD, FIONWRITE and FIONSPACE for such related purposes. But, I could only use FIONREAD in…
crk
  • 617
  • 1
  • 8
  • 12
1
vote
1 answer

screen fails on NetBSD, reporting "poll: Invalid argument"

I have installed and used screen many times on several different operating systems. Recently I installed it on a NetBSD-8.0 virtual machine. $ sudo pkgin install screen calculating dependencies...done. 1 package to install: screen-4.8.0nb1 0 to…
James E Keenan
  • 281
  • 2
  • 10
1
vote
1 answer

Writing an script interpreter in bash

I wrote a bash wrapper to ruby that goes through various setup steps. The most basic version is, #!/bin/bash # ruby_wrapper.sh ruby Now I want to be able to use this wrapper just like regular ruby! Specifically, I want to create a .rb…
diedthreetimes
  • 4,086
  • 26
  • 38
1
vote
1 answer

How can I make a NetBSD VM halt itself in google compute engine

I've got a batch job that I want to run in google compute engine on a NetBSD instance. I expected that I could just shutdown -hp now at the end of the job and the instance would be powered off. But when I do that it still remains in the running…
Lawrence D'Anna
  • 2,998
  • 2
  • 22
  • 25
1
vote
1 answer

How can I include Bash in the cross-compilation of NetBSD using build.sh?

I'm looking for the best practice for including GNU Bash in the cross-compilation of NetBSD using the build.sh script. Right now, my plan is to include it in usr/src/gnu/dist and then create the relevant Makefiles in usr/src/gnu/usr.bin but I was…
Matthew
  • 133
  • 2
  • 8
1
vote
2 answers

configuration of tty on BSD system

For a command like this one on Linux debian-linux 4.19.0-1-amd64 #1 SMP Debian 4.19.12-1 (2018-12-22) x86_64 GNU/Linux with xfce I get : alain@debian-linux:~$ dbus-send --system --type=method_call --print-reply --dest =org.freedesktop.DBus…
ctac_
  • 2,413
  • 2
  • 7
  • 17
1
vote
1 answer

Unable to compile lxml using pip and NetBSD

I'm running NetBSD 7.1 and I'm trying to install Python's lxml package, using pip. However I get this compilation error: # pip install lxml Collecting lxml Using cached lxml-3.8.0.tar.gz Installing collected packages: lxml Running setup.py…
Niklas9
  • 8,816
  • 8
  • 37
  • 60
1
vote
3 answers

NetBSD 'pkg_add' can't process packages: Forbidden

I'm new to using NetBSD but I've set it up on a VM and am currently in the process of running through a few package installations. From what I understand this is done via setting the PKG_PATH variable and then using the pkg_add utility, however I'm…
1
vote
0 answers

Kernel crash in hardware interrupt; core dump shows process context

This is for NetBSD on MIPS processor, but answer for Linux is also welcome. I see that an interrupt occurred while receiving a network packet. This hardware interrupt sees a TLB miss on store operation and kernel crashed. When I see the core-dump,…
ultimate cause
  • 2,264
  • 4
  • 27
  • 44