Re: Edit user groups

2009-01-21 Thread Clifton Royston
On Tue, Jan 20, 2009 at 09:23:32PM -0700, Tim Judd wrote:
 Clifton Royston wrote:
 Good advice given so far (pw is a good tool, direct editing works) but
 I'd also suggest you consider installing and using sudo; I always
 install it on all of my systems and use it probably 10-20 times as
 often as su.
   
...
 I think sudo is a false sense of security.  If a user trusts another, 
 and give sudo access, why not give the whole OS to them?
 
  Among other reasons, because it allows you to partition privileges
and give access for specific users (or groups of users) to specific
accounts only, or to execute only a specific set of commands as root or
another user.  When I was running a department of technical support
staff and another group of junior administrators, this ability to limit
and partition powers was a life-saver.

  I think you mistrust sudo because you do not yet understand it as
well as su (also essential, but a more blunt instrument.)

 Sudo's out there -- don't get me wrong, but you won't catch me dead with 
 a box with sudo installed.  I think it's a very misleading tool.  And 
 not to say they do -- but what if the devs put in a keygen...do you 
 monitor the sudo source code?

  Rarely, but it's freely available, and thousands if not tens of
thousands of other programmers and admins have access to it, and do
check it enough to find the occasional bug.  Same as the source to su,
or to the OS as a whole; has it never occurred to you there are trust
issues there as well?
 
 And if I remember correctly -- the way sudo gets it's work done is a 
 SUID bit to root. 

  Dude, how do you think su works?

  -- Clifton

-- 
Clifton Royston  --  clift...@iandicomputing.com / clift...@lava.net
   President  - I and I Computing * http://www.iandicomputing.com/
 Custom programming, network design, systems and network consulting services
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Filesystem tunning

2009-01-21 Thread Clifton Royston
On Wed, Jan 21, 2009 at 12:01:04PM +0100, Matias Surdi wrote:
 Hi,
 
 Is there any way to avoid the system going to single user mode when a 
 secondary storage device cannot be mounted?.
 
 I mean, if all system filesystems are OK, how can set up a device with a 
 custom mount point so that when it's tried to mount at boot time and 
 fails doesn't cause the system to be in single user mode?
 
 I know that if in fstab I set the last parameter to 0 checking will 
 not be made at boot time, but instead what I want is the check to be 
 run, correct any automatically correctable error, and continue booting 
 anyway, despite the result of the check.Later a custom script will check 
 the filesystem and send a mail, for example.

Try this:

 Set to noauto in /etc/fstab, and add a custom script to run at the
end of the boot process to check and mount your special device if it's
OK, and do whatever additional processing you want if not.
  -- Clifton

-- 
Clifton Royston  --  clift...@iandicomputing.com / clift...@lava.net
   President  - I and I Computing * http://www.iandicomputing.com/
 Custom programming, network design, systems and network consulting services
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Edit user groups

2009-01-20 Thread Clifton Royston
On Tue, Jan 20, 2009 at 03:09:16PM -0500, Akenner wrote:
 Hi,
 
 I'm using FreeBSD 7.1-RELEASE and I have multiple user accounts set up. 
 I made about 4 for myself to use and do various testing with, and made 
 some for my Wife as well because She knows UNIX better than I do anyway heh.
 
 Anyway, one of the things I forgot about, was that FreeBSD by default 
 doesn't allow just anyone to use su.

Good advice given so far (pw is a good tool, direct editing works) but
I'd also suggest you consider installing and using sudo; I always
install it on all of my systems and use it probably 10-20 times as
often as su.

  -- Clifton

-- 
Clifton Royston  --  clift...@iandicomputing.com / clift...@lava.net
   President  - I and I Computing * http://www.iandicomputing.com/
 Custom programming, network design, systems and network consulting services
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Advice for dump/restore over SSH

2009-01-19 Thread Clifton Royston
On Mon, Jan 19, 2009 at 12:34:26PM -0500, FreeBSD wrote:
 I'm having difficulties trying to clone a FreeBSD 7.1 PC to another 
 exact same PC over SSH.
 
 There is my the things I tried:
 
 I found that link http://devpit.org/wiki/Dump_and_Restore_over_SSH which 
 seemed exactly what I wanted. The problem is that FreeSBIE is not 
 working on this PC (Dell Vostro 220 Slim). It seems to be a problem with 
 the disk controler (can't mount the / partition).
 
 So, I decided to install a minimal FreeBSD 7.1 on the PC to be cloned. 
 I'm trying to dump/restore the /usr partition but I got warnings with 
 the files already being present and it finally crashed SSHd just after 
 transfering /usr/lib/libssl.so. After that, there is nothing to do with 
 the PC, SSHd refuse to restart (segmentation fault).

It sounds like you're trying to restore onto the non-empty /usr
partition while running programs from that partition.  I don't think
that is ever likely to work, and I'm not surprised that your sshd
crashes and won't restart when you've replaced some-but-not-all of its
files.

You should restore non-incremental dump backups onto a file system made
freshly empty with newfs, which you can do if you bring the system up
in single-user mode or boot it from other media like a live CD.  This
is why the FreeSBIE CD is an essential part of the plan at the link you
posted.

You will probably have to start again from scratch on the PC you're
cloning onto; find some media you can boot it from, or install it to
where you can bring it up in single-user and run some listener which is
simpler than sshd.
  -- Clifton

-- 
Clifton Royston  --  clift...@iandicomputing.com / clift...@lava.net
   President  - I and I Computing * http://www.iandicomputing.com/
 Custom programming, network design, systems and network consulting services
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Embedded scripting language advice sought

2009-01-18 Thread Clifton Royston
On Sun, Jan 18, 2009 at 06:41:59PM -0500, Linda Messerschmidt wrote:
 For a project I'm working on, I need to find an scripting language, and I
 have a long wishlist:
 
 - able to be easily embedded in a C++ application
 
 - real object-oriented with inheritance (preferably multiple inheritance)
 
 - able to implement object methods in C++ where needed
 
 - sandbox operation (e.g. ability to suppress any file I/O  system
 libraries, but keep math and string libraries)
 
 - thread-safe, or, at least able to have multiple coexisting execution
 contexts in one running process
 
 - relatively user-friendly syntax (i.e. (not (lisp (based
 
 - has to build and embed on FreeBSD
 
 This is a mathematical model, and the goal is to write certain
 high-performance parts in C++, but to provide the user a command-line style
 interface where they can explore interactively, examine/tweak data values,
 etc, and then override certain behavior by subclassing from the C++ base
 classes using the scripting language to see how it affects the next model
 iteration.  One thread is handling the model calculations, and one handles
 the user's exploration, with appropriate synchronization when changes are
 made.  (We are doing this already, but since the code is C++, only the data
 can be edited while it's running and inspection is limited to our hacky
 pseudo-language.)

  Some of these criteria seem to match TCL's design criteria (easy
embeddability, relatively user friendly, able to implement methods in a
compiled language) but core TCL falls down on the object-orientation
side.  However there is actually a choice of object models in TCL, with
at least one of them [incr TCL] closely modeled on C++'s object model.

  You might find this worth looking into.

  I'm not a TCL maven, just worked with it a bit on a past employer's
project where it was the primary scripting language for a large
commercial hardware-test system. 

  -- Clifton

-- 
Clifton Royston  --  clift...@iandicomputing.com / clift...@lava.net
   President  - I and I Computing * http://www.iandicomputing.com/
 Custom programming, network design, systems and network consulting services
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Recommendations on reliable home fileserver hardware?

2009-01-18 Thread Clifton Royston
  My FreeBSD file server at home has been running for 5 or 6 years on a
succession of generic PC small form factor boxes (a.k.a shoebox
cases.)  I'm not very happy with this approach, because the hardware
keeps dying every two years or so.  The latest incarnation is getting
flakier and flakier and it's time to replace it.  I think one problem
is that the cooling is lousy on the ones I've used, at least with two
hard drives - I've ended up running with the cover off so it won't die
rapidly - but maybe there are better ones out there.

  Can anyone recommend an integrated SFF system or other small
case/mobo combination which they're using with FreeBSD 6 or 7, and
which is both long-lived and fairly quiet?  (It sits on my desk, and
near my wife's desk, so the vacuum-cleaner-like noise levels from many
1U servers will not cut it.)

  As I am running two 200G PATA drives in gmirror - this has saved me
twice now - one additional requirement is that it must fit at least two
standard 3.5 hard drives and have an IDE interface.  (Eventually I may
switch over to SATA but would rather not change everything at the same
time.)  I'd consider running a Mac Mini (tiny, silent, s/b reliable) if
it weren't for needing 2+ drives for mirroring.

  I'm comfortable either building my own system, or buying a packaged
system if it offers better value.

  Any advice would be welcomed.
  -- Clifton

-- 
Clifton Royston  --  clift...@iandicomputing.com / clift...@lava.net
   President  - I and I Computing * http://www.iandicomputing.com/
 Custom programming, network design, systems and network consulting services
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: OS bug in taskq

2007-12-16 Thread Clifton Royston
On Sat, Dec 15, 2007 at 03:58:10PM -0800, Jeremy Chadwick wrote:
 On Sat, Dec 15, 2007 at 01:03:14PM -0700, Elliot Finley wrote:
  I have:
  dumpdev=AUTO
  in /etc/rc.conf and:
  ... 
  in the kernel and I'm still unable to obtain a crash dump.  Hopefully
  there is enough info in this email for a hacker to point me in the
  right direction to debug this.
 
 I can't help with the panic itself, but the reason for the inability to
 obtain a crash dump is mentioned in a thread I started in November:
 
 http://lists.freebsd.org/pipermail/freebsd-stable/2007-November/038069.html
 
 The explanation of the problem was documented best by Doug Barton in
 this thread (over at freebsd-rc@):
 
 http://lists.freebsd.org/pipermail/freebsd-rc/2007-November/001263.html
 
 Open PR:
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=118255

  Why does it work *sometimes* then?  Or was this particular problem
introduced more recently than the 6.2 branch?

  I have two apparently similarly configured systems running 6.2p8,
with identical hardware, identical apps, and identical load, and I have
at least attempted to configure them the same way.  Both have
/var/crash set up and dumpon enabled in rc.conf.  Both crashed in the
last week.  I got a dump on one, which I now need to analyze, but have
twice failed to get a dump on the other.  (Once this past week, once
the previous month.)

  -- Clifton

-- 
Clifton Royston  --  [EMAIL PROTECTED] / [EMAIL PROTECTED]
   President  - I and I Computing * http://www.iandicomputing.com/
 Custom programming, network design, systems and network consulting services
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]

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


Re: Hints for small file system

2005-05-14 Thread Clifton Royston
On Fri, May 13, 2005 at 10:29:37PM +, mail.schatti.ch wrote:
 If you had to choose amongst the available filesystems on 5.4 to contain 
 just about 500kB to a MB, which would you use, and with what parameters ? 
 Which of these has the lowest administration overhead, the lowest space 
 overhead ? 

One thing going for FAT32 for portable media is that it can be read and
written reliably by any major OS on the market now - Linux, OS X, or of
course Windows XP/NT or 98.  You could view that as a positive or
negative depending on the application.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 5.4 apache vs. apache+mod_ssl and mod_php4 dependencies.

2005-05-13 Thread Clifton Royston
On Fri, May 13, 2005 at 07:20:49AM -0700, Joe Capali wrote:
 Back in the day...4.9-RELEASE you were able to install
 apache+mod_ssl and mod_php4. Now 5.4-RELEASE requires
 apache as a dependency to install mod_php4 and fails
 with apache+mod_ssl already installed. Don't know if
 this is a problem just I am having. I would like to
 end up with my 4.9 config on 5.4, any ideas would be
 appreciated. All references are to apache 1.3.

(I'm not on my FreeBSD machines at the moment, but I just did this a
couple days ago.)  

I believe what you want to do is:

cd /usr/ports/lang/php4
make OPTIONS=openssl install

 + usually you want to

cd /usr/ports/lang/php4-extensions
make install

By *default*, php4 builds both the CLI for PHP and mod_php4; there are
separate port entry points to build one or the other alone.  Poke
around the ports directories and look at the pkg-descr and pkg-message
files, and/or the Makefiles themselves.  OPTIONS tells it what type of
Apache installation to look for among other things.

BTW, I recommend you go to Apache 2 when you can, as it's been stable
for years now and that's where all the development is going on.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: two ISP connections, three nics, and a NAT

2005-05-12 Thread Clifton Royston
On Thu, May 12, 2005 at 11:06:39AM -0400, Tomas Quintero wrote:
 PF is wonderful for this. I manage a router with 3 DSL Circuits and
 have PF setup to round-robin between them. The configuration is fairly
 simple, and I can provide my pf.conf if you'd like for some
 clarification on how to go about doing it.

Actually, I for one would be quite interested in seeing this.  

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NFS freeze

2005-05-12 Thread Clifton Royston
On Fri, May 13, 2005 at 02:52:52AM +0200, Pietro Cerutti wrote:
 Kelly D. Grills wrote:
 
 Have a look at section 23.3.5 of the handbook. -r=1024 cured my
 problems.
 
 Thank you, this solves the problem when mounting manually.

  I also highly recommend the intr option to all NFS mounts.  This
largely eliminates the unkillable process problem.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cdce Patch

2005-05-11 Thread Clifton Royston
On Wed, May 11, 2005 at 02:29:02PM +0800, Zhiliang wrote:
 Hi,
 
 Could anyone enlightten me on how to apply a patch to a port? i
 recently installed the port cdce and encountered cdce0: could not
 find data bulk in. there's a patch available fo this,
 patch-if_cdce.c, bu t i have no idea how to apply it.

If it happens to be named beginning with patch-, then simply putting
it in the files subdirectory of the port in question usually does the
job.

The ports makefile system has code for automatically applying any
patch- files found in the files directory.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: problems with pop3 daemons

2005-05-11 Thread Clifton Royston
On Wed, May 11, 2005 at 04:58:40PM +0200, Gal Ben-Haim wrote:
 Im running a mailserver on FreeBSD 5.4, for some time now im 
 experiencing problems with downloading large messages (above 1 mb but i 
 don't know from which size it starts) through pop3:
 After about 30 secs of downloading, the download just hangs,
 qpopper's output to the logs is: ay 11 16:31:00 loki qpopper[57578]: I/O 
 error flushing output to client xxx Operation not permitted (1).
 
 I tried to switch pop3 daemon, and tried popd, pop3lite and pop3ad.. all 
 did the same thing but didn't report anything..
 
  This is one for the qpopper mailing list, but to save you some
trouble, the not pemitted is what qpopper reports when the client end
of the connection has gone away and it finds it's writing to a closed
socket.  It gets seen on all kinds of platforms and is not a BSD issue,
nor (usually) an OS configuration issue.

  This almost always indicates a buggy POP client which is failing on
some message, and/or a client which is running AV software which
transparently hijacks POP connections in order to scan them.  In
either case you need to see what's going on on the client end.  qpopper
is merely more verbose about reporting this than most POP servers.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I need further HDD advice before submitting order.

2005-05-11 Thread Clifton Royston
On Wed, May 11, 2005 at 04:19:33PM +0100, [EMAIL PROTECTED] wrote:
 Hi again,
 
 I posted a question here last week, asking for advice on how I should 
 ask my datacenter to divide up the HDDs in my new server.  Thank you to 
 everyone who responded.
 
 I have tried to understand all the advice given and, since then, have 
 tried to get myself up to speed by reading the relevant sections in The 
 Complete FreeBSD, FreeBSD Unleashed, Absolute BSD and Teach Yourself 
 FreeBSD in 24 Hours (it didn't).
 
 I understand a little more than I did but am still unsure as to how I 
 should divide the HDDs and would very much appreciate reactions to my 
 current proposal.
 
 --
 
 Server purpose: Initially just forums, later sundry other Web apps i.e. 
 ecommerce, ticket bookings etc.  Will possibly become a heavy-duty email 
 server at some stage.
 
 2GB RAM
 
 80GB HDD IDE:
 / = 1GB
 /usr = 15GB
 /local = 15GB
 Swap = 4GB
 Unallocated = 40GB
 
 200GB HDD IDE:
 
 /tmp = 2GB (is that enough?)
 /home = 28GB
 /var = 100GB (will inclube the forum databases etc)
 Unallocated = 70GB

Two tips I always do on *BSD systems nowadays:

1) Create and newfs an /altroot partition on the boot drive, of equal
size to /, and occasionally sync it from / using dump/restore or rsync. 
The rest of the time leave it mounted ro.  If / gets damaged in a
failed upgrade or just via bad luck, you're nearly assured of being
able to boot off of /altroot to repair things.  It's the kind of thing
you might use only once in several years but which saves you a ton of
grief then.  (Mind you, in your remote data center situation, you would
need to talk a technician on the console through the steps to boot from
it; make sure you know how to do that.)

2) Take the extra space that you're marking as unallocated, create
and newfs the partitions as /data (or sometimes /data, /data2,
/data3...), and go ahead and mount it.  Then when you run into some
application that needs to use it, you can either symlink it into the
main filesystem or configure the application to go directly there.  For
example, ln -s /data /var/db/mysql or CVSROOT=/data/cvs

  Otherwise what you're proposing looks good at first glance.
  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


MySQL port building solution: -O is required

2005-05-11 Thread Clifton Royston
  Here is the answer to the problem I was wrestling with a couple weeks
ago:

  /usr/ports/databases/mysql41-server and 
  /usr/ports/databases/mysql40-server 
do *not* build on 4.x systems unless *some* level of optimization is
turned on.

  'CFLAGS='  fails on 4.x releases;
  'CFLAGS=-O' works. (as does -O -pipe and probably higher levels.)

  Not tested on 5-STABLE.

  I'm guessing that the machines where ports building is tested have
'-O -pipe' or similar as a minimum setting.  However /etc/make.conf has
no default setting for CFLAGS, so with the out of box default
settings of everything the build of this port will consistently fail.

  The problem appears to be, from some cursory digging through the
sources, that a number of MySQL functions including MySQL's internal
interfaces to the thread libraries are defined only via inlining if the
OS *platform* is known to support it, but inlining is not actually
enabled (at least in GCC 2.95) unless -O or better is set.

  I tracked this down once I realized that the key difference between
the system where I could build it and the system where I couldn't was
that the former's /etc/make.conf was heavily customized, and the
latter's was untouched except for the variables set by use.perl ports.

  I'll file a pr on this, as well as the necessary tweaking on my own
system.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair

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


Re: Cdce Patch

2005-05-11 Thread Clifton Royston
On Thu, May 12, 2005 at 10:40:29AM +0800, Zhiliang wrote:
 Hi Clifton,
 
 Thanks...i tried that but did not have any effect...would l need to
 copy revised Makefile into the directory as well?

No, but you do need to run make deinstall to safely remove the
installed version and then make clean to remove your first attempt to
build it.  It's probably not applying the patch and recompiling, if it
has a version already built in the work subdirectory.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: A beautiful dmesg! Maybe one day?

2005-05-10 Thread Clifton Royston
On Tue, May 10, 2005 at 01:18:36PM -0500, Fafa Hafiz Krantz wrote:
...
 Real memory  = 100663296 (96 MB)
 Available memory = 93036544 (88 MB)
 
 Doesn't.
 
  As you suggested, I compared these with diff, ignoring the gratuitous
  spacing modification using diff -b.
  
  In the end, I don't think I can consider even one of your changes to
  be an improvement.  The closest you came to a useful change was the
  capitalisation of Real memory, but that's hardly necessary, and
  the accompanying change to the next line upsets the formatting.
 
 Ofcourse it doesn't improve the functionality.
 And I get the feeling that's what you're all about.
 
  Indeed, you understand correctly.  Functionality is exactly what the
BSD family of OSs is all about.

  Most kernel developers are busy with activities like improving system
performance on multi-CPU systems, increasing OS reliability with SATA
drives, and other activities of a deep and essential nature.  I don't
generally tell the kernel developers what to do, because I know that
they know their own knowledge domain far better than I do.

[...]
  In short, I think you should find some other way to pretty up your FreeBSD
  boot.  As suggested earlier, try man splash.
 
 Again, I want it to look correct.
 
  The appearance is a matter of personal taste, and de gustibus non
disputandum. Your claim that your personal preference is correct
does not cause other people to prefer it.

  It should be clear by now that you are getting nowhere trying to
persuade others to implement this for you, so your only course is to
implement it yourself.  If these changes matter a great deal to you, I
suggest you invest the sweat to change it on your own system.  You have
all the sources, you have the power.  If you don't know how yet, you
have the opportunity to learn.  If you succeed and post public patches
to do it, then others can share the changes if they wish, and you will
get some smidgen of positive recognition and credibility.

  If this matters so much to you, it should be worth your effort.

  If you are incapable of making these changes, then your preferences
will get some smidgin less weight, as there will be that much less
evidence that your opinions should be valued.  The open source world is
largely a meritocracy and technocracy; this is not to say that
politics and opinions play no part, but generally speaking working
code wins.

  Mostly people in the OSS world take it for granted that others
understand this, which may be why nobody has told you this in so many
words before now.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pthread compiler issues

2005-05-10 Thread Clifton Royston
On Tue, May 10, 2005 at 05:11:59PM -0700, [EMAIL PROTECTED] wrote:
 Twas said by  Kris Kennaway and my ignorance encourages me to join the
 dialogue
  On Tue, May 10, 2005 at 04:29:00PM -0700, [EMAIL PROTECTED] wrote:
  I have had problems compiling packages generating pthread error
  messages.
  I am running FreeBSD 5.3. with linux support. This time it was firefox
  based with tar balls -1.0.1  1.0.2.
...
 
  You've given us nothing to comment on.  Show exactly what you're doing
  and what problems you encountered.
 Here is the terminating output -- let meknow if you need any earlier output :
 ---
 
 /usr/local/lib/libgthread-2.0.so: undefined reference to
 'pthread_attr_destroy'
 /usr/local/lib/libgthread-2.0.so: undefined reference to 'pthread_create'
 /usr/local/lib/libgthread-2.0.so: undefined reference to 'pthread_attr_init'
 /usr/local/lib/libgthread-2.0.so: undefined reference to 'pthread_exit'
 /usr/local/lib/libgthread-2.0.so: undefined reference to 'pthread_equal'
 /usr/local/lib/libgthread-2.0.so: undefined reference to
 'pthread_getschedparam'

  Well, this seems rather like the same problem I was having several
weeks back trying to build MySQL from ports on a 4.10 system (with or
without enabling Linuxthreads.) That's what induced me to subscribe to
-questions, since I would have felt too dumb posting the question to
-hackers.  It seemed as though the build process was just plain failing
to link certain libraries which I could see were there on the command
line to cc.

  At the moment I have no helpful suggestions to offer you.  I never
got any suggestions other than to try rebuilding libtool 1.5, which I
did, and which didn't seem to help.

  I did confirm that it was not a problem with the port, as I was able
to build it just fine on a different 4.x system.  The system is not
broken or crippled, as I've been able to install the binary package on
the system which couldn't build it, and have been running it just fine. 
I still have not figured out why I can't build this specific app from
ports on this one machine.

  I will be very interested if you get anywhere with this, and if I get
anywhere on going back to the problem - which I need to do eventually -
I will post a followup.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Low bandwidth

2005-05-09 Thread Clifton Royston
On Mon, May 09, 2005 at 07:03:26PM +0300, Sergiu - IT wrote:
 Hi, guys !
 I have a small network at home and I noticed something curious... When I 
 try to copy from one computer to another (the transfer is made through 
 the server - without a switch), the bandwidth is very low, about 2Mb/s. 
 Does anyone know why ? Another thing is that the bandwidth from the 
 server or from one of the home computers to the outside LAN is very 
 low too, about 700Kb/s up to 1.5Mb/s. Does anyone know why is that ?
 Here is what ifconfig shows me :

  My axiom with regard to Ethernet is Autodetect doesn't.

  I notice your connected cards are all showing 100/Full duplex.  I
suspect the other sides of your connections think they have negotiated
half duplex.  A duplex mismatch on 100BaseT will often end up giving
you around 1-3 Mb/s actual throughput after all the packet collisions.

  Try using ifconfig to fix speeds on *both* ends of each connection to
100/FD, then see what happens to the throughput.  The xl and fxp
drivers are both very reasonable drivers/cards, so assuming your wiring
is solidly connected cat 5, you should get great throughput.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Process tracking

2005-05-09 Thread Clifton Royston
On Mon, May 09, 2005 at 03:51:30PM +0200, John Oxley wrote:
 Right, when i run top I see perl grazing 50% of my CPU.  How do I find
 out what process actually launched that.

Simply running ps with appropriate options (my favorites being -auxww)
will let you see the command line and parameters which usually tells
you how perl was invoked.  If you use the above options, the most CPU
intensive task will appear at the top of the list:

 ps -auxww | head

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: revert to old kernel help ?

2005-05-09 Thread Clifton Royston
On Mon, May 09, 2005 at 09:50:52AM -0400, Brent wrote:
 Hello, im running Freebsd 4.10 , When i first setup this box i re-compiled 
 the kernel for firewalling and such...which worked great ...i then tried to 
 tighten the box down even further...by compileing ICMP_BANDLIM which caused 
 problems for my webserver. Anywho ...is there a way i can tell my Freebsd box 
 when it power cycles to boot the old kernel automatically ? At this point im 
 having to tell it manually to load kernel.old 
 
 any help is greatly appreciated 

  Your last previous kernel and module set should normally be saved as
the file /kernel.old and the directory /modules.old/ on your root file
system.

  If you haven't gone through multiple build cycles, you can do this, or
the equivalent steps:

# cd /
# ln kernel kernel.bad  mv kernel.old kernel
# mv modules modules.bad  mv modules.old modules

  Then reboot:

# shutdown -r now 'Reboot into restored kernel'
 
  If you went through multiple build cycles with the new parameters,
then you're torqued; you'll need to go through a fresh build cycle with
a corrected kernel config.  This is why it's a good idea to back up a
known good copy of your kernel and modules before you start tinkering. 
Doesn't hurt to always keep a GENERIC kernel around too.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 5 day lockup on Densitron

2005-05-09 Thread Clifton Royston
On Tue, May 10, 2005 at 04:30:15AM +0100, RW wrote:
 On Saturday 07 May 2005 02:00, Clifton Royston wrote:
   What you describe
  could conceivably be the result of a special counter or RTC chip
  running as a watchdog timer with a count-down from boot time, and
  generating some kind of special interrupt when that countdown reaches
  0.  Watchdog devices are sometimes set up to require the application
  software to stroke the timer periodically (reset it in software) with
  the intent to force a reset of the system (usually a reboot) after
  such-and-such a period of time if not stroked.  
 
 Watchdog timeouts are typically a fraction of a minute, a 5 day watchdog 
 timeout is very unlikely.

  Watchdogs are normally designed to be initialized at boot by the
software, and as FreeBSD doesn't know about it...

  It's a long-shot, but less so than overheating always happening to
build up and cause a reset randomly at exactly the same 5 day period of
time as somebody suggested.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mailinglist privacy: MY NAME ALL OVER GOOGLE!

2005-05-06 Thread Clifton Royston
On Fri, May 06, 2005 at 08:49:26PM +0200, Anthony Atkielski wrote:
 Kirk Strauser writes:
 
  So, how's that working out for you with non-US third-party mirrors that
  aren't subject to American law in any way?
 
 The DMCA cannot be used against them directly, but if their traffic
 transits through servers or networks in the U.S., you can go after the
 U.S. providers.  It's more complicated than the simple case of notifying
 the infringing site directly.

  You are obviously not that familiar with the DMCA.  There are
specific safe-harbor provisions for ISPs and networks which are merely
transiting and/or caching traffic.  I have to believe you've never
actually implemented any of the strategies and claims you're
pontificating about.

  Of course, the best way to ensure you don't look bad in Google is to
try hard to post only intelligent questions and comments to mailing
lists - for example, by searching web archives of the mailing list or
employing common sense - and to post intelligent answers when you have
them.  Not acting like a buffoon will go a long way on the Net.  Of
course that may be just too hard for a few people.
 
  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 5 day lockup on Densitron

2005-05-06 Thread Clifton Royston
On Fri, May 06, 2005 at 08:58:58AM -0400, Lowell Gilbert wrote:
 Richard J. Valenta [EMAIL PROTECTED] writes:
  At work we had a machine which had in it a 200mhz pentium - the machine
  was an all-in-one flat panel made by a company named Densitron for
  industrial use.  On one side of it was a the flat/touch panel, and the
  idea was that it was a complete machine that could be installed into a
  wall - how cool is that?
...
  So I restarted it, and logged in as root, ran top - and let it go for a
  few days.  Alsways a lockup, I've now done this a few times and it seems
  to happen at 5 days, 1 hour and roughly 40 minutes.  Without fail, after
  5 days I'll come downstairs and find it locked up at 5 days, 1 hour,
  etc...
  
  I'm at a loss as to why, I'm no expert with the crontab, so maybe I'm
  missing something.  But I'm looking for ideas, thanks.
 
 This is pretty weird, all right.  The time period isn't a round number
 in any units I can work out, in base 10 or 2.  It's probably some kind
 of coincidence, so try to think of common factors. 

  If this was designed as an industrial PC, intended to run specialized
software, it may have some specialized hardware.  What you describe
could conceivably be the result of a special counter or RTC chip
running as a watchdog timer with a count-down from boot time, and
generating some kind of special interrupt when that countdown reaches
0.  Watchdog devices are sometimes set up to require the application
software to stroke the timer periodically (reset it in software) with
the intent to force a reset of the system (usually a reboot) after
such-and-such a period of time if not stroked.  Sometimes they're even
tied to the system hardware reset line; the idea is to prevent a
software lockup from taking the system down indefinitely, though you're
seeing the reverse effect.

  This is all speculation, and it might sound like the idea is
completely wacky, but I have worked on hardware with watchdogs, though
 it's been a long time and it wasn't PC hardware.  If this is the case
(a big if) you'd need to know exactly what the hardware is, and what
it's set up to do on countdown, before you can begin figuring out how
to fix it.

  Here are a couple off-the-cuff ideas.  One possible way to check for
a watchdog - boot it off of something else, e.g. a DOS disk such as a
Win 98 startup disk, then leave it sitting at the command prompt for 5
days etc. and see if it stops responding, reboots or does something
else weird.  It won't prove anything if it doesn't - memory usage and
interrupt setup will be very different in that scenario - but it might
point you in some interesting direction.  Also, scour the BIOS menu
settings (I assume it has a BIOS?) for anything that sounds like it
might relate.  I'm not sure what else to tell you, other than to check
with the manufacturer if possible.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Running out of memory

2005-05-05 Thread Clifton Royston
On Thu, May 05, 2005 at 04:08:00PM -0500, Jacob S wrote:
 This server's hosting about 250 websites - the majority being poorly
 written php, and incoming e-mail for those domains. It has cPanel
 installed, so incoming e-mail goes through exim, spamassassin and
 clamav, but outgoing uses qmail and qmqp to let another server do the
 hard(er) delivery work.

  If you aren't limiting queue concurrency to a fairly modest value, I
would suspect SpamAssassin is consuming most of the RAM. (And CPU.)  SA
is a pig.  I would hate it if it didn't do such a useful job. :-)

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: swap space

2005-05-03 Thread Clifton Royston
On Tue, May 03, 2005 at 08:32:54PM +0200, Chris Knipe wrote:
 Simple question really... Can you ever have to much swap space?
 
  Only if there are better things you can do with that disk (or money.)
In this case, RAM might be a better priority, see below.

 We're sitting with quite a nifty P4 System with 1GB Ram.  We will more than 
 likely add another 2 or 3GB in the month to come as our applications 
 (mainly perl) are consuming vast amounts of memory and swap.
 
  You might want to look at your application architecture as to why you
are using all that virtual memory and whether you could change
something so as not to be using so much at once.

 We made the mistake however of just allocating 512MB swap as we did not 
 know accurately at the time of installation what the resouce requires are 
 going to be (especially not that it would be this high).
 
 Obviously reinstalling the entire OS / Applications is not really a option. 
 We may want to install a dedicated 40GB just for swap... Would this be 
 advisable, or will it actually slow the system down?  And to what extend?
 
  Having lots of swap space shouldn't slow a system down.  However,
*using* it will.  If your applications are hitting the swap any more than
occasionally under peak load, you should assume that your system is
running a good order of magnitude slower than it needs to (i.e. at
least a factor of 10.)

  A traditional rule of thumb is to have 1x - 2x the total RAM size in
swap space.  This assures that you can do a crash dump and that you can
deal with peak load of 2x the normal maximum number of processes by
swapping them out.  Beyond that, you are probably better off with the
system just refusing to fork more processes or allocate them memory.

  Sometimes unbounded swap usage reflects the system falling off a
cliff as the result of an inbound transaction request rate which
exceeds the transaction service rate.  If the outstanding transactions
build up to the point that the system starts to swap a little bit, then
the system performance drops dramatically as the system needs to page
data out/in to run some processes.  This causes the transaction service
rate to drop sharply (e.g. by an order of magnitude as I mentioned
above.) As a direct result the number of outstanding processes shoots
up and the VM and swap usage goes through the roof.

  If this is the scenario, you should definitely add more RAM before
worrying about adding more swap.  The swap won't hurt, but the RAM is
what will actually benefit your system.  (Depending on your
application, software changes may have the most benefit of all.)

  There's my free advice, worth every penny.
  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: swap space

2005-05-03 Thread Clifton Royston
On Tue, May 03, 2005 at 03:02:11PM -0600, Chad Leigh -- Shire.Net LLC wrote:
 On May 3, 2005, at 2:45 PM, Kris Kennaway wrote:
 Since it's a pain to add swap later you want to make
 allowances for future expansion (e.g. you'd need 32GB of swap if you
 ever plan to add 32GB of RAM).
 
 I understand that people recommend as much swap as you have ram or  
 more.  However, is this required and why? 

  It's needed if you want to be able to collect a crash dump if the
system panics.

 I have a dual opteron  
 system running i386 5.3-release (with released patches) and it has  
 4GB RAM and only 2GB of swap, which is hardly ever touched, and when  
 it is, just in small amounts.
 
  That's as it should be!

 Why is this a problem?  (If it ever needs the 2gb of swap I am in  
 trouble as the load at that time would be sky high and the machine  
 not really responsive anyway)

  Yes indeed, you do not want to be running your system with full swap. 
You want it only for emergencies.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: unary operator expected

2005-05-03 Thread Clifton Royston
On Tue, May 03, 2005 at 05:13:47PM -0600, Chris Burchell wrote:
 I'm working with a script written for Linux that has the following
 lines:
 
 # Check that networking is up.
 [ ${NETWORKING} = no ]  exit 0

  I don't think it's a Linux/BSD issue.  This line won't work in sh if
NETWORKING is unset.  Then you get (after parameter expansion)

  [ = no ]  exit 0

which fails the syntax check.  

  I suspect NETWORKING always happened to be set in the Linux
environment you were running it under, or perhaps you were using a
different shell.
 
 Can anyone help with suggestions or an alternate statement that will
 work on FreeBSD 5.3-RELEASE?

  One time-honored idiom is:

  [ X${NETWORKING} = Xno ]  exit 0

  or you can just make sure that NETWORKING always gets set to some
value.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Mailorder vendors (was Re: Does FreeBSD work with SB Live and GeForce?)

2005-04-29 Thread Clifton Royston
   Also, if anybody knows of a good online store, please let me
   know.  I found a website called tigerdirect.com.  Am I
   tossing the dice? anybody dealt with this place?

  TigerDirect has been around for at least 12 years, and has offered
poor value, often shoddy parts, and (I've heard) consistently bad
service during the entire period I've had contact with them.  They make
up for it by heavy direct mail advertising.  I would not consider them,
personally.

  Emachines offer surprisingly good value in my experience.  Early on
they had a rep for using cheap parts, but when I've checked out more
recent models in the last few years, I have found them to be choosing
very similar components to what I would use to build an inexpensive but
reliable desktop system.
 
  Alienware is a build-to-order company that caters especially to gamers
(high-speed oriented) but has lower-end systems too.  They have a
pretty good rep for quality, but I doubt they'll have any idea what
works with BSD.

  If you want a built-to-order system that is verified to work with
*BSD operating systems, allow me to recommend ASA Computers.  I've
bought server hardware from them off and on for the last 10 years; they
cater to BSD and Linux users especially, are very value-oriented, and
have great service.  They do have desktop/workstation offerings as well
as servers.
  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Qpopper SSL TLS problem

2005-04-29 Thread Clifton Royston
On Fri, Apr 29, 2005 at 11:25:51AM +0200, Dominik Epple wrote:
 BSD [EMAIL PROTECTED] writes:
  Do you know any other POP server that supports SSL / TLS ?
 
 University of Washington IMAP Daemon comes with a pop daemon that
 supports SSL. There are certainly others, but this one I use myself.

Courier-IMAP does (despite the name, it's both IMAP and POP) but it
requires maildir format.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: longest uptime

2005-04-29 Thread Clifton Royston
On Fri, Apr 29, 2005 at 04:49:33AM +0200, Anthony Atkielski wrote:
 Joshua Tinnin writes:
 
  An long-unpatched FreeBSD install on a DMZ server makes me a bit
  more edgy than knowing the uptime will reset to zero when it's rebooted
  after updating.
 
 Is FreeBSD so insecure that it must be patched every few days? 

  No.

Are FreeBSD security issues released more than once a year?

  Yes.

 I hardly
 ever see FreeBSD security issues on Bugtraq, and the ones I see often
 have nothing to do with Net attacks.  A properly configured FreeBSD
 server with no local logins should be quite secure. 

Do some FreeBSD security issues require local logins for exploit?

  Yes.

Do all of them?

  No.

Are some of them remotely attackable?

  Yes.

Does it depend what services you're running?

  Often.

Are there some remotely attackable security issues which don't depend
on specific services you're running, or involve always-running
services?

  Sometimes.

Can you get away without patching and rebooting FreeBSD for every
security update?

  Usually for long periods of time, depending on what you're running.

Is it a good idea to patch anyway?

  Yes.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is ata2 ?

2005-04-28 Thread Clifton Royston
On Thu, Apr 28, 2005 at 07:48:00AM -0700, Rob wrote:
 OK, I have opened the box and had a look at this
 ISA card. It's indeed a sound card, Creative
 SB16/SB32. But it also has one IDE Interface
 connector, which apparently is the ata2 device.
 
Wow, this *is* an old machine!

 So, I thought, let's see how I get this ata2 to work.
 I disconnected the CDrom cable from the motherboard's
 IDE, and connected it to this soundcard.
 Nothing there at bootup; no mentioning of any
 CDrom in the kernel messages.
 (To be sure, I reconnected the cable the other way
 round to the card; same result).
 
 Does this ISA/IDE require some other additional
 tweaks to become operational? The OS is 5-Stable.

I never tried running it under any BSD.  ISTR that it was a very
messed-up IDE interface which only worked with Creative's brand
CD-ROMs.  I saw a bunch of these back in the day as they were marketed
as upgrade kits when CD-ROMs were just hitting mass-market computers,
and lots of people wanted to add CD-ROMs and sound to their old
computers so they could play games.  A soundcard with extra IDE + a
CD-ROM got them there, barely.

 Eventually I would like to achieve this:
 I have another, very old, PC with following
 configuration:
   IDE/0 (on motherboard) master and slave harddisks
   IDE/1 (on motherboard) -broken-
  
 I like to use this soundcard/IDE controller for
 adding a CDrom to this very old PC. The OS of this
 PC is 4-Stable.

I don't think it'll work for that - too bastardized. I don't know what
they did but they might have changed the pinout or something so that it
was only compatible with Creative CD-ROMs.  In the best case, if you
got it to work, it would be deathly slow.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is ata2 ?

2005-04-28 Thread Clifton Royston
On Thu, Apr 28, 2005 at 07:31:01PM -0700, Rob wrote:
 --- Clifton Royston wrote:
  On Thu, Apr 28, 2005 at 07:48:00AM -0700, Rob wrote:
  
   Eventually I would like to achieve this:
   I have another, very old, PC with following
   configuration:
 IDE/0 (on motherboard) master and slave HDs
 IDE/1 (on motherboard) -broken-

   I like to use this soundcard/IDE controller for
   adding a CDrom to this very old PC. The OS of
   this PC is 4-Stable.
  
  I don't think it'll work for that - too bastardized.
  I don't know what they did but they might have
  changed the pinout or something so that it
  was only compatible with Creative CD-ROMs. In the
  best case, if you got it to work, it would be
  deathly slow.
 
 Too bad, as the soundcard itself seems to be
 recognized properly by 5-Stable:
 
  You could always try... but as I recall you did, and it didn't work. 
Maybe worth googling for, but if you've got a working PCI slot, a cheap
IDE card should be many times faster.  The Creative ISA card was
designed in an era when a fast CD-ROM was 2x, not 52x.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Need help with a swap file

2005-04-27 Thread Clifton Royston
On Wed, Apr 27, 2005 at 08:18:40PM -0400, Lisa Casey wrote:
 I think I screwed up. Perhaps someone here can help me. I need more swap
 space on my FreeBSD 4.6 box. I followed the directions at
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swap-space.html
 for Creating a swapfile for FreeBSD 4.X.  The example given in the
 handbook was for a 64 MG swapfile. I wanted to create a 200 MG swapfile. So
 for the command in the example that says:
 # dd if=/dev/zero of=/usr/swap0 bs=1024k count=64
 I typed instead:
 # dd if=/dev/zero of=/usr/swap0 bs=1024k count=200

  I would just about bet you typoed the k and instead typed 
   ... bs=1024 count=200

  This would have resulted in a 200Kb file, which is exactly what
you've got below.
 
...
 When I look at the size of the swap0 file I created in /usr, it is not the
 200 MG I thought I was getting:
 
 -rw---1 root  wheel  204800 Apr 27 15:58 swap0
 
 How can I undo this and redo it? What do I need to do to do it RIGHT this
 time??

from man swapon on 4.x

BUGS

 There is no way to stop paging and swapping on a device.  It is therefore
 not possible to dismount swap devices which are mounted during system
 operation.

  Regrettably, you will need to shutdown your system and reboot it to
clear this problem.  Assuming you haven't put anything vn-related into
your startup or your fstab, it will come up with only the previous swap
you had configured.

  All the steps you followed looked right, so after rebooting if you go
through it again, you should be fine.  Next time just make sure you
really get a 200MB file before you turn it into a vn device.  

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Audit tools?

2005-04-24 Thread Clifton Royston
On Sun, Apr 24, 2005 at 01:08:55PM -0700, Jay O'Brien wrote:
 Erik Trulsson wrote:
  On Sun, Apr 24, 2005 at 08:02:39AM -0700, Jay O'Brien wrote:
 What are the tools that I should use to audit an existing 
 FreeBSD installation? Without changing anything, I wish 
 to quickly determine what is installed, i.e., the basic 
 system, ports and packages, and then to compare what is 
 installed to the currently available versions. 
  
  For ports/packages you can use pkg_info(1) to see what is installed,
  and pkg_version(1) to compare what is installed to what is in the ports
  tree.
  
  For the base system there is no corresponding way to see what is
  installed or not.  'uname -a' will show which version of FreeBSD is
  installed, but after that you will have to check manually to see if all
  components are installed or not.
 Erik,
 Thanks; I was hoping that there were some additional tools that 
 I hadn't found so far. At least you have confirmed that I'm 
 following a reasonable procedure. 
 Jay 

  You can check out the portupdate package, but of course if it's not
already installed, it doesn't meet your criteria of without changing
anything.

  BTW, the above discussion is assuming you mean audit in the taking
an inventory sense.  If you're talking about audit in the security
sense, the above doesn't do it, and you need to look at tools like
mtree (should be there as built-in), Tripwire (extra package), etc.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OT: HTTP response handling - date correction in the client?

2005-04-24 Thread Clifton Royston
On Sat, Apr 23, 2005 at 12:43:48PM -0400, Louis LeBlanc wrote:
 This is OT, I know, but there's gotta be someone on this list that
 knows the various HTTP specs better than I do.  I do know them better
 than your average bear, at least, but apparently not as well as I
 thought.
 
 I seem to remember reading in a spec, some time ago, details of date
 correction performed on responses received from a server with a skewed
 system clock or to account for extended network latency.
 
 Well, now I can't find the details of this date correction.  RFC 1945
 and 2616 don't mention much detail, but I know it was discussed
 somewhere.  I just can't remember where.  Unfortunately, my
 predecessor didn't mention the spec he used in the commentary.  In
 fact, he didn't put any commentary on the subject at all.
 
 Any pointers would be appreciated.  I have googled, and searched W3C,
 but the results weren't very helpful.

  You might try the squid website and/or mailing list archives, as date
issues greatly affect cacheability.  They have (or used to) a
cacheability tester on their website which checks dates.  As a last
resort, try subscribing and posting your query to that mailing list.

  I used to be active on it years back but have been doing other stuff
more recently.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: need help pls asap

2005-04-23 Thread Clifton Royston
On Sat, Apr 23, 2005 at 06:12:39AM -0700, angelito munez wrote:
 hi guys.. ok.. this is actually the problem.. the isp give us a
 public ip.. then it was assigned to the ADSL router.. then at the
 router, DCHP is enabled... so this means that my freebsd box is
 inside a private network with ip 172.16.16.2.. router has the private
 ip 172.16.16.1.. the router itself is doing a NAT because it has a
 real ip of 62.215.85.228... now what i want to do is to make another
 private network with the freebsd as their gateway so that i can make
 some rules for this network.. and this should also act as their
 firewall.. now i have already configured the 2 network interfaces
 which is vr1 (172.16.16.2 - for the router's network) and vr0
 (192.168.0.1 - for another private network)... 
...
 the problem is i
 have one host in my private network having an ip of 192.168.0.2 and i
 can't ping this host.. what is the problem? i dont have any firewall
 rules to
...
 Routing tables
 Internet:
 DestinationGatewayFlagsRefs  Use  Netif Expire
 default172.16.16.1UGSc1   90vr1
 127.0.0.1  127.0.0.1  UH  0   49lo0
 172.16.16/24   link#2 UC  20vr1
 172.16.16.100:0f:3d:87:9c:51  UHLW1   12vr1   1200
 172.16.16.400:0b:db:95:89:a0  UHLW1 1912vr1   1081
 192.168.0  link#1 UC  20vr0
 192.168.0.100:11:95:90:c6:b6  UHLW0   18lo0
 192.168.0.200:11:5b:2b:24:20  UHLW00vr0   1188
 can you help me with this problem?

Looks to me like you have the DMZ network (172.16.16.0/24) configured
correctly on this machine, but the extra-private network (192.168.0/24)
is misconfigured on this machine.

To start with, you need to get it to where you can ping each machine
from this one, so you're going in the right direction. 

Try using ifconfig to delete the current config for 192.168.0, then
simply ifconfig 192.168.0.1 onto vr0; that should get you to where you
can talk onto both networks from this machine.  

Once that's working, then you can try adding NAT to route from the
extra-private network onto the DMZ; when you get that working, it
should work end-to-end. (Except for protocols like FTP which require
NAT proxies; that may get complicated what with needing to go through
2 in succession.)

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: backup FreeBSD system

2005-04-21 Thread Clifton Royston
On Thu, Apr 21, 2005 at 04:03:37PM -0700, Joshua Lewis wrote:
 I have a working FreeBSD system that I love and...(Wow saying out loud I
 think I may need to seek a professional). Any way I would hate to loose it
 and was wondering if there is a way to make a duplicate system without
 weeks of configuration. Kind of like RAID Mirroring for a computer?
...
 I am probably going to load FreeBSD from scratch. Not hard at all. I can
 be done in a matter of 20 mins

  ISTR it takes a bit more time than that to install the base system,
but it's not too bad.

  Here's how I would probably do what you want to do:

 * Buy the second system with exact duplicate hardware.

 * Install FreeBSD on it from sysinstall as you said, partitioning the
drive the same way as your previous system and newfsing all the
partitions.
 
 * Shut down both systems to power off, pull the hard drive out of the
new system, and mount it temporarily into the working system as a
second drive.

 * Boot it up into FreeBSD, in single-user mode, and mount all the file
systems, including mounting all the file systems on the new drive onto
temporary mount points.

 * Use rsync to clone each file system from the working system to the
corresponding partition on the new system.  (This should go fast if
you've already installed the base system, as most files will already be
there and be identical.)

 * Shut it down and remove the new drive.

 * Reboot the working system as normal.

 * Restore the drive to the second system, and it should boot up as an
exact clone of the working system.  Then you'll just need to edit the
hostname and IP address in rc.conf (and any application config files
that reference them) before you put it onto the network.  (Oh, and
clean out the logs in /var, as it will have picked up the logs and
history of the first system.)

 * Done.

  This should get you a system that in every respect but name and IP
functions as a clone of your existing one, and it should be pretty fast
to do.
  
  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gnome2 over an ssh2 connection

2005-04-20 Thread Clifton Royston
On Wed, Apr 20, 2005 at 04:01:27AM -0700, Loren M. Lang wrote:
 On Mon, Apr 18, 2005 at 09:46:10PM -0700, Joshua Lewis wrote:
  I connect to my FreeBSD system from a PowerBook and was wondering (mostly
  for fun) if I can run Gnome2 or KDE or something within a Terminal
  connection on my PowerBook.
 
 Yes, but you need an X server for your power book.  Apple has a copy of
 XFree86 available on their website, I'd recomend installing it.

  Getting OT here, but if you bought a recent version (OS X 10.2 or
later) it's on the extra DVD that came with the hardware and OS.  I
installed X for my daughter's iBook last summer so she could run
OpenOffice.
 
  It is indeed perfectly feasible to run X apps over the network,
that's what it was designed for.
  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problem linking MySQL 4.1.11 via FreeBSD 4.10 ports

2005-04-19 Thread Clifton Royston
 -DHAVE_GLIBC2_STYLE_GETHOSTBYNAM
E_R -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -L/usr/local/lib -l
lthread -llgcc_r -lcrypt -lm  -DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE
 -I/usr/local/include/pthread/linuxthreads -L/usr/local/lib -llthread -llgcc_r
cc -DDBUG_OFF -DNEWSALT -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I/usr/local/
include/pthread/linuxthreads -DNEWSALT -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAF
E -I/usr/local/include/pthread/linuxthreads -felide-constructors -fno-rtti -fno-
exceptions -fno-implicit-templates -fno-exceptions -fno-rtti -DMYSQLD_NET_RETRY_
COUNT=100 -o mysqld sql_lex.o sql_handler.o item.o item_sum.o item_buff.o it
em_func.o item_cmpfunc.o item_strfunc.o item_timefunc.o thr_malloc.o item_create
.o item_subselect.o item_row.o item_geofunc.o field.o strfunc.o key.o sql_class.
o sql_list.o net_serv.o protocol.o sql_state.o lock.o my_lock.o sql_string.o sql
_manager.o sql_map.o mysqld.o password.o hash_filo.o hostname.o set_var.o sql_pa
rse.o sql_yacc.o sql_base.o table.o sql_select.o sql_insert.o sql_prepare.o sql_
error.o sql_update.o sql_delete.o uniques.o sql_do.o procedure.o item_uniq.o sql
_test.o log.o log_event.o init.o derror.o sql_acl.o unireg.o des_key_file.o disc
over.o time.o opt_range.o opt_sum.o records.o filesort.o handler.o ha_heap.o ha_
myisam.o ha_myisammrg.o ha_berkeley.o ha_innodb.o ha_isam.o ha_isammrg.o ha_ndbc
luster.o sql_db.o sql_table.o sql_rename.o sql_crypt.o sql_load.o mf_iocache.o f
ield_conv.o sql_show.o sql_udf.o sql_analyse.o sql_cache.o slave.o sql_repl.o sq
l_union.o sql_derived.o client.o sql_client.o mini_client_errors.o pack.o stackt
race.o repl_failsafe.o gstream.o spatial.o sql_help.o protocol_cursor.o tztime.o
 my_time.o ha_example.o ha_archive.o ha_tina.o ha_blackhole.o -DHAVE_GLIBC2_STYL
E_GETHOSTBYNAME_R -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -DHAV
E_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I/usr/local/include/pthread/linux
threads  -L/usr/ports/databases/mysql41-server/work/mysql-4.1.11/bdb/build_unix
-ldb ../innobase/usr/libusr.a ../innobase/srv/libsrv.a ../innobase/dict/libdict.
a ../innobase/que/libque.a ../innobase/srv/libsrv.a ../innobase/ibuf/libibuf.a .
./innobase/row/librow.a ../innobase/pars/libpars.a ../innobase/btr/libbtr.a ../i
nnobase/trx/libtrx.a ../innobase/read/libread.a ../innobase/usr/libusr.a ../inno
base/buf/libbuf.a ../innobase/ibuf/libibuf.a ../innobase/eval/libeval.a ../innob
ase/log/liblog.a ../innobase/fsp/libfsp.a ../innobase/fut/libfut.a ../innobase/f
il/libfil.a ../innobase/lock/liblock.a ../innobase/mtr/libmtr.a ../innobase/page
/libpage.a ../innobase/rem/librem.a ../innobase/thr/libthr.a ../innobase/sync/li
bsync.a ../innobase/data/libdata.a ../innobase/mach/libmach.a ../innobase/ha/lib
ha.a ../innobase/dyn/libdyn.a ../innobase/mem/libmem.a ../innobase/sync/libsync.
a ../innobase/ut/libut.a ../innobase/os/libos.a ../innobase/ut/libut.a ../myisam
/libmyisam.a ../myisammrg/libmyisammrg.a ../heap/libheap.a ../vio/libvio.a ../my
sys/libmysys.a ../dbug/libdbug.a ../regex/libregex.a ../strings/libmystrings.a -
lz -lwrap -L/usr/local/lib -llthread -llgcc_r -lcrypt -lm -llthread -llgcc_r
../innobase/srv/libsrv.a(srv0srv.o): In function `srv_get_n_threads':
srv0srv.o(.text+0x2a1): undefined reference to `mutex_enter_func'
srv0srv.o(.text+0x2de): undefined reference to `mutex_exit'
../innobase/srv/libsrv.a(srv0srv.o): In function `srv_get_thread_type':
srv0srv.o(.text+0x89a): undefined reference to `mutex_enter_func'
srv0srv.o(.text+0x8e0): undefined reference to `mutex_exit'
../innobase/srv/libsrv.a(srv0srv.o): In function `srv_init':
srv0srv.o(.text+0x90a): undefined reference to `mem_alloc_func'

and then on for page after page of undefined reference errors.

  I will be happy to provide more detail if helpful; right now I am
feeling like I must be an idiot and overlooking something obvious, but
can not find the evidence to convict me of that.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem linking MySQL 4.1.11 via FreeBSD 4.10 ports

2005-04-19 Thread Clifton Royston
On Tue, Apr 19, 2005 at 02:02:39PM -1000, Clifton Royston wrote:
   When I try to make the current port of the MySQL 4.1 server under
 FreeBSD 4.10, I get a huge stream of undefined reference errors at
 the link step for mysqld. 

More factoids - the same error continues to happen:

  * After rebuilding libtool 1.5.10 to make sure it's OK, as suggested
to me offlist.

  * After rebuilding the linuxthreads port to make sure the library is
OK.

  * After trying the same with MySQL 4.0 (mysql40-server) to make sure
it's not a ports problem specific to 4.1.

  I started doing a bunch of find ... | xargs grep 'mutex_enter_func'
and the like for the undefined symbols, and it appears that at least
some of the problematic functions I'm looking at are defined internal
to MySQL's libraries, and are intended to be inlined.  However clearly
they can't be succeeding, or they wouldn't be showing up as external
references to the link phase.

  The function mutex_enter_func and some similar ones, for instance,
are defined in files with a .ic extension - C files with heavy
inlining of assembler - and they are defined with type UNIV_INLINE. 
In innobase/include/univ.i this shows up thus:

#if (!defined(UNIV_DEBUG)  !defined(INSIDE_HA_INNOBASE_CC)  
!defined(UNIV_MUST_NOT_INLINE))
/* Definition for inline version */

#ifdef __WIN__
#define UNIV_INLINE __inline
#else
/* config.h contains the right def for 'inline' for the current compiler */
#if (__GNUC__ == 2)
#define UNIV_INLINE  extern inline
#else
/* extern inline doesn't work with gcc 3.0.2 */
#define UNIV_INLINE static inline
#endif
#endif

#else
/* If we want to compile a noninlined version we use the following macro
definitions: */

#define UNIV_NONINL
#define UNIV_INLINE

#endif  /* UNIV_DEBUG */
 
  ... so I can see that gcc 2.95 and gcc 3.3 would be handled quite
differently by these conditional defines.  I am starting to think this
might be a toolchain issue, where the ports have gotten out of sync
with what the default build environment is for 4.1.

  Can anyone please verify for me that the mysql40-server and/or
mysql41-server ports actually *do* build under gcc 2.95.4 as installed
on a fresh-out-of-box 4.x system?

  I'd really rather not have to upgrade the compiler toolchain just to
build this port.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem linking MySQL 4.1.11 via FreeBSD 4.10 ports

2005-04-19 Thread Clifton Royston
On Tue, Apr 19, 2005 at 05:22:29PM -1000, Clifton Royston wrote:
   ... so I can see that gcc 2.95 and gcc 3.3 would be handled quite
 differently by these conditional defines.  I am starting to think this
 might be a toolchain issue, where the ports have gotten out of sync
 with what the default build environment is for 4.1.
 
   Can anyone please verify for me that the mysql40-server and/or
 mysql41-server ports actually *do* build under gcc 2.95.4 as installed
 on a fresh-out-of-box 4.x system?
 
   I'd really rather not have to upgrade the compiler toolchain just to
 build this port.
...

  Oops, I hate to follow up to myself, but there were a couple rather 
confusing typos and wording problems in the last few paragraphs.  

  What I meant to say first, is that it seems to me this might be a
toolchain problem, in that the ports may not be specifying the *extra*
build requirements needed to build them starting from the default build
environment for FreeBSD 4.x? ( Not for 4.1!)

  And last, I meant to say I'd rather not upgrade the compiler unless
*necessary* to get MySQL running - I will if I have to.

  I have seen a number of people post about running MySQL on FreeBSD,
though, and I haven't seen any mention that it's now necessary to
upgrade GCC first, so I am still puzzled why I seem to be the only one
running into this.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide...
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]