Re: python25 core dumps

2007-11-14 Thread David J Brooks
On Wednesday 14 November 2007 05:57:52 pm Heiko Wundram (Beenic) wrote:
> Am Mittwoch, 14. November 2007 23:15:36 schrieb David J Brooks:
> > Since upgrading to 7.0-BETA2 most of my python based programs fail with
> > Segmentation fault: 11 (core dumped). It seems to be limited to gui based
> > programs using Gtk or Qt. Any idea what's going on there? Hints on how to
> > analyze the python.core files would be helpful too.
>
> Easy way to get info from the backtrace:
>
> gdb /usr/local/bin/python /python.core
>
> Then, enter the "back" command in the post-mortem debugging session and
> post the output here. Someone (maybe even me) should be able to give you a
> hint where to look further from there.

Ok. Here's what gdb shows for a crash from Gramps (built with py-Gtk2):

(gdb) back
#0  0x29ea37fd in delete_aspell_speller () from /usr/local/lib/libaspell.so.16
#1  0x29e03b3d in gtkspell_set_language_internal () 
from /usr/local/lib/libgtkspell.so.0
#2  0x29e04084 in gtkspell_set_language () 
from /usr/local/lib/libgtkspell.so.0
#3  0x29af90ae in ?? () 
from /usr/local/lib/python2.5/site-packages/gtk-2.0/gtkspell.so
#4  0x29cdf180 in ?? ()
#5  0x29d28ff4 in ?? ()
#6  0x in ?? ()
#7  0xbfbf5218 in ?? ()
#8  0xbfbf5220 in ?? ()
#9  0x29d284cc in ?? ()
#10 0x29af9681 in ?? () 
from /usr/local/lib/python2.5/site-packages/gtk-2.0/gtkspell.so
#11 0x in ?? ()
#12 0x29d28ff4 in ?? ()
#13 0x28308080 in ?? ()
#14 0xbfbf53c8 in ?? ()
#15 0x080b131a in PyEval_EvalFrameEx ()
Previous frame identical to this frame (corrupt stack?)
(gdb)

For comparison, this is what a crash from eric4 (built with PyQt4) looks like:

(gdb) back
#0  0x29224448 in typeinfo name for sipQApplication ()
   from /usr/local/lib/python2.5/site-packages/PyQt4/QtGui.so
#1  0x29595531 in sm_performSaveYourself () from /usr/local/lib/libQtGui.so.4
#2  0x295956a1 in sm_saveYourselfCallback () from /usr/local/lib/libQtGui.so.4
#3  0x29aed10b in _SmcProcessMessage () from /usr/local/lib/libSM.so.6
#4  0x29afffa3 in IceProcessMessages () from /usr/local/lib/libICE.so.6
#5  0x2958f5c8 in QSmSocketReceiver::socketActivated () 
from /usr/local/lib/libQtGui.so.4
#6  0x2958f62f in QSmSocketReceiver::qt_metacall () 
from /usr/local/lib/libQtGui.so.4
#7  0x287bc15f in QMetaObject::activate () from /usr/local/lib/libQtCore.so.4
#8  0x287bc6d2 in QMetaObject::activate () from /usr/local/lib/libQtCore.so.4
#9  0x287d8b33 in QSocketNotifier::activated () 
from /usr/local/lib/libQtCore.so.4
#10 0x287c1e1f in QSocketNotifier::event () from /usr/local/lib/libQtCore.so.4
#11 0x295467bd in QApplicationPrivate::notify_helper () 
from /usr/local/lib/libQtGui.so.4
#12 0x2954c8fe in QApplication::notify () from /usr/local/lib/libQtGui.so.4
#13 0x291b4a13 in sipQApplication::notify () 
from /usr/local/lib/python2.5/site-packages/PyQt4/QtGui.so
#14 0x287ab07b in QCoreApplication::notifyInternal () 
from /usr/local/lib/libQtCore.so.4
#15 0x287ccaf3 in socketNotifierSourceDispatch () 
from /usr/local/lib/libQtCore.so.4
#16 0x28852886 in g_main_context_dispatch () 
from /usr/local/lib/libglib-2.0.so.0
#17 0x28855c02 in g_main_context_check () from /usr/local/lib/libglib-2.0.so.0
#18 0x28856185 in g_main_context_iteration () 
from /usr/local/lib/libglib-2.0.so.0
#19 0x287ccf78 in QEventDispatcherGlib::processEvents () 
from /usr/local/lib/libQtCore.so.4
#20 0x295bd965 in QGuiEventDispatcherGlib::processEvents () 
from /usr/local/lib/libQtGui.so.4
#21 0x287aac31 in QCoreApplication::processEvents () 
from /usr/local/lib/libQtCore.so.4
#22 0x28623966 in meth_QCoreApplication_processEvents ()
   from /usr/local/lib/python2.5/site-packages/PyQt4/QtCore.so
#23 0x080b131a in PyEval_EvalFrameEx ()
#24 0x080b1fab in PyEval_EvalFrameEx ()
#25 0x080b1fab in PyEval_EvalFrameEx ()
#26 0x080b2919 in PyEval_EvalCodeEx ()
#27 0x080b2a67 in PyEval_EvalCode ()
#28 0x080c9fc6 in Py_CompileString ()
#29 0x080ca070 in PyRun_FileExFlags ()
#30 0x080cb569 in PyRun_SimpleFileExFlags ()
#31 0x08056ef1 in Py_Main ()
#32 0x080563b5 in main ()
(gdb)

I tried tovidgui (build with Tkinter) and it did not crash.

David
-- 
Federal law prohibits deleting this message.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: python25 core dumps

2007-11-14 Thread Norberto Meijome
On Thu, 15 Nov 2007 00:57:52 +0100
"Heiko Wundram (Beenic)" <[EMAIL PROTECTED]> wrote:

> Am Mittwoch, 14. November 2007 23:15:36 schrieb David J Brooks:
> > Since upgrading to 7.0-BETA2 most of my python based programs fail with
> > Segmentation fault: 11 (core dumped). It seems to be limited to gui based
> > programs using Gtk or Qt. Any idea what's going on there? Hints on how to
> > analyze the python.core files would be helpful too.  
> 
> Easy way to get info from the backtrace:
> 
> gdb /usr/local/bin/python /python.core
> 
> Then, enter the "back" command in the post-mortem debugging session and post 
> the output here. Someone (maybe even me) should be able to give you a hint 
> where to look further from there.

same happens here with castpodder (which is a gtk/python tool), but i havent 
been able to find a .core . I need to look into a ktrace and step into the code 
with pydev in eclipse.

B

_
{Beto|Norberto|Numard} Meijome

You shouldn't verb words.

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: recurring kernel panic

2007-11-14 Thread Kelly Martin
On Nov 9, 2007 12:46 PM, Rob <[EMAIL PROTECTED]> wrote:
> Kelly Martin wrote:
> > I'm getting daily kernel panics. The server was running fine for about
> > a month, the only changes I've made recently have been to update all
> > my ports. It's running on older i386 hardware, no special devices
>
> Like the others said -- I'd seriously suspect hardware problems.  Memory is a 
> good place to start.  Try MemTest:  http://www.memtest86.com/

Thanks to everyone for the help. It was indeed a hardware failure, a
power supply issue. With so many people using, looking at or working
on the FreeBSD kernel, I knew it had to be something other than just
my applications causing a kernel panic.

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


Re: Socket programming question

2007-11-14 Thread Andrew Falanga
On Nov 14, 2007 4:55 PM, Heiko Wundram (Beenic) <[EMAIL PROTECTED]> wrote:

>
> Sorry to say that, but it doesn't make sense as it's worded. The
> descriptor
> returned by socket(2) is valid if it's >= 0 (that's the API contract for
> the
> socket(2) C function), and remains valid until the program ends (unless
> you
> close the descriptor with close(2) before your program terminates, in
> which
> case the descriptor first becomes invalid [i.e. EBADF], but might be
> reused
> later by another call to socket(2) or open(2), in which case the
> descriptor
> again becomes valid but is associated with another object and possibly
> also
> with another type of object [file/pipe vs. socket]).
>
> That's the API-contract that's specified in POSIX, and to which FreeBSD
> sticks. As an application programmer, you can (and have to) rely on this
> behaviour; any derivation from this is a kernel bug, and should be posted
> as
> a PR.
>
> Generally, the easy way to query whether a descriptor is valid is by
> simply
> calling the respective function you want to execute on it, and if that
> returns errno = EBADF, then you know that the descriptor is invalid. In
> case
> it returns something else, it just tells you that the descriptor is valid,
> but doesn't tell you whether the descriptor is really associated with what
> you think it is. But if you follow the flow of control in the program, you
> should be able to make out where the descriptor is created and how it's
> modified, and thus be able to deduce (under the condition that the kernel
> sticks to POSIX specifications) what the state of the descriptor is at the
> time of usage.
>

Thanks.  Actually, this suggestion of yours I think does answer my
question.  I was thinking that in my testing program, I would be using
something like that after thinking things through.  Thanks again.

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


acroread prints from standalone app but not from browser plugin

2007-11-14 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

acroread7 prints from standalong app but not from firefox plugin;
firefox prints web pages fine.  Any ideas?

FreeBSD monster 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Mon Nov 12
13:08:23 EST 2007
[EMAIL PROTECTED]:/usr/obj/FreeBSD/FreeBSD-current/src/sys/MONSTER  amd64


- --
Aryeh M. Friedman
Developer, not business, friendly
http://www.flosoft-systems.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHO6XwJ9+1V27SttsRAhnCAJ4+fmlwT0CI5DEDLZJkwZwxb9JI8ACfb3yZ
dBdi+aWftWQCBM9ztd+GTmw=
=WaIN
-END PGP SIGNATURE-

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


Re: dealing with a failing drive

2007-11-14 Thread jdow

From: "Jerry McAllister" <[EMAIL PROTECTED]>
Sent: Monday, November 12, 2007 12:53



On Mon, Nov 12, 2007 at 09:26:38AM -0800, David Newman wrote:


On 11/12/07 8:14 AM, Jerry McAllister wrote:

> An update: After doing what you suggest (leaving in the "good" disk,
> adding a new disk, RAID rebuilding) I still got soft write errors --
> with *either one* of the disks I tried.
> 
> Then I tried putting both disks in an identical server and they came up

> fine, no read or write errors.
> 
> Ergo, the bad RAID controller is bad and the disks may be OK.
> 
>> Probably not.

>> Generally, if the RAID controller is bad, you will see errors
>> all over and not it just one place, tho I suppose it is possible.
>> Check and see what it reports as error locations and see if they
>> move around any.

Jerry, thanks for your response.

After 36 hours of running the same disks in a different, identical
machine there hasn't been a single read or write error. I'm hardly a
storage expert but from the evidence I have I'm inclined to believe the
root cause was a bad RAID controller and not failed disks.


That is not much proof. 
The different machine would probably be accessing the disks in

a different way, either slightly different positioning or using
different space.   Also, 36 hours is not really much time.


Dn, I have had a Promise controller that was bad. I kept getting errors
at one specific location on two disks out of three on a RAID 5. The
system continued to operate. When I finally spent the time to nail it
down to the controller I found the Promise people more than anxious to
get the beast for a postmortem. It had been bad for me from day one. It
would take about a week to a month for the problem to appear. After the
6th disk showing the problem at the same block number the coin dropped
in my sometimes overly slow mind.

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


Re: dealing with a failing drive

2007-11-14 Thread jdow

From: "David Newman" <[EMAIL PROTECTED]>

-BEGIN PGP SIGNED MESSAGE-



On 11/12/07 8:14 AM, Jerry McAllister wrote:


An update: After doing what you suggest (leaving in the "good" disk,
adding a new disk, RAID rebuilding) I still got soft write errors --
with *either one* of the disks I tried.

Then I tried putting both disks in an identical server and they came up
fine, no read or write errors.

Ergo, the bad RAID controller is bad and the disks may be OK.


Probably not.
Generally, if the RAID controller is bad, you will see errors
all over and not it just one place, tho I suppose it is possible.
Check and see what it reports as error locations and see if they
move around any.


Jerry, thanks for your response.

After 36 hours of running the same disks in a different, identical
machine there hasn't been a single read or write error. I'm hardly a
storage expert but from the evidence I have I'm inclined to believe the
root cause was a bad RAID controller and not failed disks.

I'm aware of CLI tools to monitor 3Ware SATA RAID controllers. Anyone
know if there are similar tools for HP/Compaq SCSI RAID controllers?


Bad cable? Iffy power supply? Examine each step the data and power
take for possible hitches. You might even have an overheated and
weakened power connector on a drive. If it's not making solid contact
it can give you headaches.

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


Re: Socket programming question

2007-11-14 Thread Giorgos Keramidas
On 2007-11-14 15:21, Andrew Falanga <[EMAIL PROTECTED]> wrote:
> Hi,
> My question has to do with how someone would find out if a call to
> socket(2) actually produced a socket.  I know that the API works, I've
> programmed with it many times, but is there a way to find out if 's'
> returned by socket(2) is actually valid in whatever kernel structure
> it is stored?  I understand that I may have the process entirely mixed
> up.  But it seems to me that the socket is somehow known to the kernel
> and I should be able to query the kernel somehow and discover if it is
> valid.

The socket() system call returns -1 when it fails.  Isn't that
sufficient?  If not, why?  What ``extra'' information would you
expect from the kernel when socket() fails?

> Let me know if my question doesn't make sense as worded and I'll try
> to explain myself better.  Another question related to this one, would
> someone in this list know where the source code is, in the system
> source tree, for the select call?

Look for kern_select() in `/usr/src/sys/kern/sys_generic.c'.

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


Re: Gcc Problems

2007-11-14 Thread Giorgos Keramidas
On 2007-11-14 13:21, Mike Fahey <[EMAIL PROTECTED]> wrote:
>
> Freebsd4.10
>
> When I try to compile any problem I get the following error. Any
> suggestions? Thanks.
>
> helpers/dummy.c:1: syntax error before `/'
>
> Here is a sample trying to build any port.
>
> make
> ===>   wget-1.10.2_1 depends on file: /usr/local/lib/libcrypto.so.4 -
> found
> ===>   wget-1.10.2_1 depends on executable: gmake - found
> ===>   wget-1.10.2_1 depends on file: /usr/local/bin/perl5.8.8 - found
> ===>   wget-1.10.2_1 depends on shared library: intl - found
> ===>  Configuring for wget-1.10.2_1
> configure: WARNING: you should use --build, --host, --target
> configure: configuring for GNU Wget 1.10.2
> checking build system type... i386-portbld-freebsd4.10
> checking host system type... i386-portbld-freebsd4.10
> checking whether gmake sets $(MAKE)... eval: 1: Syntax error: "("
> unexpected
> ===>  Script "configure" failed unexpectedly.
> Please report the problem to [EMAIL PROTECTED] [maintainer] and attach the
> "/usr/ports/ftp/wget/work/wget-1.10.2/config.log" including the output
> of the failure of your make command. Also, it might be a good idea to
> provide an overview of all packages installed on your system (e.g. an
> `ls /var/db/pkg`).
> *** Error code 1

The error message points to files which you can skim through, to see
more error messages.  Did you look at these?  If yes, can you attach a
copy and send it to this list and the maintainer email address listed
above?

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


Re: python25 core dumps

2007-11-14 Thread Heiko Wundram (Beenic)
Am Mittwoch, 14. November 2007 23:15:36 schrieb David J Brooks:
> Since upgrading to 7.0-BETA2 most of my python based programs fail with
> Segmentation fault: 11 (core dumped). It seems to be limited to gui based
> programs using Gtk or Qt. Any idea what's going on there? Hints on how to
> analyze the python.core files would be helpful too.

Easy way to get info from the backtrace:

gdb /usr/local/bin/python /python.core

Then, enter the "back" command in the post-mortem debugging session and post 
the output here. Someone (maybe even me) should be able to give you a hint 
where to look further from there.

-- 
Heiko Wundram
Product & Application Development
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Socket programming question

2007-11-14 Thread Bruce Cran

Derek Ragona wrote:
With internet sockets, these get added to the TCP stack, and their are 
kernel structures created too I'm sure, but I have no idea how to find 
those.  Netstat will show sockets in use though.




sockstat(1) might also be useful as it shows information about what 
program opened the connection and the file descriptor number of the socket.


--
Bruce

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


Re: Socket programming question

2007-11-14 Thread Heiko Wundram (Beenic)
Am Mittwoch, 14. November 2007 23:21:43 schrieb Andrew Falanga:
> My question has to do with how someone would find out if a call to
> socket(2) actually produced a socket.  I know that the API works, I've
> programmed with it many times, but is there a way to find out if 's'
> returned by socket(2) is actually valid in whatever kernel structure it is
> stored?  I understand that I may have the process entirely mixed up.  But
> it seems to me that the socket is somehow known to the kernel and I should
> be able to query the kernel somehow and discover if it is valid.
>
> Let me know if my question doesn't make sense as worded and I'll try to
> explain myself better.  Another question related to this one, would someone
> in this list know where the source code is, in the system source tree, for
> the select call?

Sorry to say that, but it doesn't make sense as it's worded. The descriptor 
returned by socket(2) is valid if it's >= 0 (that's the API contract for the 
socket(2) C function), and remains valid until the program ends (unless you 
close the descriptor with close(2) before your program terminates, in which 
case the descriptor first becomes invalid [i.e. EBADF], but might be reused 
later by another call to socket(2) or open(2), in which case the descriptor 
again becomes valid but is associated with another object and possibly also 
with another type of object [file/pipe vs. socket]).

That's the API-contract that's specified in POSIX, and to which FreeBSD 
sticks. As an application programmer, you can (and have to) rely on this 
behaviour; any derivation from this is a kernel bug, and should be posted as 
a PR.

Generally, the easy way to query whether a descriptor is valid is by simply 
calling the respective function you want to execute on it, and if that 
returns errno = EBADF, then you know that the descriptor is invalid. In case 
it returns something else, it just tells you that the descriptor is valid, 
but doesn't tell you whether the descriptor is really associated with what 
you think it is. But if you follow the flow of control in the program, you 
should be able to make out where the descriptor is created and how it's 
modified, and thus be able to deduce (under the condition that the kernel 
sticks to POSIX specifications) what the state of the descriptor is at the 
time of usage.

Hope this helps!

-- 
Heiko Wundram
Product & Application Development
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can anyone recommend an external firewire-based drive?

2007-11-14 Thread David Kelly
On Wed, Nov 14, 2007 at 12:23:53PM -0800, George Hartzell wrote:
> David Kelly writes:
> > 
> > I haven't used it with FreeBSD but my Seagate 300G works very with
> > Macintosh. LaCie is another highly respected brand among Mac users.
> 
> Are you running Mac OS X on your mac, or FreeBSD?

I see little point in running FreeBSD on my Mac. I have other boxes
which run FreeBSD perfectly fine so it would be a waste of a perfectly
good MacOS X. A Dell with FreeBSD is an excellent coprocessor for a Mac.

Many FreeBSD things run perfectly fine on MacOS. I'd like avr-gcc to run
as well on Mac as on FreeBSD, but its only svn and Terminal.app away
from my Mac. And not currently worth my effort to properly build a
current version on the Mac.

I rather like editing in BBedit on the Mac. I think the free
TextWrangler would be just as good for my use but don't remember if
integrated CVS and SVN are included.

Downloaded, installed, checked, nope. No CVS/SVN from within
TextWrangler.

> I'm planning to buy myself a mac pro in the near future (as soon as
> they announce the penryn based models) and am planning to dual boot
> RELENG_7 on it.

I bought one of the first quad 2.6 GHz Mac Pros. Its sweet! Strangely
not as solid as my dual G4-867 GHz. The Mac Pro almost always wakes
immediately from sleep when manually invoked but stays down the 2nd
time. Since Leopard it has failed to properly wake from sleep twice. But
no such problem with the G4. 

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


evolution slow on 7.0

2007-11-14 Thread James
Hi folks,

first, I know the subject line is a goldmine for jokes, but I couldn't
think of a better way to phrase it.

Ever since I moved to FreeBSD 7.0, the evolution mail client has become
ridiculously slow for me. It takes two or three minutes to start up,
right clicking on a folder takes several minutes to display a context
menu etc

My install process was as follows:

1. backup my home directory from a FreeBSD 6.2 install
2. Format the hard drive
3. Install 7.0 beta 1.5
4. csup sources and install beta 2.0
5. pkg_add xorg, gnome etc -- evolution was slow as a dog from this
6. portsnap fetch extract
7. follow the instructions in UPDATING for updating gnome

I tried cd /usr/ports/mail/evolution && make deinstall && make
reinstall, to see if something had simply gone wrong during the build,
but nothing changed.

Any ideas?

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


Re: FreeBSD-7.0-Beta2 (i386) on Opteron?

2007-11-14 Thread Kris Kennaway

Aryeh M. Friedman wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



Sounds like you might have a corrupted installation.  Did you
verify the MD5 checksum on the ISO images?

This is completely off topic but MD5 is not secure:
http://www.infosec.sdu.edu.cn/paper/md5-attack.pdf

Similar weaknesses have been found in the entire MD/SHA families.


Uh, thanks, I guess.

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


Re: FreeBSD-7.0-Beta2 (i386) on Opteron?

2007-11-14 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


>
> Sounds like you might have a corrupted installation.  Did you
> verify the MD5 checksum on the ISO images?
This is completely off topic but MD5 is not secure:
http://www.infosec.sdu.edu.cn/paper/md5-attack.pdf

Similar weaknesses have been found in the entire MD/SHA families.

- --
Aryeh M. Friedman
Developer, not business, friendly
http://www.flosoft-systems.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHO4GaJ9+1V27SttsRAvb2AJ9puUWSDVvxGGOLfTaR9X7cpLW6IwCcDk2w
02p+A6JE7A/f7midhn+wPSc=
=G9j/
-END PGP SIGNATURE-

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


Re: Socket programming question

2007-11-14 Thread Derek Ragona

At 04:21 PM 11/14/2007, Andrew Falanga wrote:

Hi,

My question has to do with how someone would find out if a call to socket(2)
actually produced a socket.  I know that the API works, I've programmed with
it many times, but is there a way to find out if 's' returned by socket(2)
is actually valid in whatever kernel structure it is stored?  I understand
that I may have the process entirely mixed up.  But it seems to me that the
socket is somehow known to the kernel and I should be able to query the
kernel somehow and discover if it is valid.

Let me know if my question doesn't make sense as worded and I'll try to
explain myself better.  Another question related to this one, would someone
in this list know where the source code is, in the system source tree, for
the select call?

Thanks,
Andy


Andy,

It's been a while since I did socket programing, but the easiest test is to 
use a client application to contact the server side socket.  Just be sure 
if you want to connect from another host you set the domain correctly in 
your socket call for a local socket on the same host or an internet socket 
to contact from another host.


With internet sockets, these get added to the TCP stack, and their are 
kernel structures created too I'm sure, but I have no idea how to find 
those.  Netstat will show sockets in use though.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: cups builds on one, but rejected by another?

2007-11-14 Thread Kent Stewart
On Wednesday 14 November 2007, Jonathan Horne wrote:
> On Wednesday 14 November 2007 03:57:26 pm Kris Kennaway wrote:
> > Jonathan Horne wrote:
> > > On Wednesday 14 November 2007 03:39:47 pm Jonathan Horne wrote:
> > >> my jails server (6.2-p8) just ran portupgrade fine, and cups was
> > >> one of its items it updated:
> > >>
> > >> [EMAIL PROTECTED] ~]# pkg_info | grep cups-
> > >> cups-base-1.3.3_2   Common UNIX Printing System
> > >>
> > >> but my 7.0-b2 desktop, refuses to build the same package:
> > >>
> > >> ===>  cups-base-1.3.3_2 has known vulnerabilities:
> > >> => cups -- off-by-one buffer overflow.
> > >>Reference:
> > >>  > >>001c2514 716 c.html> => Please update your ports tree and try
> > >> again. *** Error code 1
> > >>
> > >> what would be the differences between the 2 systems that one
> > >> would build it, and the other reject the same port?  ive not
> > >> tweaked any port security settings on either one, so this is
> > >> some curious behavior to me.
> > >>
> > >> thanks,
> > >
> > > another interesting thing, when you read the portaudit page for
> > > this, it says:
> > >
> > > Affects:
> > > cups-base <1.3.3_1
> > >
> > > but yet 1.3.3_2 still is rejected.
> >
> > One or the other has either a stale portaudit database or ports
> > tree.
> >
> > Kris
>
> what is the method for updating the portaudit database?  both have
> had their ports trees updated today, the 7.0 box multiple times.
>
> thanks,

Portaudit was updated w/r to cups-base at 2019 UDT 14 Nov

man portaudit

portaudit -Fa 

will update and check.

Kent


-- 
Kent Stewart
Richland, WA

http://www.soyandina.com/ "I am Andean project".
http://users.owt.com/kstewart/index.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD-7.0-Beta2 (i386) on Opteron?

2007-11-14 Thread Kris Kennaway

Mark Staudinger wrote:

I wasn't sure if -questions or -current was the right group, but I searched
both before posting.

I'm trying to begin testing FreeBSD-7.0-Beta2, and I have a mixture of Intel
and AMD-based machines that I work with.
I'm using the i386 release.  I've previously used FreeBSD-4.9R and 6.2R for
i386 on these machines, but cannot get
7.0-Beta2 to work on the AMD machines.  These are 100- and 1000-series
dual-core Opteron CPUs.

I've tried:
Updating using source from 6.2-Release
Installing from 7.0-Beta2 CD
Installing from 7.0-CURRENT-200710-i386 snapshot CD

I see a variety of errors, including:

1) BTX Halted

2) errors when running /bin/sh from /etc/rc
   /libexec/ld-elf.so.1  Undefined symbol "opterr" referenced from COPY
relocation in sh
   /libexec/ld-elf.so.1 Invalid file format (on multiple binaries)
   various other "undefined symbol" messages
   signal 10, signal 11 on multiple binaries


Sounds like you might have a corrupted installation.  Did you verify the 
MD5 checksum on the ISO images?



Has anyone successfully used 7.0-Beta2 for i386 on AMD Opteron-based
platform?  Any suggestions for tracking
down the problem?


Yes, it works on mine.

Kris

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


Re: Ports with GUI configs

2007-11-14 Thread Chad Perrin
On Mon, Nov 12, 2007 at 08:23:23PM -0500, Chuck Robey wrote:
> 
> This makes a little file of descriptor words, but it's not set so a 
> regular editor can manipulate it; the special ports program is needed to 
> set or reset this list.  All ports query this list in making the 
> decision as to whether or whether not to include a particular port as a 
> dependency.

Ugh.  As far as I'm concerned, everything that pertains to system
configuration should always be human-readable and editable without
special tools.  Trying to insulate things from human ability to directly
manipulate them tends to lead to rapidly increasing difficulty of
debugging configurations.

> 
> I left out one last point> there will be a reject list: a list of port 
> names or regular expression patters, of ports that can't be installed 
> under any circumstances.

I *love* this idea!

/me starts cobbling together a list of things that start with 'k' or 'g',
preparing for that future date when this is possible.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
John Kenneth Galbraith: "If all else fails, immortality can always be
assured through spectacular error."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


FreeBSD-7.0-Beta2 (i386) on Opteron?

2007-11-14 Thread Mark Staudinger
I wasn't sure if -questions or -current was the right group, but I searched
both before posting.

I'm trying to begin testing FreeBSD-7.0-Beta2, and I have a mixture of Intel
and AMD-based machines that I work with.
I'm using the i386 release.  I've previously used FreeBSD-4.9R and 6.2R for
i386 on these machines, but cannot get
7.0-Beta2 to work on the AMD machines.  These are 100- and 1000-series
dual-core Opteron CPUs.

I've tried:
Updating using source from 6.2-Release
Installing from 7.0-Beta2 CD
Installing from 7.0-CURRENT-200710-i386 snapshot CD

I see a variety of errors, including:

1) BTX Halted

2) errors when running /bin/sh from /etc/rc
   /libexec/ld-elf.so.1  Undefined symbol "opterr" referenced from COPY
relocation in sh
   /libexec/ld-elf.so.1 Invalid file format (on multiple binaries)
   various other "undefined symbol" messages
   signal 10, signal 11 on multiple binaries


I've tried both uni-processor and SMP kernels, as well as the GENERIC kernel
supplied with the
base installation.  I've also tried disabling ACPI.  There's no "one error
condition" that I can identify,
it seems to change each time I boot, it's quite erratic, and most errors
don't result in a panic.
I have of course tested multiple pieces of hardware, and I've also performed
the install on an Intel-based machine
and then moved the disk to the AMD.  In all cases, I encountered failures
immediately upon running a few small
commands (assuming the login prompt even appears).

Has anyone successfully used 7.0-Beta2 for i386 on AMD Opteron-based
platform?  Any suggestions for tracking
down the problem?

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


Re: cups builds on one, but rejected by another?

2007-11-14 Thread Kurt Buff
On 11/14/07, Jonathan Horne <[EMAIL PROTECTED]> wrote:
> On Wednesday 14 November 2007 04:32:12 pm Kurt Buff wrote:
> > On 11/14/07, Jonathan Horne <[EMAIL PROTECTED]> wrote:
> > > On Wednesday 14 November 2007 03:57:26 pm Kris Kennaway wrote:
> > > > Jonathan Horne wrote:
> > > > > On Wednesday 14 November 2007 03:39:47 pm Jonathan Horne wrote:
> > > > >> my jails server (6.2-p8) just ran portupgrade fine, and cups was one
> > > > >> of its items it updated:
> > > > >>
> > > > >> [EMAIL PROTECTED] ~]# pkg_info | grep cups-
> > > > >> cups-base-1.3.3_2   Common UNIX Printing System
> > > > >>
> > > > >> but my 7.0-b2 desktop, refuses to build the same package:
> > > > >>
> > > > >> ===>  cups-base-1.3.3_2 has known vulnerabilities:
> > > > >> => cups -- off-by-one buffer overflow.
> > > > >>Reference:
> > > > >>  > > > >>2514 716 c.html> => Please update your ports tree and try again.
> > > > >> *** Error code 1
> > > > >>
> > > > >> what would be the differences between the 2 systems that one would
> > > > >> build it, and the other reject the same port?  ive not tweaked any
> > > > >> port security settings on either one, so this is some curious
> > > > >> behavior to me.
> > > > >>
> > > > >> thanks,
> > > > >
> > > > > another interesting thing, when you read the portaudit page for this,
> > > > > it says:
> > > > >
> > > > > Affects:
> > > > > cups-base <1.3.3_1
> > > > >
> > > > > but yet 1.3.3_2 still is rejected.
> > > >
> > > > One or the other has either a stale portaudit database or ports tree.
> > > >
> > > > Kris
> > >
> > > what is the method for updating the portaudit database?  both have had
> > > their ports trees updated today, the 7.0 box multiple times.
> > >
> > > thanks,
> > > --
> > > Jonathan Horne
> > > http://dfwlpiki.dfwlp.org
> > > [EMAIL PROTECTED]
> >
> > I ran into a similar issue with cups - what does 'portaudit -aF' give
> > on each machine?
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "[EMAIL PROTECTED]"
>
> interesting, portaudit seems to be part of the 7.0 base system now.  on my
> BETA2 box:
>
> [EMAIL PROTECTED] /usr/ports]# portaudit -aF
> auditfile.tbz 100% of   45 kB  100 kBps
> New database installed.
> Affected package: cups-base-1.3.3
> Type of problem: xpdf -- multiple remote Stream.CC vulnerabilities.
> Reference:
> 
>
> Affected package: cups-base-1.3.3
> Type of problem: cups -- off-by-one buffer overflow.
> Reference:
> 
>
> 2 problem(s) in your installed packages found.
>
> You are advised to update or deinstall the affected package(s) immediately.
>
> portaudit is not installed on my 6.2 server, so i have no data to print for
> that one.
>
> thanks,
> --
> Jonathan Horne
> http://dfwlpiki.dfwlp.org
> [EMAIL PROTECTED]

That lack of portaudit on your 6.2 system is probably why it doesn't
care. I'll bet that if you had installed portaudit on your 6.2 system
before trying to update, it wouldn't build either, until the port was
updated, which happened a day or so ago. Further, I'll guess that the
ports tree on your 7.0 system doesn't contain the updated port for
cups - I don't have a 7.0 system on which to test, and don't have a
sophisticated understanding of how all that works, but it's possible
that the ports tree for 7.0 doesn't have the updates.

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


Re: cups builds on one, but rejected by another?

2007-11-14 Thread Jonathan Horne
On Wednesday 14 November 2007 04:32:12 pm Kurt Buff wrote:
> On 11/14/07, Jonathan Horne <[EMAIL PROTECTED]> wrote:
> > On Wednesday 14 November 2007 03:57:26 pm Kris Kennaway wrote:
> > > Jonathan Horne wrote:
> > > > On Wednesday 14 November 2007 03:39:47 pm Jonathan Horne wrote:
> > > >> my jails server (6.2-p8) just ran portupgrade fine, and cups was one
> > > >> of its items it updated:
> > > >>
> > > >> [EMAIL PROTECTED] ~]# pkg_info | grep cups-
> > > >> cups-base-1.3.3_2   Common UNIX Printing System
> > > >>
> > > >> but my 7.0-b2 desktop, refuses to build the same package:
> > > >>
> > > >> ===>  cups-base-1.3.3_2 has known vulnerabilities:
> > > >> => cups -- off-by-one buffer overflow.
> > > >>Reference:
> > > >>  > > >>2514 716 c.html> => Please update your ports tree and try again.
> > > >> *** Error code 1
> > > >>
> > > >> what would be the differences between the 2 systems that one would
> > > >> build it, and the other reject the same port?  ive not tweaked any
> > > >> port security settings on either one, so this is some curious
> > > >> behavior to me.
> > > >>
> > > >> thanks,
> > > >
> > > > another interesting thing, when you read the portaudit page for this,
> > > > it says:
> > > >
> > > > Affects:
> > > > cups-base <1.3.3_1
> > > >
> > > > but yet 1.3.3_2 still is rejected.
> > >
> > > One or the other has either a stale portaudit database or ports tree.
> > >
> > > Kris
> >
> > what is the method for updating the portaudit database?  both have had
> > their ports trees updated today, the 7.0 box multiple times.
> >
> > thanks,
> > --
> > Jonathan Horne
> > http://dfwlpiki.dfwlp.org
> > [EMAIL PROTECTED]
>
> I ran into a similar issue with cups - what does 'portaudit -aF' give
> on each machine?
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

interesting, portaudit seems to be part of the 7.0 base system now.  on my 
BETA2 box:

[EMAIL PROTECTED] /usr/ports]# portaudit -aF
auditfile.tbz 100% of   45 kB  100 kBps
New database installed.
Affected package: cups-base-1.3.3
Type of problem: xpdf -- multiple remote Stream.CC vulnerabilities.
Reference: 


Affected package: cups-base-1.3.3
Type of problem: cups -- off-by-one buffer overflow.
Reference: 


2 problem(s) in your installed packages found.

You are advised to update or deinstall the affected package(s) immediately.

portaudit is not installed on my 6.2 server, so i have no data to print for 
that one.

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


Re: One Laptop Per Child

2007-11-14 Thread Chad Perrin
On Tue, Nov 13, 2007 at 10:31:14AM -0500, Bart Silverstrim wrote:
> 
> You're aware that by offering your opinion while chastising people for 
> doing likewise, you're contributing to the topic you're chastising, right?

Actually . . . I thought the points were made well.  I think perhaps you
have a misconception about what was intended.  My understanding is that
the previous post was intended to chastise someone for an unthinking,
reactionary response, and point out a more reasonable alternative, while
I suspect yours was that the previous post was nothing more than a
knee-jerk "Can't we all just get along?" with random opinions thrown in
-- and you objected to the opinions part, but not the "Can't we all just
get along?"

I personally find vapid, insipid "Can't we all just get along?"
statements odious and unproductive.  I found the post to which you
replied well reasoned and valuable, if a little abrasive.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
John Kenneth Galbraith: "If all else fails, immortality can always be
assured through spectacular error."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: cups builds on one, but rejected by another?

2007-11-14 Thread Kurt Buff
On 11/14/07, Jonathan Horne <[EMAIL PROTECTED]> wrote:
> On Wednesday 14 November 2007 03:57:26 pm Kris Kennaway wrote:
> > Jonathan Horne wrote:
> > > On Wednesday 14 November 2007 03:39:47 pm Jonathan Horne wrote:
> > >> my jails server (6.2-p8) just ran portupgrade fine, and cups was one of
> > >> its items it updated:
> > >>
> > >> [EMAIL PROTECTED] ~]# pkg_info | grep cups-
> > >> cups-base-1.3.3_2   Common UNIX Printing System
> > >>
> > >> but my 7.0-b2 desktop, refuses to build the same package:
> > >>
> > >> ===>  cups-base-1.3.3_2 has known vulnerabilities:
> > >> => cups -- off-by-one buffer overflow.
> > >>Reference:
> > >>  > >>716 c.html> => Please update your ports tree and try again.
> > >> *** Error code 1
> > >>
> > >> what would be the differences between the 2 systems that one would build
> > >> it, and the other reject the same port?  ive not tweaked any port
> > >> security settings on either one, so this is some curious behavior to me.
> > >>
> > >> thanks,
> > >
> > > another interesting thing, when you read the portaudit page for this, it
> > > says:
> > >
> > > Affects:
> > > cups-base <1.3.3_1
> > >
> > > but yet 1.3.3_2 still is rejected.
> >
> > One or the other has either a stale portaudit database or ports tree.
> >
> > Kris
>
> what is the method for updating the portaudit database?  both have had their
> ports trees updated today, the 7.0 box multiple times.
>
> thanks,
> --
> Jonathan Horne
> http://dfwlpiki.dfwlp.org
> [EMAIL PROTECTED]

I ran into a similar issue with cups - what does 'portaudit -aF' give
on each machine?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Socket programming question

2007-11-14 Thread Andrew Falanga
Hi,

My question has to do with how someone would find out if a call to socket(2)
actually produced a socket.  I know that the API works, I've programmed with
it many times, but is there a way to find out if 's' returned by socket(2)
is actually valid in whatever kernel structure it is stored?  I understand
that I may have the process entirely mixed up.  But it seems to me that the
socket is somehow known to the kernel and I should be able to query the
kernel somehow and discover if it is valid.

Let me know if my question doesn't make sense as worded and I'll try to
explain myself better.  Another question related to this one, would someone
in this list know where the source code is, in the system source tree, for
the select call?

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


python25 core dumps

2007-11-14 Thread David J Brooks
Since upgrading to 7.0-BETA2 most of my python based programs fail with 
Segmentation fault: 11 (core dumped). It seems to be limited to gui based 
programs using Gtk or Qt. Any idea what's going on there? Hints on how to 
analyze the python.core files would be helpful too.

David
-- 
This message coming soon to an illegal DVD.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: cups builds on one, but rejected by another?

2007-11-14 Thread Jonathan Horne
On Wednesday 14 November 2007 03:57:26 pm Kris Kennaway wrote:
> Jonathan Horne wrote:
> > On Wednesday 14 November 2007 03:39:47 pm Jonathan Horne wrote:
> >> my jails server (6.2-p8) just ran portupgrade fine, and cups was one of
> >> its items it updated:
> >>
> >> [EMAIL PROTECTED] ~]# pkg_info | grep cups-
> >> cups-base-1.3.3_2   Common UNIX Printing System
> >>
> >> but my 7.0-b2 desktop, refuses to build the same package:
> >>
> >> ===>  cups-base-1.3.3_2 has known vulnerabilities:
> >> => cups -- off-by-one buffer overflow.
> >>Reference:
> >>  >>716 c.html> => Please update your ports tree and try again.
> >> *** Error code 1
> >>
> >> what would be the differences between the 2 systems that one would build
> >> it, and the other reject the same port?  ive not tweaked any port
> >> security settings on either one, so this is some curious behavior to me.
> >>
> >> thanks,
> >
> > another interesting thing, when you read the portaudit page for this, it
> > says:
> >
> > Affects:
> > cups-base <1.3.3_1
> >
> > but yet 1.3.3_2 still is rejected.
>
> One or the other has either a stale portaudit database or ports tree.
>
> Kris

what is the method for updating the portaudit database?  both have had their 
ports trees updated today, the 7.0 box multiple times.

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


Re: Port GUI Config

2007-11-14 Thread Bahman M.
On 2007-11-14 Donovan R. Palmer wrote:
> I went to compile a programme in the port tree tonight. When I did
> so, a GUI popped up with different options. No probs.  However, later
> I decided I wanted to compile it with different options. When I go to
> compile it, the GUI doesn't pop up any more, so I assume it is using
> the options I picked out in the first place.  Is there a way to bring
> back this GUI so I can select different options? TIA

Check out /usr/ports/Mk/bsd.port.mk which explains all generic make
switches of the ports system.

But as a quick help,
# make rmconfig
will do what you asked about.

-- 
Bahman Movaqar

Give me six lines written by the most honourable of men, and I will
find an excuse in them to hang him.
-Cardinal Richelieu
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 7.0, make buildworld without contrib. old top binary in contrib.

2007-11-14 Thread Dan Nelson
In the last episode (Nov 14), peceka said:
> Hi,
> 
> can someone tell me if there is any possibility to do make buildworld
> without compiling all contrib/ directory? I don't need for example bind9
> in base, ipfilter, lukemftp(d).
> And why in /usr/src/contrib is very old top binary, 3.5beta12? On
> http://www.sourceforge.net/projects/unixtop there is top-3.7beta2 where
> ie. -c option, very helpful, works.

FreeBSD's top recently got an "-a" option that seems to do the same
thing.  It might be nice if this were renamed to -c before 7.0 gets
released, to make subsequent merges from unixtop easier.

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


7.0, make buildworld without contrib. old top binary in contrib.

2007-11-14 Thread peceka
Hi,

can someone tell me if there is any possibility to do make buildworld
without compiling all contrib/ directory? I don't need for example bind9
in base, ipfilter, lukemftp(d).
And why in /usr/src/contrib is very old top binary, 3.5beta12? On
http://www.sourceforge.net/projects/unixtop there is top-3.7beta2 where
ie. -c option, very helpful, works.

Regards,
p.

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


Re: 7.0, make buildworld without contrib. old top binary in contrib.

2007-11-14 Thread Yuri Pankov
On Wed, Nov 14, 2007 at 10:21:01PM +0100, peceka wrote:
> Hi,
> 
> can someone tell me if there is any possibility to do make buildworld
> without compiling all contrib/ directory? I don't need for example bind9
> in base, ipfilter, lukemftp(d).

Check src.conf(5) manpage.

> And why in /usr/src/contrib is very old top binary, 3.5beta12? On
> http://www.sourceforge.net/projects/unixtop there is top-3.7beta2 where
> ie. -c option, very helpful, works.
> 
> Regards,
> p.


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


Re: 7.0, make buildworld without contrib. old top binary in contrib.

2007-11-14 Thread Philip M. Gollucci
peceka wrote:
> Hi,
> And why in /usr/src/contrib is very old top binary, 3.5beta12? On
> http://www.sourceforge.net/projects/unixtop there is top-3.7beta2 where
> ie. -c option, very helpful, works.
B/C there have been substantial changes in both top and in the top in
FreeBSD base system.

I was actually messing around with updating this.  Its at least a day or
3 of solid effort -- at least for lowly me.


-- 

Philip M. Gollucci ([EMAIL PROTECTED])
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

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


Re: cups builds on one, but rejected by another?

2007-11-14 Thread Kris Kennaway

Jonathan Horne wrote:

On Wednesday 14 November 2007 03:39:47 pm Jonathan Horne wrote:

my jails server (6.2-p8) just ran portupgrade fine, and cups was one of its
items it updated:

[EMAIL PROTECTED] ~]# pkg_info | grep cups-
cups-base-1.3.3_2   Common UNIX Printing System

but my 7.0-b2 desktop, refuses to build the same package:

===>  cups-base-1.3.3_2 has known vulnerabilities:
=> cups -- off-by-one buffer overflow.
   Reference:
 => Please update your ports tree and try again.
*** Error code 1

what would be the differences between the 2 systems that one would build
it, and the other reject the same port?  ive not tweaked any port security
settings on either one, so this is some curious behavior to me.

thanks,


another interesting thing, when you read the portaudit page for this, it says:

Affects:
cups-base <1.3.3_1

but yet 1.3.3_2 still is rejected.


One or the other has either a stale portaudit database or ports tree.

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


7.0, make buildworld without contrib. old top binary in contrib.

2007-11-14 Thread Robert Huff
peceka writes:

>  can someone tell me if there is any possibility to do make
>  buildworld without compiling all contrib/ directory? I don't need
>  for example bind9 in base, ipfilter, lukemftp(d).

huff@> grep NO /etc/make.conf
#NO_BOOT=   true# do not build boot blocks and loader
#NO_CVS=true# do not build CVS
#NO_CXX=true# do not build C++ and friends
#NO_BIND=   true# do not build BIND
NO_BIND_ETC=   true# Do not install files to /etc/namedb
NO_BLUETOOTH=  true# do not build Bluetooth related stuff
#NO_FORTRAN=true# do not build g77 and related libraries
#NO_GDB=true# do not build GDB
#NO_I4B=true# do not build isdn4bsd package
#NO_IPFILTER=   true# do not build IP Filter package
#NO_PF= true# do not build PF firewall package
#NO_AUTHPF= true# do not build and install authpf (setuid/gid)
#NO_KERBEROS=   true# do not build and install Kerberos 5 (KTH Heimdal)
#NO_LPR=true# do not build lpr and related programs
#NO_MAILWRAPPER=true# do not build the mailwrapper(8) MTA selector
#NO_MODULES=true# do not build modules with the kernel
#NO_OBJC=   true# do not build Objective C support
#NO_OPENSSH=true# do not build OpenSSH
#NO_OPENSSL=true# do not build OpenSSL (implies NO_KERBEROS/NO_OPENSSH)
#NO_SENDMAIL=   true# do not build sendmail and related programs
#NO_SHAREDOCS=  true# do not build the 4.4BSD legacy docs
#NO_TCSH=   true# do not build and install /bin/csh (which is tcsh)
#NO_VINUM=  true# do not build Vinum utilities
#NOCRYPT=   true# do not build any crypto code
#NOGAMES=   true# do not build games (games/ subdir)
#NOINFO=true# do not make or install info files
#NOLIBC_R=  true# do not build libc_r (re-entrant version of libc)
#NOMAN= true# do not build manual pages
NO_PROFILE= true# Avoid compiling profiled libraries
#NOSHARE=   true# do not go into the share subdir
NO_LPR= true


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


Re: cups builds on one, but rejected by another?

2007-11-14 Thread Jonathan Horne
On Wednesday 14 November 2007 03:39:47 pm Jonathan Horne wrote:
> my jails server (6.2-p8) just ran portupgrade fine, and cups was one of its
> items it updated:
>
> [EMAIL PROTECTED] ~]# pkg_info | grep cups-
> cups-base-1.3.3_2   Common UNIX Printing System
>
> but my 7.0-b2 desktop, refuses to build the same package:
>
> ===>  cups-base-1.3.3_2 has known vulnerabilities:
> => cups -- off-by-one buffer overflow.
>Reference:
> c.html> => Please update your ports tree and try again.
> *** Error code 1
>
> what would be the differences between the 2 systems that one would build
> it, and the other reject the same port?  ive not tweaked any port security
> settings on either one, so this is some curious behavior to me.
>
> thanks,

another interesting thing, when you read the portaudit page for this, it says:

Affects:
cups-base <1.3.3_1

but yet 1.3.3_2 still is rejected.
-- 
Jonathan Horne
http://dfwlpiki.dfwlp.org
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


cups builds on one, but rejected by another?

2007-11-14 Thread Jonathan Horne
my jails server (6.2-p8) just ran portupgrade fine, and cups was one of its 
items it updated:

[EMAIL PROTECTED] ~]# pkg_info | grep cups-
cups-base-1.3.3_2   Common UNIX Printing System

but my 7.0-b2 desktop, refuses to build the same package:

===>  cups-base-1.3.3_2 has known vulnerabilities:
=> cups -- off-by-one buffer overflow.
   Reference: 

=> Please update your ports tree and try again.
*** Error code 1

what would be the differences between the 2 systems that one would build it, 
and the other reject the same port?  ive not tweaked any port security 
settings on either one, so this is some curious behavior to me.

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


RE: Dell PE4600 RAID5 server failing

2007-11-14 Thread Derek Ragona

At 12:12 PM 11/14/2007, Tamouh H. wrote:

>
> Derek Ragona wrote:
> > At 09:00 AM 11/14/2007, Barnaby Scott wrote:
> >> I suspect I already know the answer to this, which is that the
> >> trouble I am having is nothing to do with the OS at all,
> but I have
> >> to ask, because I am otherwise up against a total brick wall!
> >>
> >> I bought a second-hand Dell Poweredge 4600 and installed
> FreeBSD 6.2
> >> earlier this year. I had it set up with RAID5 using its PERC3/DC
> >> controller, with 7 x 73GB disks (+ 1 hot spare). So far so
> good, and
> >> it worked faultlessly as a Samba server for several months.
> >>
> >> At the beginning of October, it went down, reporting a mismatch
> >> between the configuration on the NVRAM and the disks. With
> help from
> >> Dell support, I managed to recreate the RAID array and it worked
> >> again for a month.
> >>
> >> In early November it happened again, and has kept
> happening since. At
> >> one point it appeared that the backplane was faulty, so I replaced
> >> that, but I cannot keep the server up for more than a day or so
> >> without this 'mismatch' poblem.
> >>
> >> What about diagnostics on the hardware you may ask? I have run all
> >> the diagnostic tools that Dell can supply - several times
> - and the
> >> server declares itself to be totally fault-free.
> >>
> >> My specific questions therefore:
> >>
> >> Is there any way at all that FreeBSD could be invloved with this
> >> problem? (I did notice for example that the Dell PERC3/DC
> controller
> >> was not in the list of supported hardware - but then
> again, why did
> >> it work for several months?)
> >>
> >> Can I use FreeBSD to tell me anything about the fault that Dell's
> >> diagnostic tools haven't found?
> >>
> >> (I do hope someone might be able to help - Dell are trying
> to get me
> >> to switch to a 'supported' OS!)
> >>
> >>
> >> Thanks
> >>
> >> Barnaby Scott
> >
> > It doesn't sound like any OS issue as you set up the RAID
> outside the
> > OS.  It may be a bad drive or drive(s).  Most RAID drives have RAID
> > information written to the drives, and if this becomes
> unreadable you
> > will have RAID faults.
> >
> > Another likely culprit is heat.  Overheating drives often
> fail.  Are
> > you sure the temperatures in the drive enclosure is OK?
> >
> > If you can, run diagnostics on the drives, this usually requires
> > running these with the drives taken out of the RAID array though.
> >
> > -Derek
> >
>
> Thanks for replying - as I said, this is a long shot trying
> to see if there is any OS involvement.
>
> The drives are fine - I have used two different tools to
> analyse them while the computer is booted from a live CD and
> the RAID configuration cleared on the controller. Besides,
> you would expect one drive to fail at a time, and if this
> happened, the hot spare would surely be pressed into service.
> Nothing like this has happened though - the controller is
> reporting several drives (not always the same ones) failed
> simultaneously, but when the array is re-created from the
> disks, everything works fine. Problem is, it goes down again
> a day or so later.
>
> As for heat, there is nothing being reported there and the
> fans that cool that area are working.
>
> Any other ideas gratefully received!
>
> Barnaby Scott

This is very unlikely to be OS related. But here are few pointers:

1) Check the make/model of the drives. Certain types of make/model SCSI 
drives had a glitch in them a while ago with a certain firmware that 
they'd disconnect from a RAID. I had a personal experience with these ones 
(Seagate U320).


2) What did happen in October? Anything hardware, software, power wise has 
occurred ?


3) NVRAM and Disk mismatch, I'd say check the controller, backup battery 
present but weak ?


4) Unlikely to be the source, but run a test on your physical RAM using 
MEMTEST86+ and check the power supply is sufficient and working properly.





I've had some raid drives disconnect and go missing, which all cleared and 
was rebuilt on a full power-off reboot.  I belive this is due to some power 
issues in my area.  Specifically my line power from the utility was running 
high, over 127 volts, making over-voltage spikes prevalent.  On a couple 
spikes I saw the drives disconnect.


So it could be power related.

On temperature, I would put in a temperature probe and check it from the 
external probe.  Some remote KVM solutions now include temperature probes.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: FreeBSD 7.0 Beta-2 can't find INDEX

2007-11-14 Thread Kris Kennaway

Friedrich, Steven wrote:

I tried to install FreeBSD 7.0 Beta-2 from the bootonly iso and from CD1
iso.  The bootonly iso installs over the net and failed to fetch the
INDEX when trying to install ports, i.e., xorg, etc.

CD1 did the same thing.

Is this a known problem?


Yes, packages are only installed in the "release" directory where 
sysinstall is looking later on in the release process.  You should be 
able to use pkg_add -r, portinstall -P etc post-install.


Kris

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


RE: Port GUI Config

2007-11-14 Thread Barry Byrne
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Donovan R. Palmer
> Sent: 14 November 2007 20:19
> To: freebsd-questions@freebsd.org
> Subject: Port GUI Config
> 
> I went to compile a programme in the port tree tonight. When 
> I did so, a GUI popped up with different options. No probs.  
> However, later I decided I wanted to compile it with 
> different options. When I go to compile it, the GUI doesn't 
> pop up any more, so I assume it is using the options I picked 
> out in the first place.  Is there a way to bring back this 
> GUI so I can select different options? TIA 

You probably want to do:

make config

 - barry

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


FreeBSD 7.0 Beta-2 can't find INDEX

2007-11-14 Thread Friedrich, Steven
I tried to install FreeBSD 7.0 Beta-2 from the bootonly iso and from CD1
iso.  The bootonly iso installs over the net and failed to fetch the
INDEX when trying to install ports, i.e., xorg, etc.

CD1 did the same thing.

Is this a known problem?  I tried to search the mailing list archives
and the bug database to no avail.  Surprisingly, the bug database
doesn't allow us to search for bugs against 7.0 Beta-2 only...


Steven Friedrich
Louisville, KY  40229

There are 10 types of people in this world. Ones that understand binary
and then, the others.

The world's greatest CEO's have yet to figure out that the solution to
hunger is living-wage employment!



This communication is confidential and may be legally privileged.  If you are 
not the intended recipient, (i) please do not read or disclose to others, (ii) 
please notify the sender by reply mail, and (iii) please delete this 
communication from your system.  Failure to follow this process may be 
unlawful.  Thank you for your cooperation.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Xorg impossible problems

2007-11-14 Thread Coleman Kane
Dino Vliet wrote:
> Toni Schmidbauer <[EMAIL PROTECTED]> wrote: At Sat, 22 Sep 2007 02:43:11 
> -0700 (PDT),
> Dino Vliet wrote:
>   
>>from time to time, Xorg crashes and won't restart (especially when I'm 
>> using firefox) and I have found firefox.core, gnash.core and metacity.core 
>> files in my home directory afterwards
>> 
>
> i actually have the same problems, but i'm using the nv driver (quadro
> fx 560). i think this is somehow related to xorg and
> gnash/firefox. can you try to disable the gnash plugin in firefox? i'm
> not completely sure but xorg seems to be more stable since then.
>
> toni
>   
What version of pixman do you have installed? I experienced the same
problems under pixman 0.9.5, and found that they are fixed in 0.9.6.
FreeBSD has since updated the related port to match the new version.

In my case, evince and swfdec were causing the crashing pretty reliably.
I originally attributed the problem to swfdec, but after some GDBing, I
found that it was happening in pixman.

PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=117854
--
Coleman Kane

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


Port GUI Config

2007-11-14 Thread Donovan R. Palmer
I went to compile a programme in the port tree tonight. When I did so, a GUI 
popped up with different options. No probs.  However, later I decided I wanted 
to compile it with different options. When I go to compile it, the GUI doesn't 
pop up any more, so I assume it is using the options I picked out in the first 
place.  Is there a way to bring back this GUI so I can select different 
options? TIA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can you help about script

2007-11-14 Thread Tino Engel

ann kok schrieb:

Hi all

I don't have idea how to write this script, please
help

I have thousand records in this format indexed by
FileNo.

FileNo:001
Name:  NameA
Address1:  AddressA1
Address2:  AddressA2
Phone: PhoneA
Created by 



I need to write a script to replace those Fields 
eg: (NameA AddressA1 if it matchs the

FileNo.001...002...)
to get Data in this file


FileNo:001Name A AddressA1AddressA2  
PhoneA
FileNo:002Name B AddressB1AddressB2  
PhoneB
FileNo:003Name C AddressC1AddressC2  
PhoneC 


Thank you for your help


  

It is definetely an issue for the 'awk' utility.
Here is a working solution, although it could be done somehow shorter 
using patterns (I do not recall how they worked.

But I have tested this one, it does the job.

#awk -f prog.awk 

prog.awk should contain:
{
if( $1 == "FileNo:") { printf( "%s%s ", $1 , $2) }
if( $1 == "Name:")   { printf( "%s ", $2) }
if( $1 == "Address1:") { printf( "%s ", $2) }
if( $1 == "Address2:") { printf( "%s", $2) }
if( $1 == "Phone:")   { printf( "\n%s\n", $2) }
}

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


Re: Can anyone recommend an external firewire-based drive?

2007-11-14 Thread George Hartzell
David Kelly writes:
 > On Wed, Nov 14, 2007 at 12:09:47PM -0600, Doug Poland wrote:
 > > Hello,
 > > 
 > > I'm looking for an external, firewire-based, hard-drive from which to 
 > > run FreeBSD 7.0 (i386).  Ideally, I'd boot from this device as well, but 
 > > I'm not sure if FreeBSD (or my BIOS) supports booting from firewire.
 > > 
 > > Can anyone recommend a manufacturer and/or model?
 > 
 > I haven't used it with FreeBSD but my Seagate 300G works very with
 > Macintosh. LaCie is another highly respected brand among Mac users.
 > 
 > There were some Western Digital Firewire externals on the market but
 > many Mac users had problems. With Apple as one of Firewire's parents its
 > pretty sad if a Firewire product doesn't work with a Mac.

Are you running Mac OS X on your mac, or FreeBSD?

I've had (until last week) an 8-core mac pro that was dual booting
FreeBSD RELENG_6 and Mac OS X.

FreeBSD would lock up the machine whenever I plugged a firewire disk
drive into it (I tried 4 different disk drives).  I'd see a couple of
messages via syslog and boom.  I didn't have time to debug it and now
no longer have the machine, so this is useless as a bug report, but
I'm curious what your experience has been.

I'm planning to buy myself a mac pro in the near future (as soon as
they announce the penryn based models) and am planning to dual boot
RELENG_7 on it.  If it's still having firewire problems, I'll follow
up with a proper bug report.

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


Re: Port GUI Config

2007-11-14 Thread Bahman M.
On 2007-11-14 Donovan R. Palmer wrote:
> I went to compile a programme in the port tree tonight. When I did
> so, a GUI popped up with different options. No probs.  However, later
> I decided I wanted to compile it with different options. When I go to
> compile it, the GUI doesn't pop up any more, so I assume it is using
> the options I picked out in the first place.  Is there a way to bring
> back this GUI so I can select different options? TIA

Check out /usr/ports/Mk/bsd.port.mk which explains all generic make
switches of the ports system.

Anyway, as a quick help,
# make rmconfig
will do what you want.

-- 
Bahman Movaqar

Give me six lines written by the most honourable of men, and I will
find an excuse in them to hang him.
-Cardinal Richelieu
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jails in 6.3 and 7.0

2007-11-14 Thread Kris Kennaway

Jonathan Horne wrote:

I was reading a while back that the jails tcp system was getting an overhaul, 
possibly in the 7.0 release.  I don't remember all the particulars, but things 
along the lines to make jails function even more like a real (independant) 
system.  I believe one of the improvments might have been a separate virtual 
interface, thus allowing he jail to have its own pf configuration.

I've not seen anything else on this topic, so I was wondering if anyone might 
know if that's going to make in to 7 (and possibly backported to 6.3)?



It is still in development, although I think you can download a test iso.

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


Re: Can you help about script

2007-11-14 Thread James

At 12:07 PM 11/14/2007, ann kok wrote:

Hi all

I don't have idea how to write this script, please
help

I have thousand records in this format indexed by
FileNo.

FileNo:001
Name:  NameA
Address1:  AddressA1
Address2:  AddressA2
Phone: PhoneA
Created by


I need to write a script to replace those Fields
eg: (NameA AddressA1 if it matchs the
FileNo.001...002...)
to get Data in this file


FileNo:001Name A AddressA1AddressA2
PhoneA
FileNo:002Name B AddressB1AddressB2
PhoneB
FileNo:003Name C AddressC1AddressC2
PhoneC

Thank you for your help




Do you have any restrictions with regards to language?

There are a few things that come to mind; if this is absolutely 
indexed how you stated, with no problems of extra blank lines etc 
existing, you could use line to read in the lines one at a time, use 
a simple grep/case statement to check whether the initial field 
conforms to a specific string, and assign each string to a variable. 
After six read ins, you have all the information you need and you 
ouput them however you want.


James


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


Re: Port GUI Config

2007-11-14 Thread Philip M. Gollucci
Donovan R. Palmer wrote:
> I went to compile a programme in the port tree tonight. When I did so, a GUI 
> popped up with different options. No probs.  However, later I decided I 
> wanted to compile it with different options. When I go to compile it, the GUI 
> doesn't pop up any more, so I assume it is using the options I picked out in 
> the first place.  Is there a way to bring back this GUI so I can select 
> different options? TIA
make config

et al:
make showconfig
make rmconfig
make rmconfig-recursive
make config-recursive

see /usr/ports/Mk/bsd.port.mk its very well documented.



-- 

Philip M. Gollucci ([EMAIL PROTECTED])
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

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


Re: Port GUI Config

2007-11-14 Thread Manolis Kiagias


Donovan R. Palmer wrote:
> I went to compile a programme in the port tree tonight. When I did so, a GUI 
> popped up with different options. No probs.  However, later I decided I 
> wanted to compile it with different options. When I go to compile it, the GUI 
> doesn't pop up any more, so I assume it is using the options I picked out in 
> the first place.  Is there a way to bring back this GUI so I can select 
> different options? TIA
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
>
>
>   
make rmconfig
see also man ports
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Xorg impossible problems

2007-11-14 Thread Dino Vliet

Toni Schmidbauer <[EMAIL PROTECTED]> wrote: At Sat, 22 Sep 2007 02:43:11 -0700 
(PDT),
Dino Vliet wrote:
>from time to time, Xorg crashes and won't restart (especially when I'm 
> using firefox) and I have found firefox.core, gnash.core and metacity.core 
> files in my home directory afterwards

i actually have the same problems, but i'm using the nv driver (quadro
fx 560). i think this is somehow related to xorg and
gnash/firefox. can you try to disable the gnash plugin in firefox? i'm
not completely sure but xorg seems to be more stable since then.

toni
-- 
Wer es einmal so weit gebracht hat, dass er nicht | toni at it-austria dot net
mehr irrt, der hat auch zu arbeiten aufgehoert| Toni Schmidbauer
-- Max Planck |

Thanks Toni,

I was running gnash indeed and found it out the hard way. I was experiencing 
this bad behavior because I was running securelevel 3 ass well so Xorg kept 
crashing like crazy and I couldn't do anything else.

I finally gave up on gnash and hopefully everything will work better now.

Thanks for your help. This message of yours made me uninstall gnash and I think 
for the better.

Brgds
Dino

   
-
Get easy, one-click access to your favorites.  Make Yahoo! your homepage.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to see UNICODE character number?

2007-11-14 Thread Yuri
Thank you Richard,

This URL does the trick.

But it's still strange that there's no GUI utility in KDE or just X that would
do it.

Yuri

Quoting Richard Tobin <[EMAIL PROTECTED]>:

> > What is the easiest way to get the UNICODE number for a Chinese
> character?
> 
> Try http://www.cogsci.ed.ac.uk/~richard/utf-8.html
> 
> Paste it into the box and select "Interpret as Character".
> 
> -- Richard
> 


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


Re: Can anyone recommend an external firewire-based drive?

2007-11-14 Thread David Kelly
On Wed, Nov 14, 2007 at 12:09:47PM -0600, Doug Poland wrote:
> Hello,
> 
> I'm looking for an external, firewire-based, hard-drive from which to 
> run FreeBSD 7.0 (i386).  Ideally, I'd boot from this device as well, but 
> I'm not sure if FreeBSD (or my BIOS) supports booting from firewire.
> 
> Can anyone recommend a manufacturer and/or model?

I haven't used it with FreeBSD but my Seagate 300G works very with
Macintosh. LaCie is another highly respected brand among Mac users.

There were some Western Digital Firewire externals on the market but
many Mac users had problems. With Apple as one of Firewire's parents its
pretty sad if a Firewire product doesn't work with a Mac.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Installing ports to /usr

2007-11-14 Thread Lars Eighner

On Wed, 14 Nov 2007, Matt Fioravante wrote:


Would there be any negative ramifications to installing ports in /usr
instead of /usr/local? Like could they potentially clobber system
binaries and other files or is this pretty safe to do?


I know of a few name conflicts that can occur in certain circumstances (such
as the system lpr and hplip lpr).  You may be lucky and avoid these.  It is
also possible that some ports will not find one another or that wrong
locations may be hard coded --- this should not happen, but there should not
be any broken ports, unfetchable sources and so forth.

Such an arrangement would require extreme vigilance, beyond what the ports
management software can do (if they can be persuaded to work at all in such
an environment).  I cannot think of a good reason to do what you want to do,
but you ought to be very clear that somehow there is no other way and be
prepared for the consequences.

--
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 "[EMAIL PROTECTED]"


Can you help about script

2007-11-14 Thread ann kok
Hi all

I don't have idea how to write this script, please
help

I have thousand records in this format indexed by
FileNo.

FileNo:001
Name:  NameA
Address1:  AddressA1
Address2:  AddressA2
Phone: PhoneA
Created by 


I need to write a script to replace those Fields 
eg: (NameA AddressA1 if it matchs the
FileNo.001...002...)
to get Data in this file


FileNo:001Name A AddressA1AddressA2  
PhoneA
FileNo:002Name B AddressB1AddressB2  
PhoneB
FileNo:003Name C AddressC1AddressC2  
PhoneC 

Thank you for your help


  

Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  
http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Installing ports to /usr

2007-11-14 Thread Josh Carroll
> Would there be any negative ramifications to installing ports in /usr
> instead of /usr/local? Like could they potentially clobber system
> binaries and other files or is this pretty safe to do?

More importantly, why do you want/need to do this? I personally like
the separation of world and ports. It keeps things nice and tidy, and
that's I'm sure a major reason why it was done that way (obviously,
clobbering things in /usr is the main reason).

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


Re: Installing ports to /usr

2007-11-14 Thread Jerry McAllister
On Wed, Nov 14, 2007 at 01:05:39PM -0500, Matt Fioravante wrote:

> Would there be any negative ramifications to installing ports in /usr
> instead of /usr/local? Like could they potentially clobber system
> binaries and other files or is this pretty safe to do?

You break the 'standard' file/directory hierarchy.   Even though it is
not supposed to be so, there may be some things out there that make the
assumption that stuff will be found in its standard place.

See   man hier  

jerry

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


RE: Dell PE4600 RAID5 server failing

2007-11-14 Thread Tamouh H.
> 
> Derek Ragona wrote:
> > At 09:00 AM 11/14/2007, Barnaby Scott wrote:
> >> I suspect I already know the answer to this, which is that the 
> >> trouble I am having is nothing to do with the OS at all, 
> but I have 
> >> to ask, because I am otherwise up against a total brick wall!
> >>
> >> I bought a second-hand Dell Poweredge 4600 and installed 
> FreeBSD 6.2 
> >> earlier this year. I had it set up with RAID5 using its PERC3/DC 
> >> controller, with 7 x 73GB disks (+ 1 hot spare). So far so 
> good, and 
> >> it worked faultlessly as a Samba server for several months.
> >>
> >> At the beginning of October, it went down, reporting a mismatch 
> >> between the configuration on the NVRAM and the disks. With 
> help from 
> >> Dell support, I managed to recreate the RAID array and it worked 
> >> again for a month.
> >>
> >> In early November it happened again, and has kept 
> happening since. At 
> >> one point it appeared that the backplane was faulty, so I replaced 
> >> that, but I cannot keep the server up for more than a day or so 
> >> without this 'mismatch' poblem.
> >>
> >> What about diagnostics on the hardware you may ask? I have run all 
> >> the diagnostic tools that Dell can supply - several times 
> - and the 
> >> server declares itself to be totally fault-free.
> >>
> >> My specific questions therefore:
> >>
> >> Is there any way at all that FreeBSD could be invloved with this 
> >> problem? (I did notice for example that the Dell PERC3/DC 
> controller 
> >> was not in the list of supported hardware - but then 
> again, why did 
> >> it work for several months?)
> >>
> >> Can I use FreeBSD to tell me anything about the fault that Dell's 
> >> diagnostic tools haven't found?
> >>
> >> (I do hope someone might be able to help - Dell are trying 
> to get me 
> >> to switch to a 'supported' OS!)
> >>
> >>
> >> Thanks
> >>
> >> Barnaby Scott
> > 
> > It doesn't sound like any OS issue as you set up the RAID 
> outside the 
> > OS.  It may be a bad drive or drive(s).  Most RAID drives have RAID 
> > information written to the drives, and if this becomes 
> unreadable you 
> > will have RAID faults.
> > 
> > Another likely culprit is heat.  Overheating drives often 
> fail.  Are 
> > you sure the temperatures in the drive enclosure is OK?
> > 
> > If you can, run diagnostics on the drives, this usually requires 
> > running these with the drives taken out of the RAID array though.
> > 
> > -Derek
> > 
> 
> Thanks for replying - as I said, this is a long shot trying 
> to see if there is any OS involvement.
> 
> The drives are fine - I have used two different tools to 
> analyse them while the computer is booted from a live CD and 
> the RAID configuration cleared on the controller. Besides, 
> you would expect one drive to fail at a time, and if this 
> happened, the hot spare would surely be pressed into service. 
> Nothing like this has happened though - the controller is 
> reporting several drives (not always the same ones) failed 
> simultaneously, but when the array is re-created from the 
> disks, everything works fine. Problem is, it goes down again 
> a day or so later.
> 
> As for heat, there is nothing being reported there and the 
> fans that cool that area are working.
> 
> Any other ideas gratefully received!
> 
> Barnaby Scott

This is very unlikely to be OS related. But here are few pointers:

1) Check the make/model of the drives. Certain types of make/model SCSI drives 
had a glitch in them a while ago with a certain firmware that they'd disconnect 
from a RAID. I had a personal experience with these ones (Seagate U320).

2) What did happen in October? Anything hardware, software, power wise has 
occurred ?

3) NVRAM and Disk mismatch, I'd say check the controller, backup battery 
present but weak ?

4) Unlikely to be the source, but run a test on your physical RAM using 
MEMTEST86+ and check the power supply is sufficient and working properly.

 


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


Gcc Problems

2007-11-14 Thread Mike Fahey


Freebsd4.10

When I try to compile any problem I get the following error. Any 
suggestions? Thanks.


helpers/dummy.c:1: syntax error before `/'

Here is a sample trying to build any port.



 make
 ===>   wget-1.10.2_1 depends on file: /usr/local/lib/libcrypto.so.4 - 
found

===>   wget-1.10.2_1 depends on executable: gmake - found
===>   wget-1.10.2_1 depends on file: /usr/local/bin/perl5.8.8 - found
===>   wget-1.10.2_1 depends on shared library: intl - found
===>  Configuring for wget-1.10.2_1
configure: WARNING: you should use --build, --host, --target
configure: configuring for GNU Wget 1.10.2
checking build system type... i386-portbld-freebsd4.10
checking host system type... i386-portbld-freebsd4.10
checking whether gmake sets $(MAKE)... eval: 1: Syntax error: "(" unexpected
===>  Script "configure" failed unexpectedly.
Please report the problem to [EMAIL PROTECTED] [maintainer] and attach the
"/usr/ports/ftp/wget/work/wget-1.10.2/config.log" including the output 
of the

failure of your make command. Also, it might be a good idea to provide an
overview of all packages installed on your system (e.g. an `ls 
/var/db/pkg`).

*** Error code 1



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


Re: jails in 6.3 and 7.0

2007-11-14 Thread Erik Cederstrand

Jonathan Horne wrote:

I was reading a while back that the jails tcp system was getting an
overhaul, possibly in the 7.0 release.  I don't remember all the
particulars, but things along the lines to make jails function even
more like a real (independant) system.  I believe one of the
improvments might have been a separate virtual interface, thus
allowing he jail to have its own pf configuration.

I've not seen anything else on this topic, so I was wondering if
anyone might know if that's going to make in to 7 (and possibly
backported to 6.3)?



You're thinking about the Network Stack Virtualization project:

http://www.freebsd.org/news/status/report-2007-07-2007-10.html#Network-Stack-Virtualization

In short: not ready yet.

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


Re: Jails and multicore boxes

2007-11-14 Thread Erik Cederstrand

Matt Fioravante wrote:

I've heard that things like freebsd jails or solaris zones can still
be insecure on multicore boxes because a race condition can occur. I
don't know more details about it other than that. Is this true now on
freebsd?


There's always the possibility that a bug exists which lets you break 
out of a jail and give you access to the host system.



Also, I have a home server which I'm considering running apache, bind,
dhcp, and possiblty opening ports for some other services. Is it
overkill to run all of these each  in their own jail?


You'll have to answer that yourself. How valuable is your data? What are 
you trying to protect? If you're worrying about getting cracked and used 
as a spam bot, jails are no more secure than a non-jail system.


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


Re: FreeBSD cache memory allocation

2007-11-14 Thread icantthinkofone

Heiko Wundram (Beenic) wrote:

Am Mittwoch, 14. November 2007 17:04:37 schrieb icantthinkofone:
  

Ivan Voras wrote:


icantthinkofone wrote:
  

Someone I can't stand said this about FreeBSD.  Though I know C, I don't
know anything about it and would love to respond.
[QUOTE]The kernel is really lacking some features. They need a method to
set precise type of memory cache but BSD doesn't provide way to specify
memory cache.

For that reason MS has the beautiful
MmAllocateContigousMemorySpecifyCache()[/QUOTE]


Well, I know there's contigmalloc(9) in FreeBSD but you will get a
better answer if you ask this question on [EMAIL PROTECTED]
  

That's what I thought but not sure if they were equivalent.
I'm not signed up over there but I will now.  Thanks.



That's not entirely true. MmAllocateContiguousMemorySpecifyCache does 
something that's currently not (easily) possible with FreeBSD, namely set up 
an MTRR entry (i.e. a specific caching state) specifically for the portion of 
contiguous memory being allocated (normally, the driver wants to set the 
memory to uncached if using this call).


This is something that the NVIDIA driver development guys have wanted to have 
for a long time (for performance reasons) in the FreeBSD kernel, and there's 
someone developing a patch to implement this (AFAICT from reading some 
websites), but it doesn't seem like it's finished so far.


Read up on the NVIDIA requirements to develop an accelerated graphics driver 
on AMD64 to get more details on this (there's a "workaround" on i386, but 
that depends on the specific system's pre-setup MTRR records from the BIOS; 
this one of the reasons there's an accelerated graphics driver for i386 and 
not for AMD64).


  
I thought that might be the case.  (I did ask about this on 'hackers'). 
Is it possible Nvidia is trying to make FreeBSD work like Windows, in a 
sense?  iow, they used this function in their driver and now everyone 
has to use it?  Or is this really a fault of FreeBSD?

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


Re: /bin/sh Can one Easily Strip Path Name from $0?

2007-11-14 Thread Michaël Grünewald
Martin McCormick <[EMAIL PROTECTED]> writes:

>   I am ashamed to admit that I have been writing shell
> scripts for about 15 years but this problem has me stumped. $0
> is the shell variable which contains the script name or at least
> what name is linked to the script. The string in $0 may or may
> not contain a path, depending upon how the script was called. It
> is easy to strip off the path if it is always there
>
> #! /bin/sh
> PROGNAME=`echo $0 |awk 'BEGIN{FS="/"}{print $NF}'`
> echo $PROGNAME

As said by others, you can use `basename`. Apart from this, you can
fix your old habit by prepending a '/' before '$0', like this:

#! /bin/sh
PROGNAME=`echo /$0 |awk 'BEGIN{FS="/"}{print $NF}'`
echo $PROGNAME

Last, you can also use variable expansions mechanisms by saying:

PROGNAME="${0##*/}"

The main difference with `basename` way is that the latter do not call
a subprogram.

(If you are sure there is no space in your name, you can remove the
quotes, but are you sure?)

See `Parameter Expansion' in sh(1).
-- 
Best wishes,
Michaël
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Installing ports to /usr

2007-11-14 Thread Jonathan Chen
On Wed, Nov 14, 2007 at 01:05:39PM -0500, Matt Fioravante wrote:
> Would there be any negative ramifications to installing ports in /usr
> instead of /usr/local? Like could they potentially clobber system
> binaries and other files or is this pretty safe to do?

It's not safe, for the reasons that you have specified.
-- 
Jonathan Chen <[EMAIL PROTECTED]>
--
  Opportunities are seldom labeled
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Gateway problem

2007-11-14 Thread Alaor Barroso de Carvalho Neto
Hi, I have some troubles building my internet gateway to my network. I
already have a gateway machine running under linux, with two interfaces eth0
(192.168.1.1) and eth1 (external world), but I installed a new server
running FreeBSD6.2 with ipfilter and squid, in the test time with had the ip
192.168.1.240 in the rl0 and a external ip on rl1, I've configured some
machines in the network (3) to use it as gateway to test it and the
transparent proxy, everything worked fine. So I turned off my linux machine
and configured the BSD ip on rl0 to 192.168.1.1 and then it stop resolving
names. I have a DNS server in my network with the ip 192.168.1.2, I still
can ping to it and to the external world, but the names aren't resolved
anymore, it work for some seconds and then stop. When I turn on the
linuxmachine and plug it on the network with the ip 192.168.1.1 and change
the bsd ip to anything else it work again, resolve names and everything stay
just as suposed to be. If I turn off linux and set the rl0 to 192.168.1.1 it
stop resolving names but can ping to anywhere. Help!!!
in the rc.conf
gateway_enable="YES"
defaultrouter="X.X.X.X"
etc...
Everything seems to be OK.
Thankz for the attention
Hugs!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Can anyone recommend an external firewire-based drive?

2007-11-14 Thread Doug Poland

Hello,

I'm looking for an external, firewire-based, hard-drive from which to 
run FreeBSD 7.0 (i386).  Ideally, I'd boot from this device as well, but 
I'm not sure if FreeBSD (or my BIOS) supports booting from firewire.


Can anyone recommend a manufacturer and/or model?


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


Installing ports to /usr

2007-11-14 Thread Matt Fioravante
Would there be any negative ramifications to installing ports in /usr
instead of /usr/local? Like could they potentially clobber system
binaries and other files or is this pretty safe to do?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Tkinter Libraries Needed

2007-11-14 Thread tonylabarbara

That worked! Thank you :)

Tony


/usr/ports/graphics/py-imaging



-Original Message-
From: Manolis Kiagias <[EMAIL PROTECTED]>
To: freebsd-questions@freebsd.org
Sent: Wed, 14 Nov 2007 12:19 pm
Subject: Re: Tkinter Libraries Needed


[EMAIL PROTECTED] wrote:?
> Right. I tried that a while back and forgot I had. This is what I get:?
>?
>?
>?
> server726# cd /usr/ports/graphics/py-imaging?
> server726# make install clean?
> ===> Installing for py24-imaging-1.1.5?
> ===> py24-imaging-1.1.5 depends on file: 
> /usr/local/lib/python2.4/site-packages/_tkinter.so - found?
> ===> py24-imaging-1.1.5 depends on file: /usr/local/bin/python - found?
> ===> py24-imaging-1.1.5 depends on shared library: jpeg.9 - found?
> ===> py24-imaging-1.1.5 depends on shared library: freetype.9 - found?
> ===> Generating temporary packing list?
> ===> Checking if graphics/py-imaging already installed?
> ===> An older version of graphics/py-imaging is already installed 
> (py23-imaging-1.1.5)?
> You may wish to ``make deinstall'' and install this port again?
> by ``make reinstall'' to upgrade it properly.?
> If you really wish to overwrite the old port of graphics/py-imaging?
> without deleting it first, set the variable "FORCE_PKG_REGISTER"?
> in your environment or the "make install" command line.?
> *** Error code 1?
>?
> Stop in /usr/ports/graphics/py-imaging.?
> server726# make deinstall?
> ===> Deinstalling for graphics/py-imaging?
> server726# make reinstall?
> ===> Installing for py24-imaging-1.1.5?
> ===> py24-imaging-1.1.5 depends on file: 
> /usr/local/lib/python2.4/site-packages/_tkinter.so - found?
> ===> py24-imaging-1.1.5 depends on file: /usr/local/bin/python2.4 - found?
> ===> py24-imaging-1.1.5 depends on shared library: jpeg.9 - found?
> ===> py24-imaging-1.1.5 depends on shared library: freetype.9 - found?
> ===> Generating temporary packing list?
> ===> Checking if graphics/py-imaging already installed?
> ===> An older version of graphics/py-imaging is already installed 
> (py23-imaging-1.1.5)?
> You may wish to ``make deinstall'' and install this port again?
> by ``make reinstall'' to upgrade it properly.?
> If you really wish to overwrite the old port of graphics/py-imaging?
> without deleting it first, set the variable "FORCE_PKG_REGISTER"?
> in your environment or the "make install" command line.?
> *** Error code 1?
>?
> Stop in /usr/ports/graphics/py-imaging.?
> *** Error code 1?
>?
> Stop in /usr/ports/graphics/py-imaging.?
>?
> Ideas??
> TIA,?
> Tony?
>?
>?
>?
> /usr/ports/graphics/py-imaging?
>?
>?
>?
> Maybe a long shot, but I would try something in the line of:?
?
pkg_delete -f "py23-imaging-1.1.5*"?
?
or try?
?
pkg_info | grep py23-imaging?
?
to get the exact name and use it in pkg_delete?
?
the try installing the new port.?
?
Also make sure you have not missed any steps mentioned in /usr/ports/UPDATING?
I've never had python23, but there are specific steps to follow upgrading e.g 
2.4 to 2.5?
Make sure you have not omitted any of the relevant steps for your version.?
?
___?
freebsd-questions@freebsd.org mailing list?
http://lists.freebsd.org/mailman/listinfo/freebsd-questions?
To unsubscribe, send any mail to "[EMAIL PROTECTED]"?



Email and AIM finally together. You've gotta check out free AOL Mail! - 
http://mail.aol.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: shell programming

2007-11-14 Thread Barry Byrne
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Bill Banks
> Sent: 14 November 2007 17:25
> To: FreeBSD Questions
> Subject: Re: shell programming
> 
> What am I doing wrough here:
> 
> #!/bin/sh
>  $DAYN='/bin/date +%a' + "_master.sql"
>  mysqldump master > $DAYN

Your quotes should be backticks not single quotes.
Also drop the $ from before the variable name when assigning.

#!/bin/sh
DAYN=`/bin/date +%a`
DAYN="${DAYN}_master.sql"

 -  barry 

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


Re: Dell PE4600 RAID5 server failing

2007-11-14 Thread Barnaby Scott

Derek Ragona wrote:

At 09:00 AM 11/14/2007, Barnaby Scott wrote:
I suspect I already know the answer to this, which is that the trouble 
I am having is nothing to do with the OS at all, but I have to ask, 
because I am otherwise up against a total brick wall!


I bought a second-hand Dell Poweredge 4600 and installed FreeBSD 6.2 
earlier this year. I had it set up with RAID5 using its PERC3/DC 
controller, with 7 x 73GB disks (+ 1 hot spare). So far so good, and 
it worked faultlessly as a Samba server for several months.


At the beginning of October, it went down, reporting a mismatch 
between the configuration on the NVRAM and the disks. With help from 
Dell support, I managed to recreate the RAID array and it worked again 
for a month.


In early November it happened again, and has kept happening since. At 
one point it appeared that the backplane was faulty, so I replaced 
that, but I cannot keep the server up for more than a day or so 
without this 'mismatch' poblem.


What about diagnostics on the hardware you may ask? I have run all the 
diagnostic tools that Dell can supply - several times - and the server 
declares itself to be totally fault-free.


My specific questions therefore:

Is there any way at all that FreeBSD could be invloved with this 
problem? (I did notice for example that the Dell PERC3/DC controller 
was not in the list of supported hardware - but then again, why did it 
work for several months?)


Can I use FreeBSD to tell me anything about the fault that Dell's 
diagnostic tools haven't found?


(I do hope someone might be able to help - Dell are trying to get me 
to switch to a 'supported' OS!)



Thanks

Barnaby Scott


It doesn't sound like any OS issue as you set up the RAID outside the 
OS.  It may be a bad drive or drive(s).  Most RAID drives have RAID 
information written to the drives, and if this becomes unreadable you 
will have RAID faults.


Another likely culprit is heat.  Overheating drives often fail.  Are you 
sure the temperatures in the drive enclosure is OK?


If you can, run diagnostics on the drives, this usually requires running 
these with the drives taken out of the RAID array though.


-Derek



Thanks for replying - as I said, this is a long shot trying to see if 
there is any OS involvement.


The drives are fine - I have used two different tools to analyse them 
while the computer is booted from a live CD and the RAID configuration 
cleared on the controller. Besides, you would expect one drive to fail 
at a time, and if this happened, the hot spare would surely be pressed 
into service. Nothing like this has happened though - the controller is 
reporting several drives (not always the same ones) failed 
simultaneously, but when the array is re-created from the disks, 
everything works fine. Problem is, it goes down again a day or so later.


As for heat, there is nothing being reported there and the fans that 
cool that area are working.


Any other ideas gratefully received!

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


Re: shell programming

2007-11-14 Thread Bill Banks

thanks

Bill Moran wrote:

In response to Bill Banks <[EMAIL PROTECTED]>:

  

What am I doing wrough here:

#!/bin/sh
 $DAYN='/bin/date +%a' + "_master.sql"
 mysqldump master > $DAYN



Those look to be single quotes and not backquotes.  (backquote is
the upper left key on most keyboards)

  

Wojciech Puchar wrote:


dayoftheweek=`date +%w`



On Fri, 9 Nov 2007, Bill Banks wrote:

  
I'm  writing a backup script. I need to get the day of the week into 
a variable. How can I do it?


--
---
Bill Banks 508-829-2005
Wachusett Programming  Ourweb
http://www.ourweb.net
http://www.ourwebtemplates.com


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




  

--
---
Bill Banks 508-829-2005
Wachusett Programming  Ourweb
http://www.ourweb.net
http://www.ourwebtemplates.com
  



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




  


--
---
Bill Banks 508-829-2005
Wachusett Programming  Ourweb
http://www.ourweb.net
http://www.ourwebtemplates.com
 



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


Re: shell programming

2007-11-14 Thread Bill Moran
In response to Bill Banks <[EMAIL PROTECTED]>:

> What am I doing wrough here:
> 
> #!/bin/sh
>  $DAYN='/bin/date +%a' + "_master.sql"
>  mysqldump master > $DAYN

Those look to be single quotes and not backquotes.  (backquote is
the upper left key on most keyboards)

> 
> Wojciech Puchar wrote:
> > dayoftheweek=`date +%w`
> >
> >
> >
> > On Fri, 9 Nov 2007, Bill Banks wrote:
> >
> >> I'm  writing a backup script. I need to get the day of the week into 
> >> a variable. How can I do it?
> >>
> >> -- 
> >> ---
> >> Bill Banks 508-829-2005
> >> Wachusett Programming  Ourweb
> >> http://www.ourweb.net
> >> http://www.ourwebtemplates.com
> >>
> >>
> >> ___
> >> freebsd-questions@freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >> To unsubscribe, send any mail to 
> >> "[EMAIL PROTECTED]"
> >>
> >>
> >
> >
> 
> -- 
> ---
> Bill Banks 508-829-2005
> Wachusett Programming  Ourweb
> http://www.ourweb.net
> http://www.ourwebtemplates.com
>   
> 
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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


Re: shell programming

2007-11-14 Thread Bill Banks

What am I doing wrough here:

#!/bin/sh
$DAYN='/bin/date +%a' + "_master.sql"
mysqldump master > $DAYN

Wojciech Puchar wrote:

dayoftheweek=`date +%w`



On Fri, 9 Nov 2007, Bill Banks wrote:

I'm  writing a backup script. I need to get the day of the week into 
a variable. How can I do it?


--
---
Bill Banks 508-829-2005
Wachusett Programming  Ourweb
http://www.ourweb.net
http://www.ourwebtemplates.com


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








--
---
Bill Banks 508-829-2005
Wachusett Programming  Ourweb
http://www.ourweb.net
http://www.ourwebtemplates.com
 



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


Re: /usr/bin/whatis replaced by a script (correct?)

2007-11-14 Thread Peo Nilsson

On Tue, 2007-11-06 at 17:54 +0100, Peo Nilsson wrote:
> On Mon, 2007-11-05 at 22:31 -0500, Lowell Gilbert wrote:
> > Peo Nilsson <[EMAIL PROTECTED]> writes:
> > 
> > > When running rkhunter 1.3.0 I get those warnings:
> > >
> > > ...
> > > /usr/bin/whatis' has been replaced by a script: /usr/bin/whatis:
> > >  Bourne shell script text executable
> 
> > They aren't replaced.  They are all *supposed* to be scripts.
> 
> Thanks for the info.
> 
> After knowing this, I edited rkhunter.conf like this:
> RTKT_FILE_WHITELIST="/usr/bin/whatis /usr/sbin/adduser /usr/local/bin/GET 
> /usr/local/sbin/pkgdb"
> 
> When running 'rkhunter -c' I still get the same warnings as before...
> What am I missing?

Solved, but many thanks anyway.
I should have set SCRIPTWHITELIST insteed of
RTKT_FILE_WHITELIST, wich I did first.


-- 
/Peo

--
-   PGP signed/encrypted emails is prefered  - 
--


signature.asc
Description: This is a digitally signed message part


Re: How to see UNICODE character number?

2007-11-14 Thread Richard Tobin
> What is the easiest way to get the UNICODE number for a Chinese character?
> I use KDE.
> 
> All programs just show the character itself when I paste it :-)

Try http://www.cogsci.ed.ac.uk/~richard/utf-8.html

Paste it into the box and select "Interpret as Character".

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


jails in 6.3 and 7.0

2007-11-14 Thread Jonathan Horne
I was reading a while back that the jails tcp system was getting an overhaul, 
possibly in the 7.0 release.  I don't remember all the particulars, but things 
along the lines to make jails function even more like a real (independant) 
system.  I believe one of the improvments might have been a separate virtual 
interface, thus allowing he jail to have its own pf configuration.

I've not seen anything else on this topic, so I was wondering if anyone might 
know if that's going to make in to 7 (and possibly backported to 6.3)?

-- 
Jonathan Horne
http://dfwlpiki.dfwlp.org
[EMAIL PROTECTED]


This message was sent using MIMP, the Mobile Internet Messaging Program.

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


Re: Postfix, dns, and hosts.allow

2007-11-14 Thread Pollywog
On Wednesday 14 November 2007 05:01:58 jekillen wrote:
> Hello:
> I have a question about Postfix and
> hosts.allow:
> Sendmail and exim are mentioned in the
> file and I assume that Sendmail would
> refer to Postfix sendmail as well as Sendmail.
> But Since Postfix runs smtp.d, how would I
> do Postfix in hosts.allow?

I believe you would refer to it as "smtp" if that is what you have 
in /etc/services

>
> I also have a question about how postfix
> would resolve names outside of the local
> domain, Does it use resolve.conf, hosts.equiv,
> nsswitch or does it need a local name server.

The nameserver does not need to be local.  It can use the ones in resolv.conf
Make sure you use numeric hosts in resolv.conf   I know that is obvious but I 
have seen people put textual hostnames in the file and then wonder why it 
does not work.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Tkinter Libraries Needed

2007-11-14 Thread Vince
Hmm you could try pkg_delete py24-imaging-1.1.5
and see if that works better (may need -f) I tend to use portupgrade though.

Vince

[EMAIL PROTECTED] wrote:
> Right. I tried that a while back and forgot I had. This is what I get:
>  
> server726# cd /usr/ports/graphics/py-imaging
> server726# make install clean
> ===>  Installing for py24-imaging-1.1.5
> ===>   py24-imaging-1.1.5 depends on file:
> /usr/local/lib/python2.4/site-packages/_tkinter.so - found
> ===>   py24-imaging-1.1.5 depends on file: /usr/local/bin/python - found
> ===>   py24-imaging-1.1.5 depends on shared library: jpeg.9 - found
> ===>   py24-imaging-1.1.5 depends on shared library: freetype.9 - found
> ===>   Generating temporary packing list
> ===>  Checking if graphics/py-imaging already installed
> ===>   An older version of graphics/py-imaging is already installed
> (py23-imaging-1.1.5)
>   You may wish to ``make deinstall'' and install this port again
>   by ``make reinstall'' to upgrade it properly.
>   If you really wish to overwrite the old port of graphics/py-imaging
>   without deleting it first, set the variable "FORCE_PKG_REGISTER"
>   in your environment or the "make install" command line.
> *** Error code 1
> Stop in /usr/ports/graphics/py-imaging.
> server726# make deinstall
> ===>  Deinstalling for graphics/py-imaging
> server726# make reinstall
> ===>  Installing for py24-imaging-1.1.5
> ===>   py24-imaging-1.1.5 depends on file:
> /usr/local/lib/python2.4/site-packages/_tkinter.so - found
> ===>   py24-imaging-1.1.5 depends on file: /usr/local/bin/python2.4 - found
> ===>   py24-imaging-1.1.5 depends on shared library: jpeg.9 - found
> ===>   py24-imaging-1.1.5 depends on shared library: freetype.9 - found
> ===>   Generating temporary packing list
> ===>  Checking if graphics/py-imaging already installed
> ===>   An older version of graphics/py-imaging is already installed
> (py23-imaging-1.1.5)
>   You may wish to ``make deinstall'' and install this port again
>   by ``make reinstall'' to upgrade it properly.
>   If you really wish to overwrite the old port of graphics/py-imaging
>   without deleting it first, set the variable "FORCE_PKG_REGISTER"
>   in your environment or the "make install" command line.
> *** Error code 1
> Stop in /usr/ports/graphics/py-imaging.
> *** Error code 1
> Stop in /usr/ports/graphics/py-imaging.
> 
> Ideas?
> TIA,
> Tony
> 
> /usr/ports/graphics/py-imaging
> 
> 
> 
> 
> -Original Message-
> From: Vince <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: freebsd-questions@freebsd.org
> Sent: Wed, 14 Nov 2007 11:17 am
> Subject: Re: Tkinter Libraries Needed
> 
> [EMAIL PROTECTED]  wrote:
>> Hi;
>> After a second googling, I discovered the reason I can't install the Python 
> Imaging Library (PIL) appears to be because I need some development 
> libraries...that I can't find in the ports. I'm running FBSD 5.5. I´ve 
> installed 
> Zope 2.10.5 on top of Python 2.4.2 (not optimal, but it will work, according 
> to 
> the build instructions). I installed Plone 3.0.2 and I get errors when I 
> crank 
> up Zope, all related to a non-existent PIL. So I d/l/d the latest PIL, 
> plopped 
> it in my Extensions dir, ran this:
>> 
> I'm not knowlegeable on python but
> /usr/ports/graphics/py-imaging looks like what you wanted. (version
> 1.1.6 which seems to be the latest) If you install it from ports it
> should pull in what it needs.
> 
> Vince
> 
>> python setup.py build_ext -i
>> 
>> and got this:
>> 
>> 
>> running build_ext 
>> 
>> building '_imagingtk' extension 
>> 
>> creating build/temp.freebsd-5.5-RELEASE-i386-2.4/Tk 
>> 
>> cc -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t 
> -DTHREAD_STACK_SIZE=0x10 -fPIC -I/usr/local/include/freetype2 
> -IlibImaging 
> -I/usr/local/include -I/usr/include -I/usr/local/include/python2.4 -c 
> _imagingtk.c -o build/temp.freebsd-5.5-RELEASE-i386-2.4/_imagingtk.o 
>> 
>> _imagingtk.c:20:16: tk.h: No such file or directory 
>> 
>> _imagingtk.c:23: error: syntax error before '*' token 
>> 
>> _imagingtk.c:31: error: syntax error before "Tcl_Interp" 
>> 
>> _imagingtk.c: In function `_tkinit': 
>> 
>> _imagingtk.c:37: error: `Tcl_Interp' undeclared (first use in this function) 
>> 
>> _imagingtk.c:37: error: (Each undeclared identifier is reported only once 
>> 
>> _imagingtk.c:37: error: for each function it appears in.) 
>> 
>> _imagingtk.c:37: error: `interp' undeclared (first use in this function) 
>> 
>> _imagingtk.c:45: error: syntax error before ')' token 
>> 
>> _imagingtk.c:50: error: `app' undeclared (first use in this function) 
>> 
>> _imagingtk.c: At top level: 
>> 
>> _imagingtk.c:55: warning: parameter names (without types) in function 
> declaration 
>> 
>> _imagingtk.c:55: error: conflicting types for 'TkImaging_Init' 
>> 
>> _imagingtk.c:23: error: previous declaration of 'TkImaging_Init' was here 
>> 
>> _imagingtk.c:55: error: conflicting types for

Re: FreeBSD cache memory allocation

2007-11-14 Thread Heiko Wundram (Beenic)
Am Mittwoch, 14. November 2007 17:04:37 schrieb icantthinkofone:
> Ivan Voras wrote:
> > icantthinkofone wrote:
> >> Someone I can't stand said this about FreeBSD.  Though I know C, I don't
> >> know anything about it and would love to respond.
> >> [QUOTE]The kernel is really lacking some features. They need a method to
> >> set precise type of memory cache but BSD doesn't provide way to specify
> >> memory cache.
> >>
> >> For that reason MS has the beautiful
> >> MmAllocateContigousMemorySpecifyCache()[/QUOTE]
> >
> > Well, I know there's contigmalloc(9) in FreeBSD but you will get a
> > better answer if you ask this question on [EMAIL PROTECTED]
>
> That's what I thought but not sure if they were equivalent.
> I'm not signed up over there but I will now.  Thanks.

That's not entirely true. MmAllocateContiguousMemorySpecifyCache does 
something that's currently not (easily) possible with FreeBSD, namely set up 
an MTRR entry (i.e. a specific caching state) specifically for the portion of 
contiguous memory being allocated (normally, the driver wants to set the 
memory to uncached if using this call).

This is something that the NVIDIA driver development guys have wanted to have 
for a long time (for performance reasons) in the FreeBSD kernel, and there's 
someone developing a patch to implement this (AFAICT from reading some 
websites), but it doesn't seem like it's finished so far.

Read up on the NVIDIA requirements to develop an accelerated graphics driver 
on AMD64 to get more details on this (there's a "workaround" on i386, but 
that depends on the specific system's pre-setup MTRR records from the BIOS; 
this one of the reasons there's an accelerated graphics driver for i386 and 
not for AMD64).

-- 
Heiko Wundram
Product & Application Development
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Tkinter Libraries Needed

2007-11-14 Thread Manolis Kiagias

[EMAIL PROTECTED] wrote:

Right. I tried that a while back and forgot I had. This is what I get:



server726# cd /usr/ports/graphics/py-imaging
server726# make install clean
===>  Installing for py24-imaging-1.1.5
===>   py24-imaging-1.1.5 depends on file: 
/usr/local/lib/python2.4/site-packages/_tkinter.so - found
===>   py24-imaging-1.1.5 depends on file: /usr/local/bin/python - found
===>   py24-imaging-1.1.5 depends on shared library: jpeg.9 - found
===>   py24-imaging-1.1.5 depends on shared library: freetype.9 - found
===>   Generating temporary packing list
===>  Checking if graphics/py-imaging already installed
===>   An older version of graphics/py-imaging is already installed 
(py23-imaging-1.1.5)
  You may wish to ``make deinstall'' and install this port again
  by ``make reinstall'' to upgrade it properly.
  If you really wish to overwrite the old port of graphics/py-imaging
  without deleting it first, set the variable "FORCE_PKG_REGISTER"
  in your environment or the "make install" command line.
*** Error code 1

Stop in /usr/ports/graphics/py-imaging.
server726# make deinstall
===>  Deinstalling for graphics/py-imaging
server726# make reinstall
===>  Installing for py24-imaging-1.1.5
===>   py24-imaging-1.1.5 depends on file: 
/usr/local/lib/python2.4/site-packages/_tkinter.so - found
===>   py24-imaging-1.1.5 depends on file: /usr/local/bin/python2.4 - found
===>   py24-imaging-1.1.5 depends on shared library: jpeg.9 - found
===>   py24-imaging-1.1.5 depends on shared library: freetype.9 - found
===>   Generating temporary packing list
===>  Checking if graphics/py-imaging already installed
===>   An older version of graphics/py-imaging is already installed 
(py23-imaging-1.1.5)
  You may wish to ``make deinstall'' and install this port again
  by ``make reinstall'' to upgrade it properly.
  If you really wish to overwrite the old port of graphics/py-imaging
  without deleting it first, set the variable "FORCE_PKG_REGISTER"
  in your environment or the "make install" command line.
*** Error code 1

Stop in /usr/ports/graphics/py-imaging.
*** Error code 1

Stop in /usr/ports/graphics/py-imaging.

Ideas?
TIA,
Tony



/usr/ports/graphics/py-imaging



  

Maybe a long shot, but I would try something in the line of:

pkg_delete -f  "py23-imaging-1.1.5*"

or try

pkg_info | grep py23-imaging

to get the exact name and use it in pkg_delete


the try installing the new port.

Also make sure you have not missed any steps mentioned in 
/usr/ports/UPDATING
I've never had python23, but there are specific steps to follow 
upgrading e.g 2.4 to 2.5

Make sure you have not omitted any of  the relevant steps for your version.

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


Jails and multicore boxes

2007-11-14 Thread Matt Fioravante
I've heard that things like freebsd jails or solaris zones can still
be insecure on multicore boxes because a race condition can occur. I
don't know more details about it other than that. Is this true now on
freebsd?


Also, I have a home server which I'm considering running apache, bind,
dhcp, and possiblty opening ports for some other services. Is it
overkill to run all of these each  in their own jail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD cache memory allocation

2007-11-14 Thread icantthinkofone

Ivan Voras wrote:

icantthinkofone wrote:
  

Someone I can't stand said this about FreeBSD.  Though I know C, I don't
know anything about it and would love to respond.
[QUOTE]The kernel is really lacking some features. They need a method to
set precise type of memory cache but BSD doesn't provide way to specify
memory cache.

For that reason MS has the beautiful
MmAllocateContigousMemorySpecifyCache()[/QUOTE]



Well, I know there's contigmalloc(9) in FreeBSD but you will get a
better answer if you ask this question on [EMAIL PROTECTED]

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

  
That's what I thought but not sure if they were equivalent. 
I'm not signed up over there but I will now.  Thanks.

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


Re: PHP can not find core function

2007-11-14 Thread doug

On Wed, 14 Nov 2007, Yuri Pankov wrote:


On Wed, Nov 14, 2007 at 01:40:08AM -0500, [EMAIL PROTECTED] wrote:

I am trying to evaluate two php billing programs, One gives no errors,
syntax or otherwise, the other fails to find the mysql_real_escape_string
function.

I the later case I assume I have a path problem. It seems that something in
the code of the first program is turning off errors. Both programs work on
FreeBSD 4.11 and php4. The failing system is FreeBSD 6.2 and php5.

My setup:

php.conf
  PHP_VER=5
  PHP_VERSION=5.2.4
  PHP_SAPI=cli cgi mod

php.ini is php.ini-recommended with the following changes:

  display_errors = On
  display_startup_errors = On
  ignore_repeated_source = On
  track_errors = On
  include_path = ".:/php/includes"

The following ports are installed:

  php5-5.2.4_1PHP Scripting Language
  php5-session-5.2.4_1 The session shared extension for php
  php5-xml-5.2.4_1The xml shared extension for php

phpinfo() shows the configure command as:

'./configure' '--with-layout=GNU'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
'--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection'
'--program-prefix=' '--with-apxs=/usr/local/sbin/apxs' '--with-regex=php'
'--with-zend-vm=CALL' '--disable-ipv6' '--prefix=/usr/local'
'--mandir=/usr/local/man' '--infodir=/usr/local/info/'

I am not sure what else is relevant. I am quite lost, any help is greatly
appreciated.


_
Douglas Denault
http://www.safeport.com
[EMAIL PROTECTED]
Voice: 301-469-8766
  Fax: 301-469-0601


I guess it's not "core" function and is provided by databases/php5-mysql
extension.


Yuri


ah - I mispoke; I had installed mysql on php4 getting the same error so I did 
not install in on php5 doing that now


_
Douglas Denault
http://www.safeport.com
[EMAIL PROTECTED]
Voice: 301-469-8766
  Fax: 301-469-0601
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RT256x PCMCIA card under 7.0-BETA2 (repost from [EMAIL PROTECTED], to get a broader audience)

2007-11-14 Thread Heiko Wundram (Beenic)
Hi all!

I just recently bought a RT2561C based (at least I think so) wireless card, 
which is also happily recognized by the ral-driver:

ral0:  mem 0x8800-0x88007fff irq 17 at device 
0.0 on cardbus0
ral0: MAC/BBP RT2561C, RF RT2527
ral0: Ethernet address: 00:80:5a:51:23:53
ral0: [ITHREAD]

As soon as I plug in the card and the netif script starts wpa_supplicant and 
dhclient, the laptop this is plugged into receives an interrupt storm on cbb0 
(having 80% interrupt time), which leads to a noticeable slowdown of the 
whole system:

phoenix# vmstat -i
interrupt  total   rate
irq1: atkbd09773  3
irq10: acpi0 729  0
irq14: ata017173  6
irq15: ata1   64  0
irq17: cbb0 cbb1+   10408993   4217
irq18: pcm0 5753  2
irq19: sis0+   33302 13
irq20: ohci0 207  0
irq21: ohci1   44261 17
irq23: ehci0   1  0
cpu0: timer  4926468   1996
Total   15446724   6258
phoenix#

This snapshot was taken some time after I killed wpa_supplicant (when it had 
been up for about 10 seconds).

When I manually start wpa_supplicant (with no stations in reach), there is no 
interrupt storm, but just normal activity with around 7-10 interrupts on cbb0 
per second.

I can also manually scan using the card (but ifconfig scan never finishes, but 
will show the stations in reach when doing an ifconfig list scan after ^C-ing 
the ifconfig scan), but cannot attach to any WPA access point in 
scanning-reach with wpa_supplicant (the only type of stations I have access 
to; I cannot test with WEP at the moment); enabling net.wlan.debug and 
net.wlan.0.debug also shows the scan taking place and the keys being set to 
the card, but nothing else from there.

The card itself is a "Conceptronic C54RC Version 2.0", which I guess explains 
the difference (in hardware) between the note in the manpage of ral(4) for 
this adapter and the actual hardware type it finds:

 Conceptronic C54RC   RT2560 CardBus

Anyway, doing a pciconv -lv leads to a different result than the actual driver 
reports, which is compatible with the hardware specification in the manpage:

[EMAIL PROTECTED]:2:0:0:class=0x028000 card=0x3c231948 chip=0x03021814 
rev=0x00 hdr=0x00
vendor = 'Ralink Technology, Corp'
device = 'RT2525 2.4GHz transceiver + RT2560 MAC/BBP wireless a/b'
class  = network

The kernel all of this runs under is a (slightly) modified GENERIC 7.0-BETA2 
(from yesterday evening CET; an older 7.0-BETA2 didn't exhibit the interrupt 
storm behaviour, but was similar for the rest), with SMP disabled and 
SCHED_ULE instead of SCHED_4BSD.

As debug.ral isn't available under the 7.0 ral-driver (which is referenced in 
the FreeBSD setup page http://damien.bergamini.free.fr/ral/ral-freebsd.html), 
I have no immediately obvious means of debugging what's actually happening 
when the interrupt storm takes place, and why the card won't attach to the AP 
even though the same wpa_supplicant config works using an ndis-wrapped driver 
for a different PCMCIA-card (Broadcom-based).

Thanks for any hint you can give me!

-- 
Heiko Wundram
Product & Application Development
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PHP can not find core function

2007-11-14 Thread doug

On Wed, 14 Nov 2007, Yuri Pankov wrote:


On Wed, Nov 14, 2007 at 01:40:08AM -0500, [EMAIL PROTECTED] wrote:

I am trying to evaluate two php billing programs, One gives no errors,
syntax or otherwise, the other fails to find the mysql_real_escape_string
function.

I the later case I assume I have a path problem. It seems that something in
the code of the first program is turning off errors. Both programs work on
FreeBSD 4.11 and php4. The failing system is FreeBSD 6.2 and php5.

My setup:

php.conf
  PHP_VER=5
  PHP_VERSION=5.2.4
  PHP_SAPI=cli cgi mod

php.ini is php.ini-recommended with the following changes:

  display_errors = On
  display_startup_errors = On
  ignore_repeated_source = On
  track_errors = On
  include_path = ".:/php/includes"

The following ports are installed:

  php5-5.2.4_1PHP Scripting Language
  php5-session-5.2.4_1 The session shared extension for php
  php5-xml-5.2.4_1The xml shared extension for php

phpinfo() shows the configure command as:

'./configure' '--with-layout=GNU'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
'--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection'
'--program-prefix=' '--with-apxs=/usr/local/sbin/apxs' '--with-regex=php'
'--with-zend-vm=CALL' '--disable-ipv6' '--prefix=/usr/local'
'--mandir=/usr/local/man' '--infodir=/usr/local/info/'

I am not sure what else is relevant. I am quite lost, any help is greatly
appreciated.


_
Douglas Denault
http://www.safeport.com
[EMAIL PROTECTED]
Voice: 301-469-8766
  Fax: 301-469-0601


I guess it's not "core" function and is provided by databases/php5-mysql
extension.


Yuri


I will try that Yuri - thanks. I based my assumption of the "coreness" of the 
function based on (my understanding of) php,net description when I looked up the 
function. Is there documentation noting which functions are in the various 
extensions? I had previously installed the mysql extension which did not work.




_
Douglas Denault
http://www.safeport.com
[EMAIL PROTECTED]
Voice: 301-469-8766
  Fax: 301-469-0601
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /bin/sh Can one Easily Strip Path Name from $0?

2007-11-14 Thread Martin McCormick
The basename utility does the trick. Thanks to all of you
who answered.

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


Re: Tkinter Libraries Needed

2007-11-14 Thread tonylabarbara

Right. I tried that a while back and forgot I had. This is what I get:



server726# cd /usr/ports/graphics/py-imaging
server726# make install clean
===>  Installing for py24-imaging-1.1.5
===>   py24-imaging-1.1.5 depends on file: 
/usr/local/lib/python2.4/site-packages/_tkinter.so - found
===>   py24-imaging-1.1.5 depends on file: /usr/local/bin/python - found
===>   py24-imaging-1.1.5 depends on shared library: jpeg.9 - found
===>   py24-imaging-1.1.5 depends on shared library: freetype.9 - found
===>   Generating temporary packing list
===>  Checking if graphics/py-imaging already installed
===>   An older version of graphics/py-imaging is already installed 
(py23-imaging-1.1.5)
  You may wish to ``make deinstall'' and install this port again
  by ``make reinstall'' to upgrade it properly.
  If you really wish to overwrite the old port of graphics/py-imaging
  without deleting it first, set the variable "FORCE_PKG_REGISTER"
  in your environment or the "make install" command line.
*** Error code 1

Stop in /usr/ports/graphics/py-imaging.
server726# make deinstall
===>  Deinstalling for graphics/py-imaging
server726# make reinstall
===>  Installing for py24-imaging-1.1.5
===>   py24-imaging-1.1.5 depends on file: 
/usr/local/lib/python2.4/site-packages/_tkinter.so - found
===>   py24-imaging-1.1.5 depends on file: /usr/local/bin/python2.4 - found
===>   py24-imaging-1.1.5 depends on shared library: jpeg.9 - found
===>   py24-imaging-1.1.5 depends on shared library: freetype.9 - found
===>   Generating temporary packing list
===>  Checking if graphics/py-imaging already installed
===>   An older version of graphics/py-imaging is already installed 
(py23-imaging-1.1.5)
  You may wish to ``make deinstall'' and install this port again
  by ``make reinstall'' to upgrade it properly.
  If you really wish to overwrite the old port of graphics/py-imaging
  without deleting it first, set the variable "FORCE_PKG_REGISTER"
  in your environment or the "make install" command line.
*** Error code 1

Stop in /usr/ports/graphics/py-imaging.
*** Error code 1

Stop in /usr/ports/graphics/py-imaging.

Ideas?
TIA,
Tony



/usr/ports/graphics/py-imaging




-Original Message-
From: Vince <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Wed, 14 Nov 2007 11:17 am
Subject: Re: Tkinter Libraries Needed



[EMAIL PROTECTED] wrote:
 Hi;
 After a second googling, I discovered the reason I can't install the Python 
maging Library (PIL) appears to be because I need some development 
ibraries...that I can't find in the ports. I'm running FBSD 5.5. I´ve installed 
ope 2.10.5 on top of Python 2.4.2 (not optimal, but it will work, according to 
he build instructions). I installed Plone 3.0.2 and I get errors when I crank 
p Zope, all related to a non-existent PIL. So I d/l/d the latest PIL, plopped 
t in my Extensions dir, ran this:
 
'm not knowlegeable on python but
usr/ports/graphics/py-imaging looks like what you wanted. (version
.1.6 which seems to be the latest) If you install it from ports it
hould pull in what it needs.
Vince
> python setup.py build_ext -i
 
 and got this:
 
 
 running build_ext 
 
 building '_imagingtk' extension 
 
 creating build/temp.freebsd-5.5-RELEASE-i386-2.4/Tk 
 
 cc -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t 
DTHREAD_STACK_SIZE=0x10 -fPIC -I/usr/local/include/freetype2 -IlibImaging 
I/usr/local/include -I/usr/include -I/usr/local/include/python2.4 -c 
imagingtk.c -o build/temp.freebsd-5.5-RELEASE-i386-2.4/_imagingtk.o 
 
 _imagingtk.c:20:16: tk.h: No such file or directory 
 
 _imagingtk.c:23: error: syntax error before '*' token 
 
 _imagingtk.c:31: error: syntax error before "Tcl_Interp" 
 
 _imagingtk.c: In function `_tkinit': 
 
 _imagingtk.c:37: error: `Tcl_Interp' undeclared (first use in this function) 
 
 _imagingtk.c:37: error: (Each undeclared identifier is reported only once 
 
 _imagingtk.c:37: error: for each function it appears in.) 
 
 _imagingtk.c:37: error: `interp' undeclared (first use in this function) 
 
 _imagingtk.c:45: error: syntax error before ')' token 
 
 _imagingtk.c:50: error: `app' undeclared (first use in this function) 
 
 _imagingtk.c: At top level: 
 
 _imagingtk.c:55: warning: parameter names (without types) in function 
eclaration 
 
 _imagingtk.c:55: error: conflicting types for 'TkImaging_Init' 
 
 _imagingtk.c:23: error: previous declaration of 'TkImaging_Init' was here 
 
 _imagingtk.c:55: error: conflicting types for 'TkImaging_Init' 
 
 _imagingtk.c:23: error: previous declaration of 'TkImaging_Init' was here 
 
 _imagingtk.c:55: warning: data definition has no type or storage class 
 
 _imagingtk.c:57: error: syntax error before '&' token 
 
 error: command 'cc' failed with exit status 1
 
 According to my googling...
 
 
 
 the setup procedure has determined that your Python has been built with
 
 Tkinter, and that Tcl/Tk libraries and include files seem to

Re: Dell PE4600 RAID5 server failing

2007-11-14 Thread Derek Ragona

At 09:00 AM 11/14/2007, Barnaby Scott wrote:
I suspect I already know the answer to this, which is that the trouble I 
am having is nothing to do with the OS at all, but I have to ask, because 
I am otherwise up against a total brick wall!


I bought a second-hand Dell Poweredge 4600 and installed FreeBSD 6.2 
earlier this year. I had it set up with RAID5 using its PERC3/DC 
controller, with 7 x 73GB disks (+ 1 hot spare). So far so good, and it 
worked faultlessly as a Samba server for several months.


At the beginning of October, it went down, reporting a mismatch between 
the configuration on the NVRAM and the disks. With help from Dell support, 
I managed to recreate the RAID array and it worked again for a month.


In early November it happened again, and has kept happening since. At one 
point it appeared that the backplane was faulty, so I replaced that, but I 
cannot keep the server up for more than a day or so without this 
'mismatch' poblem.


What about diagnostics on the hardware you may ask? I have run all the 
diagnostic tools that Dell can supply - several times - and the server 
declares itself to be totally fault-free.


My specific questions therefore:

Is there any way at all that FreeBSD could be invloved with this problem? 
(I did notice for example that the Dell PERC3/DC controller was not in the 
list of supported hardware - but then again, why did it work for several 
months?)


Can I use FreeBSD to tell me anything about the fault that Dell's 
diagnostic tools haven't found?


(I do hope someone might be able to help - Dell are trying to get me to 
switch to a 'supported' OS!)



Thanks

Barnaby Scott


It doesn't sound like any OS issue as you set up the RAID outside the 
OS.  It may be a bad drive or drive(s).  Most RAID drives have RAID 
information written to the drives, and if this becomes unreadable you will 
have RAID faults.


Another likely culprit is heat.  Overheating drives often fail.  Are you 
sure the temperatures in the drive enclosure is OK?


If you can, run diagnostics on the drives, this usually requires running 
these with the drives taken out of the RAID array though.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Dell PE4600 RAID5 server failing

2007-11-14 Thread Barnaby Scott
I suspect I already know the answer to this, which is that the trouble I 
am having is nothing to do with the OS at all, but I have to ask, 
because I am otherwise up against a total brick wall!


I bought a second-hand Dell Poweredge 4600 and installed FreeBSD 6.2 
earlier this year. I had it set up with RAID5 using its PERC3/DC 
controller, with 7 x 73GB disks (+ 1 hot spare). So far so good, and it 
worked faultlessly as a Samba server for several months.


At the beginning of October, it went down, reporting a mismatch between 
the configuration on the NVRAM and the disks. With help from Dell 
support, I managed to recreate the RAID array and it worked again for a 
month.


In early November it happened again, and has kept happening since. At 
one point it appeared that the backplane was faulty, so I replaced that, 
but I cannot keep the server up for more than a day or so without this 
'mismatch' poblem.


What about diagnostics on the hardware you may ask? I have run all the 
diagnostic tools that Dell can supply - several times - and the server 
declares itself to be totally fault-free.


My specific questions therefore:

Is there any way at all that FreeBSD could be invloved with this 
problem? (I did notice for example that the Dell PERC3/DC controller was 
not in the list of supported hardware - but then again, why did it work 
for several months?)


Can I use FreeBSD to tell me anything about the fault that Dell's 
diagnostic tools haven't found?


(I do hope someone might be able to help - Dell are trying to get me to 
switch to a 'supported' OS!)



Thanks

Barnaby Scott

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


Re: /bin/sh Can one Easily Strip Path Name from $0?

2007-11-14 Thread Vince
Martin McCormick wrote:
>   I am ashamed to admit that I have been writing shell
> scripts for about 15 years but this problem has me stumped. $0
> is the shell variable which contains the script name or at least
> what name is linked to the script. The string in $0 may or may
> not contain a path, depending upon how the script was called. It
> is easy to strip off the path if it is always there
> 
> #! /bin/sh
> PROGNAME=`echo $0 |awk 'BEGIN{FS="/"}{print $NF}'`
> echo $PROGNAME
> 
> That beautifully isolates the script name but if you happen to
> call the script without prepending a path name such as when the
> script is in the execution path, you get an error because there
> are no slashes in the string so awk gets confused.
> 
>   Is there a better way to always end up with only the script name and
> nothing else no matter whether the path was prepended or not?
> 
basename should do it.


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

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


Re: /bin/sh Can one Easily Strip Path Name from $0?

2007-11-14 Thread Bill Moran
In response to Martin McCormick <[EMAIL PROTECTED]>:

>   I am ashamed to admit that I have been writing shell
> scripts for about 15 years but this problem has me stumped. $0
> is the shell variable which contains the script name or at least
> what name is linked to the script. The string in $0 may or may
> not contain a path, depending upon how the script was called. It
> is easy to strip off the path if it is always there
> 
> #! /bin/sh
> PROGNAME=`echo $0 |awk 'BEGIN{FS="/"}{print $NF}'`
> echo $PROGNAME
> 
> That beautifully isolates the script name but if you happen to
> call the script without prepending a path name such as when the
> script is in the execution path, you get an error because there
> are no slashes in the string so awk gets confused.
> 
>   Is there a better way to always end up with only the script name and
> nothing else no matter whether the path was prepended or not?

basename $0

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


Re: /bin/sh Can one Easily Strip Path Name from $0?

2007-11-14 Thread Erik Trulsson
On Wed, Nov 14, 2007 at 09:08:57AM -0600, Martin McCormick wrote:
>   I am ashamed to admit that I have been writing shell
> scripts for about 15 years but this problem has me stumped. $0
> is the shell variable which contains the script name or at least
> what name is linked to the script. The string in $0 may or may
> not contain a path, depending upon how the script was called. It
> is easy to strip off the path if it is always there
> 
> #! /bin/sh
> PROGNAME=`echo $0 |awk 'BEGIN{FS="/"}{print $NF}'`
> echo $PROGNAME
> 
> That beautifully isolates the script name but if you happen to
> call the script without prepending a path name such as when the
> script is in the execution path, you get an error because there
> are no slashes in the string so awk gets confused.
> 
>   Is there a better way to always end up with only the script name and
> nothing else no matter whether the path was prepended or not?
> 

The basename(1) command seems to do what you want.



-- 

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


Re: Tkinter Libraries Needed

2007-11-14 Thread Vince
[EMAIL PROTECTED] wrote:
> Hi;
> After a second googling, I discovered the reason I can't install the Python 
> Imaging Library (PIL) appears to be because I need some development 
> libraries...that I can't find in the ports. I'm running FBSD 5.5. I´ve 
> installed Zope 2.10.5 on top of Python 2.4.2 (not optimal, but it will work, 
> according to the build instructions). I installed Plone 3.0.2 and I get 
> errors when I crank up Zope, all related to a non-existent PIL. So I d/l/d 
> the latest PIL, plopped it in my Extensions dir, ran this:
> 
I'm not knowlegeable on python but
/usr/ports/graphics/py-imaging looks like what you wanted. (version
1.1.6 which seems to be the latest) If you install it from ports it
should pull in what it needs.

Vince

> python setup.py build_ext -i
> 
> and got this:
> 
> 
> running build_ext 
> 
> building '_imagingtk' extension 
> 
> creating build/temp.freebsd-5.5-RELEASE-i386-2.4/Tk 
> 
> cc -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t 
> -DTHREAD_STACK_SIZE=0x10 -fPIC -I/usr/local/include/freetype2 
> -IlibImaging -I/usr/local/include -I/usr/include 
> -I/usr/local/include/python2.4 -c _imagingtk.c -o 
> build/temp.freebsd-5.5-RELEASE-i386-2.4/_imagingtk.o 
> 
> _imagingtk.c:20:16: tk.h: No such file or directory 
> 
> _imagingtk.c:23: error: syntax error before '*' token 
> 
> _imagingtk.c:31: error: syntax error before "Tcl_Interp" 
> 
> _imagingtk.c: In function `_tkinit': 
> 
> _imagingtk.c:37: error: `Tcl_Interp' undeclared (first use in this function) 
> 
> _imagingtk.c:37: error: (Each undeclared identifier is reported only once 
> 
> _imagingtk.c:37: error: for each function it appears in.) 
> 
> _imagingtk.c:37: error: `interp' undeclared (first use in this function) 
> 
> _imagingtk.c:45: error: syntax error before ')' token 
> 
> _imagingtk.c:50: error: `app' undeclared (first use in this function) 
> 
> _imagingtk.c: At top level: 
> 
> _imagingtk.c:55: warning: parameter names (without types) in function 
> declaration 
> 
> _imagingtk.c:55: error: conflicting types for 'TkImaging_Init' 
> 
> _imagingtk.c:23: error: previous declaration of 'TkImaging_Init' was here 
> 
> _imagingtk.c:55: error: conflicting types for 'TkImaging_Init' 
> 
> _imagingtk.c:23: error: previous declaration of 'TkImaging_Init' was here 
> 
> _imagingtk.c:55: warning: data definition has no type or storage class 
> 
> _imagingtk.c:57: error: syntax error before '&' token 
> 
> error: command 'cc' failed with exit status 1
> 
> According to my googling...
> 
> 
> 
> the setup procedure has determined that your Python has been built with
> 
> Tkinter, and that Tcl/Tk libraries and include files seem to be available, but
> 
> the compiler cannot find them, for some unknown reason.
> 
> have you tried installing the Tcl and Tk development libraries ? (usually
> 
> tcl-devel and tk-devel)
> 
> .
> 
> 
> I cannot find any such animals. Ideas on what to do?
> TIA,
> Tony
> 
> 
> 
> 
> 
> Email and AIM finally together. You've gotta check out free AOL Mail! - 
> http://mail.aol.com
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

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


Re: master->backup CARP issue

2007-11-14 Thread Girish Venkatachalam
On 15:23:49 Nov 14, Eugene wrote:
 
> No, actually i haven't tried to play with "advskew" and "advbase"
> parameters, and I'll give it a try, thanks. I'll report results if it
> helps.
> 
> Yes, NIC's seemed to be reliable.
> 
> If I should try a different NIC then which one should I switch, all
> 4?

I dunno buddy.

I would rather you first try to play with the "advskew" and "advbase"
parameters.

In case that doesn't work then you can go for plan B.

There is a very remote chance of a faulty NIC causing trouble here.

So let us get to it only when warranted.

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


Re: What server for a mail server

2007-11-14 Thread Ivan Voras
Olivier Nicole wrote:
> Hi,
> 
> I have a project where I should set-up a mail server for approximately
> 12000 users, 4000 virtual domains, 15000 messages per day, 700 MB
> traffic per day.

Depending on how you interpret this information, its load is not that
high - this amounts to something like 10 messages per minute.

Any modern hardware (e.g. Xeon 51x0+, dual-core and better Opterons)
should handle this just fine.

> The machine should run Postfix, courrier-imap and a web mail (probably
> squirel), Apache 2, spamassassin, clamav, greylist

Scanning for spam and viruses will be the biggest bottlenecks. If you
want to go the safe route, move these tasks on an additional machine,
and use the main machine for everything else. Hardware is relatively
cheap nowadays, for example 2 Dells 2950 with a Xeon 5120 and with 4 GB
RAM each should do fine, or even one with double everything. Go for the
64-bit kernel since it will enable you to add more RAM.


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


/bin/sh Can one Easily Strip Path Name from $0?

2007-11-14 Thread Martin McCormick
I am ashamed to admit that I have been writing shell
scripts for about 15 years but this problem has me stumped. $0
is the shell variable which contains the script name or at least
what name is linked to the script. The string in $0 may or may
not contain a path, depending upon how the script was called. It
is easy to strip off the path if it is always there

#! /bin/sh
PROGNAME=`echo $0 |awk 'BEGIN{FS="/"}{print $NF}'`
echo $PROGNAME

That beautifully isolates the script name but if you happen to
call the script without prepending a path name such as when the
script is in the execution path, you get an error because there
are no slashes in the string so awk gets confused.

Is there a better way to always end up with only the script name and
nothing else no matter whether the path was prepended or not?

Thank you.

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


Tkinter Libraries Needed

2007-11-14 Thread tonylabarbara
Hi;
After a second googling, I discovered the reason I can't install the Python 
Imaging Library (PIL) appears to be because I need some development 
libraries...that I can't find in the ports. I'm running FBSD 5.5. I´ve 
installed Zope 2.10.5 on top of Python 2.4.2 (not optimal, but it will work, 
according to the build instructions). I installed Plone 3.0.2 and I get errors 
when I crank up Zope, all related to a non-existent PIL. So I d/l/d the latest 
PIL, plopped it in my Extensions dir, ran this:

python setup.py build_ext -i

and got this:


running build_ext 

building '_imagingtk' extension 

creating build/temp.freebsd-5.5-RELEASE-i386-2.4/Tk 

cc -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t 
-DTHREAD_STACK_SIZE=0x10 -fPIC -I/usr/local/include/freetype2 -IlibImaging 
-I/usr/local/include -I/usr/include -I/usr/local/include/python2.4 -c 
_imagingtk.c -o build/temp.freebsd-5.5-RELEASE-i386-2.4/_imagingtk.o 

_imagingtk.c:20:16: tk.h: No such file or directory 

_imagingtk.c:23: error: syntax error before '*' token 

_imagingtk.c:31: error: syntax error before "Tcl_Interp" 

_imagingtk.c: In function `_tkinit': 

_imagingtk.c:37: error: `Tcl_Interp' undeclared (first use in this function) 

_imagingtk.c:37: error: (Each undeclared identifier is reported only once 

_imagingtk.c:37: error: for each function it appears in.) 

_imagingtk.c:37: error: `interp' undeclared (first use in this function) 

_imagingtk.c:45: error: syntax error before ')' token 

_imagingtk.c:50: error: `app' undeclared (first use in this function) 

_imagingtk.c: At top level: 

_imagingtk.c:55: warning: parameter names (without types) in function 
declaration 

_imagingtk.c:55: error: conflicting types for 'TkImaging_Init' 

_imagingtk.c:23: error: previous declaration of 'TkImaging_Init' was here 

_imagingtk.c:55: error: conflicting types for 'TkImaging_Init' 

_imagingtk.c:23: error: previous declaration of 'TkImaging_Init' was here 

_imagingtk.c:55: warning: data definition has no type or storage class 

_imagingtk.c:57: error: syntax error before '&' token 

error: command 'cc' failed with exit status 1

According to my googling...



the setup procedure has determined that your Python has been built with

Tkinter, and that Tcl/Tk libraries and include files seem to be available, but

the compiler cannot find them, for some unknown reason.

have you tried installing the Tcl and Tk development libraries ? (usually

tcl-devel and tk-devel)

.


I cannot find any such animals. Ideas on what to do?
TIA,
Tony





Email and AIM finally together. You've gotta check out free AOL Mail! - 
http://mail.aol.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD cache memory allocation

2007-11-14 Thread Ivan Voras
icantthinkofone wrote:
> Someone I can't stand said this about FreeBSD.  Though I know C, I don't
> know anything about it and would love to respond.
> [QUOTE]The kernel is really lacking some features. They need a method to
> set precise type of memory cache but BSD doesn't provide way to specify
> memory cache.
> 
> For that reason MS has the beautiful
> MmAllocateContigousMemorySpecifyCache()[/QUOTE]

Well, I know there's contigmalloc(9) in FreeBSD but you will get a
better answer if you ask this question on [EMAIL PROTECTED]

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


Re: master->backup CARP issue

2007-11-14 Thread Eugene
Hello Girish,

Wednesday, November 14, 2007, 1:25:41 PM, Girish Venkatachalam <[EMAIL 
PROTECTED]> wrote:

GV> On 09:50:51 Nov 14, Eugene wrote:
>> Hello freebsd,
>> 
>> 
>> We have two FreeBSD boxes, each one has 4 CARP interfaces in
>> preempt
>> mode, without arp balancing.
>> 
>> Backup without any reason preempts Master and after a while
>> (an hour
>> or two) it becomes Backup again.
>> When Backup becomes Master on Master box
>> net.inet.carp.suppress_preempt: 1, but all interfaces are up and
>> seemed to work properly.
>> 
>> 
>> Is there any ways to debug this issue?
>> 
>>
>> Thanks in advance!

GV> I could be talking nonsense but still...
GV> Have you tried adjusting the "advskew" and "advbase" parameters?
GV> Another thing. Are the NICs reliable?
GV> Have you tried with a different NIC?
GV> Looks like you don't have a faulty NIC here. So it could be the
GV> other
GV> possibility.

No, actually i haven't tried to play with "advskew" and "advbase"
parameters, and I'll give it a try, thanks. I'll report results if it
helps.

Yes, NIC's seemed to be reliable.

If I should try a different NIC then which one should I switch, all
4?


-- 
Best regards,
 Eugenemailto:[EMAIL PROTECTED]

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


Re: Extended FreeBSD licens

2007-11-14 Thread Ivan Voras
Rico Secada wrote:
> Hi.
> 
> Would it be possible for someone to add some conditions to the FreeBSD
> licens and then call it his extended FreeBSD licens?
> 
> I mean would that be legally binding if he provided that licens with
> software he developed?

You can modify the license any way you want but you can't use FreeBSD's
name on it (but you can use a generic "BSD-like" phrase for it). It will
be as legally binding as any other similar open source license.

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


  1   2   >