Re: make, list and M pattern

2009-04-07 Thread Mel Flynn
On Tuesday 07 April 2009 21:54:13 Boris Samorodov wrote:
> Hello List,
>
>
> I need to create a list with some valid values and check an input
> value. Should this makefile work?
> -
> LIST=f8 f9
>
> all:
>   @echo USE_LINUX=${USE_LINUX}, LIST=${LIST}
> .if empty(LIST:M${USE_LINUX})
>   @echo The value is invalid
> .else
>   @echo The value is valid
> .endif
> -
> % make USE_LINUX=f8
> USE_LINUX=f8, LIST=f8 f9
> The value is invalid
> -

Doesn't work because the match is not on words of the list but on the full 
list and you're not using globs.
Aside from Giorgos' method, one might consider:
LIST=f8 f9
LINUX_VER=invalid

.for _VERSION in ${LIST}
.if (${USE_LINUX} == "${_VERSION}")
LINUX_VER=${_VERSION}
.endif
.endfor

all:
.if !empty(LINUX_VER:Minvalid)
@echo "Invalid linux version: ${USE_LINUX}"
.else
@echo "Using linux version ${LINUX_VER}"
.endif

-- 
Mel
___
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: Copying files without scp

2009-04-07 Thread Mel Flynn
On Wednesday 08 April 2009 01:31:18 Steve Bertrand wrote:
> Doug Hardie wrote:
> > On Apr 7, 2009, at 16:13, Steve Bertrand wrote:
> >> Hi all,
> >>
> >> To copy data from one server, I normally (always) use scp.
> >>
> >> I'm looking for a method to perform this copy task without the overhead
> >> of encryption for infrequent, high-volume transfers (hundreds to
> >> thousands of GB).
> >>
> >> The data will be transferred server-to-server within a private
> >> datacentre.
> >>
> >> Can someone recommend a *known good* production quality copy mechanism
> >> that will act like scp, but without the overhead? rsh? nc?
> >
> > In that environment you can use ftp just fine.  Make sure to restrict it
> > to the local IP addresses.
>
> Thanks, but I've never found a way to copy complete directories with FTP.
>
> I'll need to copy entire multi-nested directory structures.
>
> Do you have an example how to do this via FTP? (CLI-only).

ftp/ncftp3: ncftpget -R ftp://servername/path/to/start/
-- 
Mel
___
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: Mysql make question

2009-04-07 Thread Mel Flynn
On Wednesday 08 April 2009 02:30:03 Lars Eighner wrote:
> On Tue, 7 Apr 2009, Dave Stegner wrote:
> > I am venturing into Mysql.  I am trying to install it from the port,
> > 5.1.33.
> >
> > Simple question:
> >
> > Immediately after the start of make, you are presented with a list of
> > options.
> >
> > Are those options selected by entering them on the make line like:
> >
> > make BUILD_OPTIMIZED=yes BUILD_STATIC=yes
>
> Yes.  Note however that test in most cases is only for the *existence*
> of the argument, so WITH_OPENSSL="yes" is the same as WITH_OPENSSL="no";

In those cases you can also use -DWITH_OPENSSL.
-- 
Mel
___
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: Koffice in KDE-4.2.2

2009-04-07 Thread Odhiambo Washington
On Tue, Apr 7, 2009 at 7:07 PM, Roland Smith  wrote:

> On Tue, Apr 07, 2009 at 06:54:02PM +0300, Odhiambo Washington wrote:
> > Hello pple,
> >
> > I installed KDE-4.2.2 but I cannot see the office apps. What am I
> missing?
>
> The Koffice version for KDE-4 is still in beta.
>
> Looking at the ports tree, there is only the
> /usr/ports/editors/koffice-kde3 port (except from a lot of localization
> ports).


So it is not installed by default when I:

cd /usr/ports/x11/kde4 && make all install clean ???


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"Clothes make the man.  Naked people have little or no influence on
society."
  -- Mark Twain
___
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: Copying files without scp

2009-04-07 Thread Frederique Rijsdijk

Steve Bertrand wrote:

Hi all,

To copy data from one server, I normally (always) use scp.

I'm looking for a method to perform this copy task without the overhead
of encryption for infrequent, high-volume transfers (hundreds to
thousands of GB).

The data will be transferred server-to-server within a private datacentre.

Can someone recommend a *known good* production quality copy mechanism
that will act like scp, but without the overhead? rsh? nc?



On the listening end:
cd / ; nc -l 12345 | tar xpvf -

On the sending end:
cd / ; tar cf - /path/file | nc  12345

Replace 'x' by 't' on the listening end to verify that it's going to do 
what you would want/expect.



-- Frederique

___
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: Migration to 7.1 ?

2009-04-07 Thread Frank Bonnet
Ewald Jenisch wrote:
>>> Does the LAGG driver works well with broadcomm giga ethernet chips ?
>>> ( I plan to use LACP to a Cisco switch )
>> Try asking at freebsd-net@
>>
> 
> Hi,
> 
> I've been running with the lagg-driver for quite some time now on
> several blade-systems using broadcom chips in a failover
> configuration - no problems whatsoever - failover/fallback all ok.
> 
> LACP shouldn't be a problem either - on the Cisco side define a port
> channel using LACP plus optional a balancing strategy (like mac-based etc.)
> 
> HTH
> -ewald
> 


Hello

Thanks for your feedback

Frank
> 
> 
> ___
> 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"

___
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: Copying files without scp

2009-04-07 Thread Olivier Nicole
Hi,

> Can someone recommend a *known good* production quality copy mechanism
> that will act like scp, but without the overhead? rsh? nc?

I sometime use tar+rsh. Tar because I want to be sure to preserve all
ownership and modes of the files and directories.

Bests,

olivier
___
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"


powerd

2009-04-07 Thread David Collins
Hi,

I have just realised that my computer is making a ton of noise, and I
would like it to make less. I have the following in my rc.conf

powerd_enable="YES"
powerd_flags="-a minimum"

I have checked that cpufreq is loaded using kldload. When I run powerd
from the command line I get the following

viper:~$ sudo powerd
powerd: lookup freq: No such file or directory

I also have the following

viper:~$ sysctl dev.cpu
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.CPU_
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.cx_supported: C1/0
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00%
dev.cpu.1.%desc: ACPI CPU
dev.cpu.1.%driver: cpu
dev.cpu.1.%location: handle=\_PR_.CPU1
dev.cpu.1.%pnpinfo: _HID=none _UID=0
dev.cpu.1.%parent: acpi0
dev.cpu.1.cx_supported: C1/0
dev.cpu.1.cx_lowest: C1
dev.cpu.1.cx_usage: 100.00%

I've googled this but not managed to find a solution. How can I get
this to work?

thanks
David
___
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: Mysql make question

2009-04-07 Thread Lars Eighner

On Tue, 7 Apr 2009, Dave Stegner wrote:



I am venturing into Mysql.  I am trying to install it from the port, 5.1.33.

Simple question:

Immediately after the start of make, you are presented with a list of
options.

Are those options selected by entering them on the make line like:

make BUILD_OPTIMIZED=yes BUILD_STATIC=yes


Yes.  Note however that test in most cases is only for the *existence*
of the argument, so WITH_OPENSSL="yes" is the same as WITH_OPENSSL="no";
If you don't want WITH_OPENSSL, don't use the argument at all.  Obviously
there are a few which actually use the value like WITH_XCHARSET.

It will pay to learn to read Makefiles well enough to see what arguments the
Makefile accepts and what it tests them for.  In this case you will see
that most arguments are tested only for defined.

Many ports give you a nice interface to set options and remember some
options for future builds.  You can set these by running make config.
But no joy with mysql.


Sorry for such a simple question but, I searched and could not find
answer.


In most cases the defaults are good.  Unless you are already familiar with
the application and know what you want and why you want it, it is generally
best to leave the defaults alone.

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
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"


Presenting Yale as a new client

2009-04-07 Thread Daniel Daboczy - DABBER . tv

Presenting Yale as a new client

We are very proud to present a new collaboration with Yale

Dabber presents it´s biggest player so far and is proud to introduce the 
collaboration with the global company Assa-Abloy and the brand Yale Locks. The 
42 films in the Yale Feeling Safe project about safety, security, favourite 
places and favourite things are developed to show that all over the world, 
people are actively securing what they care about; their home, their family, 
their personal belongings or their business with the name they trust.

We have focused on developing the player for faster delivery and smoother user 
interaction. The present times calls for smart, cost effective and innovative 
ways to connect with the audience.

What we can do for you:
If you as some of our clients are looking for the 'wow-factor', or need to 
start implementing video in your business or if you need our different approach 
to take the step from idea to a well-visited website. Whatever the need, Dabber 
is ready to take you from static to stunning!

If you are interested in our services, big or small please contact us. We are 
based in Stockholm Sweden and work globaly on changing the way we communicate.


Visit the web site Yale - Feeling Safe to try out the player: here

/Daniel Daboczy
CEO Dabber.tv


___
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"


Mysql make question

2009-04-07 Thread Dave Stegner

I am venturing into Mysql.  I am trying to install it from the port, 5.1.33.

Simple question:

Immediately after the start of make, you are presented with a list of options.

Are those options selected by entering them on the make line like:

make BUILD_OPTIMIZED=yes BUILD_STATIC=yes


Sorry for such a simple question but, I searched and could not find answer.




David R. Stegner
___
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: openoffice.org-3.01 packages available (i386)

2009-04-07 Thread Glen Barber
Manolis,

Thanks again for taking the time for this.

[snip]

>
> The site does not yet contain any other pages or info, as Glen is still
> working on the web content.
>
> Please send us your feedback (including problems, suggestions and
> success stories!) either on the list or directly.  If this proves to be
> successful, we could also build and host other packages as well.
>


Any problems with the site, please contact me so I can notify my
hosting provider, as I don't have physical access to the server.


Thanks!

-- 
Glen Barber
___
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: Copying files without scp

2009-04-07 Thread Steve Bertrand
Chuck Swiger wrote:
> On Apr 7, 2009, at 4:13 PM, Steve Bertrand wrote:
>> I'm looking for a method to perform this copy task without the overhead
>> of encryption for infrequent, high-volume transfers (hundreds to
>> thousands of GB).
>>
>> The data will be transferred server-to-server within a private
>> datacentre.
>>
>> Can someone recommend a *known good* production quality copy mechanism
>> that will act like scp, but without the overhead? rsh? nc?
> 
> Install /usr/ports/security/openssh-portable, and set the "Enable
> HPN-SSH patch" option.  You should then be able to use "scp -c none"
> option, which is documented more fully here:
> 
>   http://www.psc.edu/networking/projects/hpn-ssh/none.php
> 
> You could also use rsync + rsyncd

Thanks Chuck,

I think I'll just go the rsync route. I'm very familiar with it. I don't
particularly want to install it on the boxes I'm concerned with
momentarily, but I know how it works.

Your other option seems intriguing, but I'd rather not install more
software on these boxes if possible.

I was hoping for a magical, don't have to install anything-type solution :)

Perhaps I left out an important piece... even though I'm copying
directory structures, in many cases the bulk of the data will be
contained within massively large individual files. (Hence why rsync
wasn't my original choice).

Steve
___
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: Copying files without scp

2009-04-07 Thread Chuck Swiger

On Apr 7, 2009, at 4:13 PM, Steve Bertrand wrote:
I'm looking for a method to perform this copy task without the  
overhead

of encryption for infrequent, high-volume transfers (hundreds to
thousands of GB).

The data will be transferred server-to-server within a private  
datacentre.


Can someone recommend a *known good* production quality copy mechanism
that will act like scp, but without the overhead? rsh? nc?


Install /usr/ports/security/openssh-portable, and set the "Enable HPN- 
SSH patch" option.  You should then be able to use "scp -c none"  
option, which is documented more fully here:


  http://www.psc.edu/networking/projects/hpn-ssh/none.php

You could also use rsync + rsyncd

Regards,
--
-Chuck

___
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: Copying files without scp

2009-04-07 Thread Steve Bertrand
Doug Hardie wrote:
> 
> On Apr 7, 2009, at 16:13, Steve Bertrand wrote:
> 
>> Hi all,
>>
>> To copy data from one server, I normally (always) use scp.
>>
>> I'm looking for a method to perform this copy task without the overhead
>> of encryption for infrequent, high-volume transfers (hundreds to
>> thousands of GB).
>>
>> The data will be transferred server-to-server within a private
>> datacentre.
>>
>> Can someone recommend a *known good* production quality copy mechanism
>> that will act like scp, but without the overhead? rsh? nc?
> 
> In that environment you can use ftp just fine.  Make sure to restrict it
> to the local IP addresses.

Thanks, but I've never found a way to copy complete directories with FTP.

I'll need to copy entire multi-nested directory structures.

Do you have an example how to do this via FTP? (CLI-only).

Steve

___
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: Copying files without scp

2009-04-07 Thread Doug Hardie


On Apr 7, 2009, at 16:13, Steve Bertrand wrote:


Hi all,

To copy data from one server, I normally (always) use scp.

I'm looking for a method to perform this copy task without the  
overhead

of encryption for infrequent, high-volume transfers (hundreds to
thousands of GB).

The data will be transferred server-to-server within a private  
datacentre.


Can someone recommend a *known good* production quality copy mechanism
that will act like scp, but without the overhead? rsh? nc?


In that environment you can use ftp just fine.  Make sure to restrict  
it to the local IP addresses.

___
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: Copying files without scp

2009-04-07 Thread Adam Vandemore

Steve Bertrand wrote:

Hi all,

To copy data from one server, I normally (always) use scp.

I'm looking for a method to perform this copy task without the overhead
of encryption for infrequent, high-volume transfers (hundreds to
thousands of GB).

The data will be transferred server-to-server within a private datacentre.

Can someone recommend a *known good* production quality copy mechanism
that will act like scp, but without the overhead? rsh? nc?

I recall a thread not too long ago regarding this, but I'd like to have
a simple working example if possible, without getting into detail why
one shouldn't transfer data unencrypted.

Steve
___
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"

  
dump should work, it uses rsh.  something like cpio could be piped into 
rsh obviously.  You may want to benchmark it as I've had better transfer 
rates using scp/ssh but have not done it against rsh method.


--
Adam Vandemore
Systems Administrator
IMED Mobility
(605) 498-1610

___
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"


Copying files without scp

2009-04-07 Thread Steve Bertrand
Hi all,

To copy data from one server, I normally (always) use scp.

I'm looking for a method to perform this copy task without the overhead
of encryption for infrequent, high-volume transfers (hundreds to
thousands of GB).

The data will be transferred server-to-server within a private datacentre.

Can someone recommend a *known good* production quality copy mechanism
that will act like scp, but without the overhead? rsh? nc?

I recall a thread not too long ago regarding this, but I'd like to have
a simple working example if possible, without getting into detail why
one shouldn't transfer data unencrypted.

Steve
___
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: low-level format before install?

2009-04-07 Thread Michael Powell
John Almberg wrote:

> Thanks for all the tips. At least I have something to start with.
> 
> The guys in the data center reinstalled FreeBSD (the filesystem was
> totally corrupted again), and then ran what they called "SMART test",
> which might be smartctl, and said the hard drives look good.
> 
> I am now able to get back in.
> 
> So the system ran fine until I put a load on it with the database
> (many transactions a second). This corrupted the file system again.
> 
> So I guess I need to load it enough to produce error messages
> (hopefully) but not enough to destroy the file system again.
> 
> Sounds like fun :-(
> 
> This is an Intel server, not a crummy white box, so hopefully it is
> smart enough to monitor its own hardware at least a bit. We'll see.
> 

Just a tidbit or two. If it has an ICHR type South Bridge with what Intel 
calls "Matrix RAID" there has been reported problems with trying to use the 
RAID functionality. If you are not using the RAID make sure the data center 
guys are turning this off in the BIOS. 

Whenever I see these kinds of reports about data corruption correlating with 
SMART saying the drives are "good" I think disk controller. It does seem 
strange if the problem was not present previous to the "power fluctuations". 
But where hardware damage occurs can be funky. At least with the box I once 
had that took a direct lightning strike it was interesting to see where the 
lightening bounced around inside.

If this is a 1u pizza box with only one power supply I would suspect the 
power supply of being damaged from the power problem. If it is a relatively 
low wattage unit then the damage sustained has created a situation where it 
doesn't have enough overhead to provide regulated pure DC when under full 
load. 

I remember a software company I worked for a few years stuck the old WORM 
drives in an HP Vectra desktop that only had a 135 watt power supply. You 
could see the power go all wonky with an oscilloscope as soon as that WORM 
drive started up, but the box worked well up until this point. 

At any rate, this all sounds like hardware to me. If it wasn't doing any of 
this before the so-called "power event" then I believe there has been 
hardware damage. Unless you are co-locating your own hardware it is the 
responsibility of the data center to provide you with functional hardware. 
After the first go around and the same problem resurfacing they should have 
yanked the box and just replaced it. Put a good one in service and 
troubleshoot the bad one off line. If they can't hold up their end of the 
deal you need to be looking somewhere else.

-Mike




___
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: new package system proposal

2009-04-07 Thread Bob Johnson
On 4/4/09, Chris Whitehouse  wrote:
> Hi all
>
[...]
>
> My suggestion is to start with a ports tree that is fixed in time. Make
> that ports tree available as part of this package system and compile a
> typical desktop set of ports, particularly choosing ones which are large
> or have many dependencies. When it is all complete release it and start
> again. Surely quite a wide selection of desktops, wm's and apps could be
> compiled in a couple of weeks?

A lot of ports are already available as packages. Do you simply want
more ports available as packages, or a more fundamental change?

>
> Modify pkg_add so that it can be told to use this 'snapshot' including
> downloading the fixed ports tree that was used.

What is the benefit of this?

>
> Some benefits to this system are
> - much easier for lower power or laptop users to keep their desktop
> machine up to date

A large subset of ports are already available as packages. Would
making more of them available solve the problem you perceive? Who
would decide what the appropriate default configuration should be for
each port?

> - problems with particular ports can be centrally fixed by knowledgeable
> people, possibly reducing time on lists.

Huh? Aren't they already?

> - reduced energy use for everyone.

I think the difference in energy use would be so small as to be
pointless. If I have a system that consumes 75 kilowatt hours per
month, and I spend an extra 0.05 kilowatt hour per month updating
ports, is the difference (less than 1/10 of 1 percent) really
meaningful? I can't even measure my power usage accurately enough to
detect the difference. Convince me to use three liters less hot water
per month, and you will save more energy.

> - the ports system is still available for those who do want to change
> the config options
> - ports which are not included in the snapshot are still available -
> since this system has already provided the larger ports as packages, the
>   remaining ones would be less onerous to install

That's already done.

> - ports that are installed with make install would maintain
> compatibility with the other installed packages.

In what way are they now not compatible?

> - don't need to mess with portupgrade etc.

What's the significant difference between messing with pkg_add and
messing with portupgrade?

A large subset of ports are already available as packages, so it isn't
clear to me how this proposal is significantly improved over using
"portupgrade -PR _portname_" when a port needs updating. Or
"portupgrade -PRa" when you feel the urge to bring everything up to
date.

Installing and using portaudit is another useful step in the process.
It will send you email to tell you WHEN you should use portupgrade. Of
course, it uses energy to do so.

> - it could (I think) be fitted fairly well into the existing package
> building process.
> - it generally increases the useability of FreeBSD as a desktop system.
> [...]

How is it an improvement over the existing tools? I must be missing
something, because it sounds to me like you are merely asking that
there be more ports made available as packages than are now offered.

To me, the best way to improve FreeBSD as a desktop system would be to
get Flash 9, 10, etc. working properly (this seems to have recently
been accomplished for Flash 9), and to figure out how to get the
Gnome-related stuff to update smoothly without the constant need for
manual interference (I get tired of running gnomeloganalyzer). But
that's a discussion for a different thread.

-- 
-- Bob Johnson
   fbsdli...@gmail.com
___
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"


openoffice.org-3.01 packages available (i386)

2009-04-07 Thread Manolis Kiagias
Inspired by the recent discussion on the list concerning
openoffice.org-3.01 packages, I have created a set of packages for the
i386 architecture using my tinderbox system. Glen Barber has kindly
offered *lots* of his webspace to host these packages for everyone's
benefit.

These packages are available from the following location:

http://freebsd.dev-urandom.com/packages/openoffice/

And the main package to download would be:

http://freebsd.dev-urandom.com/packages/openoffice/openoffice.org-3.0.1.tbz

All the other packages are build and/or run dependencies of the above. 
On a system that already has a running GUI, most (if not all) of these
packages are probably installed already.

Please note the following:

* The openoffice.org-3.01 package was built using a tinderbox system
running 7.1-RELEASE-p4 i386. The ports tree was updated before the
build. As a result this package is in sync with the latest versions of
its dependencies and you may have trouble installing / running it in
systems with outdated packages. A portupgrade is recommended before
installation.

* All the dependencies are provided in the same directory.  It is
possible to use pkg_add -r to recursively fetch any dependencies not
present in your system:

- First, redefince the PACKAGESITE environment variable:
(assuming csh)

setenv PACKAGESITE http://freebsd.dev-urandom.com/packages/openoffice/

- Use pkg_add -r:

pkg_add -r openoffice.org-3.0.1.tbz

* The package and all dependencies were built with default options.

The site does not yet contain any other pages or info, as Glen is still
working on the web content.

Please send us your feedback (including problems, suggestions and
success stories!) either on the list or directly.  If this proves to be
successful, we could also build and host other packages as well.

Cheers,
Manolis
___
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: low-level format before install?

2009-04-07 Thread John Almberg

Thanks for all the tips. At least I have something to start with.

The guys in the data center reinstalled FreeBSD (the filesystem was  
totally corrupted again), and then ran what they called "SMART test",  
which might be smartctl, and said the hard drives look good.


I am now able to get back in.

So the system ran fine until I put a load on it with the database  
(many transactions a second). This corrupted the file system again.


So I guess I need to load it enough to produce error messages  
(hopefully) but not enough to destroy the file system again.


Sounds like fun :-(

This is an Intel server, not a crummy white box, so hopefully it is  
smart enough to monitor its own hardware at least a bit. We'll see.


-- John
___
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"


Presenting Yale as a new client

2009-04-07 Thread Daniel Daboczy - DABBER . tv

Presenting Yale as a new client

We are very proud to present a new collaboration with Yale

Dabber presents it´s biggest player so far and is proud to introduce the 
collaboration with the global company Assa-Abloy and the brand Yale Locks. The 
42 films in the Yale Feeling Safe project about safety, security, favourite 
places and favourite things are developed to show that all over the world, 
people are actively securing what they care about; their home, their family, 
their personal belongings or their business with the name they trust.

We have focused on developing the player for faster delivery and smoother user 
interaction. The present times calls for smart, cost effective and innovative 
ways to connect with the audience.

What we can do for you:
If you as some of our clients are looking for the 'wow-factor', or need to 
start implementing video in your business or if you need our different approach 
to take the step from idea to a well-visited website. Whatever the need, Dabber 
is ready to take you from static to stunning!

If you are interested in our services, big or small please contact us. We are 
based in Stockholm Sweden and work globaly on changing the way we communicate.


Visit the web site Yale - Feeling Safe to try out the player: here

/Daniel Daboczy
CEO Dabber.tv


___
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: make, list and M pattern

2009-04-07 Thread Giorgos Keramidas
On Tue, 07 Apr 2009 23:54:13 +0400, Boris Samorodov  wrote:
> Hello List,
>
> I need to create a list with some valid values and check an input
> value. Should this makefile work?
>
> -
> LIST=f8 f9
>
> all:
>   @echo USE_LINUX=${USE_LINUX}, LIST=${LIST}
> .if empty(LIST:M${USE_LINUX})
>   @echo The value is invalid
> .else
>   @echo The value is valid
> .endif
> -
> % make USE_LINUX=f8
> USE_LINUX=f8, LIST=f8 f9
> The value is invalid
> -

Hi Boris! :)

This is not exactly what you asked for, but you can probably loop
instead of trying to match regular expressions:

  keram...@kobe:/tmp$ cat -n Makefile
   1  LIST= f8 f9
   2  USE_LINUX?= f9
   3
   4  LINUX_VERSION= ${USE_LINUX:C/[ ]*([^ ]*)[ ]*/\1/}
   5
   6  .if defined(USE_LINUX)
   7  .for item in ${LIST}
   8  .if ${USE_LINUX} == ${item}
   9  RESULT= ${item}
  10  .endif
  11  .endfor
  12  .endif
  13
  14  all:
  15  .if empty(RESULT)
  16  @echo Version ${LINUX_VERSION} is not valid.
  17  .else
  18  @echo Valid version ${RESULT} selected.
  19  .endif
  keram...@kobe:/tmp$ make
  Valid version f9 selected.
  keram...@kobe:/tmp$ make -e USE_LINUX=f10
  Version f10 is not valid.
  keram...@kobe:/tmp$

___
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: portupgrade question

2009-04-07 Thread mv
On Tue, 7 April 2009 16:17:40 Jeffrey Goldberg wrote:
> On Apr 6, 2009, at 8:59 PM, Glen Barber wrote:
> > On Mon, Apr 6, 2009 at 9:55 PM, new_guy  wrote:
> >> Is there a way to use portupgrade without all the stopping for
> >> config questions?
> >
> > You could add:
> >
> >   BATCH=yes
> >
> > to /etc/make.conf.
>
> Or use the --batch command line option to portupgrade.
>
> Or use the -c option (as mentioned by someone else in this thread) to
> do all of the config questions up front.  I didn't know about that
> one.
>
> -j

Or use portconfig -a

My usual updating routine involves:

- update the ports tree using csup

- update the INDEX-x with the command "make index" in the 
directory "/usr/ports"

- download all the tarballs upfront with the command "portfetch -a -v"

- do all the configuration upfront with the command "portconfig -a"

- do an unattended compile/install of the ports with the 
command "portmaster -a -u -d -v"

The ports portconfig  & portfetch are part of sysutils/bsdadminscripts.

Portmaster can be found at ports-mgmt/portmaster.

It is possible to write a simple shell script that automatically does 
all of the above.  The only time attention is required is to enter data 
during the configuration process.

Cheers...

Marek

___
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: new package system proposal

2009-04-07 Thread Chris Whitehouse

Matthew Seaman wrote:

Chris Whitehouse wrote:

You've suggested solutions to a couple of Polytropon's objections, 
thank you. Do you think there is anough mileage in my suggestion to 
make it worth putting in front of some ports people? What would have

to happen to take it forward? I could rewrite the proposal more clearly.


Any well-considered proposal is interesting, and suitable fodder for the
freebsd-po...@... mailing list.  However you must be prepared for your 
ideas to undergo some fairly rigourous critique by people who have spent
a great deal of time in doing exactly the sort of operations you are 
talking
about.  It can be pretty daunting -- remember though that it is your 
/ideas/

that are being dissected: it's not a personal attack against you for having
the temerity to try and suggest something.

Also, as ever in the FreeBSD world, code speaks louder than words.  It's 
easy for anyone to come up with a proposal, hard to turn that into a 
prototype

that demonstrates the validity of your ideas.  Expect skepticism until you
have done that. 
I suspect it would be easier to implement than freebsd-update, as a 
good deal of the infrastructure already exists, and would have similar 
benefits. To start developing it would require a ports tree and a 
selection of packages compiled from that ports tree. 7.2 Release is 
coming up. Maybe the ports tree plus packages from that would be a 
good place to start.


freebsd-update and portsnap existed only on Colin Percival's own machines
for quite some time, and then they were made available through ports 
before being accepted into the core system.  That is the usual sort of 
progression

for any major new system modifications.

The infrastructure may well exist, but don't assume that there is any spare
capacity on it.  Getting time on the ports build cluster for running 
experiments

is not impossible, but it's somewhere way down the queue after the daily
work of building packages for the FTP sites and testing the effects of bug
fixes in the bsd.ports.mk infrastructure or important and highly 
interconnected
groups of ports like xorg or gnome.  Also, right before 7.2-RELEASE is 
probably

not the best time as that's when things are most hectic.  Right /after/
7.2-RELEASE would be better

I think your basic idea of snapshotting the ports tree at regular intervals
and building a self-consistent group of desktop related applications is a
pretty good one actually.  You need to work a bit on the details -- for
instance, is it worthwhile rebuilding (say) the X libraries if there have
been no changes to them since the previous snapshot?  Also, I'd take a good
look at exactly how the PC-BSD and Desktop-BSD groups deal with this 
problem.


Cheers,

Matthew



All your points and your encouragement taken on board, thank you. I have 
a bit of spare time next week so I am going to work on this then


thanks

Chris
___
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: low-level format before install?

2009-04-07 Thread Roland Smith
On Tue, Apr 07, 2009 at 03:44:20PM -0400, John Almberg wrote:
> Apparently, power was fluctuating drastically before they decided to  
> cut power, so a hardware problem is a definite possibility. A PSU  
> failure would not surprise me in the circumstances.
> 
> Assuming I can ever ssh in again, what log would hardware failures be  
> reported to?

Often hardware problems can lock up or reboot the machine without any
warning in the logs. :-( It is next to impossible for PC class hardware
to catch hardware failures. But sysutils/healthd or sysutils/mbmon might
help in that they monitor vital motherboard parameters, which can then
be logged. 

Some systems log thermal events through the ACPI system or via the
coretemp driver, in which case devd(8) should get them. See devd.conf(5)
in a recent 7-STABLE, this manpage was recently enhanced by yours truly.

Big programs like compilers randomly dying with a signal 11 (SIGSEGV,
segmentation violation) can be a sign of memory problems.

If someone has access to the machine, have them make sure there are no
loose connectors and that any expansion cards are properly seated.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpHStgkpenfi.pgp
Description: PGP signature


Re: portupgrade question

2009-04-07 Thread Jeffrey Goldberg

On Apr 6, 2009, at 8:59 PM, Glen Barber wrote:


On Mon, Apr 6, 2009 at 9:55 PM, new_guy  wrote:



Is there a way to use portupgrade without all the stopping for config
questions?



You could add:

  BATCH=yes

to /etc/make.conf.


Or use the --batch command line option to portupgrade.

Or use the -c option (as mentioned by someone else in this thread) to  
do all of the config questions up front.  I didn't know about that one.


-j



--
Jeffrey Goldberghttp://www.goldmark.org/jeff/

___
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"


make, list and M pattern

2009-04-07 Thread Boris Samorodov
Hello List,


I need to create a list with some valid values and check an input
value. Should this makefile work?
-
LIST=f8 f9

all:
@echo USE_LINUX=${USE_LINUX}, LIST=${LIST}
.if empty(LIST:M${USE_LINUX})
@echo The value is invalid
.else
@echo The value is valid
.endif
-
% make USE_LINUX=f8
USE_LINUX=f8, LIST=f8 f9
The value is invalid
-


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
___
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: low-level format before install?

2009-04-07 Thread Chuck Swiger

On Apr 7, 2009, at 12:44 PM, John Almberg wrote:
That sounds like either a hardware problem (ie CPU overheating or  
marginal PSU failing under production load), or less likely, some  
kind of software misconfiguration.  System logs would be useful to  
see whether any signs of trouble are being mentioned.


Apparently, power was fluctuating drastically before they decided to  
cut power, so a hardware problem is a definite possibility. A PSU  
failure would not surprise me in the circumstances.


Assuming I can ever ssh in again, what log would hardware failures  
be reported to?


Start with /var/log/messages and output of "dmesg" command.  Doing an  
"ls -ltr /var/log" and looking at others which have changed recently  
would also be advisable...


Regards,
--
-Chuck

___
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: low-level format before install?

2009-04-07 Thread Chuck Swiger

On Apr 7, 2009, at 12:15 PM, John Almberg wrote:
Well, I've got real problems with that database server that lost  
power over the weekend. We reloaded FreeBSD from scratch and then  
reinstalled mysql, and pf. I loaded up my database and switched over  
all my customer's websites. The database server ran fine for about 2  
minutes, and then died. At the moment, I can't even ssh into the  
machine, although they can get into it using a keyboard/monitor at  
the data center. In other words, sshd is not working.


That sounds like either a hardware problem (ie CPU overheating or  
marginal PSU failing under production load), or less likely, some kind  
of software misconfiguration.  System logs would be useful to see  
whether any signs of trouble are being mentioned.


I am now wondering what kind of format the FreeBSD install process  
does by default, and if it is possible to do a low level format,  
first, to block out any bad sectors (not sure if this is the right  
terminology).


I'm starting to get real depressed about this machine... You would  
think a top-tier data center could keep the power on...


SCSI drives support a standard mechanism called "format unit" to do a  
low-level format; ATA and SATA drives do not have a standard  
mechanism, but you might be able to find a utility from the  
manufacturer which can do such a thing.  It would not be expected that  
doing such would be helpful, as any modern drive has automatic  
mechanisms to replace bad sectors with spares transparently, at least  
until the drive has gotten to such a condition that it's out of spare  
sectors (in which case the entire drive is likely to be toast soon,  
anyway, and should be replaced ASAP).


However, if you do suspect drive problems, try installing and running  
smartctl from /usr/ports/sysutils/smartmontools, and do a self-test or  
two.


Regards,
--
-Chuck

___
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: low-level format before install?

2009-04-07 Thread Roland Smith
On Tue, Apr 07, 2009 at 03:15:59PM -0400, John Almberg wrote:
> Well, I've got real problems with that database server that lost  
> power over the weekend. We reloaded FreeBSD from scratch and then  
> reinstalled mysql, and pf. I loaded up my database and switched over  
> all my customer's websites. The database server ran fine for about 2  
> minutes, and then died. At the moment, I can't even ssh into the  
> machine, although they can get into it using a keyboard/monitor at  
> the data center. In other words, sshd is not working.
> 
> I am now wondering what kind of format the FreeBSD install process  
> does by default, and if it is possible to do a low level format,  
> first, to block out any bad sectors (not sure if this is the right  
> terminology).

What you could do is run a shell from the install CD, then fill the disk
with zeros using 'dd if=/dev/zero of=/dev/ bs=2m'.

As I understand it, modern hard disks cannot be low-level formatted by
the user. It is done at the factory. And bad blocks are re-allocated by
the built-in controller without user intervention. In fact, you'll only
see re-allocated blocks in the smartctl -a output (as
Reallocated_Sector_Ct) when the drive has exhausted its spare
sectors. In which case you'd better replace it, because it is failing.

> I'm starting to get real depressed about this machine... You would  
> think a top-tier data center could keep the power on...

Are you sure that the hardware isn't crapping out on you? At least run
smartctl -a on your disks to see if they failed any self test, and a
monitoring program like mbmon to check on temperatures and voltage
levels.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgp0KRVDmcbcc.pgp
Description: PGP signature


Re: low-level format before install?

2009-04-07 Thread John Almberg


On Apr 7, 2009, at 3:37 PM, Chuck Swiger wrote:


On Apr 7, 2009, at 12:15 PM, John Almberg wrote:
Well, I've got real problems with that database server that lost  
power over the weekend. We reloaded FreeBSD from scratch and then  
reinstalled mysql, and pf. I loaded up my database and switched  
over all my customer's websites. The database server ran fine for  
about 2 minutes, and then died. At the moment, I can't even ssh  
into the machine, although they can get into it using a keyboard/ 
monitor at the data center. In other words, sshd is not working.


That sounds like either a hardware problem (ie CPU overheating or  
marginal PSU failing under production load), or less likely, some  
kind of software misconfiguration.  System logs would be useful to  
see whether any signs of trouble are being mentioned.


Apparently, power was fluctuating drastically before they decided to  
cut power, so a hardware problem is a definite possibility. A PSU  
failure would not surprise me in the circumstances.


Assuming I can ever ssh in again, what log would hardware failures be  
reported to?


-- John
___
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"


low-level format before install?

2009-04-07 Thread John Almberg
Well, I've got real problems with that database server that lost  
power over the weekend. We reloaded FreeBSD from scratch and then  
reinstalled mysql, and pf. I loaded up my database and switched over  
all my customer's websites. The database server ran fine for about 2  
minutes, and then died. At the moment, I can't even ssh into the  
machine, although they can get into it using a keyboard/monitor at  
the data center. In other words, sshd is not working.


I am now wondering what kind of format the FreeBSD install process  
does by default, and if it is possible to do a low level format,  
first, to block out any bad sectors (not sure if this is the right  
terminology).


I'm starting to get real depressed about this machine... You would  
think a top-tier data center could keep the power on...


-- John

___
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: libc.so.6: ELF file OS ABI invalid

2009-04-07 Thread David Banning



You shoudn't see it with native ktrace.

Seems that you rewrote your linux(?) ldconfig database. It's not so hard
to restore. Remove /compat/linux/etc/ld.so.cache and rebuild it by
"sudo /compat/linux/sbin/ldconfig -r /compat/linux".


  

That worked. Thanks Boris.
___
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: What ELSE do I need to add to make.conf to avoid X ?

2009-04-07 Thread Roland Smith
On Tue, Apr 07, 2009 at 07:40:53AM -0700, Juri Mianovich wrote:
> 
> Just trying to install rrdtool on a server.
> 
> Do not want X.  Do not want X11.  Do not want Xorg.

> Oops.  Looks like I was going to get X11 anyway.
> 
> So, what other options do I need to add to make.conf in order to
> install a simple stats/database tool without hundreds and hundreds of
> MB of x11 ?

You should pick a tool that doesn't depend on X
components. From databases/rrdtool/Makefile:  

LIB_DEPENDS=freetype.9:${PORTSDIR}/print/freetype2 \
cairo.2:${PORTSDIR}/graphics/cairo \
png.5:${PORTSDIR}/graphics/png \
xml2.5:${PORTSDIR}/textproc/libxml2 \
pangocairo-1\.0.0:${PORTSDIR}/x11-toolkits/pango

and

USE_GNOME=  gnomehack

The cairo library depends on an Xorg component called xrender, unless
you build it with the WITHOUT_X11 variable defined, which is not the
default. See /usr/ports/graphics/cairo/Makefile.

Pango depends on some X components as well, unless compiled with the
WITHOUT_X11 variable defined. See /usr/ports/x11-toolkits/pango/Makefile.

So if you _really_ want no X related stuff at all, you'd better pick
something else, because cairo and pango are linked with several X
components. Check the required items for rrdtool on freshports
[http://www.freshports.org/databases/rrdtool/], and then follow the
links to the packages it depends on, and look at their
dependancies. You'll see a host of X related stuff. Maybe using
WITHOUT_X11=yes is sufficient to stop these dependencies, but I doubt if
that is a situation that has been well tested.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpmKJbB7TfaW.pgp
Description: PGP signature


New Flash9 Issue?

2009-04-07 Thread Roy Stuivenberg
Hello,

I upgraded xorg-server to 1.6.
In upgrading if found to < portupgrade -rf libxcb >
this took all night and day, so I thought why not rebuild everything,
and so I did. (stable 7.1/prerelease 7.2)
Everything went good, except for the Flash9 I found some time ago
on the internet, and now I get this error.
Step 1, discribes the manual to add Flash9.
Anyone encountered this problem yet?
Regards,
Roy.
-
rs-unix# cd /usr/ports/www/linux-flashplugin9 && make install clean
===>  linux-flashplugin-9.0r159 bsd.linux-apps.mk test failed: Invalid
component USE_LINUX_APPS=openssl.
*** Error code 1

Stop in /usr/ports/www/linux-flashplugin9.
--
##
Step 1: Enable Linux compatibility and linprocfs

Add linux_enable="YES" to /etc/rc.conf. Add
compat.linux.osrelease=2.6.16 to /etc/sysctl.conf. Add
OVERRIDE_LINUX_BASE_PORT=f8 to /etc/make.conf. Add this line
to /etc/fstab:

linproc /usr/compat/linux/proc linprocfs rw 0 0

Then run these commands:

mkdir -p /usr/compat/linux/proc
mount /usr/compat/linux/proc
/etc/rc.d/abi start
/etc/rc.d/sysctl start

Step 2: Update ports and install all the needed software

You will now need to install the following ports and their dependencies:

cd /usr/ports/emulators/linux_base-f8 && make install clean
cd /usr/ports/www/linux-flashplugin9 && make install clean
cd /usr/ports/www/nspluginwrapper && make install clean

Follow the nspluginwrapper instructions to enable all available plugins:

# nspluginwrapper -v -a -i
#

___
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: libc.so.6: ELF file OS ABI invalid

2009-04-07 Thread Boris Samorodov
On Tue, 07 Apr 2009 13:28:22 -0400 David Banning wrote:
> Boris Samorodov wrote:
> > On Tue, 7 Apr 2009 12:18:30 -0400 David Banning wrote:
> >   
> >> I get this error when I attempt to run acroread8;
> >   
> >> /compat/linux/bin/sh: error while loading shared libraries: 
> >> /usr/local/lib/libc.so.6: ELF file OS ABI invalid
> >> 
> >> I get the impression maybe acroread is attempting run a linux binary
> >> using a freebsd library - but I am not sure if this is so, or how to fix
> >> it. Any pointers would be appreciated.
> >
> > If you install it from ports/packages that definitely shouldn't happen.
> > Do you have some non-default environment like LD_LIBRARY_PATH?
> > You may use ktrace/kdump to diagnose the problem.
> >   
> ktrace/kdump appear to show an attempted access of libc.so.6 first
> from /usr/lib and then from /usr/lib/compat as well as some other lib
> directories.

That's bad. If you use native FreeBSD ktrace, then you should see
only using native libc. And if native ktrace tries to use /compat...
that's too bad. It shouldn't.

For tracing linux libs one sjould use linux_kdump. But that's another
story.

> There is not such a file in any of those directories. I have attempted
> to run ldconfig -R to rescan the directory and rebuild the hints file,
> but I am going astray here...

Well, that may be the curprit. Yur should never use ldconfig until
you *know* what you do. For linux libs only linux ldconfig is used
and with chroot (-r /compat/linux).

> the linux version of libc.so.6 -is- located in /usr/compat/linux/lib
> where is does not appear to look.

You shoudn't see it with native ktrace.

Seems that you rewrote your linux(?) ldconfig database. It's not so hard
to restore. Remove /compat/linux/etc/ld.so.cache and rebuild it by
"sudo /compat/linux/sbin/ldconfig -r /compat/linux".


HTH & WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
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: Question about forcing fsck at boottime

2009-04-07 Thread Doug Hardie


On Apr 7, 2009, at 02:34, Chris Rees wrote:


\
So, the answer is NO, it does NOT cause data CORRUPTION. A simple
reboot solved it? Really, you're advocating guaranteed extended
downtime every time there's a power outage, compared with a slight
chance of a slightly longer downtime while every other time it comes
almost straight up.

Any more replies, please, read the damned question.


You had better define data corruption then.  In my book data that is  
read and gives garbage back rather than the right data is corrupt.  It  
doesn't matter if it gets "fixed" by a reboot later.  Thats only  
helpful if you happen to notice that it needs a reboot.  If all you  
are interested in is toy systems then this type of problem is of no  
interest to you.  However, for those of us who run production systems  
where clients have paid for service this is a serious issue. 
 
___

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: libc.so.6: ELF file OS ABI invalid

2009-04-07 Thread David Banning

Tim Judd wrote:
On Tue, Apr 7, 2009 at 10:18 AM, David Banning 
> wrote:


I get this error when I attempt to run acroread8;

/compat/linux/bin/sh: error while loading shared libraries:
/usr/local/lib/libc.so.6: ELF file OS ABI invalid

I get the impression maybe acroread is attempting run a linux binary
using a freebsd library - but I am not sure if this is so, or how
to fix
it. Any pointers would be appreciated.


This looks like a Linux ELF file branding problem.

google://linux+elf+branding


but /usr/local/lib/libc.so.6 is the freebsd library, which it -is- branded;

# /usr/local/lib
# brandelf libc.so.6
File 'libc.so.6' is of brand 'FreeBSD' (9)

Acroread probably needs   /usr/compat/linux/lib/libc.so.6
if it is running as linux  - acroread itself is a shell script. My
thought is now to locate the binary that is executed and see
what it is brandelf'd as, but when I study the acroread script
I cannot appear to find a binary referenced.


___
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: libc.so.6: ELF file OS ABI invalid

2009-04-07 Thread David Banning

Boris Samorodov wrote:

On Tue, 7 Apr 2009 12:18:30 -0400 David Banning wrote:

  

I get this error when I attempt to run acroread8;



  

/compat/linux/bin/sh: error while loading shared libraries: 
/usr/local/lib/libc.so.6: ELF file OS ABI invalid



  

I get the impression maybe acroread is attempting run a linux binary
using a freebsd library - but I am not sure if this is so, or how to fix
it. Any pointers would be appreciated.



If you install it from ports/packages that definitely shouldn't happen.
Do you have some non-default environment like LD_LIBRARY_PATH?
You may use ktrace/kdump to diagnose the problem.
  
ktrace/kdump appear to show an attempted access of libc.so.6 first from 
/usr/lib and then from /usr/lib/compat as well as some other lib 
directories.


There is not such a file in any of those directories. I have attempted 
to run ldconfig -R to rescan the directory and rebuild the hints file, 
but I am going astray here...


the linux version of libc.so.6 -is- located in /usr/compat/linux/lib 
where is does not appear to look.

___
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: libc.so.6: ELF file OS ABI invalid

2009-04-07 Thread Boris Samorodov
On Tue, 7 Apr 2009 12:18:30 -0400 David Banning wrote:

> I get this error when I attempt to run acroread8;

> /compat/linux/bin/sh: error while loading shared libraries: 
> /usr/local/lib/libc.so.6: ELF file OS ABI invalid

> I get the impression maybe acroread is attempting run a linux binary
> using a freebsd library - but I am not sure if this is so, or how to fix
> it. Any pointers would be appreciated.

If you install it from ports/packages that definitely shouldn't happen.
Do you have some non-default environment like LD_LIBRARY_PATH?
You may use ktrace/kdump to diagnose the problem.


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
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: libc.so.6: ELF file OS ABI invalid

2009-04-07 Thread Tim Judd
On Tue, Apr 7, 2009 at 10:18 AM, David Banning <
david+dated+1239553110.eb1...@skytracker.ca
> wrote:

> I get this error when I attempt to run acroread8;
>
> /compat/linux/bin/sh: error while loading shared libraries:
> /usr/local/lib/libc.so.6: ELF file OS ABI invalid
>
> I get the impression maybe acroread is attempting run a linux binary
> using a freebsd library - but I am not sure if this is so, or how to fix
> it. Any pointers would be appreciated.
>

This looks like a Linux ELF file branding problem.

google://linux+elf+branding


That's what I'd start with.

--TJ
___
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"


libc.so.6: ELF file OS ABI invalid

2009-04-07 Thread David Banning
I get this error when I attempt to run acroread8;

/compat/linux/bin/sh: error while loading shared libraries: 
/usr/local/lib/libc.so.6: ELF file OS ABI invalid

I get the impression maybe acroread is attempting run a linux binary
using a freebsd library - but I am not sure if this is so, or how to fix
it. Any pointers would be appreciated.
___
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"


Should kern.disks always show currently attached drives?

2009-04-07 Thread Peter Steele
I wanted to use the kern.disks sysctl variable but it doesn't seem to work the 
way I'd expect. When I first inspected this variable it showed the four hard 
drives I would expect: 

ad4 ad6 ad8 ad10 

Then I inserted a USB stick and checked kern.disks again, and this time the new 
USB drive was included: 

da0 ad4 ad6 ad8 ad10 

So far so good. Then I removed the USB disk, expecting it to be removed from 
kern.disks as well, but it was still included in the list. As another test, I 
removed the hard drive ad8 (it's a hot swappable SATA drive) and like the USB 
drive, kern.disks still included ad8 in the list. To make matters worse, when I 
put ad8 back in, an additional entry was added to kern.disks: 

ad8 da0 ad4 ad6 ad8 ad10 

Is this normal behavior? Is there a way to force FreeBSD to refresh this list? 

___
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: What ELSE do I need to add to make.conf to avoid X ?

2009-04-07 Thread Dan Nelson
In the last episode (Apr 07), Juri Mianovich said:
> Just trying to install rrdtool on a server.
> 
> Do not want X.  Do not want X11.  Do not want Xorg.
> 
> So I did the "right" thing and added this to /etc/make.conf:
> 
> WITHOUT_X11=yes
> WITHOUT_X=yes
> WITH_X=NO
> ENABLE_GUI=NO
> 
> and then 'make install' in the rrdtool directory.  The problem is, eventually 
> I saw this:
> 
> ===>  Installing for pango-1.14.7
> ===>   pango-1.14.7 depends on file: /usr/X11R6/lib/X11/fonts/TTF/luximb.ttf 
> - not found
> ===>Verifying install for /usr/X11R6/lib/X11/fonts/TTF/luximb.ttf in 
> /usr/ports/x11-fonts/xorg-fonts-truetype
> ===>  Vulnerability check disabled, database not found
> ===>  Extracting for xorg-fonts-truetype-6.9.0
> => MD5 Checksum mismatch for xorg/X11R6.9.0-src1.tar.gz.
> => SHA256 Checksum mismatch for xorg/X11R6.9.0-src1.tar.gz.
> ===>  Refetch for 1 more times files: xorg/X11R6.9.0-src1.tar.gz 
> xorg/X11R6.9.0-src1.tar.gz
> ===>  Vulnerability check disabled, database not found
> => X11R6.9.0-src1.tar.gz doesn't seem to exist in /usr/ports/distfiles/xorg.
> => Attempting to fetch from 
> ftp://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.9.0/src/.
> X11R6.9.0-src1.tar.gz   3% of   31 MB 8188  Bps 
> 01h05m^C
> fetch: transfer interrupted
> 
> Oops.  Looks like I was going to get X11 anyway.
> 
> So, what other options do I need to add to make.conf in order to install a
> simple stats/database tool without hundreds and hundreds of MB of x11 ?

Note that it's only downloading that file to install the fonts that are
included in it.  It's not going to install all of X.  You might be able to
comment out the RUN_DEPENDS entries in the pango Makefile to avoid
installing any fonts, but your rrdtool graphs will look boring with no 
text :)

-- 
Dan Nelson
dnel...@allantgroup.com
___
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"


What ELSE do I need to add to make.conf to avoid X ?

2009-04-07 Thread Robert Huff

Juri Mianovich writes:

>  Just trying to install rrdtool on a server.
>  
>  Do not want X.  Do not want X11.  Do not want Xorg.
>  
>  
>  ===>  Installing for pango-1.14.7

If it requires pango, I think you're hosed.  I don't think it's
possible to build pango without X, if only for various .h files.
(And given what pango does, it wouldn't make much sense to.)


Robert Huff


___
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: What ELSE do I need to add to make.conf to avoid X ?

2009-04-07 Thread Manolis Kiagias
Juri Mianovich wrote:
> Just trying to install rrdtool on a server.
>
> Do not want X.  Do not want X11.  Do not want Xorg.
>
> So I did the "right" thing and added this to /etc/make.conf:
>
> WITHOUT_X11=yes
> WITHOUT_X=yes
> WITH_X=NO
> ENABLE_GUI=NO
>
> and then 'make install' in the rrdtool directory.  The problem is, eventually 
> I saw this:
>
> ===>  Installing for pango-1.14.7
> ===>   pango-1.14.7 depends on file: /usr/X11R6/lib/X11/fonts/TTF/luximb.ttf 
> - not found
> ===>Verifying install for /usr/X11R6/lib/X11/fonts/TTF/luximb.ttf in 
> /usr/ports/x11-fonts/xorg-fonts-truetype
> ===>  Vulnerability check disabled, database not found
> ===>  Extracting for xorg-fonts-truetype-6.9.0
> => MD5 Checksum mismatch for xorg/X11R6.9.0-src1.tar.gz.
> => SHA256 Checksum mismatch for xorg/X11R6.9.0-src1.tar.gz.
> ===>  Refetch for 1 more times files: xorg/X11R6.9.0-src1.tar.gz 
> xorg/X11R6.9.0-src1.tar.gz
> ===>  Vulnerability check disabled, database not found
> => X11R6.9.0-src1.tar.gz doesn't seem to exist in /usr/ports/distfiles/xorg.
> => Attempting to fetch from 
> ftp://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.9.0/src/.
> X11R6.9.0-src1.tar.gz   3% of   31 MB 8188  Bps 
> 01h05m^C
> fetch: transfer interrupted
>
>
>
> Oops.  Looks like I was going to get X11 anyway.
>
> So, what other options do I need to add to make.conf in order to install a 
> simple stats/database tool without hundreds and hundreds of MB of x11 ?
>
> Thanks.
>   

I don't think your '=NO' stuff would do much.

You may also wish to add

WITHOUT_GUI=yes
___
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"


What ELSE do I need to add to make.conf to avoid X ?

2009-04-07 Thread Juri Mianovich

Just trying to install rrdtool on a server.

Do not want X.  Do not want X11.  Do not want Xorg.

So I did the "right" thing and added this to /etc/make.conf:

WITHOUT_X11=yes
WITHOUT_X=yes
WITH_X=NO
ENABLE_GUI=NO

and then 'make install' in the rrdtool directory.  The problem is, eventually I 
saw this:

===>  Installing for pango-1.14.7
===>   pango-1.14.7 depends on file: /usr/X11R6/lib/X11/fonts/TTF/luximb.ttf - 
not found
===>Verifying install for /usr/X11R6/lib/X11/fonts/TTF/luximb.ttf in 
/usr/ports/x11-fonts/xorg-fonts-truetype
===>  Vulnerability check disabled, database not found
===>  Extracting for xorg-fonts-truetype-6.9.0
=> MD5 Checksum mismatch for xorg/X11R6.9.0-src1.tar.gz.
=> SHA256 Checksum mismatch for xorg/X11R6.9.0-src1.tar.gz.
===>  Refetch for 1 more times files: xorg/X11R6.9.0-src1.tar.gz 
xorg/X11R6.9.0-src1.tar.gz
===>  Vulnerability check disabled, database not found
=> X11R6.9.0-src1.tar.gz doesn't seem to exist in /usr/ports/distfiles/xorg.
=> Attempting to fetch from ftp://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.9.0/src/.
X11R6.9.0-src1.tar.gz   3% of   31 MB 8188  Bps 01h05m^C
fetch: transfer interrupted



Oops.  Looks like I was going to get X11 anyway.

So, what other options do I need to add to make.conf in order to install a 
simple stats/database tool without hundreds and hundreds of MB of x11 ?

Thanks.


  

___
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: Koffice in KDE-4.2.2

2009-04-07 Thread Roland Smith
On Tue, Apr 07, 2009 at 06:54:02PM +0300, Odhiambo Washington wrote:
> Hello pple,
> 
> I installed KDE-4.2.2 but I cannot see the office apps. What am I missing?

The Koffice version for KDE-4 is still in beta.

Looking at the ports tree, there is only the
/usr/ports/editors/koffice-kde3 port (except from a lot of localization
ports).  

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpsHikzN1S1K.pgp
Description: PGP signature


Re: Portsnap question

2009-04-07 Thread Leslie Jensen



Manolis Kiagias skrev:

Leslie Jensen wrote:

I used to use csup and in my /root/ports-supfile I changed the default
host line to a server near me.

*default host=cvsup.se.FreeBSD.org

Now I've been using portsnap for a while and when installing a new
system I got to question if portsnap look in this file for an update
server or does portsnap need to be configured somewhere else?

Thanks

/Leslie




No, portsnap uses /etc/portsnap.conf.  Normally you don't need to make
any changes to this file.



Thank you :-) I see there's no gain in changing.
/Leslie
___
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: Portsnap question

2009-04-07 Thread Ricardo Jesus

Leslie Jensen wrote:


I used to use csup and in my /root/ports-supfile I changed the default 
host line to a server near me.


*default host=cvsup.se.FreeBSD.org

Now I've been using portsnap for a while and when installing a new 
system I got to question if portsnap look in this file for an update 
server or does portsnap need to be configured somewhere else?


Thanks

/Leslie


___
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"



Portsnap uses /etc/portsnap.conf and doesn't read supfiles.

man portsnap.conf for more info.
___
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: Portsnap question

2009-04-07 Thread Manolis Kiagias
Leslie Jensen wrote:
>
> I used to use csup and in my /root/ports-supfile I changed the default
> host line to a server near me.
>
> *default host=cvsup.se.FreeBSD.org
>
> Now I've been using portsnap for a while and when installing a new
> system I got to question if portsnap look in this file for an update
> server or does portsnap need to be configured somewhere else?
>
> Thanks
>
> /Leslie
>
>

No, portsnap uses /etc/portsnap.conf.  Normally you don't need to make
any changes to this file.
___
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: Portsnap question

2009-04-07 Thread ill...@gmail.com
2009/4/7 Leslie Jensen :
>
> I used to use csup and in my /root/ports-supfile I changed the default host
> line to a server near me.
>
> *default host=cvsup.se.FreeBSD.org
>
> Now I've been using portsnap for a while and when installing a new system I
> got to question if portsnap look in this file for an update server or does
> portsnap need to be configured somewhere else?

/etc/portsnap.conf

but:

# Server or server pool from which to fetch updates.  You can change
# this to point at a specific server if you want, but in most cases
# using a "nearby" server won't provide a measurable improvement in
# performance.
SERVERNAME=portsnap.FreeBSD.org


-- 
--
___
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"


Koffice in KDE-4.2.2

2009-04-07 Thread Odhiambo Washington
Hello pple,

I installed KDE-4.2.2 but I cannot see the office apps. What am I missing?


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"Clothes make the man.  Naked people have little or no influence on
society."
  -- Mark Twain
___
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"


Portsnap question

2009-04-07 Thread Leslie Jensen


I used to use csup and in my /root/ports-supfile I changed the default 
host line to a server near me.


*default host=cvsup.se.FreeBSD.org

Now I've been using portsnap for a while and when installing a new 
system I got to question if portsnap look in this file for an update 
server or does portsnap need to be configured somewhere else?


Thanks

/Leslie


___
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"


SQLgrey not happy

2009-04-07 Thread Len Conrad
Trying to install everything via pkgs, but it messed up.

fbsd 7.1

SQLgrey 1.7.6 installed as pkg_add

p5-DBD-mysql installed as:

pkg_add -r 
ftp://ftp4.freebsd.org/pub/FreeBSD/ports/i386/packages-8-current/All/p5-DBD-mysql-4.010.tbz

starting sqlgrey:

Apr  7 08:25:22 mx1 sqlgrey: Process Backgrounded 
Apr  7 08:25:22 mx1 sqlgrey: 2009/04/07-08:25:22 sqlgrey (type 
Net::Server::Multiplex) starting! pid(73878) 
Apr  7 08:25:22 mx1 sqlgrey: Binding to TCP port 2501 on host localhost  
Apr  7 08:25:22 mx1 sqlgrey: Setting gid to "1001 1001" 

Apr  7 08:25:22 mx1 sqlgrey: Setting uid to "1003" 

Apr  7 08:25:22 mx1 sqlgrey: fatal: Can't locate loadable object for module 
DBD::mysql in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/BSDPAN 
/usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 
/usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach 
/usr/local/lib/perl5/5.8.8 .) at (eval 11) line 3 

Apr  7 08:25:22 mx1 sqlgrey: fatal: Can't locate loadable object for module 
DBD::mysql in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/BSDPAN 
/usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 
/usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach 
/usr/local/lib/perl5/5.8.8 .) at (eval 11) line 3 Compilation failed in require 
at (eval 11) line 3. 

Apr  7 08:25:22 mx1 sqlgrey: fatal: install_driver(MySQL) failed: Can't locate 
loadable object for module DBD::mysql in @INC (@INC contains: 
/usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach 
/usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl 
/usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at (eval 11) line 
3 Compilation failed in require at (eval 11) line 3. Perhaps a module that 
DBD::MySQL requires hasn't been fully installed  at /usr/local/sbin/sqlgrey 
line 814 

pkg_info shows perl-5.8.8_1. 


What usually works when the pkg installs fail is to install via make install in 
the ports tree.  After deleting the sqlgrey and p5-DBD-mysql-4.010 pkgs, I 
make'd both them in the ports tree, then get this:

Apr  7 08:43:43 mx1 sqlgrey: Process Backgrounded 

Apr  7 08:43:43 mx1 sqlgrey: 2009/04/07-08:43:43 sqlgrey (type 
Net::Server::Multiplex) starting! pid(80696) 

Apr  7 08:43:43 mx1 sqlgrey: Binding to TCP port 2501 on host localhost  

Apr  7 08:43:43 mx1 sqlgrey: Setting gid to "1001 1001" 

Apr  7 08:43:43 mx1 sqlgrey: Setting uid to "1003" 

Apr  7 08:43:43 mx1 sqlgrey: fatal: Can't locate object method "driver" via 
package "DBD::MySQL" at /usr/local/lib/perl5/site_perl/5.8.8/mach/DBI.pm line 
787. 

Apr  7 08:43:43 mx1 sqlgrey: fatal: DBD::MySQL initialisation failed: Can't 
locate object method "driver" via package "DBD::MySQL" at 
/usr/local/lib/perl5/site_perl/5.8.8/mach/DBI.pm line 787.  Perhaps the 
capitalization of DBD 'MySQL' isn't right. at /usr/local/sbin/sqlgrey line 814 

Suggestions?

Thanks
Len


___
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: Migration to 7.1 ?

2009-04-07 Thread Ewald Jenisch
> > Does the LAGG driver works well with broadcomm giga ethernet chips ?
> > ( I plan to use LACP to a Cisco switch )
> 
> Try asking at freebsd-net@
> 

Hi,

I've been running with the lagg-driver for quite some time now on
several blade-systems using broadcom chips in a failover
configuration - no problems whatsoever - failover/fallback all ok.

LACP shouldn't be a problem either - on the Cisco side define a port
channel using LACP plus optional a balancing strategy (like mac-based etc.)

HTH
-ewald



___
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: xinetd for FreeBSD 6.2

2009-04-07 Thread Jacques Manukyan
You can install the latest version of xinetd (2.3.14) on FreebSD 6.2.  
Xinetd hasn't been updated in quite a long time FYI.


-- Jacques Manukyan

Madhusudan R wrote:

Hi,

I'd like to know the version of xinetd that can be run on FreeBSD 6.2. And
where can I find it?

Anything else I need to know before I start using xinetd on the aforemention
platform.

Thanks!
Madhu
___
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"

  


___
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: Multiple instances of MySQL

2009-04-07 Thread DAve

Paul Schmehl wrote:
--On April 6, 2009 11:41:06 PM -0400 DAve  
wrote:



Olivier Nicole wrote:

Hi,


Has anyone setup two instances of MySQL on the same server? One
running  just a client's DBs? Any advice would be helpful.


That is not answering your question directly, but MySQL works finr
over an SSH tunnel.

You'd have your users connect/authenticate with SSH first to establish
the tunnel, then they'd use the tunnel to forward the NySQl
connection.


I doubt the would be an option without a GUI to do everything for the
user. I suggested a VPN which we can setup easily with a Cisco Client.
No answer back from the account manager on that option.



If your client needs a gui to access mysql, why not use phpmyadmin (or a 
similar gui-based admin utility) and restrict access to his IP(s)?  You 
can do this with your firewall rules or by using .htaccess.  You can 
also force SSL connections, which would protect against MITM attacks on 
a cleartext session.


Nope, no web based php admin tools here. Won't touch them. I ahve enough 
security items to track every day.




(You can also require SSL and secure auth for the db and restrict access 
by IP using the format usern...@fqdn, but you stated that you're not 
comfortable depending *only* upon mysql's security capabilities.)


However, I would suggest that you provide, as you suggest, a separate 
instance of mysql just for this client as well.  If they screw up the 
instance they won't affect other customers.  To run a separate instance, 
I would suggest using different names for the binaries, conf files and 
datadir.  This can be easily done using symlinks; e.g. mysql and 
mysql-special.  Then copy the startup script in /usr/local/etc/rc.d/, 
rename it to mysql-special and edit it to change all references to the 
newly-named instance.  Use a my-special.cnf file for the special 
instance and reference it in /etc/rc.conf using mysql_args=.


Thanks, looks like it would be doable. I do plan to use a separate 
my.cnf, separate logging, and even a seperate mysql DB. I was going to 
share the binaries but I may rethink that decision after your suggestion.


Thanks for the response.

DAve


--
"Posterity, you will know how much it cost the present generation to
preserve your freedom.  I hope you will make good use of it.  If you
do not, I shall repent in heaven that ever I took half the pains to
preserve it." John Quincy Adams

http://appleseedinfo.org

___
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: Multiple instances of MySQL

2009-04-07 Thread DAve

Norbert Papke wrote:

On April 6, 2009, DAve wrote:

Has anyone setup two instances of MySQL on the same server? One running
just a client's DBs? Any advice would be helpful.


It's just a matter of making sure that the two instances don't share any ports 
or files.  It works well.  You'll have to create a custom my.cnf file and 
start-up script for your second instance.  



That is as I suspected. Thanks.

DAve


--
"Posterity, you will know how much it cost the present generation to
preserve your freedom.  I hope you will make good use of it.  If you
do not, I shall repent in heaven that ever I took half the pains to
preserve it." John Quincy Adams

http://appleseedinfo.org

___
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: Controllers/Drives renumbered

2009-04-07 Thread Brian McCann
On Mon, Apr 6, 2009 at 8:50 PM, Jay Hall  wrote:

> Earlier today, I installed a new HP SCSI (HP SmartArray 642)controller  and
> an HP Drive Array in my company's HP ML 350 G5. The system drive which had
> been da0 became da1 and the new controller became da0.
>
> Unfortunately, I cannot rearrange the controllers in the system since one
> is PCI-X and one is PCI Express.  Is it possible to force FreeBSD 6.2 to
> detect the cards in a particular order so my drives are not renumbered.
>
> Thanks,
>
>
>
> Jay
>
>
I had this problem myself...and I could not find a way to re-order the
cards.  So, I started using glabel to solve my problems.
http://www.freebsd.org/cgi/man.cgi?query=glabel&sektion=8 .  This obviously
may not solve your direct problem, but it solved mine since I then
mount,fsck,whatever /dev/ufs/systemRoot .

I hope this helps!
--Brian

-- 
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_
Brian McCann

"I don't have to take this abuse from you -- I've got hundreds of
people waiting to abuse me."
   -- Bill Murray, "Ghostbusters"
___
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: C programming question

2009-04-07 Thread Chris Whitehouse

Valentin Bud wrote:

Hello community,

 I have built with a micro controller a system of power plugs that can be
controlled through the serial port.
I have 2 plugs that i can start/stop and check the status of them. This is
accomplished by sending different
letters (eg. A/W) to start/stop one of the plugs and another set of letter
for the other plug and one letter
to check the status.

 Taking into account the fact that my C skills are almost 0 how complicated
would be to write a program
so I can control that micro controller through the serial port. Or is there
some kind of program that can
read/write from/to the serial port from the command line. I don't want an
interactive program like minicom,
just a program that connects and send a command (a letter in my case) to the
serial port.

 Why not minicom (or any other program like it)? My goal is to be able to
start/stop the plugs using a web interface.
I have tried using minicom and background it but when i log out minicom
closes. If minicom is started i can
send commands to ttyd0 with echo, but i can't read anything from serial.

 Now back to my original question, how hard/complicated will it be to write
a C program to control the micro controller
through the serial port.

 Of course on FreeBSD :).

thanks,
v


There are some things here http://www.vitsch.net/ which might be useful

see lampd, lampgui and An 8-output solid state mains-switch. It's all 
pretty old but then so are serial ports :)


Chris
___
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: C programming question

2009-04-07 Thread Oliver Fromme
Valentin Bud wrote:
 > Hello community,
 > 
 >  I have built with a micro controller a system of power plugs that can be
 > controlled through the serial port.
 > I have 2 plugs that i can start/stop and check the status of them. This is
 > accomplished by sending different
 > letters (eg. A/W) to start/stop one of the plugs and another set of letter
 > for the other plug and one letter
 > to check the status.
 > 
 >  Taking into account the fact that my C skills are almost 0 how complicated
 > would be to write a program
 > so I can control that micro controller through the serial port. Or is there
 > some kind of program that can
 > read/write from/to the serial port from the command line. I don't want an
 > interactive program like minicom,
 > just a program that connects and send a command (a letter in my case) to the
 > serial port.

You can do this with existing shell tools.  With stty(1) you
can select the serial port parameters on the "init" device
(see sio(4) for details about the "init" and "lock" devices).
Then you can use printf(1) or echo -n to send single letters
to the serial port.

To read single characters, you can use dd(1) with bs=1 and
count=1.  Make sure that the serial line is in "cbreak" or
"raw" mode (with stty).  This is a common trick to read
single characters from stdin (without having to press the
Enter key) in order to implement simple menu systems in
shell scripts:

 echo -n "Press any key: "
 stty cbreak -echo
 KEY=$(dd bs=1 count=1 2>/dev/null)
 stty -cbreak echo
 echo
 echo "You pressed the \"$KEY\" key."

To read from a serial port instead of standard input, you
have to redirect input from the serial port's device for
the stty and dd commands, of course.

 >  Now back to my original question, how hard/complicated will it be to write
 > a C program to control the micro controller
 > through the serial port.

Well, it's not hard or complicated, but it requires a certain
amount of knowledge.  First you have to learn C programming.
Then you have to learn about the termios(4) interface and
related things.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"UNIX was not designed to stop you from doing stupid things,
because that would also stop you from doing clever things."
-- Doug Gwyn
___
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: C programming question

2009-04-07 Thread John Almberg

On Apr 7, 2009, at 5:41 AM, Valentin Bud wrote:


Hello community,

 I have built with a micro controller a system of power plugs that  
can be

controlled through the serial port.
I have 2 plugs that i can start/stop and check the status of them.  
This is

accomplished by sending different
letters (eg. A/W) to start/stop one of the plugs and another set of  
letter

for the other plug and one letter
to check the status.

 Taking into account the fact that my C skills are almost 0 how  
complicated

would be to write a program
so I can control that micro controller through the serial port. Or  
is there

some kind of program that can
read/write from/to the serial port from the command line. I don't  
want an

interactive program like minicom,
just a program that connects and send a command (a letter in my  
case) to the

serial port.

 Why not minicom (or any other program like it)? My goal is to be  
able to

start/stop the plugs using a web interface.
I have tried using minicom and background it but when i log out  
minicom

closes. If minicom is started i can
send commands to ttyd0 with echo, but i can't read anything from  
serial.


 Now back to my original question, how hard/complicated will it be  
to write

a C program to control the micro controller
through the serial port.

 Of course on FreeBSD :).


More complicated than you need. The last time I twiddled bits on a  
serial port, the choice was Assembler, or C, but today my choice  
would be Ruby. You can probably do whatever you want with a few lines  
of Ruby, rather than many lines of C. And since you don't know either  
language, you might as easily learn Ruby as C.


Unless you are going to start writing low level code, a high level  
language like Ruby will let you write any program you need. I haven't  
needed to write a line of C code in probably 20 years.


Check out the Ruby serial port library:

http://ruby-serialport.rubyforge.org/

The standard Ruby book is "Programming Ruby" (http:// 
www.pragprog.com). If you don't know programming at all, they have a  
"Learn to Program" book that uses Ruby as a first language.


-- John

___
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"


C programming question

2009-04-07 Thread Valentin Bud
Hello community,

 I have built with a micro controller a system of power plugs that can be
controlled through the serial port.
I have 2 plugs that i can start/stop and check the status of them. This is
accomplished by sending different
letters (eg. A/W) to start/stop one of the plugs and another set of letter
for the other plug and one letter
to check the status.

 Taking into account the fact that my C skills are almost 0 how complicated
would be to write a program
so I can control that micro controller through the serial port. Or is there
some kind of program that can
read/write from/to the serial port from the command line. I don't want an
interactive program like minicom,
just a program that connects and send a command (a letter in my case) to the
serial port.

 Why not minicom (or any other program like it)? My goal is to be able to
start/stop the plugs using a web interface.
I have tried using minicom and background it but when i log out minicom
closes. If minicom is started i can
send commands to ttyd0 with echo, but i can't read anything from serial.

 Now back to my original question, how hard/complicated will it be to write
a C program to control the micro controller
through the serial port.

 Of course on FreeBSD :).

thanks,
v

-- 
network warrior since 2005
___
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: Question about forcing fsck at boottime

2009-04-07 Thread Chris Rees
>
> On Apr 6, 2009, at 11:12, Chris Rees wrote:
>
>> Can
>> no-one can come up with a reply either quoting a mailing list or
>> giving the circumstances when:
>>
>> a) Background fsck caused data CORRUPTION
>>
>> _and_
>>
>> b) A foreground fsck would not have done the same
>>
>> ?
2009/4/6 Doug Hardie :

> Yes.  When background FSCK first became standard I let it go that way on my
> production servers.  The first time we had a power issue that resulted in a
> shutdown of a server it tried to come back up when the power was restored.
>  I have a large number of daemons that rely on configure files and other
> information that is reasonably frequently updated.  Some of those files were
> in the process of being updated when it shut down.  As a result background
> FSCK did not get around to those files till much after the daemons were up
> and running (or trying to run).  Most of them worked ok at the beginning.
>  However after FSCK resolved the problems, the underlying files changed.
>  The daemons couldn't function at that point.
>
> While a simple reboot at that point fixed everything, that caused yet
> another outage for users.


So, the answer is NO, it does NOT cause data CORRUPTION. A simple
reboot solved it? Really, you're advocating guaranteed extended
downtime every time there's a power outage, compared with a slight
chance of a slightly longer downtime while every other time it comes
almost straight up.

Any more replies, please, read the damned question.

> I doubt that the concept of background FSCK is broken and I suspect that the 
> implementation is good too.

_Thank_ you

Chris


-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
___
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: Migration to 7.1 ?

2009-04-07 Thread Ivan Voras
Frank Bonnet wrote:
> Hello
> 
> I'm planning to migrate our mailhub (IBM X3650) to FreeBSD 7.1
> from Debian etch ;-) , of course I'll restart "from scratch".
> 
> I have two questions before doing so.
> 
> Does 7.1 has reached a stability that it could
> be used for a high load production server ?

Generally, yes.

> Does the LAGG driver works well with broadcomm giga ethernet chips ?
> ( I plan to use LACP to a Cisco switch )

Try asking at freebsd-net@



signature.asc
Description: OpenPGP digital signature


Re: Migration to 7.1 ?

2009-04-07 Thread Wojciech Puchar


Does 7.1 has reached a stability that it could
be used for a high load production server ?


at least for me - it's stable under high loads doing lots of different 
thing.


i mean /amd64
___
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"


Migration to 7.1 ?

2009-04-07 Thread Frank Bonnet

Hello

I'm planning to migrate our mailhub (IBM X3650) to FreeBSD 7.1
from Debian etch ;-) , of course I'll restart "from scratch".

I have two questions before doing so.

Does 7.1 has reached a stability that it could
be used for a high load production server ?

Does the LAGG driver works well with broadcomm giga ethernet chips ?
( I plan to use LACP to a Cisco switch )

Thank you.
___
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"


urxvt: input method problem

2009-04-07 Thread kyanh
Hello all,

`xvnkb` is a vietnamese keyboard and it currently works well on any GTK 
applications. It uses below settings in `$HOME/.bashrc`:

/=
| export GTK_IM_MODULE=xim
| export LD_PRELOAD=/usr/local/lib/xvnkb.so.0.2.9
\=

But I cannot type any vietnamese in `urxvt`. I donnot how to get debug 
messages. I just know that I can type vietnamese easily with `urxvt` on my 
former Arch Linux.

Thank you very much for your helps.

Regards,

-- 
Ky Anh, Huynh
Homepage: http://viettug.org/


My rxvt's build configuration:
==

rxvt-unicode (urxvt) v9.06 - released: 2008-06-15
options: 
perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,afterimage,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm

My rxvt's X settings


$ grep -i urxvt .Xdefaults 
URxvt*termName: rxvt
URxvt*background:  #00
URxvt*foreground:  violet
URxvt*scrollBar_right:  true
URxvt*scrollBar:false
URxvt*inheritPixmap:true
URxvt*geometry: 84x24
URxvt*tint: white
URxvt.imlocale: en_US.UTF-8
URxvt.inputMethod: xim

___
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"