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
0
votes
1 answer

Where is TCB located on FreeBSD?

Where is the kernel thread control block (TCB) located On FreeBSD? (After the thread is interrupted, where is the context (containing %RIP/%EIP) saved?) Is it on the kernel stack or somewhere else? In FreeBSD, are process and thread quite similar,…
WindChaser
  • 960
  • 1
  • 10
  • 30
0
votes
1 answer

Address of a variable does not matches in gdb

I am using Intel's ICC compiler for NetBSD systems. I have been fighting with a bug, and got surprised even more when I observed that from the core dump - address of a symbol from two different mechanisms in gdb are not same. The variable…
ultimate cause
  • 2,264
  • 4
  • 27
  • 44
0
votes
1 answer

Thread-local storage segfaults on NetBSD only?

Trying to run a C++ program, I get segmentation faults which appear to be specific to NetBSD. Bert Hubert wrote the simple test program (at the end of this message) and, indeed, it crashes only on NetBSD. % uname -a NetBSD golgoth 5.0.1 NetBSD 5.0.1…
bortzmeyer
  • 34,164
  • 12
  • 67
  • 91
0
votes
1 answer

Installing NetBSD sets via HTTP on Raspberry PI fails

I want to try NetBSD on my Raspberry PI B. I downloaded the NetBSD installer image for the RPI from here. Unfortunately, I have some troubles installing the sets from the daily snapshot directory. I follows the advices given both in 1 and 2. As…
Jonas
  • 2,974
  • 4
  • 24
  • 23
0
votes
1 answer

top shows negative RES size

In NetBSD system I am seeing this issue where top command displays -ve value for resident memory. I checked for memory leaks in code and did not find any. In fact this is the case with shell(sh) process as well [not shown in pic below]. I am curious…
ultimate cause
  • 2,264
  • 4
  • 27
  • 44
0
votes
1 answer

NetBSD - Can we force semget() to return same semid?

I am working on a NetBSD system. As I recollect from my memory from a book on UNIX programming by Richard Stevens, I lerant that semget() call returns different values for different invocations, even for the same thread. I recently happen to see a…
ultimate cause
  • 2,264
  • 4
  • 27
  • 44
0
votes
2 answers

Error while setting up netbsd crosscompiler

I am in the process of setting up a cross compiler for netbsd to sbmips with a mips64el processor. so I got the source and used ./build.sh -a mips64el -m sbmips and I got my toolchain with no errors. I continued to configure the kernel with: cd…
user2882307
0
votes
1 answer

How to build binutils for a specific target

I'm trying to configure binutils for an ARM processor, specifically the ARMv5TE. The processor is the Marvell 88F5281. Presently the device is running NetBSD, so I want to make sure I configure binutils for the right target arch / OS. Is there a…
ipatch
  • 3,933
  • 8
  • 60
  • 99
0
votes
1 answer

How to install and load libspatialite and spatiality-tools on NetBSD w/ pkgsrc?

I am trying to use the library libspatialite to extend sqlite on a NetBSD platform. I've taken the first step of creating a package for libspatialite in pkgsrc (libspatialite-4.1.1). The package appears to work; pkg_info says it's installed and I've…
Gregory
  • 4,147
  • 7
  • 33
  • 44
0
votes
1 answer

X11 forwarding over ssh for R: why this warning?

I need to use R (3.0.2 from pkgsrc) on a remote server (NetBSD) over a ssh connection with X11 forwarding. plot(1) is generating the expected graphic on my local machine, however R is also returning warnings in my terminal session as below. >…
Gregory
  • 4,147
  • 7
  • 33
  • 44
0
votes
1 answer

NetBSD: "make install" with bsd.*.mk scripts: How to automatically create non-existing directories

On a NetBSD system I have a makefile with no install target. Included makefiles are bsd.xconf.mk bsd.prog.mk bsd.xorg.mk The following relevant variables are set PROG BINDIR MANDIR MAN When I type make install PROG is installed in BINDIR and…
user3224237
  • 448
  • 6
  • 12
0
votes
1 answer

netbsd ioctl for hard disk information

I can't seem to find a good comprehensive list of available ioctls for netbsd. I am looking to do some operations on harddisk (getting size, physical sector size, model). I have the code working in linux. It looks something like this, I removed…
user2882307
0
votes
1 answer

how to get the netbsd precise version about book code Reading

i recently read one Book "CODE Reading The open Source Perspective ", wiki link is here. I notice that it use a netbsd "netbsd export-19980407" as its source to dig into. My question is how to get the precise version of that netbsd? So i an get…
user1279988
  • 757
  • 1
  • 11
  • 27
0
votes
3 answers

high availability cluster on NetBSD?

I need to set up a High Availability cluster using NetBSD. Previously i have set up a cluster on RedHat machines using RedHat Cluster Suite. Similarly under the UNIX environment of NetBSD what will i use to start a cluster ?
zain27
  • 85
  • 8
0
votes
1 answer

Should interrupts be enabled in kernel page fault handler in netbsd?

I am seeing an issue where netbsd system kernel is having watchdog timeout and the stack trace shows that kernel page fault handler got interrupted by software interrupt to process ip packets the trace looks like this. This netbsd 4.x 0xcf910db0: at…
krazycoder
  • 53
  • 5