fwe driver under 6.0-RELEASE

2005-12-20 Thread Jonathon McKitrick
Hey guys,

I just got a new laptop, and I'm trying to get the onboard ethernet over
firewire to work so I can download the iwi driver.  :-)

I can't seem to ping anything, even the router, after bringing up fwe0.  Are
there any tricks to this I need to be aware of?

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How do I re-format 'dangerously dedicated' drive?

2005-11-21 Thread Jonathon McKitrick
On Sun, Nov 20, 2005 at 07:26:33PM -0500, Lowell Gilbert wrote:
: Jonathon McKitrick <[EMAIL PROTECTED]> writes:
: 
: > I don't have an MS-DOS floppy, and I think my CDROM isn't booting because 
the
: > HD is 'dangerously dedicated,' even though it is a bootable CD and the BIOS 
is
: > set to boot it first.
: 
: That wouldn't be relevant.  The BIOS is lying to you, or isn't capable
: of booting this particular CD.

I found that NetBSD doesn't boot from CD, FreeBSD 5.4 does, older DragonFly
does not, but newer DFly does.  I have no idea why, but my laptop doesn't like
some CDROMs for booting.

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How do I re-format 'dangerously dedicated' drive?

2005-11-20 Thread Jonathon McKitrick

Hi all,

I don't have an MS-DOS floppy, and I think my CDROM isn't booting because the
HD is 'dangerously dedicated,' even though it is a bootable CD and the BIOS is
set to boot it first.

I want to totally clear my drive so I can reinstall from scratch from CDROM.
How can I do this?

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


HyperTerm-like connection via serial port??

2005-11-17 Thread Jonathon McKitrick

Hi all,

I have an external device that takes ascii serial commands at the standard
9600 baud, 8-N-1 protocol.  Under Win32, I would use HyperTerm to connect and
send commands and read responses.

What program and/or settings would I use with FreeBSD to do the same thing?

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Implementing software licensing in FreeBSD

2005-10-12 Thread Jonathon McKitrick

Setting aside opinions on copy protection and licensing, suppose I wanted to
implement such a scheme.

The key itself might be a network license, or an encrypted file containing
license info and system-specific info.  But the real issue is how to protect
the code that accesses the key.  I know that 'wrappers' don't have much of an
application in Unix, and are actually impractical.  But what techniques could
be implemented within a library or archive that would make it difficult for
someone to trace the algorithm and/or make changes to the code to remove the
protection checks?

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


mmap versus malloc

2005-10-09 Thread Jonathon McKitrick

If I want to write an assembly language program without using libc, is it ok
to use mmap and a file descriptor of -1 to allocate memory?

jm
--
What's good for the goose is good for the gander.
What the hell is a gander, anyway?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Hidden spot on hard drives?

2005-10-05 Thread Jonathon McKitrick
On Wed, Oct 05, 2005 at 11:55:18AM -0700, Joe S wrote:
: Jonathon McKitrick wrote:
: >the company where I work (with Windows) is evaluating a copy protection
: >product that stores info somewhere on the HDD where the user cannot touch 
: >it,
: >a format will not erase it, and Norton Ghost will not find it.
: >
: >1.  Any idea where this info could be stored?
: >2.  Any way the same thing could be done under FreeBSD?
: >
: >Thanks,
: >
: >jm
: 
: # dd if=/dev/zero of=/dev/zero
: 
: Will overwrite the entire drive.

Thanks.  What I was wondering is if there is a way to do the same copy
protection in FreeBSD, where I could store the data in the same place on the
drive where the user cannot access it.

jcm
--
If you cannot do something well, learn to enjoy doing it poorly.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Hidden spot on hard drives?

2005-10-05 Thread Jonathon McKitrick

the company where I work (with Windows) is evaluating a copy protection
product that stores info somewhere on the HDD where the user cannot touch it,
a format will not erase it, and Norton Ghost will not find it.

1.  Any idea where this info could be stored?
2.  Any way the same thing could be done under FreeBSD?

Thanks,

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Register usage for pointer access

2005-09-26 Thread Jonathon McKitrick

Other than the fact that scanning, moving, and so on use esi as the source
register and edi as the destination, is there are other reason to use one
over the other for general pointer use?

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Problems making CD backups

2005-09-12 Thread Jonathon McKitrick

I'm trying to use a cron script with mkisofs and burncd every weekend.  But
after taking a long time to do nothing, burncd never returns from burning and
fixating the CD, and looking at the CD itself shows no recorded area
reflecting.  Trying to mount the CD gives a 'device busy' error.

Is my CD-R just being difficult?  Or could I be doing something wrong?  Where
should I start looking?  Or could I be doing something wrong?  Where should I
start looking?

I'm running 4.11 BTW.

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Linking standalone NASM binary with libc

2005-09-01 Thread Jonathon McKitrick
On Tue, Aug 30, 2005 at 02:11:09PM +0300, Giorgos Keramidas wrote:
: I'm sure others can think of more points in support or linking to libc
: and against linking to it :-)

Most of what I want to do is low-level encryption... like copy protection
routines.  I love those.  So who needs libc for that?  ;-)

Jonathon McKitrick
--
Hoppiness is a good beer.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Linking standalone NASM binary with libc

2005-08-30 Thread Jonathon McKitrick
On Tue, Aug 30, 2005 at 01:37:02PM +0300, Giorgos Keramidas wrote:
: On 2005-08-30 04:29, Jonathon McKitrick <[EMAIL PROTECTED]> wrote:
: >
: > I'm doing some experimentation with assembly code based on the int80h.org
: > tutorials.  But since I am going to use malloc and some other functions,
: > I need to make my code link with libc rather than stand totally on its own.
: >
: > ld -s -o foo foo.o -lc
: >
: > leaves 'environ' and '__progname' undefined.  What is the correct way to 
link
: > standalone asm code with needed libraries?
: 
: That depends on what the ``standalone'' code contains.  If your foo.o
: object file defines a 'main' function, then you can just use cc(1):

This is the method I've been using until now.  And maybe it's the best one.  I
was just wondering, though, if I want to write an app that is linked to libc,
but doesn't have 'main', and has '_start' instead, and where I want to use ld
directly rather than indirectly through cc to link.


Jonathon McKitrick
--
Hoppiness is a good beer.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Linking standalone NASM binary with libc

2005-08-29 Thread Jonathon McKitrick

Hi all,

I'm doing some experimentation with assembly code based on the int80h.org 
tutorials.  But since I am going to use malloc and some other functions,
I need to make my code link with libc rather than stand totally on its own.

ld -s -o foo foo.o -lc

leaves 'environ' and '__progname' undefined.  What is the correct way to link
standalone asm code with needed libraries?

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Forcing symbol resolution in lib rather than bin

2005-08-19 Thread Jonathon McKitrick
On Fri, Aug 19, 2005 at 11:29:26PM +0300, Giorgos Keramidas wrote:
: On 2005-08-19 21:26, Jonathon McKitrick <[EMAIL PROTECTED]> wrote:
: >
: > Got it!  I recalled something des or phk wrote me a while ago, then I 
skimmed
: > the manpage again.  I have to put the .a files AFTER the object files where
: > the unresolved symbol is found.
: 
: Ah!  Yes, of course.  I didn't realize you were doing that, because I
: never saw the build commands.
: 
: Glad it's fixed now :)

It just looks so... so ugly without the object at the *end* of the line...  ;-)

Jonathon McKitrick
--
Hoppiness is a good beer.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Forcing symbol resolution in lib rather than bin

2005-08-19 Thread Jonathon McKitrick
On Fri, Aug 19, 2005 at 11:14:40PM +0300, Giorgos Keramidas wrote:
: On 2005-08-19 21:03, Jonathon McKitrick <[EMAIL PROTECTED]> wrote:
: >On Fri, Aug 19, 2005 at 10:47:48PM +0300, Giorgos Keramidas wrote:
: >: # flame:/tmp/jcm-lib/foobar$ LD_LIBRARY_PATH=`pwd`/../libbar ./foobar
: >: # libfoo initialized at 0x80062a8a0
: >: # libbar initialized at 0x4004e4
: >: # flame:/tmp/jcm-lib/foobar$
: >
: > Hmmm.  I'm using my own makefile setup rather than the standard one.  I know
: > you're a big fan of   ;-)
: >
: > Doesn't ld *statically* link code from .a archives?
: 
: 'statically' is such an overloaded term I prefer to avoid using it.
: 
: The C linker will include the body of functions defined in non-shared
: libraries into every shared object that references them, AFAIK.  This is
: obvious if you run nm(1) on libbar.so of the example above, because the
: libfoo_init() function is listed as 'T'.  I think that's what you want
: by making the libfoo.a library non-shared in the first place.

Got it!  I recalled something des or phk wrote me a while ago, then I skimmed
the manpage again.  I have to put the .a files AFTER the object files where
the unresolved symbol is found.

Jonathon McKitrick
--
Hoppiness is a good beer.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Forcing symbol resolution in lib rather than bin

2005-08-19 Thread Jonathon McKitrick
On Fri, Aug 19, 2005 at 11:14:40PM +0300, Giorgos Keramidas wrote:
: > Doesn't ld *statically* link code from .a archives?
: 
: 'statically' is such an overloaded term I prefer to avoid using it.
: 
: The C linker will include the body of functions defined in non-shared
: libraries into every shared object that references them, AFAIK.  This is
: obvious if you run nm(1) on libbar.so of the example above, because the
: libfoo_init() function is listed as 'T'.  I think that's what you want
: by making the libfoo.a library non-shared in the first place.

I can see from nm(1) that the function I want is there ('T').  And reading
about ld(1) talks about the '-(' option for searching the .a archives until
there are no unresolved symbols.  But it still doesn't find mine unless I
link it with the binary, not the calling shared object.

Jonathon McKitrick
--
Hoppiness is a good beer.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Forcing symbol resolution in lib rather than bin

2005-08-19 Thread Jonathon McKitrick
On Fri, Aug 19, 2005 at 10:47:48PM +0300, Giorgos Keramidas wrote:
: # flame:/tmp/jcm-lib/foobar$ LD_LIBRARY_PATH=`pwd`/../libbar ./foobar
: # libfoo initialized at 0x80062a8a0
: # libbar initialized at 0x4004e4
: # flame:/tmp/jcm-lib/foobar$

Hmmm.  I'm using my own makefile setup rather than the standard one.  I know
you're a big fan of   ;-)

Doesn't ld *statically* link code from .a archives?

Jonathon McKitrick
--
Hoppiness is a good beer.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Forcing symbol resolution in lib rather than bin

2005-08-19 Thread Jonathon McKitrick

I have a binary that links to a shared object library.  That .so calls a
routine in an archive library (.a).  When I link the main app with -lar-a it
works fine, even though the function is actually called in the .so.  But when
I link the .so with -lar-a, the linker doesn't resolve the symbol!

So, here's the call graph:

bin --> shared --> archive

If I link bin to shared and archive, it works.  But if I link shared to
archive, and then bin to shared, it doesn't, even though the shared object
calls the archived function, rather than bin.

What basic link concept am I missing here?

Thanks in advance,

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Nightly backup using CD-ROM

2005-08-17 Thread Jonathon McKitrick
On Wed, Aug 17, 2005 at 09:54:23AM -0400, Lowell Gilbert wrote:
: Jonathon McKitrick <[EMAIL PROTECTED]> writes:
: 
: > I found a post from last November with a small script for backing up to 
CD-ROM
: > with sessions.
: > 
: > 
http://lists.freebsd.org/pipermail/freebsd-questions/2004-November/064117.html
: > 
: > My question is how can I access the data on the CD between backups without
: > having to run fixate?  It obviously doesn't mount like a regular CD until
: > then.
: 
: You should be able to fixate the disk and still add more sessions
: later, shouldn't you?  It will waste a little space, but not horrible
: amounts...

I can give this a shot.  I *thought* I tried it and got an error, but I might
be wrong.

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Nightly backup using CD-ROM

2005-08-16 Thread Jonathon McKitrick

Hi all,

I found a post from last November with a small script for backing up to CD-ROM
with sessions.

http://lists.freebsd.org/pipermail/freebsd-questions/2004-November/064117.html

My question is how can I access the data on the CD between backups without
having to run fixate?  It obviously doesn't mount like a regular CD until
then.

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Spontaneous reboot before AND after memory swap

2005-05-20 Thread Jonathon McKitrick

Hi all,

I'm running 4.11 on a server, and for the last week or so it has been
spontaneously rebooting about once a day or so.  It has 512M of memory.

I ran memtest and it causes the reboot as well.  I went and bought 2 sticks of
memory, took out the old one, and put the new ones in.  That gave me 1G.  But
a buildworld fails with signal 11 and memtest still causes the reboot.

Any ideas?

Jonathon McKitrick
--
My other computer is your Windows box.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


libtool or gnome upgrade recently?

2005-05-09 Thread Jonathon McKitrick

I cvsupped all the ports a few days ago, and gnomevfs2 didn't work.  It failed
in libtool somewhere.  I waited a few days, and suddenly it was working again.

I'm just curious - what broke?

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Understanding port version numbering

2005-05-02 Thread Jonathon McKitrick
On Sat, Apr 30, 2005 at 03:14:13PM -0400, Lowell Gilbert wrote:
: Jonathon McKitrick <[EMAIL PROTECTED]> writes:
: 
: > Is there any particular scheme for ports using decimals, commas, and/or
: > underscores in the version numbers?  Is there any way to tell if it means a
: > patch level, a FreeBSD-port only update, and so on?
: 
: Sure.  See the Porters' Handbook.

Ah, portepoch is the explanation I was looking for.  Thanks!


jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Understanding port version numbering

2005-04-30 Thread Jonathon McKitrick

Is there any particular scheme for ports using decimals, commas, and/or
underscores in the version numbers?  Is there any way to tell if it means a
patch level, a FreeBSD-port only update, and so on?

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Common Lisp on FreeBSD

2005-04-10 Thread Jonathon McKitrick
On Fri, Apr 08, 2005 at 10:51:52AM -0400, Lowell Gilbert wrote:
: Depends on what you're doing.  Other than clisp, the Common Lisp
: implementations in ports are pretty much all derived from the same
: origin (the CMU implementation), so you might as well just try them
: and see what you like; the technical differences shouldn't be that
: big.  [That's ignoring the "embeddable" one, but I wouldn't recommend
: that for learning.]

I think I've decided to stick with clisp for now, until I find a reason to
change.  The REPL seems nicer, for one thing.

: Or maybe you should consider Scheme... but that's another holy war.

No thanks.  I've had enough of those.  :-)

Say, have you fooled around with any clisp GUI toolkits?


jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Common Lisp on FreeBSD

2005-04-08 Thread Jonathon McKitrick

Hi all,

I noticed that the clisp port is marked broken, so I have to look at other
choices.

Does anyone have any thoughts on the other Lisp ports as a good system to
learn on and use?

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to include header files in makefiles

2005-03-26 Thread Jonathon McKitrick
On Fri, Mar 18, 2005 at 04:38:15PM +, Chuck Robey wrote:
: I honestly keep on switching back and forth, between thinking that the 
: best make is bmake, or gmake.  They both have key items that make them 
: uniquely better.

Other than parallel build tasks (-j2) what does bmake do that is important,
other than being part of the native BSD platform?

Jonathon McKitrick
--
My other computer is your Windows box.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to include header files in makefiles

2005-03-18 Thread Jonathon McKitrick
On Fri, Mar 18, 2005 at 04:38:15PM +, Chuck Robey wrote:
: 1) relative addressing means you have to be forever translating paths in 
: listings, and very often the number of include paths gets to be rather long.

Okay, I can fix that easily.

: The Make(1) man page doesn't show "include", the advertised command is 
: ".include".  If you use .include, then you can modify your make, if you 

Also fixable.

: >How can I include the .h files so the .c files are recompiled when the
: >header files they require are changed?  GNU make has 'make depend' but I'd
: >like a better, BSDmake-centric way, if possible.
: 
: Well, did you look at the files in /usr/share/mk, and specifically 
: bsd.dep.mk?  You can even use the FreeBSD sources to figure out (to use 
: as examples) how things should work.

This is the key I want to get working.  I'll take a look at those files, but
they are pretty deep.

: I honestly keep on switching back and forth, between thinking that the 
: best make is bmake, or gmake.  They both have key items that make them 
: uniquely better.

I haven't decided yet.  Most BSD people are (predictably) anti-gmake.  I
have to use gmake for a Linux project I'm on.

Jonathon McKitrick
--
My other computer is your Windows box.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How to include header files in makefiles

2005-03-17 Thread Jonathon McKitrick

Hi all,

I'm setting up a build system for a small project and I want to use included
makefiles.  I have a base.mk that looks like this:

.PATH.h   : ../ ../include
.INCLUDES : .h

CFLAGS   = -O -pipe -Wall -g
CFLAGS  += $(.INCLUDES)

OBJS = ${SRCS:R:S/$/.o/g}

and a bin.mk that looks like this:

include ../include/mk/base.mk

all: ${BIN}

${BIN}: ${OBJS}
${CC} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}

so that a makefile for a specific program looks like this:

BIN = app
SRCS = app.c
LDFLAGS += -pthread
include ../include/mk/bin.mk

But I'm having a problem figuring out how to handle header files.  I have
some that are local to this binary, but others are in the project include
directory.

How can I include the .h files so the .c files are recompiled when the
header files they require are changed?  GNU make has 'make depend' but I'd
like a better, BSDmake-centric way, if possible.

Thanks for your help,

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Which lib for pthreads?

2005-03-07 Thread Jonathon McKitrick
On Mon, Mar 07, 2005 at 09:38:45AM -0600, Dan Nelson wrote:
: > That was the problem.  I thought only the library with the thread
: > calls needed to be linked with pthread.  Apparently the app needs it
: > as well.
: 
: Ideally not; dynamic shared libraries can list dependencies:

I thought the same.  Maybe I'm still doing something wrong, but this DID
solve the problem.


Jonathon McKitrick
--
My other computer is your Windows box.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Which lib for pthreads?

2005-03-07 Thread Jonathon McKitrick
On Sun, Mar 06, 2005 at 08:15:26PM -0500, Chuck Swiger wrote:
: Um.  If you are compiling C++ code into an object file, you ought to use 
: c++ and not cc when linking, too.

I'm using ${CC} in the makefile, and it seems to automagically choose the
correct tool.

: Also, you may not have relinked 'app'.  Do an ldd on app and see whether it 
: has a dependency on libc_r?  Try relinking app using -pthread against a 
: libplugina.so compiled with -pthread...

That was the problem.  I thought only the library with the thread calls
needed to be linked with pthread.  Apparently the app needs it as well.


Jonathon McKitrick
--
My other computer is your Windows box.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Which lib for pthreads?

2005-03-06 Thread Jonathon McKitrick
On Sun, Mar 06, 2005 at 11:39:55PM +0200, Giorgos Keramidas wrote:
: On 2005-03-06 21:32, Jonathon McKitrick <[EMAIL PROTECTED]> wrote:
: >On Sat, Mar 05, 2005 at 07:18:31PM -0600, Dan Nelson wrote:
: >:In the last episode (Mar 05), Jonathon McKitrick said:
: >:> Linux lets me use -pthread, but under BSD I get 'undefined symbol
: >:> "pthread_mutex_lock."'
: >:>
: >:> What's the correct linker syntax for pthreads?
: >:
: >: That would be it.  It should work on 4.* and 5.*.
: >
: > I found -lc_r does the trick.  Not what I was expecting.
: 
: -lpthread should work too.

H...

[EMAIL PROTECTED]:...cvs/tcontainer/libplugina> make install
cc -O -pipe -Wall -g -I.. -I../include -shared -fPIC -c plugina.c
c++  -O -pipe -Wall -g -I.. -I../include -shared -fPIC -c wrapper.cpp
c++  -O -pipe -Wall -g -I.. -I../include -shared -fPIC -c myclass.cpp
cc -O -pipe -Wall -g -I.. -I../include -shared -fPIC -c threads.c
cc -O -pipe -Wall -g -I.. -I../include -shared -fPIC  -lpthread -lstdc++ -g
-Wl,-soname,libplugina.so.0 -o libplugina.so.0.0 plugina.o wrapper.o
myclass.o threads.o
/usr/libexec/elf/ld: cannot find -lpthread
*** Error code 1

Stop in /usr/home/jcm/cvs/tcontainer/libplugina.
[EMAIL PROTECTED]:...cvs/tcontainer/libplugina> 

What about -pthread?

[EMAIL PROTECTED]:...cvs/tcontainer/libplugina> make install
cc -O -pipe -Wall -g -I.. -I../include -shared -fPIC -c plugina.c
c++  -O -pipe -Wall -g -I.. -I../include -shared -fPIC -c wrapper.cpp
c++  -O -pipe -Wall -g -I.. -I../include -shared -fPIC -c myclass.cpp
cc -O -pipe -Wall -g -I.. -I../include -shared -fPIC -c threads.c
cc -O -pipe -Wall -g -I.. -I../include -shared -fPIC  -pthread -lstdc++ -g
-Wl,-soname,libplugina.so.0 -o libplugina.so.0.0 plugina.o wrapper.o
myclass.o threads.o
---> Installing libplugina.so to /home/jcm/lib
install -m 644 libplugina.so.0.0 /home/jcm/lib
ln -sf libplugina.so.0.0 /home/jcm/lib/libplugina.so.0
ln -sf libplugina.so.0 /home/jcm/lib/libplugina.so
[EMAIL PROTECTED]:...cvs/tcontainer/libplugina> app
/usr/libexec/ld-elf.so.1: /home/jcm/lib/libplugina.so: Undefined symbol
"pthread_create"
[EMAIL PROTECTED]:...cvs/tcontainer/libplugina> 


Jonathon McKitrick
--
My other computer is your Windows box.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Which lib for pthreads?

2005-03-06 Thread Jonathon McKitrick
On Sat, Mar 05, 2005 at 07:18:31PM -0600, Dan Nelson wrote:
: In the last episode (Mar 05), Jonathon McKitrick said:
: > Linux lets me use -pthread, but under BSD I get 'undefined symbol
: > "pthread_mutex_lock."'
: > 
: > What's the correct linker syntax for pthreads?
: 
: That would be it.  It should work on 4.* and 5.*.

I found -lc_r does the trick.  Not what I was expecting.

Jonathon McKitrick
--
My other computer is your Windows box.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Which lib for pthreads?

2005-03-05 Thread Jonathon McKitrick

Hi all,

Linux lets me use -pthread, but under BSD I get 'undefined symbol
"pthread_mutex_lock."'

What's the correct linker syntax for pthreads?

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


_init and dynamically loaded libraries

2005-03-03 Thread Jonathon McKitrick

I'm having some trouble getting _init() to run when I use dlopen() to load a
library.  I get this:

one.o: In function `_init':
/usr/home/jcm/exp/modules/libone/one.c:7: multiple definition of `_init'
/usr/lib/crti.o(.init+0x0): first defined here

With other signatures, _init() never gets called.  What is the correct
procedure to use here?

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Blocking on multiple threads with timeout

2005-02-28 Thread Jonathon McKitrick

>>> I'd like to start the init threads, put the id's in an array, block until
>>> they are all done, then continue.  Each thread should have its own
>>> timeout
>>> handling internally.

>It seems to me that you are complicating the issue for no
>good reason. Why are you using threads at all?

1.  We want to be able to easily cancel initialization before it finishes.
2.  The UI still needs to be responsive.
3.  By running initialization on threads, rather than serially, the total
initialization time is reduced.  Otherwise, we would have to init, wait,
then move to the next device.  With threads, we spawn a thread for each
device to send the command and wait for it, then wait for all the threads to
finish.  This way, total initialization will be only as long as the longest
init, rather than the sum of all the times.

Jonathon McKitrick
--
My other computer is your Windows box.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Blocking on multiple threads with timeout

2005-02-27 Thread Jonathon McKitrick

I have a few threads that might need as long as a minute or more to
complete and terminate.  If they exceed an arbitrary time, they can be
canceled.

In Win32, there is a 'wait on multiple objects' call.  I'm not sure if it
blocks or spins, but it *does* take a timeout argument.

Is there a similar way with pthreads that I can use that will kill the
threads after a certain time, but without spinlocking?  After a minute of
spinning, my laptop fan kicks on, and I'd like to be a bit more reasonable
about my CPU cycle demands. :-)

Jonathon McKitrick
--
My other computer is your Windows box.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Question about GDB under BSD

2005-02-23 Thread Jonathon McKitrick

I love stl::string(s).  They work very well for many application-level
projects.  But I hate how GDB steps into their code during  next
stepping.  Is there a way I can skip this inline code that is part of stl
strings?  Unfortunately, 'next' doesn't help, since much of the stl code is
'inline.'

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Best way to share data between threads

2005-02-22 Thread Jonathon McKitrick
On Tue, Feb 22, 2005 at 02:42:44PM +0200, Giorgos Keramidas wrote:
:   1) Explicit notification using a condition variable.
: 
: The first can be accomplished by associating a pthread_cond_t with the

I think this is the approach I will use.  As a matter of fact, I added it
today for a different, more limited use, and it worked well.  We have an
instrument that needs firmware ftp'ed to it after a cold start, and I placed
that into a pthread.  I'll try the data acq thread soon.

The only problem is that pthread_join doesn't seem to have a timeout
feature.  So if the thread hangs, I have no way of knowing.


Jonathon McKitrick
--
My other computer is your Windows box.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Best way to share data between threads

2005-02-22 Thread Jonathon McKitrick
On Tue, Feb 22, 2005 at 08:38:11AM +0200, Giorgos Keramidas wrote:
: On 2005-02-22 05:50, Jonathon McKitrick <[EMAIL PROTECTED]> wrote:
: >
: > Hi all,
: > I'm porting some libraries from Win32 to BSD/Linux.  In the original
: > code, I receive a Windows event with an attached COM object.
: >
: > Under *nix, what is the best way to copy this?  A message, followed
: > by accessing shared memory between threads?
: 
: Does the message really have to be shared across many threads?  I'm
: only asking because thread-specific message queues are not that hard
: to build with pthreads.  You will only need a per-thread queue to hold
: messages and a master thread that 'dispatches' messages to the proper
: thread/queue.

Well, there will be a data acquisition thread, that when finished, will need
to signal the main processing thread that a new data object has arrived.

Jonathon McKitrick
--
My other computer is your Windows box.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Best way to share data between threads

2005-02-21 Thread Jonathon McKitrick

Hi all,

I'm porting some libraries from Win32 to BSD/Linux.  In the original code, I
receive a Windows event with an attached COM object.

Under *nix, what is the best way to copy this?  A message, followed by
accessing shared memory between threads?

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Makefile and directory layout

2005-02-16 Thread Jonathon McKitrick

Hi all,

I'm about to port several libraries to *nix because a new customer needs it
to run on an open source OS.  I need some ideas for how to set this up.

It's going to be a binary-only distribution, AFAIK, but I don't know if that
should affect the directory layout.

What I have are a lot of libraries (components, really), and many, but not
all, have nested dependencies.

Am I better off with a flat directory with subdirs for each library and one
big subdir for all include files?  Or, does it make more sense to place
library source directories and header files *within* the directories of
libraries that need them?

So, if libfoo requires libbar and no other library does:

proj/
Makefile
include/
foo.h
bar.h
libfoo/
Makefile
src/
foo.c
libbar/
Makefile
src/
bar.c

**OR**

proj/
Makefile
include/
foo.h
libfoo/
Makefile
include/
bar.h
src/
foo.c
libbar/
Makefile
src/
bar.c

Is there a better way?  Especially for header files just needed internally 
for the library itself versus headers shared between modules?


Jonathon McKitrick
--
My other computer is your Windows box.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Example BSD Makefiles *outside* the src tree??

2005-02-08 Thread Jonathon McKitrick
On Tue, Feb 08, 2005 at 06:53:03AM +0200, Giorgos Keramidas wrote:
: 
:   .include 

Here is my scenario:

I'm setting up the source tree and learning make on BSD.  Once I'm
comfortable with the build process, I have to move the code to a RH Linux
box.  I would like the makefiles to run with as little modification as
possible, but I'm not sure how realistic that is.

: I don't use gmake if I can avoid it.  Someone else should chime in
: with gmake help, if they want.

Someone commented that pmake or bsd make doesn't run well under Solaris, so
they use gmake with a dumbed-down makefile.  I think that's what I need to
do.

Jonathon
--
The beaten path is for the beaten man.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Example BSD Makefiles *outside* the src tree??

2005-02-05 Thread Jonathon McKitrick
On Sat, Feb 05, 2005 at 12:21:48PM -0500, Lowell Gilbert wrote:
: Jonathon McKitrick <[EMAIL PROTECTED]> writes:
: 
: > does anyone know of any project out there I could get my hands on that use
: > BSD make?  Obviously the src tree is not a good place to learn the basics,
: > but most makefiles I run across are for GNU make and/or are too complex to
: > learn the basics from.
: 
: There are many examples in the Tutorial, which I think you said (in
: another message) that you had already read.  What are you looking for
: that isn't in those examples?

Setting up basic recursion (I can do it, but not the right way).
Building library sonames and installing them correctly.

Doing the above in a makefile that will run under GNU make.


I think I've worked out the others so far.

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Example BSD Makefiles *outside* the src tree??

2005-02-05 Thread Jonathon McKitrick

Hi all,

does anyone know of any project out there I could get my hands on that use
BSD make?  Obviously the src tree is not a good place to learn the basics,
but most makefiles I run across are for GNU make and/or are too complex to
learn the basics from.

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Docs for Berkeley Make?

2005-02-04 Thread Jonathon McKitrick
On Fri, Feb 04, 2005 at 01:20:02AM -0800, Ted Mittelstaedt wrote:
: The difference is in the extra candy, which you really don't need or want
: to use anyway, unless the project becomes gigantic.
: 
: There's only a handful of open source projects out there which justify
: the extra
: fancy crapoola in GNU make, in my experience.  Unfortunately there's
: far too many of them that require gmake simply because the programmer
: became enamored of some gimgaw in gmake that had a high coolness factor.
: It is really sad to see software that consists of about 10 source files,
: that has a makefile that's so non-standard that it requires gmake.

Well, I was just using existing BSD makefiles to learn with.  But then I got
interested in learning libraries.  I'm still trying to find a tool or
shortcut for handling sonames the best way.

But then I found out we are doing a very large project on Linux.  I want to
make it work on both RH Linux (the target) and FreeBSD (to work on/use at
home, of course).  I've been learning about the GNU autotools, which seem
very finicky, to say the least, but at the same time I don't have to worry
about details, like linux-vs-BSD library details  And it would be easy to
handle, for instance, the difference between the names of serial ports on
the 2 platforms.

If this were only for BSD, I'd use the makefile framework.  But it's not.
And it's going to be a large enough project that I don't have the time to
constantly fiddle with makefiles and such.  And obviously, this also has to
work with CVS.

I'm the only developer with *any* real Unix experience, and that's very
modest experience, to say the least.

Any other ideas I should look into?


Jonathon
--
The beaten path is for the beaten man.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Docs for Berkeley Make?

2005-02-03 Thread Jonathon McKitrick
On Wed, Feb 02, 2005 at 01:23:23PM +1030, Greg 'groggy' Lehey wrote:
: > Older revisions of the O'Reilly book cover the Berkeley make.
: 
: No, unfortunately not.  Firstly this is a completely different book,
: and secondly the old (Oram/Talbott) book also didn't cover Berkeley
: Make.  There's a little in my book "Porting UNIX Software" (out of
: print but available at http://www.lemis.com/grog/PUS/.  It's not very
: much, though.

Thanks for the link, I'll check it out.  I have a new project at work which
will be developed under Linux, and I was hoping to write makefiles that
would work under both OSes using the same make command.  But now I'm not
so sure that will work.  I don't understand why BSD make and GNU make
diverged so much.

P.S.  Greg, my wife just bought me a homebrew kit for our 1-year
anniversary.  I found your homebrew pages (especially the BSD-based
temperature controller) quite enlightening.  :-)


jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Unix equivalent of a variant??

2005-02-02 Thread Jonathon McKitrick
On Wed, Feb 02, 2005 at 09:04:20AM -0500, Jason Stewart wrote:
: > Hey everyone,
: > 
: > I'm finally doing something very exciting here at work: porting software to
: > Unix!
: > 
: > I need the equivalent of a variant, however.  A hold-everything variable
: > that can be any type in C/C++.  Is there something already out there I can
: > use or should I just roll my own?
: >
: 
: Are you porting VB code over to *nix? If that's the case then a better
: fit might be Python or Ruby with or without one of the various
: bindings for windowing toolkits.

I think I'm going to use Python as the test container, but all the
component code needs to be C/C++.

I think the boost library is exactly what I need.


jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Unix equivalent of a variant??

2005-02-01 Thread Jonathon McKitrick

Hey everyone,

I'm finally doing something very exciting here at work: porting software to
Unix!

I need the equivalent of a variant, however.  A hold-everything variable
that can be any type in C/C++.  Is there something already out there I can
use or should I just roll my own?

jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Docs for Berkeley Make?

2005-01-29 Thread Jonathon McKitrick

Hi all,

I just got the O'Reilly book on GNU Make, but I'd really like to focus on
Berkeley Make when possible.  Where can I find some good examples (other
than the source tree makefiles, which are very complex) and documentation on
the differences between the two versions of make?

TIA,
jm
-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: BSD equivalents of autoconf, automake, etc.

2004-12-20 Thread Jonathon McKitrick
On Sun, Dec 19, 2004 at 01:14:48AM -0800, Ted Mittelstaedt wrote:
: WHY?
: 
--8<--
: 
: You don't need an install script.  Whomever is building the RPM
: or whomever is creating the FreeBSD port has their own ideas of
: where they want things to be installed and has no interest in
: interference from you.
: 
: Keep it Simple Stupid.  A Makefile that has options settible
: by editing with a text editor, and a nice readme file that tells
: what all the settible options are, is infinitely superior than
: all the configure crap.  That is all that the RPM and ports
: creators want from you.  And the end users don't even want to
: compile your stuff in the first place, let alone see it's
: install script.

For example, since Linux and FreeBSD have different device names for the
serial port.  I'd like to be able to test from my FreeBSD box, but will
deploy to Linux.  I don't know if system header files are the same, but I
need to be able to find them on both systems.


jm
--
I love feminist movements, especially when I'm walking behind them.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: BSD equivalents of autoconf, automake, etc.

2004-12-17 Thread Jonathon McKitrick
On Thu, Nov 18, 2004 at 06:51:06PM +0100, Matthias Buelow wrote:
: Jonathon McKitrick wrote:
: 
: >This is exactly what I needed.  I wanted to experiment with building,
: >installing, linking, and the same with my own test 'libraries.'  It looks
: >like this is much easier than autoconf.
: 
: Why do you want to use autoconf at all, if you want to build on only one 

At first I was only going to start a new personal project, and that can be
BSD only.

: system?  Autoconf (and automake/libtool) was, as originally intended, 
: designed to ease cross-platform portability.

I'm starting to wonder.  But if I want to work on my new project at home,
I'll need to come up with some kind of a system.  It'll be running on Linux
at work, and BSD at home.

Besides, it will need a professional looking/acting installation script when
it is done, and it will have to work on both platforms.


jm
--
I love feminist movements, especially when I'm walking behind them.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Berkeley make vs GNU make

2004-12-17 Thread Jonathon McKitrick

Is there a good doc out there explaining the differences?

I cannot seem to find anything with either google or teoma.

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: When to use 'portupgrade -R'

2004-12-13 Thread Jonathon McKitrick
On Fri, Dec 10, 2004 at 02:24:02PM -0600, Kevin D. Kinsey, DaleCo, S.P. wrote:
: If you're upgrading gnome2, what you *really* wanna
: do is use the FreeBSD-Gnome Project's "gnome_upgrade.sh"
: script.  Can't say for sure about "gnome-lite", though :-|

This never works for me.  Somewhere in the build, I get a crash running
rcmdsh that I cannot get past.

But maybe it's fixed this time.  I'll give it a shot.

jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: When to use 'portupgrade -R'

2004-12-10 Thread Jonathon McKitrick
On Fri, Dec 10, 2004 at 02:04:26PM -0600, Joshua Lokken wrote:
: required libraries.  For example, although I usually install
: XFree86-4 via the meta-port, when I want to upgrade it, I
: generally run 'portupgrade -r XFree86-4-libraries', which first

That might be a better way to do it.  I'll give that a shot.
Thanks!


jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: When to use 'portupgrade -R'

2004-12-10 Thread Jonathon McKitrick
On Fri, Dec 10, 2004 at 01:32:33PM -0600, Joshua Lokken wrote:
: from 'man portupgrade(1)':
: 
:  -r
:  --recursive  Act on all those packages depending on the
:   given packages as well.
: 
:  -R
:  --upward-recursive   Act on all those packages required
:by the given packages as well. [snip]
: 
: It sounds like you are / were not sure of what those options
: actually do.  Have a read of the manpage; it'll do you worlds
: of good.

Actually, it WAS what I was trying to do.  I wanted to upgrade gnome2-lite
and all the packages it required, because gnome2-lite is a meta-port.

jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: When to use 'portupgrade -R'

2004-12-10 Thread Jonathon McKitrick
On Fri, Dec 10, 2004 at 05:08:44PM +0100, Peter Ulrich Kruppa wrote:
: Hmm, I am afraid your question is a bit general ...

I've tried the '-R' option before, and ended up with portupgrade telling me
I had stale dependencies, and I never can get those fixed right.  Maybe I
should just stop using that option.

: Anyway:
: /usr/ports/UPDATING will inform you about problematic or 
: necessary upgrades.
: I guess reading this before portupgrade will usually keep you out 
: of trouble.

I know Gnome/gtk often has had issues, but since I'm jettisoning Gnome for
xfce, I won't have nearly as many Gnome components to worry about.


jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


When to use 'portupgrade -R'

2004-12-10 Thread Jonathon McKitrick

I've run into some problems using 'portupgrade -R' so I'm wondering if just
using 'portupgrade' is good enough in most cases.  I don't want a port to be
upgraded without NECESSARY dependencies, but I don't want minor upgrades
done UNNECESSARILY that might cause inconsistencies in the database.

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


BSD library HOWTO?

2004-12-10 Thread Jonathon McKitrick

Hi all,

I found some general guidelines in the Developer's Handbook, but is there a
more detailed HOWTO somewhere on setting up and using a library?  I'd like
to get the whole low-down on sonames, links to libraries, compiling versus
linking library names, and so on.

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How to use my laptop as a link between 2 other boxes

2004-12-05 Thread Jonathon McKitrick

I cannot get my wife's iBook to find my wireless hub.  The next best idea is
to install 2 cards in my laptop, with one wireless connecting to the
gateway, and the other one connected to the iBook.

How would I go about setting up the laptop to forward packets from the iBook
to the gateway?  Is it just as simple as gateway_enable in rc.conf?

The only catch would be the wired interface would be dhcp when at work, but
statically assigned when at home functioning in this gateway role.

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Why these connections from 127.0.0.1?

2004-12-02 Thread Jonathon McKitrick
On Thu, Dec 02, 2004 at 01:20:49PM -0300, Fernando Gleiser wrote:
: In the original case, it seems he is not runing those services. When sendmail
: (or whatever mta he's using) tries to make an ident lookup, it fails and
: log in vain logs the connection attempt to the closed port (it only logs
: attempts to connect to closed ports). Same for biff, something tries
: to query biff, the connection is refused because it isn't listening,
: log in vain logs it. That simple, I wouldn't worry about it

I'm running a local sendmail just to forward root mail to my user account.
The rest of my mail comes from remote accounts or POP3.



jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Why these connections from 127.0.0.1?

2004-12-02 Thread Jonathon McKitrick
On Thu, Dec 02, 2004 at 09:50:51AM -0300, Fernando Gleiser wrote:
: On Thu, 2 Dec 2004, Jonathon McKitrick wrote:
: 
: >
: > I'm trying to figure out why these messages are showing up:
: >
: > neptune kernel log messages:
: > > Connection attempt to TCP 127.0.0.1:113 from 127.0.0.1:3746 flags:0x02
: > > Connection attempt to TCP 127.0.0.1:113 from 127.0.0.1:2058 flags:0x02
: > > Connection attempt to UDP 127.0.0.1:512 from 127.0.0.1:4293
: > > Connection attempt to UDP 127.0.0.1:512 from 127.0.0.1:4864
: > > Connection attempt to TCP 127.0.0.1:113 from 127.0.0.1:1972 flags:0x02
: > > Connection attempt to UDP 127.0.0.1:512 from 127.0.0.1:3859
: >
: > I thought my firewall was allowing loopback traffic.
: 
: They look like "log in vain" entries. to you have log in vain enabled?

I believe so.

: 113/tcp is identd and 512/udp is biff. My guess is your mail system is
: generating those requests and log in vain logs them.

Should I disable log-in-vain or somehow allow these through?


jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Why these connections from 127.0.0.1?

2004-12-02 Thread Jonathon McKitrick

I'm trying to figure out why these messages are showing up:

neptune kernel log messages:
> Connection attempt to TCP 127.0.0.1:113 from 127.0.0.1:3746 flags:0x02
> Connection attempt to TCP 127.0.0.1:113 from 127.0.0.1:2058 flags:0x02
> Connection attempt to UDP 127.0.0.1:512 from 127.0.0.1:4293
> Connection attempt to UDP 127.0.0.1:512 from 127.0.0.1:4864
> Connection attempt to TCP 127.0.0.1:113 from 127.0.0.1:1972 flags:0x02
> Connection attempt to UDP 127.0.0.1:512 from 127.0.0.1:3859

I thought my firewall was allowing loopback traffic.

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Caching DNS for dialup

2004-11-30 Thread Jonathon McKitrick
On Tue, Nov 30, 2004 at 09:00:03AM +, Martin Hepworth wrote:
: Jonathon
: 
: presumably all the nameserver is doing is forwarding requests to your 
: ISP, as  set in the named.boot file? also I guess you're running bind in 
:  which case it will cache automatically.

I believe so.  I set up a caching nameserver from the handbook.

: probably best to just have it running on the gateway then it will cache 
: requests from all clients. have the clients point to the gw as the 
: nameserver in /etc/resolv.conf.

Oh, I might have missed that.  I'll double check.


jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Source tree hierarchy

2004-11-30 Thread Jonathon McKitrick
On Tue, Nov 30, 2004 at 07:16:02PM +0200, Giorgos Keramidas wrote:
: The /usr/src/sys/i386 directory is AFAIK an `architecture' directory,
: 
: The src/sys/i386/i386 directory is a `machine' related subdirectory.

That makes sense.  Interesting stuff.

jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Source tree hierarchy

2004-11-30 Thread Jonathon McKitrick
On Tue, Nov 30, 2004 at 06:54:35PM +0200, Giorgos Keramidas wrote:
: On 2004-11-30 15:32, Jonathon McKitrick <[EMAIL PROTECTED]> wrote:
: >
: > Why are there sometimes 2 levels of the same directory name, one beneath the
: > other?
: >
: > Like sys and i386, for example?
: 
: They are different things:
: 
: /usr/src/sys  Kernel sources (entire source tree).
: 
: /usr/src/sys/sys  Kernel header files.  These are installed as
:   /usr/include/sys/* by the installation process.

Ok, that makes sense.  But src/sys/i386/i386 has source code, not just
headers.  Is this code that is specific to i386 CPUs, while src/sys/i386 is
just specific to the system architecture?

jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Source tree hierarchy

2004-11-30 Thread Jonathon McKitrick

Why are there sometimes 2 levels of the same directory name, one beneath the
other?

Like sys and i386, for example?

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Is this a hole in my firewall?

2004-11-30 Thread Jonathon McKitrick
On Mon, Nov 29, 2004 at 04:14:07PM +0100, Ruben de Groot wrote:
: > : allow ip from ${INTERNAL_NET} to any keep-state out xmit tun0
: > : 
: > : where INTERNAL_NET would be e.g. 192.168.0.0/24

I was checking out the man page, and I'm a little unclear on whether I want
'xmit' or 'via' in this rule.  Does it make much of a practical difference?


jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Caching DNS for dialup

2004-11-29 Thread Jonathon McKitrick
On Wed, Nov 24, 2004 at 05:07:20PM +, Peter Risdon wrote:
: A caching DNS server would help conserve bandwidth on a dialup 
: connection - I generally run one myself with any connection with limited 
: bandwidth.

After RTFM, I believe I have it up and running.  ;-)

Named is running, but how can I be sure the caching is working?

Also, does it make sense to do this on each box, or just the gateway?

jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Is this a hole in my firewall?

2004-11-29 Thread Jonathon McKitrick
On Mon, Nov 29, 2004 at 05:13:44PM +0200, Giorgos Keramidas wrote:
: In general, it's not a bad idea.  You won't have to "remember" to turn
: on firewalling when the laptop is connected to a different network; one
: that shouldn't really be trusted so much.

Not a bad idea.  I also use it on the network at my job.  They have a
firewall, but who knows how it's set up

jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Is this a hole in my firewall?

2004-11-29 Thread Jonathon McKitrick
On Mon, Nov 29, 2004 at 03:09:30PM +0100, Ruben de Groot wrote:
: On Mon, Nov 29, 2004 at 01:21:14PM +, Jonathon McKitrick typed:
: > On Mon, Nov 29, 2004 at 12:30:20PM +0100, Ruben de Groot wrote:
: > : He's using ppp-nat. So packets from his laptop will first hit rule #300 
and
: > : only after that get "nat'ed". I believe this is normal behaviour.
: > 
: > Ah, yes.  I always forget about ppp-nat.
: > 
: > So, then, is this the best way to allow my laptop packets out?  Or does it
: > still leave the laptop exposed?  I'd like to protect all the machines with
: > one firewall, while keeping it simple, if possible.
: 
: Your laptop won't be "exposed" by this. You could however finetune your
: ruleset a little bit by modifying rule 300 to something like:
: 
: allow ip from ${INTERNAL_NET} to any keep-state out xmit tun0
: 
: where INTERNAL_NET would be e.g. 192.168.0.0/24

Should I also run a firewall on the laptop then, since all traffic to the
laptop is allowed to pass?


jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Is this a hole in my firewall?

2004-11-29 Thread Jonathon McKitrick
On Mon, Nov 29, 2004 at 12:30:20PM +0100, Ruben de Groot wrote:
: He's using ppp-nat. So packets from his laptop will first hit rule #300 and
: only after that get "nat'ed". I believe this is normal behaviour.

Ah, yes.  I always forget about ppp-nat.

So, then, is this the best way to allow my laptop packets out?  Or does it
still leave the laptop exposed?  I'd like to protect all the machines with
one firewall, while keeping it simple, if possible.


jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Is this a hole in my firewall?

2004-11-27 Thread Jonathon McKitrick
On Sun, Nov 28, 2004 at 03:31:35AM +0200, Giorgos Keramidas wrote:
: AFAIK, rule 00300 will never be hit by packets going out tun0 as long as
: you also have rule 00200 in there.

Hmmm here's a run after having the laptop running for a bit.  I don't
see why 200 doesn't cover the case either.

[EMAIL PROTECTED]:~# ipfw show
001000   0 check-state
00200 6709 1277079 allow ip from me to any keep-state out xmit tun0
00300 2093  645797 allow ip from any to any keep-state out xmit tun0
00400   917308 deny tcp from any to any in recv tun0 established
00500   436869 allow ip from any to any via vr0
00600   523080 allow ip from any to any via lo0
007000   0 deny ip from any to 127.0.0.0/8
008000   0 deny ip from 127.0.0.0/8 to any
009000   0 allow tcp from any to me 22 keep-state in recv vr0 setup
010000   0 allow icmp from any to any via tun0 icmptype 0,3,8,11,12
01100   111371 deny log logamount 100 ip from any to any
655350   0 deny ip from any to any
[EMAIL PROTECTED]:~# 


jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Is this a hole in my firewall?

2004-11-27 Thread Jonathon McKitrick

Here are my rules:

[EMAIL PROTECTED]:~# ipfw show
00100 0   0 check-state
00200 2 144 allow ip from me to any keep-state out xmit tun0
00300 0   0 allow ip from any to any keep-state out xmit tun0
00400 0   0 deny tcp from any to any in recv tun0 established
00500 0   0 allow ip from any to any via vr0
00600 0   0 allow ip from any to any via lo0
00700 0   0 deny ip from any to 127.0.0.0/8
00800 0   0 deny ip from 127.0.0.0/8 to any
00900 0   0 allow tcp from any to me 22 keep-state in recv vr0 setup
01000 0   0 allow icmp from any to any via tun0 icmptype 0,3,8,11,12
01100 0   0 deny log logamount 100 ip from any to any
65535 0   0 deny ip from any to any

I added rule 300 so that my laptop on my wireless network can connect, ping,
and get DNS and DHCP.  Is there a better way to specify this?

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Is this a sign of memory going bad?

2004-11-26 Thread Jonathon McKitrick
On Thu, Nov 25, 2004 at 11:45:06PM -0500, Matt Emmerton wrote:
: Given the cost of memory these days, swapping it out is generally cheaper
: than the cost of random downtime and recovering from crashes in a production
: environment.

I am *really* not a hardware guy.  I just had a box built and will deal with
hardware issues when I have to.  But I did turn the box off overnight, and
the build crashes went away.


jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Is this a sign of memory going bad?

2004-11-25 Thread Jonathon McKitrick
On Thu, Nov 25, 2004 at 04:05:53PM -0500, Lowell Gilbert wrote:
: Jonathon McKitrick <[EMAIL PROTECTED]> writes:
: 
: > This is what I get from make buildworld.  I've gotten signal 10, 11, and now
: > 5.
: > 
: > Is this bad memory?
: 
: That's a reasonable guess, but the only way to tell for sure is to
: test it.

Is there a port to do this, or do I have to take it out and take it
somewhere else to get it tested?

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Is this a sign of memory going bad?

2004-11-25 Thread Jonathon McKitrick

This is what I get from make buildworld.  I've gotten signal 10, 11, and now
5.

Is this bad memory?


S -DYP  -c /usr/src/lib/libc/../libc/net/res_debug.c -o res_debug.o
cc -O -pipe  -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include
-D__DBINTERFACE_PRIVATE -DINET6 -DPOSIX_MISTAKE
-I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DYP  -c
/usr/src/lib/libc/../libc/net/res_init.c -o res_init.o
cc: Internal compiler error: program cc1 got fatal signal 5
*** Error code 1

Stop in /usr/src/lib/libc.
*** Error code 1

Stop in /usr/src/lib.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
neptune# 

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 4 part domain names

2004-11-24 Thread Jonathon McKitrick
On Wed, Nov 24, 2004 at 04:08:06PM +0100, Hexren wrote:
: location. 510 could identify a rack or a datacenter so that
: us.510.mail.example.com means "a mail server in the datecenter with
: the id 510 which serves the United States".

So 'us.510.mail' is an atomic, arbitrary identifier.  All three as a unit
identify a certain node, and are selected purely for convenience of human
operators, right?

I'm just making sure that the network doesn't treat 'us.510.mail' any
different than it would treat 'foobar', right?

I was thinking in java/python mode, where each 'dot-level' actually pointed
to a node in the network, while what I understand now is that once you go
beyond the domain name, the way you handle the other nodes is just up to the
sysadmin, and is purely for human readability, right?

jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 4 part domain names

2004-11-24 Thread Jonathon McKitrick
: Every unique combination of subdomain.domain.tld could point to an
: arbitray other URL or IP.
: For example
: us.510.mail.example.com = example.com
: de.510.mail.example.com = europe.mail.example.com

I guess my question is this...

if 'us' is the name of the node (machine) and 'example.com' is the
registered domain name, what do the '510' and 'mail' parts uniquely
identify?  Why not just 'us.example.com'?

jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 4 part domain names

2004-11-23 Thread Jonathon McKitrick
On Wed, Nov 24, 2004 at 12:48:49AM +0100, Hexren wrote:
: Now add to that picture that every subdomain could be an alias for another
: domain or point to an IP address, which incase of the IP address is
: meaning a real machine.

So that means that the right-most portion of the subdomain would be either
the aliased domain of another machine or an IP address, right?  So does that
mean us.510.mail.yahoo.com could be us.510.some_secret_domain.xxx??  Or that
it could be a new domain within a private network?  Or either?



jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


4 part domain names

2004-11-23 Thread Jonathon McKitrick

AFAIK, a fully qualified domain name is like

machine.domain.xxx

but what about addresses like

us.510.mail.yahoo.com??

Is there any hierarchy to the names in this case?

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: BSD equivalents of autoconf, automake, etc.

2004-11-18 Thread Jonathon McKitrick

One of the reasons I have been asking this is I will be spearheading a side
project at work to port a device driver (a library, really) from Win32 to
Linux.

I *really* don't want to use Linux to write this.  Since it's really just
going to be a shared library that talks to a serial port, most of the code
will be straight C/C++, and I just need to worry about the serial port
semantics.

However, we will probably use a Linux box at work for development.  I'd like
to set up a platform-independent build environment so I can code/test/run
this on my BSD laptop.  Any suggestions on where to start?

jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: BSD equivalents of autoconf, automake, etc.

2004-11-18 Thread Jonathon McKitrick
On Thu, Nov 18, 2004 at 06:51:06PM +0100, Matthias Buelow wrote:
: Jonathon McKitrick wrote:
: 
: >This is exactly what I needed.  I wanted to experiment with building,
: >installing, linking, and the same with my own test 'libraries.'  It looks
: >like this is much easier than autoconf.
: 
: Why do you want to use autoconf at all, if you want to build on only one 
: system?  Autoconf (and automake/libtool) was, as originally intended, 
: designed to ease cross-platform portability.

Well, I might want to make my project available, I'm not sure.  But either
way, anything that makes makefiles easier is a welcome tool.


jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: BSD equivalents of autoconf, automake, etc.

2004-11-18 Thread Jonathon McKitrick
On Thu, Nov 18, 2004 at 06:32:21PM +0200, Giorgos Keramidas wrote:
: The minimal Makefile for building a program in FreeBSD looks something
: like this:
: 
:   PROG=   foo
: 
:   .include 

: 
: I can't even begin to describe all the 'make magic' that is hidden in
: /usr/share/mk/*.mk, but you can find out most of it by reading the
: comments in these make(1) include files.

This is exactly what I needed.  I wanted to experiment with building,
installing, linking, and the same with my own test 'libraries.'  It looks
like this is much easier than autoconf.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


BSD equivalents of autoconf, automake, etc.

2004-11-18 Thread Jonathon McKitrick

I'm starting to dabble in these self-contained self-building scripts and
tools and so on, like automake, autoconf, libtool, and so on.

Are these the preferred way of doing things on FreeBSD, or is there a better
or more BSD-way of doing them?

Some time ago, Terry Lambert suggested that tools such as imake were vastly
superior, and that the GNU tools were just to compensate for the
inconsistencies across Linux distros.

I'd like to learn something that makes sense to learn because it is
practical, but at the same time, without sacrificing too much portability.

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question about page faults and swap space

2004-11-16 Thread Jonathon McKitrick
On Tue, Nov 16, 2004 at 10:14:11AM -0600, Dan Nelson wrote:
: Accesses to executable images or mmaped files will cause page faults.
: They'll show up as vnode pageins as opposed to swap pageins in "vmstat
: -s" or "systat -v".

Ah, yes.  I think I remember now.  You don't actually 'load' all of an
executable, you just map it to memory, and when an address is accessed the
first time, it generates a page fault to bring it in, right?



jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Question about page faults and swap space

2004-11-16 Thread Jonathon McKitrick

This is probably a dumb question, but it's been a long time since my OS
theory classes.  ;-)

How can I get a page fault if swap space is never used?  Why would anything
be swapped out and yet not appear as usage on the swap partition, since that
never goes away once used?

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Why use a firewall with dialup?

2004-11-13 Thread Jonathon McKitrick

I've been using one for some time, but now that I have a mini network, it
has become a bit of a hassle updating the rules.

If I disable all services but ssh, stay STABLE, and do not have a broadband
connection, what danger is there?

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question about ISO filesystems and CD-R's

2004-11-02 Thread Jonathon McKitrick
On Wed, Nov 03, 2004 at 12:39:00AM +1100, Ian Smith wrote:
: but you can keep on adding further ISO images to a CD-R (or CD-RW) until
: it's full, using mkisofs + burncd at least.  Very handy here for certain
: types of backups, especially on a remote box visited weekly.

Ah, that's exactly what I'm looking for.  I bought a bunch of those
mini-CD-R's, thinking I didn't want to waste a regular CD-R to backup 100
megs of my laptop files.  But if I can keep dumping iso's from mkisofs onto
the same CD-R, effectively erasing it and adding a new one and just taking
up more space cumulatively, then I can keep the CD-R in the drive, run
backups every week, and only replace it when it is full, right?

: My cdappend script's full of paranoid parameter and error checking and
: such, but is based on this simple and likely more illustrative one: 

Thanks for the script.  I'll put it to good use.



jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Question about ISO filesystems and CD-R's

2004-11-01 Thread Jonathon McKitrick

Question: If I have an iso image smaller than the CD-R I am burning it to,
what happens to that extra space? Is it useless?  Can I burn another iso fs
to it later, overwriting the first?

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Fwd: problem with gtk2.0

2004-11-01 Thread Jonathon McKitrick
On Mon, Nov 01, 2004 at 01:03:42PM -0800, Kent Stewart wrote:
: I am an absolute believer in only running csh on root. If you want something 
: else, su - toor.

I thought you might have been on to something.  But alas, I got the same
result.  I'm posting the output to freesd-gnome to see if they have any
ideas.  I'm also updating to 4-stable.  Don't think that will matter, but
who knows.



jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Fwd: problem with gtk2.0

2004-11-01 Thread Jonathon McKitrick

This issue has been plaguing me for a while now.  Any idea what it could be?

Here is the error I get building gtk20 from ports...
Making all in stock-icons
GDK_PIXBUF_MODULE_FILE=../../gdk-pixbuf/gdk-pixbuf.loaders
../../gdk-pixbuf/gdk-   pixbuf-csource
--raw --build-list stoc   k_add_16
./stock_add_16.png   stock_add_24  .
/stock_add_24.pngstock_align_center_16
./stock_align_center_16.   png
stock_align_center_24  ./stock_align_center_24.png  stock_align_jus
tify_16 ./stock_align_justify_16.png stock_align_justify_24
./stock_align_ju   stify_24.png
stock_align_left_16./stock_align_left_16.pngstock_a
lign_left_24./stock_align_left_24.pngstock_align_right_16
./stock_   align_right_16.png
stock_align_right_24   ./stock_align_right_24.png stock
_apply_20   ./stock_apply_20.png
stock_cancel_20./stock_   cancel_20.png
stock_dnd_multiple_32  ./stock_dnd_multiple_32.png  sto
ck_bottom_16./stock_bottom_16.png
stock_bottom_24./stock_   bottom_24.png
stock_cdrom_16 ./stock_cdrom_16.png stock_c
drom_24 ./stock_cdrom_24.png stock_clear_24
./stock_   clear_24.png
stock_close_20 ./stock_close_20.png stock_c
lose_24 ./stock_close_24.png stock_colorselector_24
./stock_   colorselector_24.png
stock_color_picker_25  ./stock_color_picker_25.png > gt
kstockpixbufs.h ||   ( rm -f gtkstockpixbufs.h && false )
rcmdsh: unknown user: ƒÄü$ûPjV菍ûÿƒÄ F‹ƒX
Bus error (core dumped)
*** Error code 1

Stop in /usr/ports/x11-toolkits/gtk20/work/gtk+-2.4.0/gtk/stock-icons.
*** Error code 1

Stop in /usr/ports/x11-toolkits/gtk20/work/gtk+-2.4.0/gtk.
*** Error code 1

Stop in /usr/ports/x11-toolkits/gtk20/work/gtk+-2.4.0/gtk.
*** Error code 1

Stop in /usr/ports/x11-toolkits/gtk20/work/gtk+-2.4.0.
*** Error code 1

Stop in /usr/ports/x11-toolkits/gtk20/work/gtk+-2.4.0.
*** Error code 1

Stop in /usr/ports/x11-toolkits/gtk20.
root:...ports/x11-toolkits/gtk20# 

Any ideas???
I am stuck, I've tried all I know.

NOTE: Please CC me, as I am not currently subscribed.  Thanks.

jm
-- 
My other computer is your windows box.

- End forwarded message -


jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Running STABLE ports on RELEASE

2004-11-01 Thread Jonathon McKitrick
On Mon, Nov 01, 2004 at 03:22:58PM +, Matthew Seaman wrote:
: If it's the problem with the btree files in BerkeleyDB 1.65 that's
: causing Ruby to core dump on you while running portsdb then running
: 4.10-RELEASE won't help you.  That problem was a bug in the base

Ah, good to know.  I thought it was just something I had done wrong.

: If you're having trouble with various ports, why not post the details
: of what you're seeing? (if not here, then to freebsd-ports@ or
: freebsd-gnome@).  After searching the archives, of course.  Chances
: are you're not the only person to be bitten that way.

I had a very bizarre problem where the build would break and spit out these
odd characters while working in an icons directory.  No one was ever able to
figure it out.  I pretty much gave up trying to run gnome on my desktop,
while it ran perfectly on my laptop.



jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Running STABLE ports on RELEASE

2004-11-01 Thread Jonathon McKitrick

I have been having terrible problems lately with portupgrade dumping core
and gnome2 not wanting to build or run on my box.  I'm thinking of wiping
the drive and doing a clean installation of 4.10, installing packages for
what I want, and then cvsupping the ports tree to get the latest versions of
thunderbird and firefox.

Would there be any problem doing that?  I'm thinking I could just use
portupgrade on a fresh installation to avoid the coredumps and by limiting
the STABLE ports installation to just the 2 I listed I can keep everything
from breaking like it is now.

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to connect iBook to my BSD network

2004-10-28 Thread Jonathon McKitrick
: Most base stations have a DHCP server, but you need to turn it on.
: Read the docs on the base station, then log in and see.   I set my base

Hmmm.  The whole issue is we got this without docs from Ebay.

: station so that 192.168.1.n , where 128http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to connect iBook to my BSD network

2004-10-28 Thread Jonathon McKitrick
On Thu, Oct 28, 2004 at 08:15:26AM +0100, Dick Davies wrote:
: * Jonathon McKitrick <[EMAIL PROTECTED]> [1049 04:49]:
: > 
: > Hi all,
: > 
: > I have a 4.10 desktop with a wireless hub that my laptop connects to.  It
: > works perfectly.
: 
: Hey boy - how're things? 

Great!  Wondered where you've been.  :-)  How's the little one?

: Hang on - you got a basestation? What does it plug into, the link to your ISP
: or one of your ethernet ports on the server? Or does the dhcp server connect
: through the basestation too? 

We got a base station.  It has both a modem serial jack and an ethernet
jack.  My network has a wireless hub (with wired jacks as well, of course)
connected to my desktop box.

: I'm a little confused because the BS will have its own DHCP server if I remember
: right.

Really?  Okay, I didn't know that.  I was looking at the preferences page on
the apple and trying to figure out how to set up TCP/IP.  I was under the
assumption the BS was just another hub, and I had to assign it an address.
Since you got me going with DHCPD, I tried that, but it didn't work.  Are
you suggesting all I need to do is patch the BS to my hub and set the laptop
to get the DHCP address itself?  If so, how do I get my desktop box to
recognize the BS?


jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How to connect iBook to my BSD network

2004-10-27 Thread Jonathon McKitrick

Hi all,

I have a 4.10 desktop with a wireless hub that my laptop connects to.  It
works perfectly.

I just bought my wife an iBook with an AirPort wireless card and base.

I have dhcp set up on my server, but I don't have to use it if it's not the
best way.

How can I configure both computers to talk?

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: (OT) Emacs vs Xemacs

2004-10-11 Thread Jonathon McKitrick
On Mon, Oct 11, 2004 at 05:26:54PM -0400, Lowell Gilbert wrote:
: Jonathon McKitrick <[EMAIL PROTECTED]> writes:
: 
: > I know this is not BSD specific, but I just wanted to get your opinions.  I
: > was wondering what might affect my decision which to use, other than
: > licensing and (IIRC) the fancier font handling of Xemacs.
: 
: Both are licensed under the GPL, and the font handling is not
: significantly different these days.  The "eXtended" features 
: that give Xemacs its name are only of interest to people who
: program emacs heavily in LISP.
: 
: In other words, it's unlikely to matter to you.  Try them both 
: and pick whichever you like.

No big difference in performance (the LISP engine) or memory usage?  I'm
running on an older, smaller laptop.  Xemacs has been fine, but since I am
starting over, I thought I'd check out my options.

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


(OT) Emacs vs Xemacs

2004-10-11 Thread Jonathon McKitrick

I know this is not BSD specific, but I just wanted to get your opinions.  I
was wondering what might affect my decision which to use, other than
licensing and (IIRC) the fancier font handling of Xemacs.

jm
-- 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: What version of FBSD does Yahoo run?

2004-10-08 Thread Jonathon McKitrick
On Fri, Oct 08, 2004 at 11:45:09AM -0500, Kevin D. Kinsey, DaleCo, S.P. wrote:
: Jonathon McKitrick wrote:
: 
: >On Thu, Oct 07, 2004 at 11:39:05PM -0700, Ted Mittelstaedt wrote:
: >: I'm sure that Yahoo, like any large commercial enterprise, has a whole
: >: host of specific customizations that they have applied to FreeBSD,
: >: and their version of FreeBSD doesen't look like what we have, at least 
: >not
: >: where the good bits are.
: >
: >I wonder.  Wouldn't that make keeping up-to-date a lot more difficult?
: > 
: >
: 
: Not necessarily.  It wouldn't be too difficult at all to even roll their own
: release, with all their custom patches, or set up their own source
: repo with the patches in place and do cvsup et al from their own
: servers.  There are lots of possibilities; the fact that I don't necessarily
: know what they all are doesn't negate the probability that they exist.

I mean keeping their source synced with the 'official' source.



jm
--
My other computer is your Windows box.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


  1   2   3   >