Language:
switch to room list switch to menu My folders
Go to page: First ... 18 19 20 21 [22] 23 24 25 26 ... Last
[#] Wed Sep 28 2005 11:01:28 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


I should probably clarify that a little.

Currently, FreeBSD 4.11 is the legacy version of FreeBSD. It is being phased out. So, people will be phasing their version of FreeBSD to the new tree (5.x), if they haven't already done so. Once you move to the new version, you generally want to be up to date, if for no other reason than because of the security fixes (which provides another reason why people want to jump on the new tree).

Finally, Citadel won't build on 4.11. Period. I've already tried it, and it just flat-out won't build. It'd be too much effort to try to get it to work in that tree anyway, so don't bother wasting your time. I updated my own FreeBSD to 5.4 because I wanted to be able to build Citadel. Besides, the 4.11 environment had a very old developer environment that caused itself to be kept out of a lot of current projects, as people are embracing the newer versions of GCC.

[#] Wed Sep 28 2005 11:04:41 EDT from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

so what version is that on your fleeb box that I'm using?

[#] Wed Sep 28 2005 11:23:59 EDT from fleeb @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]


I'm pretty sure it's 5.4. If it's not, than it's 5.(something). I should double-check, to see if I need to update it.

[#] Wed Oct 05 2005 00:37:21 EDT from helf @ Nitz

[Reply] [ReplyQuoted] [Headers] [Print]

st
l

q
!
:q
``rh5r

[#] Wed Oct 12 2005 10:05:03 EDT from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

cool.

[#] Fri Oct 28 2005 23:26:46 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Hey unix heads...

Is there a way to have a single program use syslog() to log to two or more different facilities? Or do I have to repeatedly close my syslog connection and reopen it?

[#] Sat Oct 29 2005 00:40:18 EDT from Peter Pulse @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Actually, you can. Pass 0 to logopen() for the facility, then bitwise-or the facility to the priority (severity) value in the call to syslog(). It should work...

[#] Sat Oct 29 2005 00:41:44 EDT from Peter Pulse @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

But.. you can't log the same message to more than one facility (don't | more than one facility). If you want to do that you'll have to call syslog() twice.

[#] Sat Oct 29 2005 10:45:10 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Is the bitwise-or trick a hack that happens to work, or is it documented and portable?

[#] Sat Oct 29 2005 10:51:14 EDT from Peter Pulse @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

It should be portable. It was documented -somewhere-, that's how I first tried it. Some man page. But if you look at the current glibc syslog.c source, you'll see that if you pass a facility, it notices and overrides the one used in openlog().

[#] Sat Oct 29 2005 10:57:30 EDT from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Hmm... the man page for syslog(3) and openlog(3) do seem to indicate that this can be done, but it isn't perfectly clear at first glance. Thanks!

[#] Sat Oct 29 2005 17:45:09 EDT from Peter Pulse @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

The program is written in C++ on Linux, making heavy use of the STL. The
crash
occurs deep within stringstream (I'm trying to write an integer with <<)
and

RTOL.

[#] Sat Oct 29 2005 19:22:02 EDT from "hjalfi" <hjalfi@uncensored.citadel.org>

Subject: Re: (no subject)

[Reply] [ReplyQuoted] [Headers] [Print]

RTOL.

Read the... uh... um... sorry?

[#] Mon Oct 31 2005 09:13:07 EST from IGnatius T Foobar @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Cool, the bitwise-or thing worked.

[#] Mon Oct 31 2005 10:50:09 EST from Peter Pulse @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Oct 29 2005 7:22pm from hjalfi <hjalfi@uncensored.citadel.org>
Subject: Re: (no subject)
RTOL.

Read the... uh... um... sorry?


Remove The Offending Language.

[#] Mon Oct 31 2005 11:14:00 EST from "hjalfi" <hjalfi@uncensored.citadel.org> to "Peter Pulse" <Peter_Pulse@uncensored.citadel.org>

Subject: Re: (no subject)

[Reply] [ReplyQuoted] [Headers] [Print]

Ah.

Which one, though --- C++, STL, Linux, stringstream, or <<? They're all pretty
offensive.

[#] Mon Oct 31 2005 11:30:10 EST from Peter Pulse @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

Oct 31 2005 11:14am from hjalfi <hjalfi@uncensored.citadel.org> to "Peter
Pulse" <Peter_Pulse@uncensored.citadel.org>
Subject: Re: (no subject)
Ah.

Which one, though --- C++, STL, Linux, stringstream, or <<? They're all
pretty
offensive.


What, is this a trick question? Or some new kind of humor I don't get?

[#] Mon Oct 31 2005 11:33:40 EST from "hjalfi" <hjalfi@uncensored.citadel.org>

Subject: Re: (no subject)

[Reply] [ReplyQuoted] [Headers] [Print]

Well, C++ is a foul language. STL reaches whole new depths of foulness. Linux
--- okay, it's not foul, but it's still pretty icky. stringstream is part of
iostream, which is horrible, and is still recovering from the *appalling*
bugs in gcc 2.95's implementation, and << is a grotesque abuse of operator
overloading.

Of course, this doesn't help with my actual programming problem.

[#] Mon Oct 31 2005 13:24:08 EST from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

I was going to say RTOSTL. But that's only because I can't help you.
The reason I don't use the STL is so that I don't run into problems like the one you're having where you have no idea of what's going on nor any really good way to find out.
And everybody bashes me for reinventing the wheel.
Well, anyway, my first suggestion is run it under gdb (if you can) get a stack trace, compile with -g and no optimizations see if it goes away. Wouldn't surprise me if the optimizer still breaks things. I've experienced that in the not too distant past.

[#] Mon Oct 31 2005 13:24:57 EST from Ford II @ Uncensored

[Reply] [ReplyQuoted] [Headers] [Print]

second suggestion, everybody's favorite electric fence or that other thing Ican never remember the name of: valgrind.
works wonders.

Go to page: First ... 18 19 20 21 [22] 23 24 25 26 ... Last