Re: Problem w/ simple Hello World compiled w/ g++

2005-06-13 Thread Keyser
Just tried your code on a freshly installed machine, just standard install, no updates performed, and I still cannot reproduce the problem. Your code compiles and runs fine. -- Dmitry Yeah, that's what I feared. At this point the only plausible cause for this that I can think of is gremlins.

Re: make installkernel fails instantly w/ signal 11

2005-06-11 Thread Keyser
Cut and pasted from /usr/src/Makefile - - - CUT - - - # Make sure we have an up-to-date make(1). Only world and buildworld # should do this as those are the initial targets used for upgrades. # The user can define ALWAYS_CHECK_MAKE to have this check performed # for all targets. # - - - CUT - - -

make installkernel fails instantly w/ signal 11

2005-06-11 Thread Keyser
In an effort to get the simplest of compiled c++ programs (compiled with g++) to actually run without a segfault on my box I'm trying to update everything. So I cvsup'd src-all and ports-all. Then I did: make -j4 buildworld (which worked) make -DALWAYS_CHECK MAKE buildkernel (which also worked

Re: g++ successfully compiled "Hello World" program causes segfault at runtime

2005-06-09 Thread Keyser
Hello, please show the output of 'env' and 'cat /var/run/dmesg.boot' to receive an impression of you system. Björn Here you go and thanks for taking the time to look at this. vitoc# env USER=root HOME=/root SHELL=/bin/csh PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/lo

Re: g++ successfully compiled "Hello World" program causes segfault at runtime

2005-06-09 Thread Keyser
Do you have any locale environment variables set? The program runs fine on my machine. -- Dan Nelson I don't think so? This is a completely fresh install of FreeBSD 5.4. Haven't made any changes. Maybe I need to change something? However, it would be strange to install with default settin

g++ successfully compiled "Hello World" program causes segfault at runtime

2005-06-09 Thread Keyser
I posted this topic a few days ago but still haven't found a solution yet. However, I believe I'm able to provide more information now. Here is a log showing what I'm up against: vitoc# pwd /usr/temp/cpp vitoc# ls test.cpp vitoc# cat test.cpp #include using namespace std; int main() { cout <

Problem w/ simple Hello World compiled w/ g++

2005-06-07 Thread Keyser
I know quite a bit about programming, but not a lot about FreeBSD. I've been pulling my hair out all morning just trying to get an unbelievably simple c++ "Hello World" program to run (it compiles fine) under FreeBSD. Here's the source: //helloworld.cpp #include using namespace std; int mai