natd / ipfw services on internal interface

2007-09-09 Thread Joe
I have a question about natd/ and ipfw.  I am running natd on my external 
interface and I have some services on my internal interface. 

The services seem to be getting their ip addresses nat'd and some of them work 
and some of them dont.  

Any idea how to prevent things from going into natd?

Joe
 
   
-
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: ADSL Bandwidth Monitoring

2007-09-09 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Joao Barros
 Sent: Saturday, September 08, 2007 7:33 PM
 To: Ted Mittelstaedt
 Cc: freebsd-questions@freebsd.org
 Subject: Re: ADSL Bandwidth Monitoring


 On 9/8/07, Ted Mittelstaedt [EMAIL PROTECTED] wrote:
 
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] Behalf Of Amitabh Kant
   Sent: Saturday, September 08, 2007 12:25 PM
   To: Bahman M.
   Cc: freebsd-questions@freebsd.org
   Subject: Re: ADSL Bandwidth Monitoring
  
  
   On 9/8/07, Bahman M. [EMAIL PROTECTED] wrote:
I tested the connection by downloading 2~3 files
 simultaneously and used
'bmon' as Mel suggested in another reply (thanks to him).  As I'd
already guessed the RX don't get bigger than 30~40% of the expected
bandwidth.  I performed the test with some other files and
 there was no
difference.
   
Thanks,
   
Bahman
  
   The bandwidth being advertised by your ISP would be the maximum
   thoughput allowed on your DSL lines with multiple DSL users sharing
   the same bandwidth, something that is generally known as contention
   ratio.
 
  Rubbish.  I work for an ISP and this is nonsense.  DSL is not a
  shared medium until it gets to the ISP and the ISP should be able
  to handle full rate circuits internally.

 From the customer to the DSLAM it's a copper pair.

No contention on that.

 If the DSLAM is far
 from the ISP backbone you have a shared connection. That's where
 contention is applied.

No, sorry.  There's not that many different types of DSL that are
deployed simply because there's only a handful of companies out there
that manufacture DSL chipsets, and DSLAMS.

Virtually all DSLAMS that are out there use an ATM cell circuit
from the DSLAM to the ISP.  Fujitsu for a while was making frame-relay
based DSLAMS but telcos finally stopped buying them and nobody is using
them now.  The ATM connection uses either variable speed bitrate or
unspecified bitrate.  Not committed bitrate that is used for voice
circuits through an ATM network.

The reason for this is that all telcos these days use ATM switches
to carry voice calls - ATM was a standard dreamed up by the telcos
specifically for carrying phone calls.

When DSL was first dreamed up it was thought that to save money on
backend fiber costs that the telcos could use smaller pipes and
introduce contention.  That is why ubr and vbr encapsulations
were selected instead of cbr.

However, the thing that most people (who don't work at telcos) do not
understand is that the telcos found very quickly that they cannot put
contention into an ATM network comprised of a DSL atm circuits for a
very simple reason.

The ATM cell is a fixed 56k bytes.  The majority of Ethernet packets
once a TCP stream gets going and has adjusted it's sliding windows
are close to 1400 bytes long.

Now, imagine what happens to an ATM cloud when you program the ATM
switch that the cloud resides in to introduce contention into the
cloud.  The ATM switch does this by dropping ATM cells in all the
ubr and vbr ATM circuits that traverse the switch.

As a result, you start missing 56 byte packets in your ATM stream
that the DSL is riding on.

If the sender and receiver were using 56 byte MTU's this would be
no problem.  A missing ATM cell would cause a retransmit of the
TCP/IP packet and would be handled by the TCP protocol.

But since the sender are receiver are using 1500 byte MTU's and
the TCP packets are almost that large, what ends up happening
is that even a small amount of contention in the ATM cloud will
cause almost every TCP packet to have bits missing in it - ie:,
to arrive with an invalid CRC and be discarded.

Worse, since the entire packet is missing the sender and receiver's
TCP stack has to retransmit the packet, loading the ATM cloud down
even more.

SO, the cost of discarding a single 56 byte ATM cell means the ATM
cloud will have to get another 1400 bytes of data retransmitted
through it.

It doesen't take a rocket scientist to see that introducing contention
into an ATM circuit carrying a DSL circuit will cause a massive increase
in traffic in the switch, and wipe out any gains from contention.
Furthermore, your customers will start dropping TCP connections without
reason, when the stacks get long series of 1400 byte packets one after
another that are corrupted.  And then calling you and bitching and
wasting your tech support time.

When the Telcos found this out they gave up on that idea.  DSL circuits
today that traverse any ATM cloud -as virtually all of them do since
virtually all telcos use ATM backbones in their DSL networks - cannot
have contention introduced into them by the Telco.

Even the practice of delaying ATM cells causes the same problems
because you cannot introduce enough delay for the packet reassembly
process in the DSL modem and the DSLAM to actually show latency on
the entire packet, without damaging it.

 If for example 

Re: ADSL Bandwidth Monitoring

2007-09-09 Thread Tek Bahadur Limbu

Hi Bahman,


Bahman M. wrote:

Hi all,

I have an ADSL connection at home.

When I'm _uploading_ files the whole upload bandwidth is consumed; so 
far so good.


But when _downloading_ no more than 30~40% of download bandwidth is 
consumed.


The guys in the ISP say they've granted me the requested bandwidth but 
this is not what I see in action.


How may I know the real bandwidth limits of my connection?  Any tool or 
trick?  Or maybe I'm misunderstanding something about ADSL bandwidth?


First of all, I would demand that the ISP where you are acquiring your 
ADSL bandwidth provide you with your bandwidth utilization MRTG or RRD 
graphs. It is the responsibility of every ISP to provide their clients 
the bandwidth usage graphs no matter how big or small they are!


Other than that, make sure that your uplink is not 100% utilized while 
performing download tests. Other factors affecting your downlink could 
be your bandwidth might be shared or burstable and not dedicated.


Have you tried performing downlink tests in the wee hours when there 
could be almost nobody contenting for bandwidth if your bandwidth is 
burstable?


For basic upload and download tests, you can visit the following URL:

http://www.speakeasy.net/speedtest/

But still, your first priority would be to get the bandwidth utilization 
graphs from your ISP.



Thanking you...





TIA,

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







--

With best regards and good wishes,

Yours sincerely,

Tek Bahadur Limbu

System Administrator

(TAG/TDG Group)
Jwl Systems Department

Worldlink Communications Pvt. Ltd.

Jawalakhel, Nepal

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


Re: csh if..then delhema.

2007-09-09 Thread Gary Kline
On Sat, Sep 08, 2007 at 08:26:47PM -0700, Garrett Cooper wrote:
 Giorgos Keramidas wrote:
 On 2007-09-08 20:00, Grant Peel [EMAIL PROTECTED] wrote:
   
 
tcsh can burn in hell for all I care. It's a horrible shell IMNHO 
 (in my not-so humble opinion). Now if I could only convince the rest of 
 the EE community to agree, that'd be nice. Trolls welcome :).


You are right on the money  from my experience, Garrett.  BillJoy
got most things right, but the csh is a dead loser.  (I was
forced to xlate my /bin/sh code into csh for years!  Foo!  
Steve Borne wins this one.

gary

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

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

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


graphics and freebsd

2007-09-09 Thread Burhan Teoman
Hello,
Im a newbie to freebsd. I'm a graphic designer and i need profession
graphic applications on freebsd. Please send your advice.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: graphics and freebsd

2007-09-09 Thread Erich Dollansky

Hi,

depending on what you want to do, GIMP (pixel oriented) and INKSCAPE 
(vector oriented) will be the tools of your choice.


Erich

Burhan Teoman wrote:

Hello,
Im a newbie to freebsd. I'm a graphic designer and i need profession
graphic applications on freebsd. Please send your advice.
___
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: graphics and freebsd

2007-09-09 Thread Roland Smith
On Sun, Sep 09, 2007 at 12:21:29PM +0300, Burhan Teoman wrote:
 Hello,
 Im a newbie to freebsd. I'm a graphic designer and i need profession
 graphic applications on freebsd. Please send your advice.

Look in /usr/ports/graphics for applications that you can automatically
install; Read Chapter 4 of the FreeBSD Handbook;
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html 

- gimp  pixel-oriented image manipulation
- ImageMagick   commandline pixel-oriented image manipulation
- blender   3D images creation
- dcraw using RAW images from digital cameras
- sane  scanner interface
- povrayraytracer

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


pgpT9GwPhrO41.pgp
Description: PGP signature


Realtek RTL8169 - no driver attached

2007-09-09 Thread Stefan Schablowski

Hi all,

I would like to install FreeBSD 6.2 on a i386 system that includes a
Realtek RTL8169 network card, but when booting from the install CD or
from the installed system, there seems to be a problem with the driver:

 dmesg
...
pci0: network, ethernet at device 13.0 (no driver attached)
...

 pciconf -l -v
...
[EMAIL PROTECTED]:13:0: class=0x02 card=0x816910ec chip=0x816910ec rev=0x10
hdr=0x00
  vendor   = 'Realtek Semiconductor'
  device   = 'RTL8169 Gigabit Ethernet Adapter'
  class= 'Network'
  subclass = ethernet
...

 kldload if_re
kldload: can't load if_re: File exists

I've been running a FreeBSD server in production for over a year now and
this is the first time ever I even have to think about hardware. The
card itself is a cheap no-name card.

What am I doing wrong ?

Thank you very much,

CU Stefan



CAUTION: This e-mail and any attachment(s) contains information that is both 
confidential and possibly legally privileged.  No reader may make any use of 
its content unless that use is approved by Prolificx separately in writing. Any 
opinion, advice or information contained in this e-mail and any attachment(s) 
is to be treated as interim and provisional only and for the strictly limited 
purpose of the recipient as communicated to us. Neither the recipient nor any 
other person should act upon it without our separate written authorisation of 
reliance.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: csh if..then delhema.

2007-09-09 Thread Grant Peel
Thanks for the input gentlemen,

Interesting to that the question was posted by G(rant) and then answered by 
G(ary), G(arrett) and G(iorgos)! (what are the odds!).

Anywho, I am busily converting the script to perl as per the suggestions. I use 
tcsh rarely, had I of known the quirks I woul shave done it in perl from the 
beguining.

As for Garrett's case method, it didnt work. Created a case: Too many 
arguments. error. Perhaps because it itself is nested in a 'foreach' statement.

Thanks again guys,

-Grant
  - Original Message - 
  From: Gary Kline 
  To: Garrett Cooper 
  Cc: Giorgos Keramidas ; Grant Peel ; freebsd-questions@freebsd.org 
  Sent: Sunday, September 09, 2007 4:19 AM
  Subject: Re: csh if..then delhema.


  On Sat, Sep 08, 2007 at 08:26:47PM -0700, Garrett Cooper wrote:
   Giorgos Keramidas wrote:
   On 2007-09-08 20:00, Grant Peel [EMAIL PROTECTED] wrote:

   
   tcsh can burn in hell for all I care. It's a horrible shell IMNHO 
   (in my not-so humble opinion). Now if I could only convince the rest of 
   the EE community to agree, that'd be nice. Trolls welcome :).


  You are right on the money from my experience, Garrett. BillJoy
  got most things right, but the csh is a dead loser. (I was
  forced to xlate my /bin/sh code into csh for years! Foo! 
  Steve Borne wins this one.

  gary

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

  -- 
  Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix
  http://jottings.thought.org http://transfinite.thought.org


--
Total Control Panel  Login  
To: [EMAIL PROTECTED]  Message Score:  50   High (60): Pass  
From: [EMAIL PROTECTED]  My Spam Blocking Level:  High  Medium (75): 
Pass  
 Low (90): Pass 
   Block messages from this sender (blacklist)
  
This message was delivered because the content filter score did not 
exceed your filter level.  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: setting up xorg - mouse

2007-09-09 Thread Martin Tournoij
   On Fri 07 Sep 2007 22:09, Computer Answers wrote:
   Hi,
   right now I am running freeBSD 6.2 RELEASE with xorg 6.9 and I am
   unable to get xorg (icewm) to detect my mouse.
   ~comperr
  On 9/8/07, Martin Tournoij [EMAIL PROTECTED] wrote:
 
  Is moused running? And if it is, how is it configured?
  See the FreeBSD handbook and the moused manpage for details:
  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-post.html#MOUSE
 
  Which brand/model mouse do you have? And how does the mouse connect to
  your PC (PS2 or USB)?
 
  What are your mouse settings in /etc/X11/xorg.conf
 
 On Sun 09 Sep 2007 01:09, Computer Answers wrote:
 sorry about the time delay:
 um it is a generic PS2 mouse made by digiView
 I tried running the xorg config wizard a few tmes choosing different
 mouse types each time.  None of them work.
 
 as for xorg.conf
 Section InputDevice
 Identifier Mouse0
 Driver mouse
 Option Protocall Auto
 Option Device /dev/sysmouse
 
 (side point) if someone would tell me how to copy and paste with only
 a keyboard that would be really nice

Does the mouse work in the console (DOS-screen)?
xorg usually isn't the problem, it much more often moused which isn't
running or badly configured.
Try running:
moused -t auto -p /dev/psm0
Before starting xorg, see the link I posted earlier.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: csh if..then delhema.

2007-09-09 Thread Giorgos Keramidas
On 2007-09-09 08:57, Grant Peel [EMAIL PROTECTED] wrote:
 Thanks for the input gentlemen,
 Interesting to that the question was posted by G(rant) and then
 answered by G(ary), G(arrett) and G(iorgos)! (what are the odds!).

Haha :)

 Anywho, I am busily converting the script to perl as per the
 suggestions. I use tcsh rarely, had I of known the quirks I woul shave
 done it in perl from the beguining.

 As for Garrett's case method, it didnt work. Created a case: Too many
 arguments. error. Perhaps because it itself is nested in a 'foreach'
 statement.

`foreach' is a csh construct.  If you copied the case/esac code posted
by Garrett, then it wouldn't work.  The syntax used by Garrett was for
the Bourne shell (hence the /bin/sh reference above case).

If you are going to convert everything to /bin/sh, you may as well
convert it to Perl unless there is some very good reason to use only
the pretty minimal data-structures supported by the Bourne shell
(i.e. because you want to run the script in environments where Perl
may be too much to require).

- Giorgos

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


Re: setting up xorg - mouse

2007-09-09 Thread Erich Dollansky

Hi,

I have the same problem. If I leave the definitions for the mouse out, X 
starts without problems and uses the mouse. As long as a mouse 
definition is given in the configuration file, I cannot use the mouse.


Erich

Martin Tournoij wrote:

On Fri 07 Sep 2007 22:09, Computer Answers wrote:
Hi,
right now I am running freeBSD 6.2 RELEASE with xorg 6.9 and I am
unable to get xorg (icewm) to detect my mouse.
~comperr

On 9/8/07, Martin Tournoij [EMAIL PROTECTED] wrote:

Is moused running? And if it is, how is it configured?
See the FreeBSD handbook and the moused manpage for details:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-post.html#MOUSE

Which brand/model mouse do you have? And how does the mouse connect to
your PC (PS2 or USB)?

What are your mouse settings in /etc/X11/xorg.conf


On Sun 09 Sep 2007 01:09, Computer Answers wrote:
sorry about the time delay:
um it is a generic PS2 mouse made by digiView
I tried running the xorg config wizard a few tmes choosing different
mouse types each time.  None of them work.

as for xorg.conf
Section InputDevice
Identifier Mouse0
Driver mouse
Option Protocall Auto
Option Device /dev/sysmouse

(side point) if someone would tell me how to copy and paste with only
a keyboard that would be really nice


Does the mouse work in the console (DOS-screen)?
xorg usually isn't the problem, it much more often moused which isn't
running or badly configured.
Try running:
moused -t auto -p /dev/psm0
Before starting xorg, see the link I posted earlier.
___
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]


VIA UniChrome Pro II 3D/2D

2007-09-09 Thread cco1817-0
Hi,
   
  is there any way to get my VIA UniChrome Pro II 3D/2D on a Via EPIA EX1 
to work without the vesa-driver under xorg? Looking for a specific driver but 
don't find something.
   
  With vesa it's nearly unusable slow.
  Didn't found anything, neither on www.openchrome.org.
   
  Thanks for help in advance!
  Greetings,
  Robert
   

   
-
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen SieĀ“s mit 
dem  neuen Yahoo! Mail. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ADSL Bandwidth Monitoring

2007-09-09 Thread Bahman M.
Thank you all for the information and the hints; very helpful.  At 
least, now I've got a clue.



Bahman

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


Re: Sadly, my tinker-time has run out....

2007-09-09 Thread rachie
On Saturday 01 September 2007 10:22:08 pm Michael Hauber wrote:
 Hey, all...

 I've been a user of FreeBSD and OpenBSD for quite a while now. 
 Unfortunatly, I haven't had much time to tinker lately, and that's unlikely
 to change in the near future.  Sadly, I need to get an OS that my wife
 would be more comfortable using and that wouldn't be as time-comsuming to
 make it more comfortable for her.

 I downloaded the uberyl live CD and found that ubuntu seems to pick up on
 everything I have on the laptop (as well as all the attachments), so I'm
 downloading it now.

 Because I've put so much time into getting this FreeBSD install where it is
 now (and because I favor the BSDs), I'm still a bit hesitant...  Has anyone
 here had much experience with ubunu as a desktop?  Negatives/positives?

 Kind of OT, I guess...  I'd just rather hear it from someone in this group
 rather than the inevitable, Oh yeah.  You won't be sorry. from the ubuntu
 folk (salespitches == fingernails on a chalkboard :) ).

 Thanks,

 Mike


 PS.  Yes, I've played with PC-BSD.  Unfortunately, that's still more work
 than I have time for.

Hello :)

I used Ubuntu and Kubuntu before I installed FreeBSD.  It was pretty easy to 
use and a lot of things were made easy for clueless users like me.  I like 
FreeBSD better, but thats because it allows me to learn what is happening 
behind it all.  I think your wife will be happy with ubuntu.  Its probably 
going to be different enough to be annoying at times.  Ubuntu is the easiest 
form of Linux that I tried.  Maybe you could dual boot FreeBSD and Ubuntu?  I 
tried that once but couldn't figure out how to fix the boot loader.  I 
couldn't get back into Kubuntu, but that may be because I was triple booting 
with windows xp too. lol.  Its just an idea.  If you can figure out the 
bootloader problem then maybe you dont have to give up FreeBSD :)

Good luck!

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


Re: Realtek RTL8169 - no driver attached

2007-09-09 Thread Mel
On Sunday 09 September 2007 12:37:20 Stefan Schablowski wrote:
 Hi all,

 I would like to install FreeBSD 6.2 on a i386 system that includes a
 Realtek RTL8169 network card, but when booting from the install CD or

 from the installed system, there seems to be a problem with the driver:
  dmesg

 ...
 pci0: network, ethernet at device 13.0 (no driver attached)
 ...

  pciconf -l -v

 ...
 [EMAIL PROTECTED]:13:0: class=0x02 card=0x816910ec chip=0x816910ec 
 rev=0x10
 hdr=0x00
   vendor   = 'Realtek Semiconductor'
   device   = 'RTL8169 Gigabit Ethernet Adapter'
   class= 'Network'
   subclass = ethernet
 ...

  kldload if_re

 kldload: can't load if_re: File exists

 I've been running a FreeBSD server in production for over a year now and
 this is the first time ever I even have to think about hardware. The
 card itself is a cheap no-name card.

 What am I doing wrong ?

There's a commit in -STABLE (after 6.2-RELEASE) that references detection 
problems in this driver (allthough it references other product numbers). If 
you can manage this, try updating to STABLE or if that's not an option and 
you know your way around, you could only update the driver files.

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


Re: csh if..then delhema.

2007-09-09 Thread Garrett Cooper

Giorgos Keramidas wrote:

On 2007-09-09 08:57, Grant Peel [EMAIL PROTECTED] wrote:
  

Thanks for the input gentlemen,
Interesting to that the question was posted by G(rant) and then
answered by G(ary), G(arrett) and G(iorgos)! (what are the odds!).



Haha :)

  

Anywho, I am busily converting the script to perl as per the
suggestions. I use tcsh rarely, had I of known the quirks I woul shave
done it in perl from the beguining.

As for Garrett's case method, it didnt work. Created a case: Too many
arguments. error. Perhaps because it itself is nested in a 'foreach'
statement.



`foreach' is a csh construct.  If you copied the case/esac code posted
by Garrett, then it wouldn't work.  The syntax used by Garrett was for
the Bourne shell (hence the /bin/sh reference above case).

If you are going to convert everything to /bin/sh, you may as well
convert it to Perl unless there is some very good reason to use only
the pretty minimal data-structures supported by the Bourne shell
(i.e. because you want to run the script in environments where Perl
may be too much to require).

- Giorgos

  


   'for {variable_name}' can replace foreach in Bourne Shell.

   If you can provide more information, like what you're doing with the 
shell script, please let us know.


   I'm a big fan of Perl, in particular in cases where text parsing 
doesn't cut it in Bourne shell / with the simple utilities (i.e. cut(1), 
sed(1), etc), but in an effort to try and avoid having Perl installed on 
every single machine, I provided the previous Bourne shell example.


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


firefox 2.0.0.6 build fails: missing pangox.h

2007-09-09 Thread Kyle Allender
While trying to upgrade the ports tree on my 6.2-RELEASE system, I am 
getting a failure with the firefox 2.0.0.6 port:


nsRenderingContextGTK.h:161: warning:   by `virtual nsresult 
nsRenderingContextGTK::DrawString(const nsString, nscoord, nscoord, 
PRInt32, const nscoord*)'

nsDeviceContextGTK.cpp:70:26: pango/pangox.h: No such file or directory
gmake[4]: *** [nsDeviceContextGTK.o] Error 1
gmake[4]: Leaving directory 
`/usr/ports/www/firefox/work/mozilla/gfx/src/gtk'

gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/usr/ports/www/firefox/work/mozilla/gfx/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/usr/ports/www/firefox/work/mozilla/gfx'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/usr/ports/www/firefox/work/mozilla'
gmake: *** [default] Error 2
*** Error code 2


I have upgraded pango to the latest build in the ports thus:

make -DWITH_X11 reinstall

thinking that pango had a problem installing with X enabled.  This has 
made no difference as the firefox build fails whether or not I specify 
the -DWITH_X11 switch to the pango build or not.


Could someone suggest a fix for this issue?

I've been googling and trying to research the problem via the 
freebsd/gnome pages, but have thus far come up empty.  I can provide 
further log entries as needed, too.


Thanks in advance.

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


Re: firefox 2.0.0.6 build fails: missing pangox.h

2007-09-09 Thread cpghost
On Sun, 09 Sep 2007 12:01:11 -0500
Kyle Allender [EMAIL PROTECTED] wrote:

 While trying to upgrade the ports tree on my 6.2-RELEASE system, I am 
 getting a failure with the firefox 2.0.0.6 port:
 
 nsRenderingContextGTK.h:161: warning:   by `virtual nsresult 
 nsRenderingContextGTK::DrawString(const nsString, nscoord, nscoord, 
 PRInt32, const nscoord*)'
 nsDeviceContextGTK.cpp:70:26: pango/pangox.h: No such file or
 directory gmake[4]: *** [nsDeviceContextGTK.o] Error 1
 gmake[4]: Leaving directory 
 `/usr/ports/www/firefox/work/mozilla/gfx/src/gtk'
 gmake[3]: *** [libs] Error 2
 gmake[3]: Leaving directory
 `/usr/ports/www/firefox/work/mozilla/gfx/src' gmake[2]: *** [libs]
 Error 2 gmake[2]: Leaving directory
 `/usr/ports/www/firefox/work/mozilla/gfx' gmake[1]: *** [tier_9]
 Error 2 gmake[1]: Leaving directory
 `/usr/ports/www/firefox/work/mozilla' gmake: *** [default] Error 2
 *** Error code 2
 
 
 I have upgraded pango to the latest build in the ports thus:
 
 make -DWITH_X11 reinstall
 
 thinking that pango had a problem installing with X enabled.  This
 has made no difference as the firefox build fails whether or not I
 specify the -DWITH_X11 switch to the pango build or not.
 
 Could someone suggest a fix for this issue?

Hmmm... just a wild guess: could you please check if the
/usr/X11R6 - /usr/local symlink is set? IIRC, not all ports have
been updated yet to uniformly use /usr/local/include[/pango-1.0]
instead of /usr/X11R6/include[/pango-1.0].

Regards,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: firefox 2.0.0.6 build fails: missing pangox.h

2007-09-09 Thread Kyle Allender

cpghost wrote:

On Sun, 09 Sep 2007 12:01:11 -0500
Kyle Allender [EMAIL PROTECTED] wrote:

  
While trying to upgrade the ports tree on my 6.2-RELEASE system, I am 
getting a failure with the firefox 2.0.0.6 port:


nsRenderingContextGTK.h:161: warning:   by `virtual nsresult 
nsRenderingContextGTK::DrawString(const nsString, nscoord, nscoord, 
PRInt32, const nscoord*)'

nsDeviceContextGTK.cpp:70:26: pango/pangox.h: No such file or
directory gmake[4]: *** [nsDeviceContextGTK.o] Error 1
gmake[4]: Leaving directory 
`/usr/ports/www/firefox/work/mozilla/gfx/src/gtk'

gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory
`/usr/ports/www/firefox/work/mozilla/gfx/src' gmake[2]: *** [libs]
Error 2 gmake[2]: Leaving directory
`/usr/ports/www/firefox/work/mozilla/gfx' gmake[1]: *** [tier_9]
Error 2 gmake[1]: Leaving directory
`/usr/ports/www/firefox/work/mozilla' gmake: *** [default] Error 2
*** Error code 2


I have upgraded pango to the latest build in the ports thus:

make -DWITH_X11 reinstall

thinking that pango had a problem installing with X enabled.  This
has made no difference as the firefox build fails whether or not I
specify the -DWITH_X11 switch to the pango build or not.

Could someone suggest a fix for this issue?



Hmmm... just a wild guess: could you please check if the
/usr/X11R6 - /usr/local symlink is set? IIRC, not all ports have
been updated yet to uniformly use /usr/local/include[/pango-1.0]
instead of /usr/X11R6/include[/pango-1.0].

Regards,
-cpghost.

  

The link does appear to still be set:

[EMAIL PROTECTED] /usr/ports/databases/mysql51-server]# ls -ld /usr/X11R6
lrwxr-xr-x  1 root  wheel  10 Jun 16 16:26 /usr/X11R6 - /usr/local
[EMAIL PROTECTED] /usr/ports/databases/mysql51-server]# ls -ld /usr/local
drwxr-xr-x  22 root  wheel  512 Sep  4 14:56 /usr/local
[EMAIL PROTECTED] /usr/ports/databases/mysql51-server]# ls -ld 
/usr/X11R6/include
drwxr-xr-x  155 root  wheel  23040 Sep  9 10:35 /usr/X11R6/include
[EMAIL PROTECTED] /usr/ports/databases/mysql51-server]# ls -ld 
/usr/local/include
drwxr-xr-x  155 root  wheel  23040 Sep  9 10:35 /usr/local/include
[EMAIL PROTECTED] /usr/ports/databases/mysql51-server]#

I had thought of this, too, but didn't see an issue with how it's been 
set.  Would I need to explicitly set the symlink for /usr/X11R6/include 
as well?


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


Re: firefox 2.0.0.6 build fails: missing pangox.h

2007-09-09 Thread Mel
On Sunday 09 September 2007 19:01:11 Kyle Allender wrote:

 nsRenderingContextGTK.h:161: warning:   by `virtual nsresult
 nsRenderingContextGTK::DrawString(const nsString, nscoord, nscoord,
 PRInt32, const nscoord*)'
 nsDeviceContextGTK.cpp:70:26: pango/pangox.h: No such file or directory

 I've been googling and trying to research the problem via the
 freebsd/gnome pages, but have thus far come up empty.  I can provide
 further log entries as needed, too.

Could you post full compile statement for that error? Most notably it should 
include -I/usr/local/include/pango-1.


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


GEOM ELI: MD5 hash mismatch for /dev/mirror/gm0s1f

2007-09-09 Thread Thomas Hobbes
Hi,

what is this kind of error's meaning?

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


Re: firefox 2.0.0.6 build fails: missing pangox.h

2007-09-09 Thread Kyle Allender

Mel wrote:

On Sunday 09 September 2007 19:01:11 Kyle Allender wrote:

  

nsRenderingContextGTK.h:161: warning:   by `virtual nsresult
nsRenderingContextGTK::DrawString(const nsString, nscoord, nscoord,
PRInt32, const nscoord*)'
nsDeviceContextGTK.cpp:70:26: pango/pangox.h: No such file or directory



  

I've been googling and trying to research the problem via the
freebsd/gnome pages, but have thus far come up empty.  I can provide
further log entries as needed, too.



Could you post full compile statement for that error? Most notably it should 
include -I/usr/local/include/pango-1.



  

The compile statement is:

cc -o nsPrintdGTK.o -c  -DNATIVE_THEME_SUPPORT -DMOZILLA_INTERNAL_API 
-DOSTYPE=\FreeBSD6\ -DOSARCH=\FreeBSD\ -DBUILD_ID=00 
-DUSE_POSTSCRIPT -I../.. -I./. -I./.. -I./../shared -I./../x11shared 
-D_THREAD_SAFE -I/usr/local/include -I/usr/local/include/freetype2
-I../../../dist/include/xpcom -I../../../dist/include/string 
-I../../../dist/include/widget -I../../../dist/include/view 
-I../../../dist/include/util -I../../../dist/include/pref 
-I../../../dist/include/uconv -I../../../dist/include/unicharutil 
-I../../../dist/include/locale -I../../../dist/include/necko 
-I../../../dist/include/content -I../../../dist/include/layout 
-I../../../dist/include/gfx -I../../../dist/include 
-I/usr/local/include/nspr -I/usr/local/include -I/usr/local/include 
-I/usr/include -I../../../dist/sdk/include -I/usr/local/include   -fPIC 
-I/usr/local/include/nss -I/usr/local/include/nss/nss  
-I/usr/local/include  -I/usr/local/include -Wall -W -Wno-unused 
-Wpointer-arith -Wcast-align -Wno-long-long -O2 -fno-strict-aliasing 
-pipe -O2 -pipe  -DNDEBUG -DTRIMMED -O  -D_THREAD_SAFE 
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include 
-I/usr/local/include/atk-1.0 -I/usr/local/include/cairo 
-I/usr/local/include/pango-1.0 -I/usr/local/include 
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include 
-I/usr/local/include/freetype2-I/usr/local/include/nss 
-I/usr/local/include/nss/nss  -I/usr/local/include  -I/usr/local/include 
-include ../../../mozilla-config.h -DMOZILLA_CLIENT nsPrintdGTK.c

gtk2drawing.c
cc -o gtk2drawing.o -c  -DNATIVE_THEME_SUPPORT -DMOZILLA_INTERNAL_API 
-DOSTYPE=\FreeBSD6\ -DOSARCH=\FreeBSD\ -DBUILD_ID=00 
-DUSE_POSTSCRIPT -I../.. -I./. -I./.. -I./../shared -I./../x11shared 
-D_THREAD_SAFE -I/usr/local/include -I/usr/local/include/freetype2
-I../../../dist/include/xpcom -I../../../dist/include/string 
-I../../../dist/include/widget -I../../../dist/include/view 
-I../../../dist/include/util -I../../../dist/include/pref 
-I../../../dist/include/uconv -I../../../dist/include/unicharutil 
-I../../../dist/include/locale -I../../../dist/include/necko 
-I../../../dist/include/content -I../../../dist/include/layout 
-I../../../dist/include/gfx -I../../../dist/include 
-I/usr/local/include/nspr -I/usr/local/include -I/usr/local/include 
-I/usr/include -I../../../dist/sdk/include -I/usr/local/include   -fPIC 
-I/usr/local/include/nss -I/usr/local/include/nss/nss  
-I/usr/local/include  -I/usr/local/include -Wall -W -Wno-unused 
-Wpointer-arith -Wcast-align -Wno-long-long -O2 -fno-strict-aliasing 
-pipe -O2 -pipe  -DNDEBUG -DTRIMMED -O  -D_THREAD_SAFE 
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include 
-I/usr/local/include/atk-1.0 -I/usr/local/include/cairo 
-I/usr/local/include/pango-1.0 -I/usr/local/include 
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include 
-I/usr/local/include/freetype2-I/usr/local/include/nss 
-I/usr/local/include/nss/nss  -I/usr/local/include  -I/usr/local/include 
-include ../../../mozilla-config.h -DMOZILLA_CLIENT gtk2drawing.c

nsDeviceContextGTK.cpp
c++ -o nsDeviceContextGTK.o -c  -DNATIVE_THEME_SUPPORT 
-DMOZILLA_INTERNAL_API -DOSTYPE=\FreeBSD6\ -DOSARCH=\FreeBSD\ 
-DBUILD_ID=00 -DUSE_POSTSCRIPT -I../.. -I./. -I./.. 
-I./../shared -I./../x11shared -D_THREAD_SAFE -I/usr/local/include 
-I/usr/local/include/freetype2-I../../../dist/include/xpcom 
-I../../../dist/include/string -I../../../dist/include/widget 
-I../../../dist/include/view -I../../../dist/include/util 
-I../../../dist/include/pref -I../../../dist/include/uconv 
-I../../../dist/include/unicharutil -I../../../dist/include/locale 
-I../../../dist/include/necko -I../../../dist/include/content 
-I../../../dist/include/layout -I../../../dist/include/gfx 
-I../../../dist/include -I/usr/local/include/nspr -I/usr/local/include 
-I/usr/local/include -I/usr/include -I../../../dist/sdk/include 
-I/usr/local/include   -fPIC  -I/usr/local/include/nss 
-I/usr/local/include/nss/nss  -I/usr/local/include  -I/usr/local/include 
-fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith 
-Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy 
-Wno-non-virtual-dtor -Wno-long-long -O2 -fno-strict-aliasing -pipe -O2 
-fshort-wchar -pipe  -DNDEBUG -DTRIMMED -O  -D_THREAD_SAFE 
-I/usr/local/include/gtk-2.0 

RE: Disk errors when copying

2007-09-09 Thread Lars Eighner

On Fri, 7 Sep 2007, Ted Mittelstaedt wrote:





Subject: Disk errors when copying


When copy between disks (ad10 -ad8), I get errors:

ad10: WARNING - READ_DMA48 UDMA ICRC error (retrying request)
LBA=435128800
ad10: FAILURE - READ_DMA48 status=51READY,DSC,ERROR
error=10NID_NOT_FOUND LBA=435128800
g_vfs_done():ad10s2g[READ(offset=175562145792, length=131072)]error = 5

I don't get these errors just reading the data from ad10.  Is this
some kind of system error rather than a bad disk?  Is it a known problem?



Yes it is a known problem.  It does not happen with most combinations
of drives and controllers.  You need to exhaustively document the
motherboard/controller/hard disk and put it into a PR and file it
so that the developer can add your combo into his database.  The more
of these that are documented the quicker that a coorelation is going
to show up and get fixed.


I wish I'd known that before I trashed my disc and spent a couple of weeks
and hundreds of bucks building a new system.

--
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]


Re: firefox 2.0.0.6 build fails: missing pangox.h

2007-09-09 Thread Kyle Allender

Mel wrote:

On Sunday 09 September 2007 19:01:11 Kyle Allender wrote:

  

nsRenderingContextGTK.h:161: warning:   by `virtual nsresult
nsRenderingContextGTK::DrawString(const nsString, nscoord, nscoord,
PRInt32, const nscoord*)'
nsDeviceContextGTK.cpp:70:26: pango/pangox.h: No such file or directory



  

I've been googling and trying to research the problem via the
freebsd/gnome pages, but have thus far come up empty.  I can provide
further log entries as needed, too.



Could you post full compile statement for that error? Most notably it should 
include -I/usr/local/include/pango-1.



  

A quick follow-up.  I tried this command:

make -DENABLE-STATIC -DENABLE-SHARED

in /usr/ports/x11-toolkits/pango

and now the pangox.h file is present here:

[EMAIL PROTECTED] /usr/ports/x11-toolkits/pango/work/pango-1.16.5/pango]# ls -ld 
pangox.h

-rw-r--r--  1 root  wheel  4393 May 10 16:44 pangox.h

Now the question becomes how do I get that file installed in 
/usr/local/include as required by the firefox port without the ports 
system overriding my configuration changes?  Will a


make install

provide the correct result?  Or should I use:

make -DENABLE-STATIC -DENABLE-SHARED install?

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


Re: firefox 2.0.0.6 build fails: missing pangox.h

2007-09-09 Thread Mel
On Sunday 09 September 2007 20:14:30 Kyle Allender wrote:

 I see where the error is looking for pangox.h, but that file is not
 present in the directory.  A search on the system shows that it was
 never created by the pango build either.  I have a feeling that there's
 a switch I should have supplied to make when building the pango port,
 but I'm not sure what switch that would have been.

 Thoughts?

cd /usr/ports/x11-toolkits/pango  grep pangox pkg-plist  grep X11 Makefile

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


Re: setting up xorg - mouse

2007-09-09 Thread Martin Tournoij
 On Fri 07 Sep 2007 22:09, Computer Answers wrote:
 Hi,
 right now I am running freeBSD 6.2 RELEASE with xorg 6.9 and I am
 unable to get xorg (icewm) to detect my mouse.
 ~comperr
 On 9/8/07, Martin Tournoij [EMAIL PROTECTED] wrote:
 
 Is moused running? And if it is, how is it configured?
 See the FreeBSD handbook and the moused manpage for details:
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-post.html#MOUSE
 
 Which brand/model mouse do you have? And how does the mouse connect to
 your PC (PS2 or USB)?
 
 What are your mouse settings in /etc/X11/xorg.conf
 
 On Sun 09 Sep 2007 01:09, Computer Answers wrote:
 sorry about the time delay:
 um it is a generic PS2 mouse made by digiView
 I tried running the xorg config wizard a few tmes choosing different
 mouse types each time.  None of them work.
 
 as for xorg.conf
 Section InputDevice
 Identifier Mouse0
 Driver mouse
 Option Protocall Auto
 Option Device /dev/sysmouse
 
 (side point) if someone would tell me how to copy and paste with only
 a keyboard that would be really nice
 Martin Tournoij wrote:
 Does the mouse work in the console (DOS-screen)?
 xorg usually isn't the problem, it much more often moused which isn't
 running or badly configured.
 Try running:
 moused -t auto -p /dev/psm0
 Before starting xorg, see the link I posted earlier.
 On Sun 09 Sep 2007 22:09, Erich Dollansky wrote:
 Hi,
 
 I have the same problem. If I leave the definitions for the mouse out, X
 starts without problems and uses the mouse. As long as a mouse definition is
 given in the configuration file, I cannot use the mouse.
 
 Erich
 

Note:
Please put reply messages at the _bottom_, not at the top.
Thank you.

Erich, what is your mouse configuration?
Also try and locate the problem in /var/log/Xorg.0.log

This is a generic configuration:

Section InputDevice
Identifier  mouse
Driver  mouse
Option  Protocol  Auto
Option  Device/dev/sysmouse
Option  ZAxisMapping  4 5
Option  Buttons   5
EndSection

You may need to change the Indentifier line, see your ServerLayout.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: firefox 2.0.0.6 build fails: missing pangox.h

2007-09-09 Thread Mel
On Sunday 09 September 2007 20:46:48 Kyle Allender wrote:
 Mel wrote:
  On Sunday 09 September 2007 20:14:30 Kyle Allender wrote:
  I see where the error is looking for pangox.h, but that file is not
  present in the directory.  A search on the system shows that it was
  never created by the pango build either.  I have a feeling that there's
  a switch I should have supplied to make when building the pango port,
  but I'm not sure what switch that would have been.
 
  Thoughts?
 
  cd /usr/ports/x11-toolkits/pango  grep pangox pkg-plist  grep X11
  Makefile
 
  holds the answer to your problem.

 The output of the above command is:

 [EMAIL PROTECTED] /usr/ports/x11-toolkits/pango/work/pango-1.16.5/tools]# cd
 /usr/ports/x11-toolkits/pango  grep pangox pkg-plist  grep X11 Makefile
 %%X11%%etc/pango/pangox.aliases
 %%X11%%include/pango-1.0/pango/pangox.h
 %%X11%%include/pango-1.0/pango/pangoxft-render.h
 %%X11%%include/pango-1.0/pango/pangoxft.h
 %%X11%%lib/libpangox-1.0.a
 %%X11%%lib/libpangox-1.0.la
 %%X11%%lib/libpangox-1.0.so
 %%X11%%lib/libpangox-1.0.so.0
 %%X11%%lib/libpangoxft-1.0.a
 %%X11%%lib/libpangoxft-1.0.la
 %%X11%%lib/libpangoxft-1.0.so
 %%X11%%lib/libpangoxft-1.0.so.0
 %%X11%%libdata/pkgconfig/pangox.pc
 %%X11%%libdata/pkgconfig/pangoxft.pc
 FONTSCALE=  ${X11BASE}/lib/X11/fonts/TTF/luximb.ttf
 FONTENCOD=  ${X11BASE}/lib/X11/fonts/encodings/encodings.dir
 .if defined(WITHOUT_X11)
 PLIST_SUB+= X11=@comment 
 -I${X11BASE}/include \
 LDFLAGS=-L${LOCALBASE}/lib -L${X11BASE}/lib
 PLIST_SUB+= X11=


 I see where the file should be created if X is enabled during the pango
 build

Almost correct: If WITHOUT_X11 is not defined during build of pango.

You probably had WITHOUT_X11 defined somewhere (/etc/make.conf 
or /var/db/ports/pango/options or /usr/local/etc/pkgtools.conf in MAKE_ARGS 
somewhere, shell environment?) when you rebuilt pango.

 I'm not sure how to interpret the output of the command at the top of
 this post.  What exactly should that command tell me?  It outputs what
 the Makefile expects for an include directory
 [LDFLAGS=-L${LOCALBASE}/lib -L${X11BASE}/lib] but that confirms that
 the symlinks were in place correctly from the beginning doesn't it?

Sorry for being short, I thought you'd pick up on it. The ports system is 
quite transparent once you get the basics.

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


ip assignments

2007-09-09 Thread jekillen

Hello;
I have a question about ip address assignments to multiple
network interfaces on the same machine (running, in this case,
FreeBSD v6.2).
Situation:
I have built a machine with two network interfaces and tried
assigning local addresses in the same subnet mask:
192.168.1.1 192.168.1.2 for example to each of the
interfaces and only one of the interfaces will respond to
a connection attempt (via ftp or ssh for example). I found
that each of the interfaces have to be assigned an address
in a different subnet. for them to both be usable.
Q: Is this characteristic of tcp/ip in general, or specific
to FreeBSD?
I have created aliases for different addresses in the same
subnet on one interface and have had that work.
Thanks for knowledgeable responses;
Jeff K

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


Re: firefox 2.0.0.6 build fails: missing pangox.h

2007-09-09 Thread Kyle Allender

Mel wrote:

On Sunday 09 September 2007 20:14:30 Kyle Allender wrote:


I see where the error is looking for pangox.h, but that file is not
present in the directory.  A search on the system shows that it was
never created by the pango build either.  I have a feeling that there's
a switch I should have supplied to make when building the pango port,
but I'm not sure what switch that would have been.

Thoughts?


cd /usr/ports/x11-toolkits/pango  grep pangox pkg-plist  grep X11 Makefile

holds the answer to your problem.

The output of the above command is:

[EMAIL PROTECTED] /usr/ports/x11-toolkits/pango/work/pango-1.16.5/tools]# cd 
/usr/ports/x11-toolkits/pango  grep pangox pkg-plist  grep X11 Makefile

%%X11%%etc/pango/pangox.aliases
%%X11%%include/pango-1.0/pango/pangox.h
%%X11%%include/pango-1.0/pango/pangoxft-render.h
%%X11%%include/pango-1.0/pango/pangoxft.h
%%X11%%lib/libpangox-1.0.a
%%X11%%lib/libpangox-1.0.la
%%X11%%lib/libpangox-1.0.so
%%X11%%lib/libpangox-1.0.so.0
%%X11%%lib/libpangoxft-1.0.a
%%X11%%lib/libpangoxft-1.0.la
%%X11%%lib/libpangoxft-1.0.so
%%X11%%lib/libpangoxft-1.0.so.0
%%X11%%libdata/pkgconfig/pangox.pc
%%X11%%libdata/pkgconfig/pangoxft.pc
FONTSCALE=  ${X11BASE}/lib/X11/fonts/TTF/luximb.ttf
FONTENCOD=  ${X11BASE}/lib/X11/fonts/encodings/encodings.dir
.if defined(WITHOUT_X11)
PLIST_SUB+= X11=@comment 
   -I${X11BASE}/include \
   LDFLAGS=-L${LOCALBASE}/lib -L${X11BASE}/lib
PLIST_SUB+= X11=


I see where the file should be created if X is enabled during the pango 
build and if the symlinks are correct.  My most recent reply to the list 
asked if I should build pango this way:


make -DENABLE-STATIC -DENABLE-SHARED install

and that seems to have done the job:

[EMAIL PROTECTED] /usr/local/include/pango-1.0/pango]# ls -ld pangox.h
-r--r--r--  1 root  wheel  4393 Sep  9 13:26 pangox.h

firefox 2.0.0.6 is now building and has successfully passed the point 
where it would have failed.


I'm not sure how to interpret the output of the command at the top of 
this post.  What exactly should that command tell me?  It outputs what 
the Makefile expects for an include directory 
[LDFLAGS=-L${LOCALBASE}/lib -L${X11BASE}/lib] but that confirms that 
the symlinks were in place correctly from the beginning doesn't it?


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


Re: csh if..then delhema.

2007-09-09 Thread Gary Kline
On Sun, Sep 09, 2007 at 04:17:21PM +0300, Giorgos Keramidas wrote:
 On 2007-09-09 08:57, Grant Peel [EMAIL PROTECTED] wrote:
  Thanks for the input gentlemen,
  Interesting to that the question was posted by G(rant) and then
  answered by G(ary), G(arrett) and G(iorgos)! (what are the odds!).
 
 Haha :)
 
  Anywho, I am busily converting the script to perl as per the
  suggestions. I use tcsh rarely, had I of known the quirks I woul shave
  done it in perl from the beguining.
 
  As for Garrett's case method, it didnt work. Created a case: Too many
  arguments. error. Perhaps because it itself is nested in a 'foreach'
  statement.
 
 `foreach' is a csh construct.  If you copied the case/esac code posted
 by Garrett, then it wouldn't work.  The syntax used by Garrett was for
 the Bourne shell (hence the /bin/sh reference above case).
 
 If you are going to convert everything to /bin/sh, you may as well
 convert it to Perl unless there is some very good reason to use only
 the pretty minimal data-structures supported by the Bourne shell
 (i.e. because you want to run the script in environments where Perl
 may be too much to require).
 
Do any of you gents know if there is a converter that turns
Bo[u]rne (:-)) shell into perl?  Years ago there was
commericalware (i Think) that took /bin/sh to C.  Maybe Ii'm
mis-remembering.  I've googled aroud and find zip, so maybe I
was in some kind of coma-zone.  

At any rate, for simple unix scripts, /bin/sh (aka a-shell, ash)
or ksh or zsh is the way to go.  Simple == a few lines.
For anything grittier, perl wins any time.

(And to save thebillions of flames that perl sux because it is
hard to read (blah, blah, blah), **comment your code**.   )
Other flame to /dev/null, guys.

(G)ary  [[ funny, jeez ]], LOL.





 

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

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


Re: csh if..then delhema.

2007-09-09 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Gary Kline wrote:

   Do any of you gents know if there is a converter that turns
   Bo[u]rne (:-)) shell into perl?  Years ago there was
   commericalware (i Think) that took /bin/sh to C.  Maybe Ii'm
   mis-remembering.  I've googled aroud and find zip, so maybe I
   was in some kind of coma-zone.  

I believe that just such a converter is well known in the perl
community.  His name is Tom Christiansen IIRC.

Cheers,

Matthew

- --
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG5E0G8Mjk52CukIwRCM3gAJ9Tvi9yKQQd1aMdNrhlOeZoKfFQZACfQKpU
iVWszB/ga5qV5MHgg8jIegg=
=bn6U
-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: csh if..then delhema.

2007-09-09 Thread Mel
On Sunday 09 September 2007 21:35:40 Gary Kline wrote:
 On Sun, Sep 09, 2007 at 04:17:21PM +0300, Giorgos Keramidas wrote:
  On 2007-09-09 08:57, Grant Peel [EMAIL PROTECTED] wrote:
   Thanks for the input gentlemen,
   Interesting to that the question was posted by G(rant) and then
   answered by G(ary), G(arrett) and G(iorgos)! (what are the odds!).
 
  Haha :)
 
   Anywho, I am busily converting the script to perl as per the
   suggestions. I use tcsh rarely, had I of known the quirks I woul shave
   done it in perl from the beguining.
  
   As for Garrett's case method, it didnt work. Created a case: Too many
   arguments. error. Perhaps because it itself is nested in a 'foreach'
   statement.
 
  `foreach' is a csh construct.  If you copied the case/esac code posted
  by Garrett, then it wouldn't work.  The syntax used by Garrett was for
  the Bourne shell (hence the /bin/sh reference above case).
 
  If you are going to convert everything to /bin/sh, you may as well
  convert it to Perl unless there is some very good reason to use only
  the pretty minimal data-structures supported by the Bourne shell
  (i.e. because you want to run the script in environments where Perl
  may be too much to require).

   Do any of you gents know if there is a converter that turns
   Bo[u]rne (:-)) shell into perl?  Years ago there was
   commericalware (i Think) that took /bin/sh to C.  Maybe Ii'm
   mis-remembering.  I've googled aroud and find zip, so maybe I
   was in some kind of coma-zone.

   At any rate, for simple unix scripts, /bin/sh (aka a-shell, ash)
   or ksh or zsh is the way to go.  Simple == a few lines.
   For anything grittier, perl wins any time.

Perl looses when /usr isn't mounted. That's the primary argument against using 
anything other then /bin/sh (including bash). All the rest is preference.

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


Re: csh if..then delhema.

2007-09-09 Thread Gary Kline
On Sun, Sep 09, 2007 at 10:12:15PM +0200, Mel wrote:
 On Sunday 09 September 2007 21:35:40 Gary Kline wrote:
  On Sun, Sep 09, 2007 at 04:17:21PM +0300, Giorgos Keramidas wrote:
   On 2007-09-09 08:57, Grant Peel [EMAIL PROTECTED] wrote:
Thanks for the input gentlemen,
Interesting to that the question was posted by G(rant) and then
answered by G(ary), G(arrett) and G(iorgos)! (what are the odds!).
  
   Haha :)
  
Anywho, I am busily converting the script to perl as per the
suggestions. I use tcsh rarely, had I of known the quirks I woul shave
done it in perl from the beguining.
   
As for Garrett's case method, it didnt work. Created a case: Too many
arguments. error. Perhaps because it itself is nested in a 'foreach'
statement.
  
   `foreach' is a csh construct.  If you copied the case/esac code posted
   by Garrett, then it wouldn't work.  The syntax used by Garrett was for
   the Bourne shell (hence the /bin/sh reference above case).
  
   If you are going to convert everything to /bin/sh, you may as well
   convert it to Perl unless there is some very good reason to use only
   the pretty minimal data-structures supported by the Bourne shell
   (i.e. because you want to run the script in environments where Perl
   may be too much to require).
 
  Do any of you gents know if there is a converter that turns
  Bo[u]rne (:-)) shell into perl?  Years ago there was
  commericalware (i Think) that took /bin/sh to C.  Maybe Ii'm
  mis-remembering.  I've googled aroud and find zip, so maybe I
  was in some kind of coma-zone.
 
  At any rate, for simple unix scripts, /bin/sh (aka a-shell, ash)
  or ksh or zsh is the way to go.  Simple == a few lines.
  For anything grittier, perl wins any time.
 
 Perl looses when /usr isn't mounted. That's the primary argument against 
 using 
 anything other then /bin/sh (including bash). All the rest is preference.
 

This iswhy I used to have zsh in /bin; used to--I've gotten
complacent.  But with the recent panic in '04 or '05, and now
that I'm moving to Garrett's beefed up Dell, it is time to 
get real again.

gary, (Sundays are for the joys-of-hacking!) kline 

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

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

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


Re: csh if..then delhema.

2007-09-09 Thread Giorgos Keramidas
On 2007-09-09 20:44, Matthew Seaman [EMAIL PROTECTED] wrote:
Gary Kline wrote:
 Do any of you gents know if there is a converter that turns Bo[u]rne
 (:-)) shell into perl?  Years ago there was commericalware (i Think)
 that took /bin/sh to C.  Maybe Ii'm mis-remembering.  I've googled
 aroud and find zip, so maybe I was in some kind of coma-zone.  

 I believe that just such a converter is well known in the perl
 community.  His name is Tom Christiansen IIRC.

LOL!  That's the best joke of the weekend, at least for me :)

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


Getting the CPU frequency in C

2007-09-09 Thread Martin Tournoij
I'm trying to get the CPU frequency in C:

#include unistd.h
#include time.h
#include ctype.h
#include sys/sysctl.h
#include stdio.h
#include sys/time.h

int main()
{
int mib[2];
size_t size;
struct clockinfo clockrate;

mib[0] = CTL_KERN;
mib[1] = KERN_CLOCKRATE;
size = sizeof clockrate;
sysctl(mib, 2, clockrate, size, NULL, 0);

fprintf(stdout, hz: %i\n, clockrate.hz);
fprintf(stdout, tick: %i\n, clockrate.tick);
fprintf(stdout, spare: %i\n, clockrate.spare);
fprintf(stdout, stathz: %i\n, clockrate.stathz);
fprintf(stdout, profhz: %i\n, clockrate.profhz);

return 0;
}

I tried to run this on two machines (one machine with hw.clockrate: 1378 and
the other 797) and it outputs the same on both:
hz: 1000
tick: 1000
spare: 0
stathz: 133
profhz: 666

The profhz value suggest the devil is at work :D although it's probably a some
stupid mistake on my part :/ Can anyone help?

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


Re: Getting the CPU frequency in C

2007-09-09 Thread Erik Trulsson
On Sun, Sep 09, 2007 at 10:50:25PM +0200, Martin Tournoij wrote:
 I'm trying to get the CPU frequency in C:
 
 #include unistd.h
 #include time.h
 #include ctype.h
 #include sys/sysctl.h
 #include stdio.h
 #include sys/time.h
 
 int main()
 {
 int mib[2];
 size_t size;
 struct clockinfo clockrate;
 
 mib[0] = CTL_KERN;
 mib[1] = KERN_CLOCKRATE;
 size = sizeof clockrate;
 sysctl(mib, 2, clockrate, size, NULL, 0);
 
 fprintf(stdout, hz: %i\n, clockrate.hz);
 fprintf(stdout, tick: %i\n, clockrate.tick);
 fprintf(stdout, spare: %i\n, clockrate.spare);
 fprintf(stdout, stathz: %i\n, clockrate.stathz);
 fprintf(stdout, profhz: %i\n, clockrate.profhz);
 
 return 0;
 }
 
 I tried to run this on two machines (one machine with hw.clockrate: 1378 and
 the other 797) and it outputs the same on both:
 hz: 1000
 tick: 1000
 spare: 0
 stathz: 133
 profhz: 666
 
 The profhz value suggest the devil is at work :D although it's probably a some
 stupid mistake on my part :/ Can anyone help?

None of the kern.clockrate entries has any particular relationship with the
CPU clock frequency, so it is not unexpected that you would get the same
output from both machines.

I think looking at hw.clockrate is the most portable you can get.
If your CPU is using Cool'n'Quiet or the Intel equivalent you can also
look at dev.cpu.N.freq for the current frequency.




-- 
Insert your favourite quote here.
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: firefox 2.0.0.6 build fails: missing pangox.h

2007-09-09 Thread Adam J Richardson

Mel wrote:
You probably had WITHOUT_X11 defined somewhere (/etc/make.conf 
or /var/db/ports/pango/options or /usr/local/etc/pkgtools.conf in MAKE_ARGS 
somewhere, shell environment?) when you rebuilt pango.


Hi Kyle.

I think Mel has hit on the answer here. Pango is being built without X 
support.


I had this exact error myself. A few libraries [Pango, Cairo etc] 
weren't allowing themselves to be built on. Turns out I had in my 
/etc/make.conf the lines


NO_X=true
WITHOUT_X11=true

to speed up make buildworld. Then I installed X from packages on this 
machine. A bit later I tried to build Firefox... took me a week to 
figure it out.


In summary, just comment out any NO_X and WITHOUT_X11 lines in the 
locations Mel suggested. Then remove, rebuild and reinstall Pango. After 
that's done Firefox should build properly.


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


Re: ADSL Bandwidth Monitoring

2007-09-09 Thread RW
On Sat, 8 Sep 2007 23:16:35 -0700
Ted Mittelstaedt [EMAIL PROTECTED] wrote:

 ...
 However, the thing that most people (who don't work at telcos) do not
 understand is that the telcos found very quickly that they cannot put
 contention into an ATM network comprised of a DSL atm circuits for a
 very simple reason.
 
 ...
 SO, the cost of discarding a single 56 byte ATM cell means the ATM
 cloud will have to get another 1400 bytes of data retransmitted
 through it.
 
 It doesen't take a rocket scientist to see that introducing contention
 into an ATM circuit carrying a DSL circuit will cause a massive
 increase in traffic in the switch, and wipe out any gains from
 contention. 



I don't know much about DSLAMS, but ATM switches have been able to drop
whole AAL5 frames for a long time. Do DSLAMS really not have EPD/PPD? 

However the contention is done, it definitely happens in the UK. 
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: setting up xorg - mouse

2007-09-09 Thread Computer Answers
quote
Does the mouse work in the console (DOS-screen)?
xorg usually isn't the problem, it much more often moused which isn't
running or badly configured.
Try running:
moused -t auto -p /dev/psm0
Before starting xorg, see the link I posted earlier.
/quote
Alright -  I will try this.

quote
Hi,

I have the same problem. If I leave the definitions for the mouse out, X
starts without problems and uses the mouse. As long as a mouse
definition is given in the configuration file, I cannot use the mouse.
/quote
Allright

quote
Note:
Please put reply messages at the _bottom_, not at the top.
/quote
This is a prefference issue - on most mailing lists I am not they don't care
-- is this a fBSD-q rule?

On 9/9/07, Martin Tournoij [EMAIL PROTECTED] wrote:

  On Fri 07 Sep 2007 22:09, Computer Answers wrote:
  Hi,
  right now I am running freeBSD 6.2 RELEASE with xorg 6.9 and I am
  unable to get xorg (icewm) to detect my mouse.
  ~comperr
  On 9/8/07, Martin Tournoij [EMAIL PROTECTED] wrote:
  
  Is moused running? And if it is, how is it configured?
  See the FreeBSD handbook and the moused manpage for details:
  
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-post.html#MOUSE
  
  Which brand/model mouse do you have? And how does the mouse connect
 to
  your PC (PS2 or USB)?
  
  What are your mouse settings in /etc/X11/xorg.conf
  
  On Sun 09 Sep 2007 01:09, Computer Answers wrote:
  sorry about the time delay:
  um it is a generic PS2 mouse made by digiView
  I tried running the xorg config wizard a few tmes choosing different
  mouse types each time.  None of them work.
  
  as for xorg.conf
  Section InputDevice
  Identifier Mouse0
  Driver mouse
  Option Protocall Auto
  Option Device /dev/sysmouse
  
  (side point) if someone would tell me how to copy and paste with only
  a keyboard that would be really nice
  Martin Tournoij wrote:
  Does the mouse work in the console (DOS-screen)?
  xorg usually isn't the problem, it much more often moused which isn't
  running or badly configured.
  Try running:
  moused -t auto -p /dev/psm0
  Before starting xorg, see the link I posted earlier.
  On Sun 09 Sep 2007 22:09, Erich Dollansky wrote:
  Hi,
 
  I have the same problem. If I leave the definitions for the mouse out, X
  starts without problems and uses the mouse. As long as a mouse
 definition is
  given in the configuration file, I cannot use the mouse.
 
  Erich
 

 Note:
 Please put reply messages at the _bottom_, not at the top.
 Thank you.

 Erich, what is your mouse configuration?
 Also try and locate the problem in /var/log/Xorg.0.log

 This is a generic configuration:

 Section InputDevice
 Identifier  mouse
 Driver  mouse
 Option  Protocol  Auto
 Option  Device/dev/sysmouse
 Option  ZAxisMapping  4 5
 Option  Buttons   5
 EndSection

 You may need to change the Indentifier line, see your ServerLayout.

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


Re: firefox 2.0.0.6 build fails: missing pangox.h

2007-09-09 Thread Mel
On Sunday 09 September 2007 23:28:59 Adam J Richardson wrote:
 Mel wrote:
  You probably had WITHOUT_X11 defined somewhere (/etc/make.conf
  or /var/db/ports/pango/options or /usr/local/etc/pkgtools.conf in
  MAKE_ARGS somewhere, shell environment?) when you rebuilt pango.

 Hi Kyle.

 I think Mel has hit on the answer here. Pango is being built without X
 support.

 I had this exact error myself. A few libraries [Pango, Cairo etc]
 weren't allowing themselves to be built on. Turns out I had in my
 /etc/make.conf the lines

 NO_X=true
 WITHOUT_X11=true

 to speed up make buildworld. Then I installed X from packages on this
 machine. A bit later I tried to build Firefox... took me a week to
 figure it out.

 In summary, just comment out any NO_X and WITHOUT_X11 lines in the
 locations Mel suggested. Then remove, rebuild and reinstall Pango. After
 that's done Firefox should build properly.

Yeah, I figured he wouldn't be alone in this:
http://www.freebsd.org/cgi/query-pr.cgi?pr=116236

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


Re: Getting the CPU frequency in C

2007-09-09 Thread Martin Tournoij
On Sun 09 Sep 2007 22:09, Erik Trulsson wrote:
 On Sun, Sep 09, 2007 at 10:50:25PM +0200, Martin Tournoij wrote:
  I'm trying to get the CPU frequency in C:
  
  #include unistd.h
  #include time.h
  #include ctype.h
  #include sys/sysctl.h
  #include stdio.h
  #include sys/time.h
  
  int main()
  {
  int mib[2];
  size_t size;
  struct clockinfo clockrate;
  
  mib[0] = CTL_KERN;
  mib[1] = KERN_CLOCKRATE;
  size = sizeof clockrate;
  sysctl(mib, 2, clockrate, size, NULL, 0);
  
  fprintf(stdout, hz: %i\n, clockrate.hz);
  fprintf(stdout, tick: %i\n, clockrate.tick);
  fprintf(stdout, spare: %i\n, clockrate.spare);
  fprintf(stdout, stathz: %i\n, clockrate.stathz);
  fprintf(stdout, profhz: %i\n, clockrate.profhz);
  
  return 0;
  }
  
  I tried to run this on two machines (one machine with hw.clockrate: 1378 and
  the other 797) and it outputs the same on both:
  hz: 1000
  tick: 1000
  spare: 0
  stathz: 133
  profhz: 666
  
  The profhz value suggest the devil is at work :D although it's probably a 
  some
  stupid mistake on my part :/ Can anyone help?
 
 None of the kern.clockrate entries has any particular relationship with the
 CPU clock frequency, so it is not unexpected that you would get the same
 output from both machines.
 
 I think looking at hw.clockrate is the most portable you can get.
 If your CPU is using Cool'n'Quiet or the Intel equivalent you can also
 look at dev.cpu.N.freq for the current frequency.

I got confused because they both have the same name ... do'h

hw.clockrate doesn't seem to available through C(?), exec-ing sysctl
hw.clockrate would work, but that's not very elegant...

dev.cpu.0.freq doesn't seem to exists on my (Athlon) CPU, it
does on my PIII CPU though.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sony Ericsson: (da0:umass-sim0:0:0:0): NOT READY asc:3a, 0 (repeated)

2007-09-09 Thread Adam J Richardson

Snow Mountains wrote:

I posted this question 10 days ago, got no replies. Is it possible
nobody here installed CD release of FreeBSD 6.2 and has Sony Ericsson
mobile phone or something similar which causes similar problem? :-)

Maybe summer time is the cause :-) So let me repeat:


Hi Snow.

It might be that no one knows the answer to your question. I myself have 
a phone that connects by USB, but it is a Nokia N90 and has no problems 
being detected. [It detects fine, but doesn't do anything useful. I'll 
figure out how, I'm sure.]


Looking at your messages, the disconnected and lost device errors 
could be caused by a bad cable. Could that cause the SCSI errors too? 
Can you test with another cable?


It's a good idea to upgrade from the CD release. I think the CD version 
is the same as the CVS version tagged RELENG_6 [someone will correct me 
if I'm wrong, I'm sure]. My systems are all using 6.2-RELEASE-p7, which 
is the same as RELENG_6_2, I think? I'm not sure about that. [I can't 
check with my build server since I managed to trash my last Windows 
installation, leaving me without a VMware Player 2 to run it on.]


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


Re: firefox 2.0.0.6 build fails: missing pangox.h

2007-09-09 Thread Adam J Richardson

Mel wrote:

Yeah, I figured he wouldn't be alone in this:
http://www.freebsd.org/cgi/query-pr.cgi?pr=116236


That makes it nice and clear. Thanks.

By the way, can you check your return address? I'm getting mailer daemon 
errors for fbsd.questions.


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


Re: Getting the CPU frequency in C

2007-09-09 Thread Mel
On Monday 10 September 2007 00:04:45 Martin Tournoij wrote:
 On Sun 09 Sep 2007 22:09, Erik Trulsson wrote:
  On Sun, Sep 09, 2007 at 10:50:25PM +0200, Martin Tournoij wrote:
   I'm trying to get the CPU frequency in C:
  
   #include unistd.h
   #include time.h
   #include ctype.h
   #include sys/sysctl.h
   #include stdio.h
   #include sys/time.h
  
   int main()
   {
   int mib[2];
   size_t size;
   struct clockinfo clockrate;
  
   mib[0] = CTL_KERN;
   mib[1] = KERN_CLOCKRATE;
   size = sizeof clockrate;
   sysctl(mib, 2, clockrate, size, NULL, 0);
  
   fprintf(stdout, hz: %i\n, clockrate.hz);
   fprintf(stdout, tick: %i\n, clockrate.tick);
   fprintf(stdout, spare: %i\n, clockrate.spare);
   fprintf(stdout, stathz: %i\n, clockrate.stathz);
   fprintf(stdout, profhz: %i\n, clockrate.profhz);
  
   return 0;
   }
  
   I tried to run this on two machines (one machine with hw.clockrate:
   1378 and the other 797) and it outputs the same on both:
   hz: 1000
   tick: 1000
   spare: 0
   stathz: 133
   profhz: 666
  
   The profhz value suggest the devil is at work :D although it's probably
   a some stupid mistake on my part :/ Can anyone help?
 
  None of the kern.clockrate entries has any particular relationship with
  the CPU clock frequency, so it is not unexpected that you would get the
  same output from both machines.
 
  I think looking at hw.clockrate is the most portable you can get.
  If your CPU is using Cool'n'Quiet or the Intel equivalent you can also
  look at dev.cpu.N.freq for the current frequency.

 I got confused because they both have the same name ... do'h

 hw.clockrate doesn't seem to available through C(?), exec-ing sysctl
 hw.clockrate would work, but that's not very elegant...

int main()
{
const char mib[] = hw.clockrate;
size_t size = sizeof(int);
int clockrate;

sysctlbyname(mib, (void *)clockrate, size, NULL, 0);

fprintf(stdout, clockrate: %i\n, clockrate);

return 0;
}


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


Re: firefox 2.0.0.6 build fails: missing pangox.h

2007-09-09 Thread Mel
On Monday 10 September 2007 00:07:55 Adam J Richardson wrote:

 By the way, can you check your return address? I'm getting mailer daemon
 errors for fbsd.questions.

And so are the ~20 spammers who picked up the address within 24 hours after 
first list post. Only FreeBSD domain is allowed and people that request it. 
Gotta love postfix smtpd_restriction_classes.

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


Re: Getting the CPU frequency in C

2007-09-09 Thread Erik Trulsson
On Mon, Sep 10, 2007 at 12:04:45AM +0200, Martin Tournoij wrote:
 On Sun 09 Sep 2007 22:09, Erik Trulsson wrote:
  On Sun, Sep 09, 2007 at 10:50:25PM +0200, Martin Tournoij wrote:
   I'm trying to get the CPU frequency in C:
   
   #include unistd.h
   #include time.h
   #include ctype.h
   #include sys/sysctl.h
   #include stdio.h
   #include sys/time.h
   
   int main()
   {
   int mib[2];
   size_t size;
   struct clockinfo clockrate;
   
   mib[0] = CTL_KERN;
   mib[1] = KERN_CLOCKRATE;
   size = sizeof clockrate;
   sysctl(mib, 2, clockrate, size, NULL, 0);
   
   fprintf(stdout, hz: %i\n, clockrate.hz);
   fprintf(stdout, tick: %i\n, clockrate.tick);
   fprintf(stdout, spare: %i\n, clockrate.spare);
   fprintf(stdout, stathz: %i\n, clockrate.stathz);
   fprintf(stdout, profhz: %i\n, clockrate.profhz);
   
   return 0;
   }
   
   I tried to run this on two machines (one machine with hw.clockrate: 1378 
   and
   the other 797) and it outputs the same on both:
   hz: 1000
   tick: 1000
   spare: 0
   stathz: 133
   profhz: 666
   
   The profhz value suggest the devil is at work :D although it's probably a 
   some
   stupid mistake on my part :/ Can anyone help?
  
  None of the kern.clockrate entries has any particular relationship with the
  CPU clock frequency, so it is not unexpected that you would get the same
  output from both machines.
  
  I think looking at hw.clockrate is the most portable you can get.
  If your CPU is using Cool'n'Quiet or the Intel equivalent you can also
  look at dev.cpu.N.freq for the current frequency.
 
 I got confused because they both have the same name ... do'h
 
 hw.clockrate doesn't seem to available through C(?),

Of course it is.  Using sysctlbyname(3) to access it works fine:

#include unistd.h
#include sys/sysctl.h
#include stdio.h

int main()
{
size_t size;
int clockrate;

size = sizeof clockrate;
sysctlbyname(hw.clockrate, clockrate, size, NULL, 0);

fprintf(stdout, hz: %i\n, clockrate);
return 0;
}


hw.clockrate does however only seem to exist on i386 and amd64 architectures
so if you are running on something else you will have to find some
alternative solution. (Parsing the dmesg(8) output?)



 exec-ing sysctl
 hw.clockrate would work, but that's not very elegant...
 
 dev.cpu.0.freq doesn't seem to exists on my (Athlon) CPU, it
 does on my PIII CPU though.

It partly depends on the CPU, and mostly on the BIOS if the cpufreq(4)
kernel module will be activated (assuming it has been loaded in the first
place of course.)


-- 
Insert your favourite quote here.
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: Getting the CPU frequency in C

2007-09-09 Thread Martin Tournoij
On Mon 10 Sep 2007 00:09, Erik Trulsson wrote:
 On Mon, Sep 10, 2007 at 12:04:45AM +0200, Martin Tournoij wrote:
  On Sun 09 Sep 2007 22:09, Erik Trulsson wrote:
   On Sun, Sep 09, 2007 at 10:50:25PM +0200, Martin Tournoij wrote:
I'm trying to get the CPU frequency in C:

#include unistd.h
#include time.h
#include ctype.h
#include sys/sysctl.h
#include stdio.h
#include sys/time.h

int main()
{
int mib[2];
size_t size;
struct clockinfo clockrate;

mib[0] = CTL_KERN;
mib[1] = KERN_CLOCKRATE;
size = sizeof clockrate;
sysctl(mib, 2, clockrate, size, NULL, 0);

fprintf(stdout, hz: %i\n, clockrate.hz);
fprintf(stdout, tick: %i\n, clockrate.tick);
fprintf(stdout, spare: %i\n, clockrate.spare);
fprintf(stdout, stathz: %i\n, clockrate.stathz);
fprintf(stdout, profhz: %i\n, clockrate.profhz);

return 0;
}

I tried to run this on two machines (one machine with hw.clockrate: 
1378 and
the other 797) and it outputs the same on both:
hz: 1000
tick: 1000
spare: 0
stathz: 133
profhz: 666

The profhz value suggest the devil is at work :D although it's probably 
a some
stupid mistake on my part :/ Can anyone help?
   
   None of the kern.clockrate entries has any particular relationship with 
   the
   CPU clock frequency, so it is not unexpected that you would get the same
   output from both machines.
   
   I think looking at hw.clockrate is the most portable you can get.
   If your CPU is using Cool'n'Quiet or the Intel equivalent you can also
   look at dev.cpu.N.freq for the current frequency.
  
  I got confused because they both have the same name ... do'h
  
  hw.clockrate doesn't seem to available through C(?),
 
 Of course it is.  Using sysctlbyname(3) to access it works fine:
 
 #include unistd.h
 #include sys/sysctl.h
 #include stdio.h
 
 int main()
 {
 size_t size;
 int clockrate;
 
 size = sizeof clockrate;
 sysctlbyname(hw.clockrate, clockrate, size, NULL, 0);
 
 fprintf(stdout, hz: %i\n, clockrate);
 return 0;
 }
 
 
 hw.clockrate does however only seem to exist on i386 and amd64 architectures
 so if you are running on something else you will have to find some
 alternative solution. (Parsing the dmesg(8) output?)
 
 
 
  exec-ing sysctl
  hw.clockrate would work, but that's not very elegant...
  
  dev.cpu.0.freq doesn't seem to exists on my (Athlon) CPU, it
  does on my PIII CPU though.
 
 It partly depends on the CPU, and mostly on the BIOS if the cpufreq(4)
 kernel module will be activated (assuming it has been loaded in the first
 place of course.)

Thought you could only fetch the sysctl values defined in sys/sysctl.h
with sysctl()/sysctlbyname(), apparently not...

Thank you for the help Erik and Mel!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: nvidia-driver rebooting machine on X startup

2007-09-09 Thread Eric Ekong
* Mel [EMAIL PROTECTED] [070908 10:59]:
 Date: Sat, 8 Sep 2007 16:59:32 +0200
 From: Mel [EMAIL PROTECTED]
 To: freebsd-questions@freebsd.org
 Subject: Re: nvidia-driver rebooting machine on X startup
 
 On Saturday 08 September 2007 00:43:59 Darren Spruell wrote:
  On 9/7/07, Mel [EMAIL PROTECTED] wrote:
   On Friday 07 September 2007 19:43:03 Darren Spruell wrote:
On 9/6/07, Derek Ragona [EMAIL PROTECTED] wrote:
  At 03:10 PM 9/6/2007, Darren Spruell wrote:

 Wondering if this is a known issue, or if anyone has suggestions to
  get it working...?

  Running FreeBSD 6.2-RELEASE-p4 SMP i386.

  I installed nvidia-driver-100.14.11 from ports (Sep. 5 snapshot),
  Linux compatibility enabled. After loading modules 'linux' and
  'nvidia', I do:

  # X -configure
  # X -config /root/xorg.conf.new

  At this point the system spontaneously reboots. 'X -configure' runs
  fine and produces a configuration without issue, but the reboot
  occcurs when launching X. Nothing is output to screen (it flickers
 as if starting X), and nothing is written to /var/log/Xorg.0.log. I
 do get the same behavior if running 'xorgcfg'.

  Card info:

  NV41 [Quadro FX 3450/4000 SDI] rev 162

  [EMAIL PROTECTED]:0:0: class=0x03 card=0x029b10de chip=0x00cd10de
  rev=0xa2 hdr=0x00
  vendor   = 'NVIDIA Corporation'
  class= display
  subclass = VGA

  I've tried an alternate version of the binary driver
  (nvidia-driver-96xx) to see if there was any change, and it also
  reboots on X startup.


  --
  Check your AGP settings and consult the readme, chapter 9, for the
 latest driver.  You should be running the latest driver with your
 card.

  Make sure you have the correct AGP settings, either letting FreeBSD
 do it in the kernel or disable the kernel and let the Nvidia driver
 manage it.
   
So, I'm not having terrific luck with any combination of settings I
try.
   
The latest FreeBSD driver release from Nvidia is the same as the
version in the ports tree. This is what I've installed.
   
Attempting the AGPGART route (building the driver with
WITH_FREEBSD_AGP=yes and disabling NvAgp support in xorg.conf) still
results in a reboot.
   
Going the NvAGP route (Building without support for AGPGART, setting
NvAgp to 1 in the xorg.conf, and setting hint.agp.0.disabled=1 in
/boot/device.hints) also results in a reboot when X starts. One thing
I notice here; when I specify hint.agp.0.disabled=1, and check the
output of 'kldstat -v' after booting, I still see several agp drivers
loaded:
   
$ kldstat -v |grep -i agp
387 pci/agp_ali
388 pci/agp_amd
389 pci/agp_amd64
390 pci/agp_ati
391 pci/agp_i810
392 pci/agp_intel
393 pci/agp_nvidia
394 pci/agp_sis
395 pci/agp_via
   
Is this a problem?
   
I suspect a couple of problems with what I'm doing. Number one,
there's several knobs to turn (in the driver, in the OS, etc.) and
it's possible I'm not getting the correct combination. Other thing is,
I've been told by a technician that this is a PCI Express video card,
so would AGP even come into play?
  
   Probably not. I'm seeing the same thing on one machine, no AGP on MB, and
   agp kernel modules loaded, but nvidia-driver doesn't care about it.
   Let's kill all red herrings:
   - Is COMPAT5X in the kernel?
 
  COMPAT5X doesn't show up anywhere in /usr/src/; I do have 'options
  COMPAT_FREEBSD5'  defined, though (stock SMP kernel).
 
   - Does running `nvidia-xconfig --query-gpu-info' reboot the system?
   - If you do not load the nvidia kernel module, but use Xorg's nv driver
   does this reboot the system?
 
  No, doesn't reboot the system. Output attached below.
 
  With the 'nv' driver, X starts fine. I don't use it because I don't
  have success with the two output displays and xinerama window sizing.
 
  nvidia-xconfig --query-gpu-info:
 
  Number of GPUs: 1
 
  GPU #0:
Name  : Quadro FX 3450/4000 SDI
PCI BusID : PCI:7:0:0
 
Number of Display Devices: 2
 
Display Device 0 (CRT-0):
   EDID Name : DELL 2001FP
   Minimum HorizSync : 31.000 kHz
   Maximum HorizSync : 80.000 kHz
   Minimum VertRefresh   : 56 Hz
   Maximum VertRefresh   : 76 Hz
   Maximum PixelClock: 162.000 MHz
   Maximum Width : 1600 pixels
   Maximum Height: 1200 pixels
   Preferred Width   : 1600 pixels
   Preferred Height  : 1200 pixels
   Preferred VertRefresh : 60 Hz
   Physical Width: 410 mm
   Physical Height   : 310 mm
 
Display Device 1 (CRT-1):
   EDID Name : DELL 2001FP
   

DVD-RW drive

2007-09-09 Thread Predrag Punosevac
I have a very strange problem with my DVD-RW drive. Namely the drive is 
for some reason recognized as read only


acd0: DVDR LITE-ON DVDRW LH-18A1P/GL0C at ata0-slave UDMA66

I am running FreeBSD 6.2 stable with generic kernel (I didn't compile 
nor install my own kernel)

so the following lines are present in my GENERIC

[pedja@ /usr/src/sys/i386/conf]$ more GENERIC

# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
device  ataraid # ATA RAID drives
device  atapicd # ATAPI CDROM drives
device  atapifd # ATAPI floppy drives
device  atapist # ATAPI tape drives
options ATA_STATIC_ID   # Static device numbering
# SCSI peripherals
device  scbus   # SCSI bus (required for SCSI)
device  ch  # SCSI media changers
device  da  # Direct Access (disks)
device  sa  # Sequential Access (tape etc)
device  cd  # CD
device  pass# Passthrough device (direct SCSI access)
device  ses # SCSI Environmental Services (and SAF-TE)


I also edited my load.conf file with

hw.ata.ata_dma=1
hw.ata.atapi_dma=1


I altered the permissions devfs.conf and fstab file so that I can read 
and write but that is not even important since I can not

write anything even from the command line

I also get

[pedja@ /usr/home/Pedja]$ dvd+rw-mediainfo /dev/acd0
/dev/acd0: unable to open: Inappropriate ioctl for device
[pedja@ /usr/home/Pedja]$ dvd+rw-mediainfo /dev/cd0
/dev/cd0: unable to open: Inappropriate ioctl for device

Whole behavior is even more strange since the optical drive was working 
flawlessly on PC-BSD 1.3 which is FreeBSD 6.1 stable.


Any suggestions.

Thank you so much

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


Re: firefox 2.0.0.6 build fails: missing pangox.h

2007-09-09 Thread Kyle Allender

Adam J Richardson wrote:

Mel wrote:
You probably had WITHOUT_X11 defined somewhere (/etc/make.conf or 
/var/db/ports/pango/options or /usr/local/etc/pkgtools.conf in 
MAKE_ARGS somewhere, shell environment?) when you rebuilt pango.


Hi Kyle.

I think Mel has hit on the answer here. Pango is being built without X 
support.


I had this exact error myself. A few libraries [Pango, Cairo etc] 
weren't allowing themselves to be built on. Turns out I had in my 
/etc/make.conf the lines


NO_X=true
WITHOUT_X11=true

to speed up make buildworld. Then I installed X from packages on 
this machine. A bit later I tried to build Firefox... took me a week 
to figure it out.


In summary, just comment out any NO_X and WITHOUT_X11 lines in the 
locations Mel suggested. Then remove, rebuild and reinstall Pango. 
After that's done Firefox should build properly.


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


That was precisely the problem - my /etc/make.conf had WITHOUT_X11 from 
when I was trying to get CalendarServer installed a few weeks ago.  
After I commented that out, firefox built without issue.


Thanks for both your help - 'tis appreciated.

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


Re: DVD-RW drive

2007-09-09 Thread Martin Tournoij
On Sun 09 Sep 2007 16:09, Predrag Punosevac wrote:
 I have a very strange problem with my DVD-RW drive. Namely the drive is for 
 some reason recognized as read only
 
 acd0: DVDR LITE-ON DVDRW LH-18A1P/GL0C at ata0-slave UDMA66
 
 I am running FreeBSD 6.2 stable with generic kernel (I didn't compile nor 
 install my own kernel)
 so the following lines are present in my GENERIC
 
 [pedja@ /usr/src/sys/i386/conf]$ more GENERIC
 
 # ATA and ATAPI devices
 device  ata
 device  atadisk # ATA disk drives
 device  ataraid # ATA RAID drives
 device  atapicd # ATAPI CDROM drives
 device  atapifd # ATAPI floppy drives
 device  atapist # ATAPI tape drives
 options ATA_STATIC_ID   # Static device numbering
 # SCSI peripherals
 device  scbus   # SCSI bus (required for SCSI)
 device  ch  # SCSI media changers
 device  da  # Direct Access (disks)
 device  sa  # Sequential Access (tape etc)
 device  cd  # CD
 device  pass# Passthrough device (direct SCSI access)
 device  ses # SCSI Environmental Services (and SAF-TE)
 
 
 I also edited my load.conf file with
 
 hw.ata.ata_dma=1
 hw.ata.atapi_dma=1
 
 
 I altered the permissions devfs.conf and fstab file so that I can read and 
 write but that is not even important since I can not
 write anything even from the command line
 
 I also get
 
 [pedja@ /usr/home/Pedja]$ dvd+rw-mediainfo /dev/acd0
 /dev/acd0: unable to open: Inappropriate ioctl for device
 [pedja@ /usr/home/Pedja]$ dvd+rw-mediainfo /dev/cd0
 /dev/cd0: unable to open: Inappropriate ioctl for device
 
 Whole behavior is even more strange since the optical drive was working 
 flawlessly on PC-BSD 1.3 which is FreeBSD 6.1 stable.
 
 Any suggestions.
 
 Thank you so much
You need to use ATAPICAM if you want to use ATA cd-writers, see the
FreeBSD handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html#ATAPICAM

A small addition to the handbook:
You don't need to reboot your machine, the command:
$ kldload atapicam
Will load the module at runtime.

Use /dev/cd0 instead of /dev/acd0 for all writing purposes.

Maybe PCBSD does this automagiclly? Can't comment on that since I
don't use PCBSD.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Getting the CPU frequency in C

2007-09-09 Thread Mel
On Monday 10 September 2007 00:52:08 Martin Tournoij wrote:

 Thought you could only fetch the sysctl values defined in sys/sysctl.h
 with sysctl()/sysctlbyname(), apparently not...

No, I believe those are guaranteed to be available (more to the point: made 
available through /boot/kernel/kernel). Kernel modules (and as such drivers) 
can also expose their settings via sysctl and since they can be loaded 
dynamically and don't have to be part of the base src tree, sys/sysctl.h 
doesn't know about them. For example:
sysctl vfs.fuse.fuse4bsd_version
vfs.fuse.fuse4bsd_version: 0.3.9-pre1

which is /usr/ports/sysutils/fusefs-kmod.

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


apache22 web root directive

2007-09-09 Thread Eric
Is there a directive to add to make.conf or anywhere else to tell ports 
what directory my webroot is? when i was running apache20, things like 
mailgraph installed files in the proper location. Recently I just 
updated to apache22 and now mailmail still insists on creating 
directories under the old directory layout. is this a mailgraph port 
problem or do I have a missing directive somewhere telling ports where 
my document root is?


Thanks!

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


Re: DVD-RW drive

2007-09-09 Thread Predrag Punosevac

I add atapicam_load=YES into loader.conf file

dmesg is still acd0: DVDR LITE-ON DVDRW LH-18A1P/GL0C at ata0-slave UDMA66

However from the command line

[root@ ~]# growisofs -dvd-compat -Z 
/dev/cd0=/usr/home/Pedja/TeXLive/texlive2007-live-20070212.iso


Executing 'builtin_dd 
if=/usr/home/Pedja/TeXLive/texlive2007-live-20070212.iso of=/dev/pass0 
obs=32k seek=0'


Apparently success. Thank you. I read the Handbook so many times but I 
obviously didn't read my kernel properly.



Thanks again!


Martin Tournoij wrote:

On Sun 09 Sep 2007 16:09, Predrag Punosevac wrote:
  

I have a very strange problem with my DVD-RW drive. Namely the drive is for 
some reason recognized as read only

acd0: DVDR LITE-ON DVDRW LH-18A1P/GL0C at ata0-slave UDMA66

I am running FreeBSD 6.2 stable with generic kernel (I didn't compile nor 
install my own kernel)
so the following lines are present in my GENERIC

[pedja@ /usr/src/sys/i386/conf]$ more GENERIC

# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
device  ataraid # ATA RAID drives
device  atapicd # ATAPI CDROM drives
device  atapifd # ATAPI floppy drives
device  atapist # ATAPI tape drives
options ATA_STATIC_ID   # Static device numbering
# SCSI peripherals
device  scbus   # SCSI bus (required for SCSI)
device  ch  # SCSI media changers
device  da  # Direct Access (disks)
device  sa  # Sequential Access (tape etc)
device  cd  # CD
device  pass# Passthrough device (direct SCSI access)
device  ses # SCSI Environmental Services (and SAF-TE)


I also edited my load.conf file with

hw.ata.ata_dma=1
hw.ata.atapi_dma=1


I altered the permissions devfs.conf and fstab file so that I can read and 
write but that is not even important since I can not
write anything even from the command line

I also get

[pedja@ /usr/home/Pedja]$ dvd+rw-mediainfo /dev/acd0
/dev/acd0: unable to open: Inappropriate ioctl for device
[pedja@ /usr/home/Pedja]$ dvd+rw-mediainfo /dev/cd0
/dev/cd0: unable to open: Inappropriate ioctl for device

Whole behavior is even more strange since the optical drive was working 
flawlessly on PC-BSD 1.3 which is FreeBSD 6.1 stable.

Any suggestions.

Thank you so much


You need to use ATAPICAM if you want to use ATA cd-writers, see the
FreeBSD handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html#ATAPICAM

A small addition to the handbook:
You don't need to reboot your machine, the command:
$ kldload atapicam
Will load the module at runtime.

Use /dev/cd0 instead of /dev/acd0 for all writing purposes.

Maybe PCBSD does this automagiclly? Can't comment on that since I
don't use PCBSD.
  


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


Re: DVD-RW drive

2007-09-09 Thread Predrag Punosevac
Absolute success!!! Media is completely readable. I still cannot get 
Gnome rw tools to behave and K3b is complaining about few outdated 
packages which I am afraid to update since probably the Gnome depends on 
it but who cares. Command line rules!


Thanks a lot body one more time!
Predrag Punosevac

Martin Tournoij wrote:

On Sun 09 Sep 2007 16:09, Predrag Punosevac wrote:
  

I have a very strange problem with my DVD-RW drive. Namely the drive is for 
some reason recognized as read only

acd0: DVDR LITE-ON DVDRW LH-18A1P/GL0C at ata0-slave UDMA66

I am running FreeBSD 6.2 stable with generic kernel (I didn't compile nor 
install my own kernel)
so the following lines are present in my GENERIC

[pedja@ /usr/src/sys/i386/conf]$ more GENERIC

# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
device  ataraid # ATA RAID drives
device  atapicd # ATAPI CDROM drives
device  atapifd # ATAPI floppy drives
device  atapist # ATAPI tape drives
options ATA_STATIC_ID   # Static device numbering
# SCSI peripherals
device  scbus   # SCSI bus (required for SCSI)
device  ch  # SCSI media changers
device  da  # Direct Access (disks)
device  sa  # Sequential Access (tape etc)
device  cd  # CD
device  pass# Passthrough device (direct SCSI access)
device  ses # SCSI Environmental Services (and SAF-TE)


I also edited my load.conf file with

hw.ata.ata_dma=1
hw.ata.atapi_dma=1


I altered the permissions devfs.conf and fstab file so that I can read and 
write but that is not even important since I can not
write anything even from the command line

I also get

[pedja@ /usr/home/Pedja]$ dvd+rw-mediainfo /dev/acd0
/dev/acd0: unable to open: Inappropriate ioctl for device
[pedja@ /usr/home/Pedja]$ dvd+rw-mediainfo /dev/cd0
/dev/cd0: unable to open: Inappropriate ioctl for device

Whole behavior is even more strange since the optical drive was working 
flawlessly on PC-BSD 1.3 which is FreeBSD 6.1 stable.

Any suggestions.

Thank you so much


You need to use ATAPICAM if you want to use ATA cd-writers, see the
FreeBSD handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html#ATAPICAM

A small addition to the handbook:
You don't need to reboot your machine, the command:
$ kldload atapicam
Will load the module at runtime.

Use /dev/cd0 instead of /dev/acd0 for all writing purposes.

Maybe PCBSD does this automagiclly? Can't comment on that since I
don't use PCBSD.
  


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


wxPython 2.8?

2007-09-09 Thread Luke Dean


I've got a Python app that seems to require wxPython 2.8.
The ports collection only has 2.6.
Do you think it would it be worthwhile for me to download the source and 
attempt to compile it on my system or should I ask the port maintainer?

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


apache22 web root directive

2007-09-09 Thread Robert Huff
Eric writes:

  Is there a directive to add to make.conf or anywhere else to tell
  ports what directory my webroot is? when i was running apache20,
  things like mailgraph installed files in the proper
  location. Recently I just updated to apache22 and now mailmail
  still insists on creating directories under the old directory
  layout. is this a mailgraph port problem or do I have a missing
  directive somewhere telling ports where my document root is?

Let me see if I understand:
You're running apache22, with DocumentRoot and/or ServerRoot in
a non-standard location.  Because of this, a third-party application
is malfunctioning.
You are looking for a single way for that and other
applications to tell at run-time where the new location is.
No such critter, as far as I know.  For those applications that
accept environment variables of command-lind switches, it should be
trivial to write a wrapper script to parse httpd,conf and provide
the correct information.
For a compile-time switch, portupgrade users can use
pkgtools.cfg; others will have to look elsewhere.


Robert Huff






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


Apache 2.0.61 and SSL start

2007-09-09 Thread Tim Kellers
I portupgraded my apache 2.0.59 to 61 today with no errors, but on 
restart, SSL wasn't loaded.


/usr/local/etc/rc.d/apache2 start  starts the server (I have  
apache2enable=YES in /etc/rc.conf), but ssl isn't loaded.


apachectl -k start -DSSL prompts me for my sslcert passphrase, and, 
after I enter it, allows https access on port 443.


When started with /usr/local/etc/rc.d/apache2

www# ps -waux | grep http

root 61279  6.3  6.3 25624 15928  ??  Ss8:23PM   0:00.80 
/usr/local/sbin/httpd
www  61280  0.0  6.3 25624 15944  ??  S 8:23PM   0:00.00 
/usr/local/sbin/httpd
www  61281  0.0  6.3 25624 15944  ??  S 8:23PM   0:00.01 
/usr/local/sbin/httpd
www  61282  0.0  6.3 25624 15944  ??  S 8:23PM   0:00.00 
/usr/local/sbin/httpd
www  61283  0.0  6.3 25624 15944  ??  S 8:23PM   0:00.00 
/usr/local/sbin/httpd
www  61284  0.0  6.3 25624 15944  ??  S 8:23PM   0:00.00 
/usr/local/sbin/httpd

root 61286  0.0  0.1   372   216  p2  R+8:23PM   0:00.00 grep http

When started with apachectl -k start -DSSL

www# ps -waux | grep http
root 61310 12.1  6.4 25868 16304  ??  Ss8:25PM   0:01.00 
/usr/local/sbin/httpd -k start -DSSL
www  61311  0.0  6.4 25868 16312  ??  S 8:25PM   0:00.01 
/usr/local/sbin/httpd -k start -DSSL
www  61312  0.0  6.4 25868 16312  ??  S 8:25PM   0:00.00 
/usr/local/sbin/httpd -k start -DSSL
www  61313  0.0  6.4 25868 16312  ??  S 8:25PM   0:00.00 
/usr/local/sbin/httpd -k start -DSSL
www  61314  0.0  6.4 25868 16312  ??  S 8:25PM   0:00.00 
/usr/local/sbin/httpd -k start -DSSL
www  61315  0.0  6.4 25868 16312  ??  S 8:25PM   0:00.00 
/usr/local/sbin/httpd -k start -DSSL

root 61317  0.0  0.1   372   216  p2  R+8:25PM   0:00.00 grep http

Any ideas where I am going wrong?

Tim Kellers




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


Re: wxPython 2.8?

2007-09-09 Thread Martin Tournoij
On Sun 09 Sep 2007 15:09, Luke Dean wrote:
 
 I've got a Python app that seems to require wxPython 2.8.
 The ports collection only has 2.6.
 Do you think it would it be worthwhile for me to download the source and 
 attempt to compile it on my system or should I ask the port 
 maintainer?

wxgtk 2.8 is in the ports collection(x11/toolkits/wxgtk28), you're
probably using an outdated snapshot of the ports collection.
See the FreeBSD handbook on how to update your ports collection:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html

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


Re: ip assignments

2007-09-09 Thread Norberto Meijome
On Sun, 9 Sep 2007 11:50:11 -0700
jekillen [EMAIL PROTECTED] wrote:

 I have built a machine with two network interfaces and tried
 assigning local addresses in the same subnet mask:
 192.168.1.1 192.168.1.2 for example to each of the
 interfaces and only one of the interfaces will respond to
 a connection attempt (via ftp or ssh for example). I found
 that each of the interfaces have to be assigned an address
 in a different subnet. for them to both be usable.

hi Jeff,
please show us the relevant settings in rc.conf (or the ifconfig commands you 
issue if you havent set these settings in rc.conf yet).

My gut feelling tells me you are setting the netmask for the  aliased 
interfaces to the proper netmask (eg, 255.255.255.0) , rather than the /32 
netmask aliases *ON THE SAME SUBNET AS OTHER IP ON SAME NIC* should have.

eg:
WRONG:
ifconfig_bge0=inet 192.168.1.1 netmask 255.255.255.0
ifconfig_bge0=inet 192.168.1.2 netmask 255.255.255.0  THIS netmask should 
be 255.255.255.255

Search the archives for the reasons behind this. I believe the reasons are 
specific to FreeBSD TCP/IP stack.

Best,
B
_
{Beto|Norberto|Numard} Meijome

Ugly programs are like ugly suspension bridges: they're much more liable to 
collapse than pretty ones, because the way humans (especially engineer-humans) 
perceive beauty is intimately related to our ability to process and understand 
complexity. A language that makes it hard to write elegant code makes it hard 
to write good code.
   Eric Raymond

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: Apache 2.0.61 and SSL start

2007-09-09 Thread Tim Kellers

Thanks Dave,

I tried that, no luck.

Tim

Dave wrote:

Hello,
   Try adding the line:

apache2ssl_enable=YES

   to /etc/rc.conf that should do it.
Hth
Dave.

- Original Message - From: Tim Kellers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, September 09, 2007 8:27 PM
Subject: Apache 2.0.61 and SSL start


I portupgraded my apache 2.0.59 to 61 today with no errors, but on 
restart, SSL wasn't loaded.


/usr/local/etc/rc.d/apache2 start  starts the server (I have 
apache2enable=YES in /etc/rc.conf), but ssl isn't loaded.


apachectl -k start -DSSL prompts me for my sslcert passphrase, and, 
after I enter it, allows https access on port 443.


When started with /usr/local/etc/rc.d/apache2

www# ps -waux | grep http

root 61279  6.3  6.3 25624 15928  ??  Ss8:23PM   0:00.80 
/usr/local/sbin/httpd
www  61280  0.0  6.3 25624 15944  ??  S 8:23PM   0:00.00 
/usr/local/sbin/httpd
www  61281  0.0  6.3 25624 15944  ??  S 8:23PM   0:00.01 
/usr/local/sbin/httpd
www  61282  0.0  6.3 25624 15944  ??  S 8:23PM   0:00.00 
/usr/local/sbin/httpd
www  61283  0.0  6.3 25624 15944  ??  S 8:23PM   0:00.00 
/usr/local/sbin/httpd
www  61284  0.0  6.3 25624 15944  ??  S 8:23PM   0:00.00 
/usr/local/sbin/httpd
root 61286  0.0  0.1   372   216  p2  R+8:23PM   0:00.00 grep 
http


When started with apachectl -k start -DSSL

www# ps -waux | grep http
root 61310 12.1  6.4 25868 16304  ??  Ss8:25PM   0:01.00 
/usr/local/sbin/httpd -k start -DSSL
www  61311  0.0  6.4 25868 16312  ??  S 8:25PM   0:00.01 
/usr/local/sbin/httpd -k start -DSSL
www  61312  0.0  6.4 25868 16312  ??  S 8:25PM   0:00.00 
/usr/local/sbin/httpd -k start -DSSL
www  61313  0.0  6.4 25868 16312  ??  S 8:25PM   0:00.00 
/usr/local/sbin/httpd -k start -DSSL
www  61314  0.0  6.4 25868 16312  ??  S 8:25PM   0:00.00 
/usr/local/sbin/httpd -k start -DSSL
www  61315  0.0  6.4 25868 16312  ??  S 8:25PM   0:00.00 
/usr/local/sbin/httpd -k start -DSSL
root 61317  0.0  0.1   372   216  p2  R+8:25PM   0:00.00 grep 
http


Any ideas where I am going wrong?

Tim Kellers




___
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: apache22 web root directive

2007-09-09 Thread Robert Huff

Eric writes:

  i guess I am curious of the apache20 default of
  /usr/local/www/data was around so long its just what everyone
  assumes,

Not only is that a really bad assumption, but I think I 
remember a message from the (apache22) post-install warning things
had changed.


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: ADSL Bandwidth Monitoring

2007-09-09 Thread Norberto Meijome
On Sat, 8 Sep 2007 15:05:03 -0700
Ted Mittelstaedt [EMAIL PROTECTED] wrote:

 
 Get a personal website from the ISP

Definitely - testing from anywhere else than somewhere in your ISP's network
will add to the equation all the bandwidth-affecting-factors to/from the
*other* network / hosts. Once you've proven your point within your ISP's
network, you can move on to discuss whether your connection to the outer world
is worse than expected.

 
 Upload a file to the personal webserver

I would suggest a large file - small files will not be good enough for
measuring your download speed. at least  20 Mb.

 
 Download the file from the personal webserver.
 
 If the bandwidth isn't what it's supposed to be, then
 have the ISP call the local telephone company and have
 that company check to see that your modem is training at
 the correct rate.
 
 adsl modems will train at lower speeds if there is
 trouble with the phone line.

indeed, issues with your phone socket where u connect your modem to + overall
quality of the line will make a big difference. I drop from 3.5 Mb / 900K from
on socket in my place to 2.8 / 600 in another. Same phone line ,different
cable/socket, same modem. (that's the speed reported by the modem itself).

BTW, what is the speed reported by the modem itself? most modems have a webpage
to get , at least, this information from - even if running in bridged mode.
Check the manufacturers website for information on how to do this.

B
_
{Beto|Norberto|Numard} Meijome

He has the attention span of a lightning bolt.
  Robert Redford

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: apache22 web root directive

2007-09-09 Thread Eric

Robert Huff wrote:

Eric writes:


 Is there a directive to add to make.conf or anywhere else to tell
 ports what directory my webroot is? when i was running apache20,
 things like mailgraph installed files in the proper
 location. Recently I just updated to apache22 and now mailmail
 still insists on creating directories under the old directory
 layout. is this a mailgraph port problem or do I have a missing
 directive somewhere telling ports where my document root is?


Let me see if I understand:
You're running apache22, with DocumentRoot and/or ServerRoot in
a non-standard location.  Because of this, a third-party application
is malfunctioning.
You are looking for a single way for that and other
applications to tell at run-time where the new location is.
No such critter, as far as I know.  For those applications that
accept environment variables of command-lind switches, it should be
trivial to write a wrapper script to parse httpd,conf and provide
the correct information.
For a compile-time switch, portupgrade users can use
pkgtools.cfg; others will have to look elsewhere.




close, but I am not running in a non standard DocumentRoot as far as I 
know. its set to apache22's /usr/local/www/apache22/data, which is the 
default, but if you look at the mailgraph Makefile, it uses 
/usr/local/www/data for the install.


the more i look at it, the more it seems like its a mailgraph issue.

i guess I am curious of the apache20 default of /usr/local/www/data was 
around so long its just what everyone assumes, but from what I can tell, 
thats not the recommended practice. isnt it better to install to 
/usr/local/www/mailgraph and then alias things?


I included the maintainer to see if this is the case and perhaps the 
Makefile should be changed and or post install instructions can be updated


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


Re: apache22 web root directive

2007-09-09 Thread Computer Answers
One idea I had would be to use a symlink ?

On 9/9/07, Robert Huff [EMAIL PROTECTED] wrote:


 Eric writes:

   i guess I am curious of the apache20 default of
   /usr/local/www/data was around so long its just what everyone
   assumes,

 Not only is that a really bad assumption, but I think I
 remember a message from the (apache22) post-install warning things
 had changed.


 Robert Huff
 ___
 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]


Net-snmp dying with an ld-elf error at start on brand new FreeBSD install

2007-09-09 Thread Philip B
I've just set up my 1st FreeBSD box to use as a home router/firewall,
replacing my recently departed Linksys all-in-one.

I installed the latest FeeBSD release, version 6.2-RELEASE.

I installed the Net-Snmp port, with the goal of eventually using it
with RRDTool to graph  monitor activity on the box.

After configuring my snmpd.conf file, and enabling Snmp in rc.conf, I
try to start the snmp daemon with

  /usr/local/etc/rc.d/snmpd start

Unfortunately, it doesn't launch and reports an error in my shell.

  Starting snmpd.
  /libexec/ld-elf.so.1: /usr/local/sbin/snmpd: Undefined symbol
PL_markstack_ptr

I've tailed /var/log/messages, but there's nothing reported.

I've Googled on PL_markstack_ptr snmpd and got back only 5 hits,
none which seem to explain this problem at runtime.

I don't know even where to begin to dig.

Any wise old folks in here lend a hand?

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


Re: setting up xorg - mouse

2007-09-09 Thread Erich Dollansky

Hi,


Martin Tournoij wrote:

On Fri 07 Sep 2007 22:09, Computer Answers wrote:
Hi,
right now I am running freeBSD 6.2 RELEASE with xorg 6.9 and I am


I updated meanwhile to 7.2, but the result stayed the same.


Please put reply messages at the _bottom_, not at the top.


One list on top, the other on bottom. It is geting confusing.


Erich, what is your mouse configuration?
Also try and locate the problem in /var/log/Xorg.0.log

This is a generic configuration:

Section InputDevice
Identifier  mouse
Driver  mouse
Option  Protocol  Auto
Option  Device/dev/sysmouse
Option  ZAxisMapping  4 5
Option  Buttons   5
EndSection


I also just tried yours. The same result.


You may need to change the Indentifier line, see your ServerLayout.


I changed it.

The mouse cursor is visible but I cannot move the mouse cursor.

If I remove the mouse definition, X starts normally allowing me to use 
the mouse again.


Te machine is a Fujitsu P2120. The mouse is the built-in trackpoint.

Here is the log file without the mouse being in xorg.conf:

#
# This is the log file when X is started without the mouse definition in 
xorg.conf.

#
# All other lines are removed.
#
X Window System Version 7.2.0
Release Date: 22 January 2007
X Protocol Version 11, Revision 0, Release 7.2
Build Operating System: FreeBSD 6.2-STABLE i386

(==) Using config file: /etc/X11/xorg.conf

(==) ServerLayout X.org Configured

(WW) The core pointer device wasn't specified explicitly in the layout.
Using the default mouse configuration.

(II) LoadModule: mouse
(II) Loading /usr/local/lib/xorg/modules/input//mouse_drv.so
(II) Module mouse: vendor=X.Org Foundation
compiled for 7.2.0, module version = 1.1.1
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 0.7



(II) ATI: ATI driver (version 6.6.3) for chipsets: ati, ativga
(II) R128: Driver for ATI Rage 128 chipsets:



(==) RADEON(0): Silken mouse enabled


(II) default pointer: SetupAuto: protocol is SysMouse
(WW) fcntl(8, O_ASYNC): Inappropriate ioctl for device
(**) RADEON(0): RADEONSaveScreen(2)
(II) 3rd Button detected: disabling emulate3Button

=

Here is the log with the mouse defined in xorg.conf:


X Window System Version 7.2.0
Release Date: 22 January 2007
X Protocol Version 11, Revision 0, Release 7.2
Build Operating System: FreeBSD 6.2-STABLE i386
Current Operating System: FreeBSD P2120.somewherefaraway.com 6.2-STABLE 
FreeBSD 6.2-STABLE #0: Fri Sep  7 17:36:24 SGT 2007 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386

moBuild Date: 07 July 2007
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Mon Sep 10 10:12:18 2007
(==) Using config file: /etc/X11/xorg.conf
(==) ServerLayout X.org Configured
(**) |--Screen Screen0 (0)
(**) |   |--Monitor Monitor0
(**) |   |--Device Card0
(**) |--Input Device Mouse0
(**) |--Input Device Keyboard0



(II) LoadModule: mouse
(II) Loading /usr/local/lib/xorg/modules/input//mouse_drv.so
(II) Module mouse: vendor=X.Org Foundation
compiled for 7.2.0, module version = 1.1.1
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 0.7


(==) RADEON(0): Silken mouse enabled

(**) Option Protocol Auto
(**) Mouse0: Device: /dev/sysmouse
(**) Mouse0: Protocol: Auto
(**) Option CorePointer
(**) Mouse0: Core Pointer
(**) Option Device /dev/sysmouse
(**) Option Buttons 5
(==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
(**) Option ZAxisMapping 4 5
(**) Mouse0: ZAxisMapping: buttons 4 and 5
(**) Mouse0: Buttons: 9



(II) XINPUT: Adding extended input device Mouse0 (type: MOUSE)
(II) Mouse0: SetupAuto: hw.iftype is 4, hw.model is 0
(II) Mouse0: SetupAuto: protocol is SysMouse




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


subversion 1.4.4_1: svnserve.in missing

2007-09-09 Thread Kyle Allender
I'm attempting to install subversion from the ports tree on 6.2 RELEASE 
using:


make install

and receive this error:

cc  -O2 -fno-strict-aliasing -pipe   -g -O2  -I./subversion/include 
-I./subversion   -I/usr/local/include/apr-1   -I/usr/local/include/apr-1 
-I/usr/local/include -I/usr/local/include/db42 -o 
subversion/tests/libsvn_fs_base/fs-base-test.o -c 
subversion/tests/libsvn_fs_base/fs-base-test.c
cd subversion/tests/libsvn_fs_base  /usr/local/bin/libtool --tag=CC 
--silent --mode=link cc  -O2 -fno-strict-aliasing -pipe   -g -O2  
-L/usr/local/lib -L/usr/local/lib/db42  -rpath /usr/local/lib -o 
fs-base-test  fs-base-test.o ../../../subversion/tests/libsvn_test-1.la 
../../../subversion/libsvn_fs_base/libsvn_fs_base-1.la 
../../../subversion/libsvn_fs/libsvn_fs-1.la 
../../../subversion/libsvn_delta/libsvn_delta-1.la 
../../../subversion/libsvn_subr/libsvn_subr-1.la 
/usr/local/lib/libaprutil-1.la -lgdbm -ldb-4.2 -lexpat -liconv 
/usr/local/lib/libapr-1.la -lcrypt  -lpthread -lintl  -lz
cc  -O2 -fno-strict-aliasing -pipe   -g -O2  -I./subversion/include 
-I./subversion   -I/usr/local/include/apr-1   -I/usr/local/include/apr-1 
-I/usr/local/include -I/usr/local/include/db42 -o 
subversion/tests/libsvn_fs_base/key-test.o -c 
subversion/tests/libsvn_fs_base/key-test.c
cd subversion/tests/libsvn_fs_base  /usr/local/bin/libtool --tag=CC 
--silent --mode=link cc  -O2 -fno-strict-aliasing -pipe   -g -O2  
-L/usr/local/lib -L/usr/local/lib/db42  -rpath /usr/local/lib -o 
key-test  key-test.o ../../../subversion/tests/libsvn_test-1.la 
../../../subversion/libsvn_fs_base/libsvn_fs_base-1.la 
../../../subversion/libsvn_fs/libsvn_fs-1.la 
../../../subversion/libsvn_delta/libsvn_delta-1.la 
../../../subversion/libsvn_subr/libsvn_subr-1.la 
/usr/local/lib/libaprutil-1.la -lgdbm -ldb-4.2 -lexpat -liconv 
/usr/local/lib/libapr-1.la -lcrypt  -lpthread -lintl  -lz
cc  -O2 -fno-strict-aliasing -pipe   -g -O2  -I./subversion/include 
-I./subversion   -I/usr/local/include/apr-1   -I/usr/local/include/apr-1 
-I/usr/local/include -I/usr/local/include/db42 -o 
subversion/tests/libsvn_fs_base/skel-test.o -c 
subversion/tests/libsvn_fs_base/skel-test.c
cd subversion/tests/libsvn_fs_base  /usr/local/bin/libtool --tag=CC 
--silent --mode=link cc  -O2 -fno-strict-aliasing -pipe   -g -O2  
-L/usr/local/lib -L/usr/local/lib/db42  -rpath /usr/local/lib -o 
skel-test  skel-test.o ../../../subversion/tests/libsvn_test-1.la 
../../../subversion/libsvn_fs_base/libsvn_fs_base-1.la 
../../../subversion/libsvn_fs/libsvn_fs-1.la 
../../../subversion/libsvn_delta/libsvn_delta-1.la 
../../../subversion/libsvn_subr/libsvn_subr-1.la 
/usr/local/lib/libaprutil-1.la -lgdbm -ldb-4.2 -lexpat -liconv 
/usr/local/lib/libapr-1.la -lcrypt  -lpthread -lintl  -lz
cc  -O2 -fno-strict-aliasing -pipe   -g -O2  -I./subversion/include 
-I./subversion   -I/usr/local/include/apr-1   -I/usr/local/include/apr-1 
-I/usr/local/include -I/usr/local/include/db42 -o 
subversion/tests/libsvn_fs_base/strings-reps-test.o -c 
subversion/tests/libsvn_fs_base/strings-reps-test.c
cd subversion/tests/libsvn_fs_base  /usr/local/bin/libtool --tag=CC 
--silent --mode=link cc  -O2 -fno-strict-aliasing -pipe   -g -O2  
-L/usr/local/lib -L/usr/local/lib/db42  -rpath /usr/local/lib -o 
strings-reps-test  strings-reps-test.o 
../../../subversion/tests/libsvn_test-1.la 
../../../subversion/libsvn_fs_base/libsvn_fs_base-1.la 
../../../subversion/libsvn_fs/libsvn_fs-1.la 
../../../subversion/libsvn_delta/libsvn_delta-1.la 
../../../subversion/libsvn_subr/libsvn_subr-1.la 
/usr/local/lib/libaprutil-1.la -lgdbm -ldb-4.2 -lexpat -liconv 
/usr/local/lib/libapr-1.la -lcrypt  -lpthread -lintl  -lz

/usr/local/bin/msgfmt -c -o subversion/po/de.mo subversion/po/de.po
/usr/local/bin/msgfmt -c -o subversion/po/es.mo subversion/po/es.po
/usr/local/bin/msgfmt -c -o subversion/po/fr.mo subversion/po/fr.po
/usr/local/bin/msgfmt -c -o subversion/po/it.mo subversion/po/it.po
/usr/local/bin/msgfmt -c -o subversion/po/ja.mo subversion/po/ja.po
/usr/local/bin/msgfmt -c -o subversion/po/ko.mo subversion/po/ko.po
/usr/local/bin/msgfmt -c -o subversion/po/nb.mo subversion/po/nb.po
/usr/local/bin/msgfmt -c -o subversion/po/pl.mo subversion/po/pl.po
/usr/local/bin/msgfmt -c -o subversion/po/pt_BR.mo subversion/po/pt_BR.po
/usr/local/bin/msgfmt -c -o subversion/po/sv.mo subversion/po/sv.po
/usr/local/bin/msgfmt -c -o subversion/po/zh_CN.mo subversion/po/zh_CN.po
/usr/local/bin/msgfmt -c -o subversion/po/zh_TW.mo subversion/po/zh_TW.po
===  Installing for subversion-1.4.4_1
** Missing /usr/ports/devel/subversion/files/svnserve.in for 
subversion-1.4.4_1.

*** Error code 1

Based on what I see in other ports, the .in files are used as 
configuration files for various portions of the build process.  Is this 
correct?


I attempted to build the port with this argument:

make -DWITH_PYTHON -DWITH_JAVA -DWITH_SVNSERVE_WRAPPER install

and receive the same error message, though with a much smaller build 

Re: wxPython 2.8?

2007-09-09 Thread Luke Dean



On Mon, 10 Sep 2007, Martin Tournoij wrote:


On Sun 09 Sep 2007 15:09, Luke Dean wrote:


I've got a Python app that seems to require wxPython 2.8.
The ports collection only has 2.6.
Do you think it would it be worthwhile for me to download the source and 
attempt to compile it on my system or should I ask the port
maintainer?


wxgtk 2.8 is in the ports collection(x11/toolkits/wxgtk28), you're
probably using an outdated snapshot of the ports collection.
See the FreeBSD handbook on how to update your ports collection:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html


I guess I don't understand the relationship between wxPython and wxgtk.
wxPython 2.6 builds with wxgtk 2.6 by default.  If it works with wxgtk
2.8, maybe that's what I need.  I'll give it a shot.  Thanks.


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


X11 reports BadLength (poly request too large ...

2007-09-09 Thread Erich Dollansky

Hi,

I mentioned this error before on the X11 list without getting a response.

I found out meanwhile that I get this error message only when I run my 
custom kernel. Running either the kernel from the 6.2 RELEASE or the 
rebuilt GENERIC kernel did not result in this error message.


I added this to the kernel configuration:

machine i386
cpu I486_CPU
cpu I586_CPU
#cpuI686_CPU
ident   P2120

plus

device  acpi_fujitsu# support for the additional buttons
device  acpi_video  # no real information given
device  cpufreq # support for none ACPI frequency control
device  drm # enables kernel support for direct rendering
device  radeondrm   # enables support of the ATI Radeon chipset


Erich

PS

The error message:

Script started on Thu Aug 30 14:18:40 2007
You have mail.
/home/erich  thunderbird 
[1] 42052
/home/erich  The program 'thunderbird-bin' received an X Window System 
error.

This probably reflects a bug in the program.
The error was 'BadLength (poly request too large or internal Xlib length 
erro'.

  (Details: serial 186251 error_code 16 request_code 18 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() 
function.)

exit
[1]Exit 1thunderbird
exit

Script done on Thu Aug 30 15:03:39 2007

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


Re: ip assignments

2007-09-09 Thread Norberto Meijome
On Mon, 10 Sep 2007 11:32:57 +1000
Norberto Meijome [EMAIL PROTECTED] wrote:

 WRONG:
 ifconfig_bge0=inet 192.168.1.1 netmask 255.255.255.0
 ifconfig_bge0=inet 192.168.1.2 netmask 255.255.255.0  THIS netmask should 
 be 255.255.255.255

ok, obviously in a rush this morning...

the second line of course should read ifconfig_bge0_alias0 . so the correct 
lines would be :

ifconfig_bge0=inet 192.168.1.1 netmask 255.255.255.0
ifconfig_bge0_alias0=inet 192.168.1.2 netmask 255.255.255.255

My apologies for any confusion caused,
B
_
{Beto|Norberto|Numard} Meijome

Lots of people who complained about us receiving the MBE received theirs for 
heroism in the war -- for killing people.
 We received ours for entertaining other people. I'd say we deserve ours more.
  John Lennon

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]