Re: in-kernel tcp server

2007-06-20 Thread John Polstra
ocketvar.h (so*). What's the easy way to create a basic tcp server (create/bind/listen/accept/send/recv) : use netgraph's ksocket or so* ? Thanks in advance ! PS: the whole job must be done in the kernel. yes it can (and has been) done.. John Polstra did it many years ago.. using netgr

Re: in-kernel tcp server

2007-06-20 Thread John Polstra
Nicolas Cormier wrote: Thanks a lot for your answer, a last question "why did you not used so* functions ?" Using ng_ksocket is almost the same as using the so* functions, since the ksocket methods call the so* functions. But by using netgraph, you get a nice management interface, too. F

Re: in-kernel tcp server

2007-06-20 Thread John Polstra
Julian Elischer wrote: I would actually like to address the performance issues. is there any chance the oldest version (4.x based) might be released, or at least it would be nice to get the code snippet that attaches to eh ng_ksocket and reads and writes the stream.. I could make a TCP ECHO

Re: in-kernel tcp server

2007-06-21 Thread John Polstra
Julian Elischer wrote: but if you did find some old ksocket based code sitting around, i'd love to try it in -current and work on the bottlenecks.. I'm sure I don't have it any more, unfortunately. It was six years old, and I just moved into a smaller house and threw out a half dozen old co

Re: glibc

1999-07-19 Thread John Polstra
from one of those places. Left as an exercise for the reader: Figure out how the two differ and which one is "better". :-) John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washin

Re: glibc

1999-07-19 Thread John Polstra
Brian F. Feldman wrote: > On Mon, 19 Jul 1999, John Polstra wrote: > >> Left as an exercise for the reader: Figure out how the two differ >> and which one is "better". :-) > > I'd rather hurt myself severely. Of course. That's a prerequisite fo

Re: PAM & LDAP in FreeBSD

1999-07-20 Thread John Polstra
In article <19990720082825.b...@fisicc-ufm.edu>, Oscar Bonilla wrote: > Couldn't we do this with /etc/auth.conf? The plan when PAM was brought in was to eliminate auth.conf. I don't think we should be looking for new uses for it. John

Re: if_dl.h in stable causes sendmail segmentation

1999-07-20 Thread John Polstra
hout also rebuilding userland. John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washington USA "No matter how cynical I get, I just can't keep up."-- Nora Ephron To Unsu

Re: PAM & LDAP in FreeBSD

1999-07-20 Thread John Polstra
ned to serve four separate but related functions. We're only using the authentication function currently. For an overview of PAM, see PAM(8) in the manual pages. There is also a spec in "src/contrib/libpam/doc/specs/rfc86.0.txt". John --- John Polstra

Re: linking question...

1999-07-21 Thread John Polstra
is all ld cares about. That's been the traditional behavior on every Unix system I've ever used that supported -L at all. John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washingt

Re: PAM & LDAP in FreeBSD, and userfs too.

1999-07-22 Thread John Polstra
of weird shared objects," you'd really better get used to it. It was the wave of the future 10 years ago. It's not going away. Dynamic linking provides flexibility and modularity that you just can't get from static linking. John -- John Polstra

Re: Proposed substitution for ACLs

1999-07-23 Thread John Polstra
In article <37882150.87a93...@newsguy.com>, Daniel C. Sobral wrote: > > Do whatever you want: as a fs layer. That would be good advice, if FS layers worked. John -- John Polstra j...@polstra.com John D. Polstr

Re: NSS Project

1999-08-04 Thread John Polstra
rust a minimal subset of the system). Well, dynamic linking is here to stay, and that enlarges the scope of "minimal subset" somewhat. But nothing would be qualitatively different if we went to an all-dynamic scheme (which I hope we will do some day). In any case, your

Re: login.conf restrictions for suid processes possible? (fwd)

1999-08-05 Thread John Polstra
etuid or setgid. I'm not 100% sure from the original post whether that's the case or not. John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washington USA "No matter how cynical

Re: How the `struct linker_set' is used in building an ELF kernel?

1999-08-05 Thread John Polstra
naming the sections that contain linker sets. gensetdefs knows this convention, and so do the macros in . The compiler, assembler, and linker aren't aware of anything special about the names. John -- John Polstra j...@polstra.com John D.

Re: NSS Project

1999-08-05 Thread John Polstra
, except I feel that when there are cases where we can do useful things which rely on dynamic linking, we shouldn't let static linking hold us back. Plenty of people disagree with me, though. John --- John Polstra j...@pols

Re: NSS Project

1999-08-05 Thread John Polstra
itional archive libraries are made up of separate object files which are subsetted by the linker. To really understand the issues I think it's necessary to read through the dynamic linker sources and understand what it's doing. There used to be books that described how it all worked (Pren

Re: cvs

1999-08-07 Thread John Polstra
umask of 2 then it would have worked too. It honors the umask setting unless overridden in the supfile. John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washington USA "No matter how cy

Re: quad_t and portability

1999-08-07 Thread John Polstra
ems. No, longs are 64 bits on the Alpha. Ints are 32 bits, though. John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washington USA "No matter how cynical I get, I just can't keep

Re: prototypes with __P

1999-08-07 Thread John Polstra
tyle(9): Only use the __P macro from the include file if the source file in general is (to be) compilable with a K&R Old testament compiler. Use of the __P macro in new code is discouraged, although modifications to existing files should be consistent with that file's

Re: cvs

1999-08-08 Thread John Polstra
Mike Pritchard wrote: >> >> Note, if you would have just _run_ the program with a umask of 2 >> then it would have worked too. It honors the umask setting unless >> overridden in the supfile. > > Yes, but if I ever run cvsup by hand I wind up with cvsup > going through my whole tree and resettin

Re: STAILQ macros..

1999-08-12 Thread John Polstra
qh_last points at stqh_first (which means it must be a pointer to pointer). That way, STAILQ_INSERT_TAIL doesn't have to treat an empty list as a special case. John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc.

Getting device and inode number from a vnode

1999-08-15 Thread John Polstra
) says, "The file should not be locked on entry." But when stat calls vn_stat, the vnode is locked. Which is correct -- or doesn't it matter? Thanks, John --- John Polstra j...@polstra.com John D. Polstra & Co., Inc.

Re: Getting device and inode number from a vnode

1999-08-15 Thread John Polstra
Alfred Perlstein wrote: > On Sun, 15 Aug 1999, John Polstra wrote: >> >> 1. I have a pointer to a vnode and I want to get the corresponding >> dev_t and inode number. Is there a non-sleazy way to do that other >> than calling vn_stat? > > use vn_todev from "

Re: dlopen failure

1999-05-20 Thread John Polstra
Vdb.c:150 > #7 0x8049ff9 in GetDefaultDriver () at Vdb.c:254 > #8 0x804a141 in VdbInit (user=0x804bfb1 "nobody", passwd=0x0) at > Vdb.c:329 > #9 0x8049316 in main () > #10 0x8048be5 in _start () I don't know what's going on here, but this stack trace can't be

Re: dlopen failure

1999-05-21 Thread John Polstra
Doug Rabson wrote: > On Thu, 20 May 1999, John Polstra wrote: > >> In article <373c3f3f.a99db...@cablenet.net>, >> Damian Hamill wrote: >> > I have a program that is dumping core. >> > >> > ---

Re: dlopen failure

1999-05-22 Thread John Polstra
". There are some special .o files from /usr/lib that need to be linked in, and "cc -shared" will do that for you automatically. John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle,

Re: more on the pcmcia saga.

1999-05-27 Thread John Polstra
orrect list of PC-Card drivers. Revision ChangesPath 1.68.2.3 +3 -4 src/sys/pccard/pccard.c John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washington USA "Se

Re: PAM: Undefined symbols at runtime

1999-05-30 Thread John Polstra
match a.out and ELF files. Try running "file" on /usr/bin/login as well as your libpam and pam modules. John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washington USA "Self-inter

Re: PAM: Undefined symbols at runtime

1999-06-01 Thread John Polstra
"-export-dynamic" yet, though. > > So, the question now is: Why do I need "-export-dynamic", when > evidently nobody else does? I don't know. Maybe you have something unusual in your /etc/make.conf file? John --- John Polstra

Re: Partitioning a freebsd partition on the fly

1999-06-05 Thread John Polstra
the resized partition * restore the data from your backup John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washington USA "Self-interest is the aphrodisiac of belief." -- James V. De

Re: where is variable edata defined ?

1999-06-05 Thread John Polstra
;t know about gdt. But edata and etext are provided automatically by the linker ("ld"). John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washington USA "Self-interest is the ap

Re: m3socks and cvsup

1999-06-16 Thread John Polstra
rd socks works, then I want to eliminate m3socks. There are some problems with m3socks that I just found out about recently. John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washington USA "

Re: m3socks and cvsup

1999-06-17 Thread John Polstra
ovm" to the cvsup command line when using socks. Otherwise you might get "Bad address" errors occasionally. John --- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washington USA

Re: dlopen returns non NULL

1999-06-30 Thread John Polstra
#x27;s a known bug and there is already an open PR on it. I wouldn't be surprised if the bug existed in ELF too. John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washingto

Re: tcpdump(1) additions.

1999-06-30 Thread John Polstra
it). This is not desirable. I would say it is not _acceptable_. The code shouldn't go into our source tree until the known buffer overflow problems have been fixed. It's just stupid to add buffer overflow problems to a program that is always

Re: dlopen returns non NULL

1999-06-30 Thread John Polstra
ent that says "XXX - Clean up properly after an error." :-) The fix may be as simple as calling unref_object_dag() from the failure cases there, but it will need careful checking. Some additional changes may be needed in load_needed_objects() near the comment

Pictures from USENIX

1999-07-03 Thread John Polstra
I put a handful of pictures from this year's USENIX conference at <http://www.freebsd.org/~jdp/usenix1999/>. John --- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washington USA "N

Re: Login.conf (Whose problem is this) ?

1999-07-03 Thread John Polstra
ken, so don't bother. If you want login classes all you need to do is "vipw" and insert the correct class in the class field. (See passwd(5) for details.) If you want to create a new class, just edit it into your login.conf file and then run cap_mkdb as instructed in the comment at t

Re: Login.conf (Whose problem is this) ?

1999-07-05 Thread John Polstra
utdated comments from login.conf? Yes, I think so. John --- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washington USA "No matter how cynical I get, I just can't keep up."

Re: poll() vs select()

1999-07-06 Thread John Polstra
In article <199907050103.saa51...@bubba.whistle.com>, Archie Cobbs wrote: > > A new, faster event notification system would be great. But don't forget > to include *all* events, not just file descriptor readability/writability. Yes! Yes! Yes! (I agree.) Joh

Re: poll() vs select()

1999-07-06 Thread John Polstra
se libc_r and put the name lookups into a separate thread. But to take advantage of it, the application has to have something useful it wants to do (and can do) in the meantime. John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc

Re: Dynamic linking

1999-07-06 Thread John Polstra
In article <3780aeb2.20616...@agama.com>, Andrew Iltchenko wrote: > Hi everyone! > > Is there a way of making dlopen return an error from the shared object's > _init function? No. The _init function by definition is "void _init(void)", and so it cannot return

Re: mmap question

1999-07-06 Thread John Polstra
In article <000101bec73c$e20e3660$291c4...@kbyanc.alcnet.com>, Kelly Yancey wrote: > > Also, in case it hasn't been notice already (I'm running -stable from May > 18th), the mmap(2) manpage has a typo: it has "#include " So what's the

Re: poll() vs select()

1999-07-06 Thread John Polstra
Brian F. Feldman wrote: > On Tue, 6 Jul 1999, John Polstra wrote: > >> In article , >> >> The application itself has to get involved if it wants to do async >> name lookups, or async anything else, for that matter. Suppose you >> do have an async thread t

Re: a BSD identd

1999-07-11 Thread John Polstra
lter rule that sends back a reset: add reset tcp from any to any auth setup in via etha16 John -- John Polstra j...@polstra.com John D. Polstra & Co., Inc.Seattle, Washington USA "No matter how c

Re: a BSD identd

1999-07-11 Thread John Polstra
Doug wrote: > John Polstra wrote: >> >> Are you sure? If you simply don't run an identd, the queries will >> get an instant connection refused error. That's even faster than >> sending back a bogus response. > > Many daemons that request ident,

Re: Why 'dd' does not seek over 'char' devs (specifically raw disk

1999-07-13 Thread John Polstra
ent if dd could handle seeking on character disk devices. I'm reasonably certain there exists some ioctl (perhaps related to reading disk labels) which could be used to figure out whether a character device was a disk or not. A simple fix like that would make dd a lot more u

Re: a BSD identd

1999-07-13 Thread John Polstra
ith something like: > > ln -s "Warm-Fuzzy" .fakeid Ick. Please, no more abuse of symbolic links! Once (malloc) was enough. Data is held in files, not in filenames. John -- John Polstra j...@polstra.com John D. Polstra & Co

RE: [Fwd: Interrupts question]

2006-07-19 Thread John Polstra
On 17-Jul-2006 Alex Zbyslaw wrote: > I was monitoring a machine with "systat -vmstat" and noticed something > about the interrupts and I don't know if it's a problem or not. If it > is a problem, is there anything I can do about it? > > The interrupts for the network interface (em0) on irq 64 exac

CVSup7.FreeBSD.org is back in service

2001-01-31 Thread John Polstra
Just a note to let you know that cvsup7.freebsd.org is back in service. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic int

Re: CVSup7.FreeBSD.org is back in service

2001-02-02 Thread John Polstra
t implemented by other means. The folks who run the mirrors in Japan have a very nice setup which uses SNMP to query the number of active CVSup clients on each mirror. They don't do automatic load balancing with it currently, but they make some nice graphs available on the web for people

Re: exit() does not do dlclose()?

2001-02-04 Thread John Polstra
list, since we are exiting. */ } If you can come up with a reasonably self-contained test case that shows a bug in this, I'll be happy to take a look at it. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.

Re: exit() does not do dlclose()?

2001-02-05 Thread John Polstra
gt; code-in-progress. No, I wish I had time for that, but I don't. Another option for you would be to build src/libexec/rtld-elf with -g and try to debug it yourself using gdb. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co.,

Re: SCSI-over-* hacks

2001-03-22 Thread John Polstra
devices; > > > > Yes. It's not a lot of work. > > that would be GREAT for cd recording on IDE CD-RW (one will be able to > use cdrdao and cdrecord instead of burncd) Yes! It would definitely be nice if cdrecord worked with ATAPI CD-RW drives on Fre

Re: ddb -> gdb help?

2001-03-29 Thread John Polstra
In article <[EMAIL PROTECTED]>, Alfred Perlstein <[EMAIL PROTECTED]> wrote: > I can't seem to get a crashdump, is there a way to take a > ddb crash address: "Stopped at lf_setlock+0x52" > and boot later and see what line of code that's on? Assuming you have a corresponding kernel with debuggin

Re: cvsup.freebsd.org I/O error

2001-05-28 Thread John Polstra
pkg-descr,v > SetAttrs ports/emulators/sim6811/pkg-plist,v > TreeList failed: Read failure from "/usr/sup/ports-all/checkouts.cvs": Input/output >error This is an I/O error happening on your own system when cvsup is trying to read the file mentioned in the message. John -

Re: MFC'ing new md(4) functionality?

2001-06-05 Thread John Polstra
y doing things that hackish way. But it can be prone to > error. The proper way is to ``cvs add'' them in a directory checked out > on the branch. I agree, that's the proper way to do it. The net effect is the same: it adds the RELENG_4 tag to the files. John --

Re: ELF p_offset & p_vaddr

2001-06-08 Thread John Polstra
ADONLY 20 .note 0050 000015c4 2**0 CONTENTS, READONLY John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.Seattle, Washington USA "

RE: CVSup and Attic files

2005-04-05 Thread John Polstra
On 05-Apr-2005 Matthew D. Fuller wrote: > I've noticed some strange behavior suddenly out of CVSup. I refuse > all Attic files in ports, and that doesn't seem to be working right > all of a sudden. > > My best guess is that it's something due to the recent patch to cvsupd > to handle INDEX issues

Re: struct proc

2000-06-26 Thread John Polstra
p is the process that made the system call, it is also the current process. I claim that (p == curproc) in this example, and that it would be better to code with p than with curproc. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., In

Please run this test on an 80386

2000-06-29 Thread John Polstra
un it with ./sigill On an 80386 it should print out This CPU does not support the cmpxchg instruction Thanks in advance! John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.Seattle, Washington USA "

Re: Please run this test on an 80386

2000-06-29 Thread John Polstra
Robert Muir wrote: > yes, it prints: > This CPU does not support the cmpxchg instruction Thanks! John To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

GCC extended asm experts please look at this

2000-07-02 Thread John Polstra
I _thought_ I was an expert in gcc's extended asm feature, but I can't figure out why this won't compile when optmization is disabled: === #define xchgl(v, m) ({ \ int __result;

Re: GCC extended asm experts please look at this

2000-07-02 Thread John Polstra
In article <[EMAIL PROTECTED]>, Peter Wemm <[EMAIL PROTECTED]> wrote: > If I change it to use a static inline function, it seems to work and > will generate identical code (with -O): Thanks! I'll give that a try in both places where I'm having this problem. > It appears to generate valid code

Re: ldconfig behaviour when no parameters are given

2000-07-09 Thread John Polstra
ons), i'll be happy to > submit a patch. Great. If you'll make the patch, I'll review it and commit it. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.Seattle, Washington USA

Re: ldconfig behaviour when no parameters are given

2000-07-09 Thread John Polstra
rectory > is owned by uid 0 and if the dir has not world write permission. That sounds OK to me. But it should be in a separate patch from the other changes you proposed. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.

Updating your CVSup mirror configs for the recent crypto changes

2000-07-09 Thread John Polstra
e" and remove the line containing "cvs-crypto". - Delete the symbolic link "prefixes/FreeBSD-crypto.cvs". That's all you need to do. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.

Re: rtld problem

2000-07-18 Thread John Polstra
and send to me in a form that makes it easy for me to reproduce the problem? John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intel

Re: ELF rtld and environment variables...

2000-07-24 Thread John Polstra
should only set them in scripts which run specific executables that need them to be set. Besides the a.out problem, they affect programs run under Linux emulation too. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.

Re: ELF rtld and environment variables...

2000-07-24 Thread John Polstra
se it's part of Linux and that's just what it does. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence."

Re: ELF rtld and environment variables...

2000-07-25 Thread John Polstra
In article <[EMAIL PROTECTED]>, Alex Zepeda <[EMAIL PROTECTED]> wrote: > On Mon, 24 Jul 2000, John Polstra wrote: > > > FreeBSD ELF: It's required by the ELF specification. > > > > FreeBSD a.out: Backward compatibility. > > > >

Re: LD_PRELOAD odities / Documentation?

2000-08-04 Thread John Polstra
ide a problem report that you file using the send-pr command. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -

Re: CVS question

2000-08-09 Thread John Polstra
1 date: 1993/12/21 18:36:23; author: wollman; state: Exp; lines: +0 -0 Probably the import straddled the seconds boundary. I hope current versions of CVS force the dates to be the same on an import. I haven't checked to see whether that's the case or not. John -- John Polst

Re: God I feel stupid (gcc issue)

2000-08-09 Thread John Polstra
he life of me figure out how to get gcc > > to output a list of what is and isnt defined by default... help! > > > > From 4.1-STABLE: > > jedgar@wopr:~$ cpp -v That's the wrong way to do it because cpp behaves differently than cc. Anothe

Re: God I feel stupid (gcc issue)

2000-08-09 Thread John Polstra
ieve it is.) Follow the links Invoking GCC -> Preprocessor Options and you'll find out how to get all sorts of useful information from the compiler. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.

Re: IPC, shared memory, syncronization

2000-08-11 Thread John Polstra
e is only one > process writing to the common data area. If you want the "BSD way" you should probably create a 0-length temporary file somewhere and use the flock(2) system call on it. The file itself isn't important; it's just so

Re: BSDi binary compatibility?

2000-08-13 Thread John Polstra
LF the system call mechanism was changed from "lcall 7,0" to the faster "int $0x80". BSD/OS doesn't support the latter, apparently. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.

Re: CVS question

2000-08-14 Thread John Polstra
t the dates to be the same Yep, good idea. It's only a 1-second difference. I've done that now. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.Seattle, Washington USA "Disappointme

Re: IPC, shared memory, syncronization AND threads...

2000-08-15 Thread John Polstra
In article <[EMAIL PROTECTED]>, Jonas Bulow <[EMAIL PROTECTED]> wrote: > John Polstra wrote: > > > I think the ideal solution would first try to lock the > > test-and-set lock, maybe spinning on it just a few times. If that > > failed it would fall back

Re: Critical (or equivalent) section in Userland?

2000-08-17 Thread John Polstra
all runnable processes will be running no matter what their priorities are. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence.

Re: freebsd and non-preemtive threads

2000-08-17 Thread John Polstra
plementation, as a starting > point. Or use the very nice "eventlib" package from the ISC. It is released as a part of BIND, and you can find it in FreeBSD's "src/contrib/bind/lib/isc" directory (along with some other stuff). John -- John Polstra

Re: IPC, shared memory, syncronization

2000-08-12 Thread John Polstra
In article <[EMAIL PROTECTED]>, Jonas Bulow <[EMAIL PROTECTED]> wrote: > John Polstra wrote: > > If you want the "BSD way" you should probably create a 0-length > > temporary file somewhere and use the flock(2) system call on it. The > > file itself i

Re: ports cvsup

2000-09-12 Thread John Polstra
printable output from each ktrace.out file. Send me the last 500 lines of each one, and I'll try to figure out what's going wrong. If a thread stack is overflowing, it is probably caused by a corrupted file. However, I would prefer that you let me analyze the problem befo

Re: ports cvsup

2000-09-12 Thread John Polstra
In article <[EMAIL PROTECTED]>, Wilko Bulte <[EMAIL PROTECTED]> wrote: > On Tue, Sep 12, 2000 at 12:51:15PM -0700, John Polstra wrote: > > > > Illegal instruction faults may indicate that a thread stack > > overflowed, or they might be symptomatic of HW or kerne

Re: ports cvsup

2000-09-13 Thread John Polstra
em is one of two things: - You are using the "-s" option on the cvsup command line, but you have modified a file locally, or - One of your "checkouts.*" files (most likely the "ports-base" one) is corrupted. John -- John Polstra

Re: c++ error

2000-09-13 Thread John Polstra
ing a copy of "in.h" and add "-I." to the command line, then I get the diagnostic. Is this the standard compiler installation, or are you using the ports version? If it's the ports version, maybe it has an incorrect notion of where the system headers are. I r

Re: c++ error

2000-09-13 Thread John Polstra
#x27;t checked all of userland.. so we may just be able to > remove it. >From it looks like a couple of [gs]etsockopt calls use it. Search for "ip_opts" just past that structure declaration. John -- John Polstra [EMAIL PROTECTED]

Re: c++ error

2000-09-13 Thread John Polstra
In article <[EMAIL PROTECTED]>, Archie Cobbs <[EMAIL PROTECTED]> wrote: > John Polstra writes: > > > On the other hand, nothing in the kernel actually uses "struct ip_opts", > > > though I haven't checked all of userland.. so we may just be able t

Re: Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD 4.1

2000-09-13 Thread John Polstra
ogram. (I am assuming it is a C++ program too.) extern void terminate(void); void (*kludge_city)(void) = terminate; Another possibility would be to link explicitly with libgcc when creating your dynamic library: cc -shared -o libphptest.so ... -lgcc That might cause other problems, but

Re: c++ error

2000-09-14 Thread John Polstra
those is the culprit in your failing case. > As per the PR, I'm against #ifdef'ing structures like ip_opts for C++, > since it is likely that a later C++ standard will be corrected. I can't argue with that. I don't like my "solution" very much either. :-) Jo

Re: Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD 4.1

2000-09-14 Thread John Polstra
cc shared again. (David, please correct me if I'm misrepresenting what you told me.) John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.Seattle, Washington USA "Disappointment is a good sign o

Re: Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD 4.1

2000-09-14 Thread John Polstra
ng a non-shared libgcc. > > How so? Well, I should have made that a separate topic as it doesn't have that much to do with whether libgcc is shared or not. But what I meant was that the DWARF2 exception support uses more stuff from libgcc, so you're more likely to run i

Re: Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD 4.1

2000-09-14 Thread John Polstra
ago. But I can't remember the details any more. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögya

Re: c++ error

2000-09-14 Thread John Polstra
well. That explains it then. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsu

Re: Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD 4.1

2000-09-14 Thread John Polstra
eed the performance. > > Ahh, but -static implies the entire enchilada is linked static, which > may not be the case. :( Then you can sprinkle in the appropriate "-Wl,-Bstatic" and "-Wl,-Bdynamic" options in the right places. John -- John Polstra

Re: Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD 4.1

2000-09-15 Thread John Polstra
In article <[EMAIL PROTECTED]>, Max Khon <[EMAIL PROTECTED]> wrote: > On Thu, 14 Sep 2000, John Polstra wrote: > > > Actually I now think we should simply build the crt* files from > > gcc's "crtstuff.c" in the standard way, rather than having our

Re: Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD 4.1

2000-09-15 Thread John Polstra
In article <[EMAIL PROTECTED]>, Max Khon <[EMAIL PROTECTED]> wrote: > > `__register_frame_info' should be called from `do_ctors' in > src/lib/csu/common/crtbegin.c to load frame information from .eh_frame > sections before any constructors are executed because try/catch can be > used in construc

Re: Trouble with dynamic loading of C++ libs in PHP v4.02 on FreeBSD 4.1

2000-09-18 Thread John Polstra
In article <[EMAIL PROTECTED]>, Max Khon <[EMAIL PROTECTED]> wrote: > hi, there! > > On Fri, 15 Sep 2000, John Polstra wrote: > > > Here is another possibility: we could call _thread_init() from > > crt1.o. The patch (untested) is below. It calls _thread_i

Re: [OT] serial protocol analyzer

2000-11-09 Thread John Polstra
lyze the traffic. Try the "comms/snooper" port. John -- John Polstra [EMAIL PROTECTED] John D. Polstra & Co., Inc.Seattle, Washington USA "Disappointment is a good sign of basic intelligence."

  1   2   3   >