Re: Could we get the FreeBSD torrent servers back?

2007-02-25 Thread Andrew Lentvorski

Chris Slothouber wrote:

But isn't the whole point of peer to peer file distribution to 
*distribute* the bandwidth requirements to the point that the costs 
involved for each of the individual peers is trivial but the client 
receiving the file still obtains full speed of a direct download?


Yes, actually, it is.

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


Re: Could we get the FreeBSD torrent servers back?

2007-02-25 Thread Jeff Mohler

It would be a facinating experiment if a lrge group of Fbsd users at
1000s of hosts were recruited as supporters to the Fbsd Organization..to
host some subset of critical files.

It would be super neato if you could configure what you wished to donate via
a tool that would populate your box with specific data.

On 2/25/07, Andrew Lentvorski [EMAIL PROTECTED] wrote:


Chris Slothouber wrote:

 But isn't the whole point of peer to peer file distribution to
 *distribute* the bandwidth requirements to the point that the costs
 involved for each of the individual peers is trivial but the client
 receiving the file still obtains full speed of a direct download?

Yes, actually, it is.

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


Automount : operation not permitted

2007-02-25 Thread Robert Davison
I'm unsing automount (amd) to mount to external drives. I'm getting the 
following error when trying to access the drives.
   
  /sun1: Operation not permitted.
   
  I've followed the example here: 
http://ezine.daemonnews.org/200202/automounting.html which gives the following 
section on errors...
  A. ERRORS  Operation not permitted when mounting: one cannot mount a regular 
partition on top of another. Unmount the first partition before attempting to 
mount. 
   
   
  Can anoyone please explain what this means in english ??? What is the first 
partition ?
   
  Its a sun storedge with two drives in it. One called /sun1, the other /sun2


-
 Inbox full of unwanted email? Get leading protection and 1GB storage with All 
New 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: kernel panic at boot on any 6.x OS

2007-02-25 Thread Kip Macy

It looks as if you've hit a device driver that is trying to print out
a null string. The message you've given doesn't provide any more
information than that. If you install a snapshot kernel it will
probably have ddb compiled in which will allow you to at least get a
backtrace. I'm sorry you're having trouble.

-Kip




On 2/24/07, Joe Auty [EMAIL PROTECTED] wrote:

Hello,

(sorry, don't know whether kernel problems should go to questions or
hackers, or both)..

This has been a long-standing problem of mine, but I always ignored
it hoping it would go away on its own with a future 6.x release, but
it remains...

No matter whether I boot into safe mode or regular mode, with all
kernel extensions disabled in /boot/loader.conf, I get the following
panic late at boot of a fresh RELENG_6_2 kernel (with only a few
services left to bring up). The 6.x kernels I've tried all build and
installed cleanly without any errors...


 WARNING: Device driver 

 Fatal trap 12: page fault while in kernel mode
 fault virtual address = 0x40
 fault code = supervisor read, page not present
 instruction pointer = 0x20:0xc06d4614
 stack pointer = 0x28:0xf015491c
 frame pointer = 0x28:0xf015491c
 code segment = base 0x0, limit 0xff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
 processor eflags = interupt enabled, resume, IOPL = 0
 current process = 898 (kldload)
 trap number = 12
 panic: page fault
 uptime: 36s
 cannot dump. No dump device defined
 automatic reboot in 15 seconds


This problem does not occur within any 5.x OS for me. I would
certainly like to resolve this issue now, but this sort of debugging
is over my head beyond running fsck (which I've tried). Any ideas here?

Thanks in advance for your help!





---
Joe Auty
NetMusician: web publishing software for musicians
http://www.netmusician.org
[EMAIL PROTECTED]





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


Re: Could we get the FreeBSD torrent servers back?

2007-02-25 Thread Chris Slothouber

Andrew Lentvorski wrote:

Chris Slothouber wrote:

But isn't the whole point of peer to peer file distribution to 
*distribute* the bandwidth requirements to the point that the costs 
involved for each of the individual peers is trivial but the client 
receiving the file still obtains full speed of a direct download?


Yes, actually, it is.

-a


I think it would then serve the interests of the FreeBSD community to 
establish a long-term file distribution plan that includes a proven peer 
to peer system, like torrent.


It really wouldn't take that much effort, and any bandwidth necessary 
for seeding, especially initial seeding, could be re-allocated out of 
what is already being used for direct downloads.


Since torrent is a rather widely-accepted means of downloading and 
clients are available for pretty much every platform, it could become 
the primary vector for distributing large binaries (such as ISOs) that 
put a sustained burden on the donated mirrors.


Direct downloads could still be offered for these files for 
compatibility's sake, albeit at a reduced rate, using shaping or 
whatever else.

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


Re: kernel panic at boot on any 6.x OS

2007-02-25 Thread LI Xin
Hi,

Joe Auty wrote:
 This problem does not occur within any 5.x OS for me. I would certainly
 like to resolve this issue now, but this sort of debugging is over my
 head beyond running fsck (which I've tried). Any ideas here?

Which .ko are you trying to load?  try removing them and see if things
changes?

Cheers,
-- 
Xin LI [EMAIL PROTECTED]  http://www.delphij.net/
FreeBSD - The Power to Serve!



signature.asc
Description: OpenPGP digital signature


Core 2 Duo

2007-02-25 Thread Philip Radford

   Hi All,



   I am now in the= process of configuring two new freebsd boxes on which
   I plan to install the= 6.2 branch.



   Does anyone know if= and how I can tailor the configuration to make
   best use of core 2 duo= processors.



   One of the servers= has a 'Dual Core Intel® Xeon® 3040 Processor
   at 1.86GHz, 2MB L2 cache,= 1066MHz FSB'

   The second as a= 'Intel Core 2 Duo E6400 Conroe 2.13GHz 2M shared L2
   Cache LGA= 775'



   Any idea or thoughts= on this welcome.



   In the past on a P4= chip I would put pentium4 in the cputype
   parameter in /etc/make.conf but= are there any other settings here I
   can adjust or any by using= sysctl.

   A google search was= not productive.



   It would appear that= SMP is installed by default on the default 6.2
   install.



   Regards

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


Re: Core 2 Duo

2007-02-25 Thread Abdullah Ibn Hamad Al-Marri

On 2/25/07, Philip Radford [EMAIL PROTECTED] wrote:


   In the past on a P4 chip I would put pentium4 in the cputype
   parameter in /etc/make.conf but are there any other settings here I
   can adjust or any by using sysctl.


I'm using CPUTYPE?=prescott amd it's safe, nocona broke my kernel.

--
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Fw: FIN_WAIT_2

2007-02-25 Thread Grant Peel

my problem is that so many of my vm-pop3d processes get in that state that
semi-frequently, we get locked out of downloading email.

I kill all the vm-pop3d processes then we have to wait for all the
FIN_WAIT_2 to die befor i can restart the vm-pop3d process.

If I try to start vm-pop3d before all the FIN_WAIT_2 sockets die, I get a
'Can't bind to port error.

When I do the lsof thing it shows no files or processes connected to that
port, or socket.

-Grant

- Original Message - 
From: Christian Walther [EMAIL PROTECTED]

To: Grant Peel [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Saturday, February 24, 2007 9:53 AM
Subject: Re: FIN_WAIT_2



On 24/02/07, Grant Peel [EMAIL PROTECTED] wrote:

Hi all,

Just wondering if anyone has found / knows of a way to kill sockets that 
are stuck in FIN_WIAT_2 state - without rebooting the server.


When I kill the processes (in this case the pop3 server) that allows the 
connection, it still takes about 3 hours for the socket to time out and 
die.


What is your problem with sockets being in this state? Normaly they
don't consume any resources that would lead to performance problems.
As you say, they die eventually.
Sockets in this state are no problem, it's just that the client failed
to sent the last ACK to the server, which would finally close the
communication.






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


Re: kernel panic at boot on any 6.x OS

2007-02-25 Thread Daan Vreeken [PA4DAN]
On Sunday 25 February 2007 08:59, Kip Macy wrote:
 It looks as if you've hit a device driver that is trying to print out
 a null string. The message you've given doesn't provide any more
 information than that. If you install a snapshot kernel it will
 probably have ddb compiled in which will allow you to at least get a
 backtrace. I'm sorry you're having trouble.

Grepping the source tree on 6.2-RELEASE shows this message can only have com 
from one place : sys/kern/kern_conf.c in the function prep_cdevsw() :

if (devsw-d_version != D_VERSION_01) {
printf(
WARNING: Device driver \%s\ has wrong version %s\n,
devsw-d_name == NULL ? ??? : devsw-d_name,
and is disabled.  Recompile KLD module.);

Looks like the kernel and the modules are out of sync.


 On 2/24/07, Joe Auty [EMAIL PROTECTED] wrote:
  Hello,
 
  (sorry, don't know whether kernel problems should go to questions or
  hackers, or both)..
 
  This has been a long-standing problem of mine, but I always ignored
  it hoping it would go away on its own with a future 6.x release, but
  it remains...
 
  No matter whether I boot into safe mode or regular mode, with all
  kernel extensions disabled in /boot/loader.conf, I get the following
  panic late at boot of a fresh RELENG_6_2 kernel (with only a few
  services left to bring up). The 6.x kernels I've tried all build and
  installed cleanly without any errors...
 
   WARNING: Device driver 
  
   Fatal trap 12: page fault while in kernel mode
   fault virtual address = 0x40
   fault code = supervisor read, page not present
   instruction pointer = 0x20:0xc06d4614
   stack pointer = 0x28:0xf015491c
   frame pointer = 0x28:0xf015491c
   code segment = base 0x0, limit 0xff, type 0x1b
  = DPL 0, pres 1, def32 1, gran 1
   processor eflags = interupt enabled, resume, IOPL = 0
   current process = 898 (kldload)
   trap number = 12
   panic: page fault
   uptime: 36s
   cannot dump. No dump device defined
   automatic reboot in 15 seconds
 
  This problem does not occur within any 5.x OS for me. I would
  certainly like to resolve this issue now, but this sort of debugging
  is over my head beyond running fsck (which I've tried). Any ideas here?
 
  Thanks in advance for your help!
 
 
 
 
 
  ---
  Joe Auty
  NetMusician: web publishing software for musicians
  http://www.netmusician.org
  [EMAIL PROTECTED]

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

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


ipfw questions

2007-02-25 Thread Curby

I'm using IPFW2 on a Mac, but hopefully these questions are general
enough for this list.

First, is there any reason not to prefer from any to any over from
any to me when adding rules to allow access to local services?  Some
ipfw configurations I've found use from any to any, which doesn't
seem bad except that it's unnecessarily general.

Also, there's a verrevpath option but Apple's default ruleset still
uses the following:

deny log ip from 127.0.0.0/8 to any in
deny log ip from any to 127.0.0.0/8 in
deny log ip from 224.0.0.0/3 to any in
deny log tcp from any to 224.0.0.0/3 in

Is it correct that verrevpath should make these redundant/obsolete?
It'd be nice to have one rule instead of 4, but I'm wondering why
Apple isn't using its own supported features.  Thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ipfw questions

2007-02-25 Thread Andrew Pantyukhin

On 2/25/07, Curby [EMAIL PROTECTED] wrote:

I'm using IPFW2 on a Mac, but hopefully these questions are general
enough for this list.


ipfw@ might be more appropriate


First, is there any reason not to prefer from any to any over from
any to me when adding rules to allow access to local services?  Some
ipfw configurations I've found use from any to any, which doesn't
seem bad except that it's unnecessarily general.


If you don't forward packets, then it's not very different,
packets for not me are gonna get dropped anyway right
after the firewall.


Also, there's a verrevpath option but Apple's default ruleset still
uses the following:

deny log ip from 127.0.0.0/8 to any in
deny log ip from any to 127.0.0.0/8 in
deny log ip from 224.0.0.0/3 to any in
deny log tcp from any to 224.0.0.0/3 in

Is it correct that verrevpath should make these redundant/obsolete?
It'd be nice to have one rule instead of 4, but I'm wondering why
Apple isn't using its own supported features.  Thanks!


There are a lot of complicated/illegal configurations
when verrevpath shoots you in the foot. Keeping rules
simple and stupid will save you a lot of headache in
the end.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Could we get the FreeBSD torrent servers back?

2007-02-25 Thread Randy Pratt
On Sun, 25 Feb 2007 03:29:37 -0500
Chris Slothouber [EMAIL PROTECTED] wrote:

 Andrew Lentvorski wrote:
  Chris Slothouber wrote:
  
  But isn't the whole point of peer to peer file distribution to 
  *distribute* the bandwidth requirements to the point that the costs 
  involved for each of the individual peers is trivial but the client 
  receiving the file still obtains full speed of a direct download?
  
  Yes, actually, it is.
  
  -a
 
 I think it would then serve the interests of the FreeBSD community to 
 establish a long-term file distribution plan that includes a proven peer 
 to peer system, like torrent.
 
 It really wouldn't take that much effort, and any bandwidth necessary 
 for seeding, especially initial seeding, could be re-allocated out of 
 what is already being used for direct downloads.
 
 Since torrent is a rather widely-accepted means of downloading and 
 clients are available for pretty much every platform, it could become 
 the primary vector for distributing large binaries (such as ISOs) that 
 put a sustained burden on the donated mirrors.
 
 Direct downloads could still be offered for these files for 
 compatibility's sake, albeit at a reduced rate, using shaping or 
 whatever else.

I didn't even realize that torrents were no longer offered but its
not too surprising.  I would guess the reason to be that most
FreeBSD users update their systems via cvsup/csup and never have
any need for all the bits that are on the iso images.

A fresh install is about the only time an iso image is useful.
When its necessary to do a fresh install, I typically will
get the boot-only image and install only the binaries.  No sources,
no ports tree, no docs since the iso image is outdated as soon as
it was posted.  The latest sources are then added to the system via
cvsup/csup and built.

I have 6.2-STABLE running on all systems but don't have any 6.x
CDROM's.  I used some 5.x version image to reinstall from 4.x in
order to ease that transition point but normally reinstalls are
unnecessary and avoided.

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


Weather update plugin 0.6.0 fails to work

2007-02-25 Thread wanderingidea
Hi,

Since xfce 4.4 the weather plugin 0.6.0 fails to update weather data.

Searching the weather location code also fails. Filling in Rotterdam should
return NLXX0015 but nothing happens.

So far I cannot find any information on this problem.

Does anyone has this same problem or any ideas?

Thanks,

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


Re: Core 2 Duo

2007-02-25 Thread Harald Schmalzbauer
Am Sonntag, 25. Februar 2007 10:10 schrieb Abdullah Ibn Hamad Al-Marri:
 On 2/25/07, Philip Radford [EMAIL PROTECTED] wrote:
 In the past on a P4 chip I would put pentium4 in the cputype
 parameter in /etc/make.conf but are there any other settings here I
 can adjust or any by using sysctl.

 I'm using CPUTYPE?=prescott amd it's safe, nocona broke my kernel.

I'm no compiler expert, but prescott and nocona are Net-Burst architectures.
Core(2) is a pentium-m successor, which was a completely different (x86) 
architecture, so optimizations for netburst won't have a positive effect, if 
they work at all.

I use CPUTYPE?=pentium-m, but I've never done any comparisions to binaries 
compiled without CPUTYPE. After several years observation with CPUTYPE I 
guess the improovement ist smaller than ever these days, and until now it was 
rarely mesureable.

-Harry

-- 
OmniSEC  -  UNIX und Windows Netzwerke - Sicher
Harald Schmalzbauer
Flintsbacher Str. 3
80686 München
+49 (0) 89 18947781
+49 (0) 160 93860101
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Fw: FIN_WAIT_2

2007-02-25 Thread Tek Bahadur Limbu
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, 25 Feb 2007 05:23:20 -0500
Grant Peel [EMAIL PROTECTED] wrote:

  my problem is that so many of my vm-pop3d processes get in that
 state that semi-frequently, we get locked out of downloading email.
 
  I kill all the vm-pop3d processes then we have to wait for all the
  FIN_WAIT_2 to die befor i can restart the vm-pop3d process.
 
  If I try to start vm-pop3d before all the FIN_WAIT_2 sockets die, I
 get a 'Can't bind to port error.
 
  When I do the lsof thing it shows no files or processes connected to
 that port, or socket.

Hi Grant,

I also seem to getting the same problem as yours except that my server
is a Squid proxy running on FreeBSD 6.0. Using 
 
netstat -an | grep tcp | awk '{print $6}' | sort | uniq -c

gives the following:

23 CLOSE_WAIT
   9 CLOSING
3955 ESTABLISHED
3342 FIN_WAIT_1
2604 FIN_WAIT_2
  49 LAST_ACK
   15 LISTEN
  16 SYN_SENT
  148 TIME_WAIT

Then I start to get the following in my squid logs:

2007/02/25 17:10:37| comm_open: socket failure: (55) No buffer space
available 

I tried by setting the variable net.inet.ip.fw.dyn_keepalive=0 but it
didn't help that much.

It is only after I stop Squid for about 20-30 seconds and restart it,
will the number of connections start to drop. 

I think that the best way to tackle this problem is by using a firewall
to rate-limit the number of connections per IP per time.


 
  -Grant
 
  - Original Message - 
  From: Christian Walther [EMAIL PROTECTED]
  To: Grant Peel [EMAIL PROTECTED]
  Cc: freebsd-questions@freebsd.org
  Sent: Saturday, February 24, 2007 9:53 AM
  Subject: Re: FIN_WAIT_2
 
 
  On 24/02/07, Grant Peel [EMAIL PROTECTED] wrote:
  Hi all,
 
  Just wondering if anyone has found / knows of a way to kill
  sockets that are stuck in FIN_WIAT_2 state - without rebooting
  the server.
 
  When I kill the processes (in this case the pop3 server) that
  allows the connection, it still takes about 3 hours for the
  socket to time out and die.
 
  What is your problem with sockets being in this state? Normaly they
  don't consume any resources that would lead to performance
  problems. As you say, they die eventually.
  Sockets in this state are no problem, it's just that the client
  failed to sent the last ACK to the server, which would finally
  close the communication.
 
 
  
 
 ___
 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

(TAG/TDG Group)
Jwl Systems Department

Worldlink Communications Pvt. Ltd.

Jawalakhel, Nepal

http://www.wlink.com.np
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (FreeBSD)

iD8DBQFF4ZTAVrOl+eVhOvYRAmWsAJ48mBKXDDYPIB+9Whgq2kl51JvIvACdHvR/
T73CpykghiHwlVZ4yCKxJE0=
=UDbN
-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]


freebsd/pf with pfstat

2007-02-25 Thread Olivier Regnier

hello,

Im currently running on FreeBSD 6.2 with pf (packet filter). I installed
pfstat that collects packet filter statistic and produces graphs.

I added this line in my pf.conf and i restarted pf:
set loginterface $int_if

next step, i created pfstat.conf:

# bandwidth = 1 hour
collect 1 = interface ndis0 pass bytes in ipv4 diff
collect 2 = interface ndis0 pass bytes in ipv4 diff

image /var/stats/pf/bytes_1hour.png {
from 1 hours to now
width 350 height 135
left
   graph 1 bps in bits/s color 0 192 0 filled
right
   graph 2 bps out bits/s color 0 0 255
}

i tested pfstat with this command in root:
pfstat -q

and nothing, my pfstat.log in /var directory is empty. I can't create
graphs. Can you help me please ?

Thank you :)

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


Re: Licensing question about GPL/LGPL binaries

2007-02-25 Thread Gabor Kovesdan

Ted Mittelstaedt schrieb:
- Original Message - 
From: Jeffrey Goldberg [EMAIL PROTECTED]

To: Kövesdán Gábor [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Friday, February 23, 2007 9:02 AM
Subject: Re: Licensing question about GPL/LGPL binaries


  

[freebsd-emulation cut from cc]


On Feb 23, 2007, at 5:53 AM, Kövesdán Gábor wrote:



The question is that can we extract and provide these binaries in a
simple tar.gz file or is that considered a GPL/LGPL violation? The
sources are freely available on slackware.com, but we are not sure
doing so is legally correct. What do you think about this?
  

Gábor,

What you plan to do is perfectly fine under the GPL as long as

(1) What you distribute is under the GPL license
(2) You let people know where they can freely get the source
(3) You don't take credit for work that isn't yours.




Jeffrey,

  Kovesdan is not modifying the binaries or the sources, thus there is no
need for him to GPL license his distribution - the files in his distribution
already carry their own GPL license.  He just needs to include all of the
files, which by GPL requirement, are going to include a copies of the GPL
licenses that are applied to those files, as well as instructions as to
where
to get the sources.  He does not need to further apply some kind
of 'overall' GPL license to his distribution.

  It's a similar issue as someone running an FTP server with GPL software
on it, they are merely serving as a venue for the distribution.

  It's a fine point to be sure, but an important one espically as the FSF is
aiming to have multiple, incompatible, versions of the GPL floating around.

Ted

  


Thanks for the answers to both of you. We just modify the packaging of 
the file: gzipped tarball instead of floppy images, so it will be fine 
to redistribute them with the pointer to the sources then.


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


Re: Problems with mounting NFS share located on a Linux machine

2007-02-25 Thread Vince

Richard Krushelnitskiy wrote:

Hi,

I have a Linux machine which acts as a NFS server and I'm trying to
mount the share on FreeBSD. While the mount command succeeds and I see
no errors and Linux doesn't show anything unusual in the logs, when I
try to list the files in the mounted directory, none show up. Doing
'df' on both machines reports the same size/usage/free numbers for the
partition. I'm lost as to how to further analyze the problem.

Contents of /etc/exports on the Linux system (galadriel):
--
# /etc/exports: NFS file systems being exported.  See exports(5).

/home 192.168.1.100(rw,sync)
--

[*] 192.168.1.100 refers to the FreeBSD machine (elrond).

--
[EMAIL PROTECTED] ~ # showmount -e galadriel
Exports list on galadriel:
/home  elrond.rivendell.lan
--
[EMAIL PROTECTED] ~ 0# mount_nfs galadriel:/home /mnt/linux_home
[EMAIL PROTECTED] ~ 0# df
Filesystem  1K-blocks Used   Avail Capacity  Mounted on
[other FreeBSD mounts]
galadriel:/home  10321208   131276 9665644 1%/mnt/linux_home
--
galadriel ~ # df
Filesystem   1K-blocks  Used Available Use% Mounted on
[other Linux mounts]
/dev/hda8 10321208131276   9665644   2% /home
--
galadriel ~ # tail /var/log/messages
Feb 24 19:13:33 galadriel rpc.mountd: export request from 192.168.1.100
Feb 24 19:14:30 galadriel rpc.mountd: authenticated mount request from
elrond.rivendell.lan:670 for /home (/home)
--

Hope these outputs help :)
Just a guess but depending on the permissions of the directories, you 
may need to turn off 'root_squash' or set it to a user with read 
permissions, the linux man page for exports covers the linux syntax for 
this.


Vince


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


kernel debug messages

2007-02-25 Thread Andrea Venturoli

Hello.
As I have already written to this list, several of my 6.2 servers are 
hanging very frequently.

I've managed to turn on the following options on one of them:


options KDB
options DDB
options KDB_UNATTENDED
options INVARIANTS
options INVARIANT_SUPPORT
options WITNESS
options DEBUG_LOCKS
options DEBUG_VFS_LOCKS
options DIAGNOSTIC


I hope I can do that soon on the others too.
In the meanwhile I have seen this in the log:


Feb 24 17:51:53 soth kernel: lock order reversal:
Feb 24 17:51:53 soth kernel: 1st 0xc6a37090 inp (divinp) @ 
/usr/src/sys/netinet/ip_divert.c:336
Feb 24 17:51:53 soth kernel: 2nd 0xc070a18c tcp (tcp) @ 
/usr/src/sys/netinet/ip_fw2.c:1982
Feb 24 17:51:53 soth kernel: KDB: stack backtrace:
Feb 24 17:51:53 soth kernel: 
kdb_backtrace(0,,c06c8f10,c06cadb0,c0694084,...) at kdb_backtrace+0x29
Feb 24 17:51:53 soth kernel: witness_checkorder(c070a18c,9,c0665b07,7be) at 
witness_checkorder+0x578
Feb 24 17:51:53 soth kernel: _mtx_lock_flags(c070a18c,0,c0665b07,7be) at 
_mtx_lock_flags+0x78
Feb 24 17:51:53 soth kernel: check_uidgid(c6a890b0,6,c6507800,46c046c1,6e,...) 
at check_uidgid+0xdf
Feb 24 17:51:53 soth kernel: ipfw_chk(e6cc49f0,c6cfdb00,c6507800,0,0,...) at 
ipfw_chk+0xd74
Feb 24 17:51:53 soth kernel: ipfw_check_out(0,e6cc4ae8,c6507800,2,0) at 
ipfw_check_out+0xe0
Feb 24 17:51:53 soth kernel: pfil_run_hooks(c0709d40,e6cc4b5c,c6507800,2,0,...) 
at pfil_run_hooks+0xc9
Feb 24 17:51:53 soth kernel: ip_output(c6cfdb00,0,e6cc4b28,22,0,...) at 
ip_output+0x66a
Feb 24 17:51:53 soth kernel: 
div_output(c67a8000,c6cfdb00,c6b35be0,0,e6cc4c08,...) at div_output+0x185
Feb 24 17:51:53 soth kernel: div_send(c67a8000,0,c6cfdb00,c6b35be0,0,...) at 
div_send+0x3f
Feb 24 17:51:53 soth kernel:
Feb 24 17:51:53 soth kernel: 
sosend(c67a8000,c6b35be0,e6cc4c3c,c6cfdb00,0,0,c657aa80) at sosend+0x5eb
Feb 24 17:51:53 soth kernel: kern_sendit(c657aa80,3,e6cc4cbc,0,0,0) at 
kern_sendit+0x104
Feb 24 17:51:53 soth kernel: sendit(c657aa80,3,e6cc4cbc,0,bfbdebc4,...) at 
sendit+0x163
Feb 24 17:51:53 soth kernel: sendto(c657aa80,e6cc4d04) at sendto+0x4d
Feb 24 17:51:53 soth kernel: syscall(3b,3b,3b,2,34,...) at syscall+0x25b
Feb 24 17:51:53 soth kernel: Xint0x80_syscall() at Xint0x80_syscall+0x1f
Feb 24 17:51:53 soth kernel: --- syscall (133, FreeBSD ELF32, sendto), eip = 
0x2812ef43, esp = 0xbfbdeafc, ebp = 0xbfbeeba8 ---
Feb 24 17:51:53 soth kernel: ipfw: 65534 Deny TCP 192.168.0.3:52325 
193.70.192.70:110 out via xl0



Any comments?

I hope I can provide other, possibly more useful informations, in the 
near future.


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


Re: Licensing question about GPL/LGPL binaries

2007-02-25 Thread Jeffrey Goldberg

On Feb 25, 2007, at 8:26 AM, Gabor Kovesdan wrote:


Thanks for the answers to both of you.


Szivesen

We just modify the packaging of the file: gzipped tarball instead  
of floppy images, so it will be fine to redistribute them with the  
pointer to the sources then.


Yes.

As a shameless plug, there is an article about the GPL that appeared  
in Alaplap in 1994 titled Van aki szabadon szereti (Some like it  
free) by me and translated from English to Hungarian by Horlai  
Janos.  Unfortunately, I can't find the exact reference.


Cheers,

-j


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

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


Re: input/output error on hd

2007-02-25 Thread Marty Landman

On 2/24/07, Jerry McAllister [EMAIL PROTECTED] wrote:



Well, I think you are past any label problems now and on to the
bad sectors and/or finding superbocks.Although I am not quite clear
from above what resulted in the 'INCOMPLETE LABEL...'  message.



Ok then, can you point me to somewhere that can learn about superblocks and
give me an idea of what to do next? Also assuming my bad sectors really are
totally bad, wouldn't fsck allow me to mark them as unusable and move on?

Marty

--
Web Installed Formmail - http://face2interface.com/formINSTal/
Webmaster's BBS - http://bbs.face2interface.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kernel panic at boot on any 6.x OS

2007-02-25 Thread Joe Auty

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On Feb 25, 2007, at 3:01 AM, LI Xin wrote:


Hi,

Joe Auty wrote:
This problem does not occur within any 5.x OS for me. I would  
certainly

like to resolve this issue now, but this sort of debugging is over my
head beyond running fsck (which I've tried). Any ideas here?


Which .ko are you trying to load?  try removing them and see if things
changes?




I've disabled all third party modules (this happens when I boot in  
safe mode too). The modules that are being loaded are whatever  
modules are installed after a:


make buildworld
make buildkernel KERNCONF=myconfig
make installkernel KERNCONF=myconfig

Does this reveal anything useful?







- ---
Joe Auty
NetMusician: web publishing software for musicians
http://www.netmusician.org
[EMAIL PROTECTED]


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFF4bSSCgdfeCwsL5ERAmi0AKCKu0DwEP1JtUuAkhj5O85sKDYlqwCeOWbz
NQvULu8I/0B/EBesXo+mtjQ=
=S3Mo
-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: kernel panic at boot on any 6.x OS

2007-02-25 Thread Joe Auty

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey Kip,

I'd gladly try a snapshot kernel, but I'm not sure which one to pick  
out of this list:


ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/6.2-RELEASE/kernels

Any suggestions?



On Feb 25, 2007, at 2:59 AM, Kip Macy wrote:


It looks as if you've hit a device driver that is trying to print out
a null string. The message you've given doesn't provide any more
information than that. If you install a snapshot kernel it will
probably have ddb compiled in which will allow you to at least get a
backtrace. I'm sorry you're having trouble.

-Kip




On 2/24/07, Joe Auty [EMAIL PROTECTED] wrote:

Hello,

(sorry, don't know whether kernel problems should go to questions or
hackers, or both)..

This has been a long-standing problem of mine, but I always ignored
it hoping it would go away on its own with a future 6.x release, but
it remains...

No matter whether I boot into safe mode or regular mode, with all
kernel extensions disabled in /boot/loader.conf, I get the following
panic late at boot of a fresh RELENG_6_2 kernel (with only a few
services left to bring up). The 6.x kernels I've tried all build and
installed cleanly without any errors...


 WARNING: Device driver 

 Fatal trap 12: page fault while in kernel mode
 fault virtual address = 0x40
 fault code = supervisor read, page not present
 instruction pointer = 0x20:0xc06d4614
 stack pointer = 0x28:0xf015491c
 frame pointer = 0x28:0xf015491c
 code segment = base 0x0, limit 0xff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
 processor eflags = interupt enabled, resume, IOPL = 0
 current process = 898 (kldload)
 trap number = 12
 panic: page fault
 uptime: 36s
 cannot dump. No dump device defined
 automatic reboot in 15 seconds


This problem does not occur within any 5.x OS for me. I would
certainly like to resolve this issue now, but this sort of debugging
is over my head beyond running fsck (which I've tried). Any ideas  
here?


Thanks in advance for your help!





---
Joe Auty
NetMusician: web publishing software for musicians
http://www.netmusician.org
[EMAIL PROTECTED]





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


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFF4bZMCgdfeCwsL5ERAv0zAJ4zRjih+XoXGjF8Bc4hd2Yj7I0WNQCfeEb5
5mLoo1jTuYnJpa2z1EJqbUY=
=Jwsg
-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: Problems with mounting NFS share located on a Linux machine

2007-02-25 Thread Richard Krushelnitskiy

On 2/25/07, Vince [EMAIL PROTECTED] wrote:

Just a guess but depending on the permissions of the directories, you
may need to turn off 'root_squash' or set it to a user with read
permissions, the linux man page for exports covers the linux syntax for
this.

Vince



Thanks for the response. I revised /etc/exports to include options
(all_squash, anonuid=1000, anongid=1000), which from my understanding
should map all users to the given UID and GID. Still the same story,
though; mounts just fine, but no files even though I know for sure
there's a folder chowned to 1000:1000.

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


Re: input/output error on hd

2007-02-25 Thread Jerry McAllister
On Sun, Feb 25, 2007 at 10:38:01AM -0500, Marty Landman wrote:

 On 2/24/07, Jerry McAllister [EMAIL PROTECTED] wrote:
 
 
 Well, I think you are past any label problems now and on to the
 bad sectors and/or finding superbocks.Although I am not quite clear
 from above what resulted in the 'INCOMPLETE LABEL...'  message.
 
 
 Ok then, can you point me to somewhere that can learn about superblocks and
 give me an idea of what to do next? 

Most of what I figured out several years ago (and have essentially
forgotten since) came from the handbook and something I found by
searching the web that gave the layout of blocks and chains.  I would
have to go back searching again.

   Also assuming my bad sectors really are
 totally bad, wouldn't fsck allow me to mark them as unusable and move on?

No, fsck does not do that.   Marking blocks bad happend below the
level of the OS - generally in the disk controller itself.   It remaps
sectors until it runs out of spares and when it runs out, it starts
reporting unrecoverable errors.   This is not even reported to the OS
until it runs out of spares.

The only thing you can do with those bad sectors is to try and figure 
out if any of them are superblocks.  If they are, you can probably
rebuild it from other superblock clones.   If it is not, it is probably
lost data.  In that case try to overwrite the bad sector.  If that 
works, then the sector itself is OK, but the data that was there is
gone.   If it doesn't work, then it is bad and there is a good chance
that more than data got nuked in the power failure - eg, it damaged
the disk or controller in some way.

But, the next thing seems to be learning about how to follow the file
chains and how to find and read and write superblocks.  Alternatively
you can decide it isn't worth the effort to recover and try and write
over the drive completely - just totally trash it - and see if those
bad sectors will write.  If you did that, then you would have to rebuild 
the slice and partition table and do a newfs before you could again
use the drive and everything previously on it would be lost.

Good luck.

Maybe someone who has some experience in tracking file chains can
respond and give you more helpp than can I.

jerry



 
 Marty
 
 -- 
 Web Installed Formmail - http://face2interface.com/formINSTal/
 Webmaster's BBS - http://bbs.face2interface.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Reg. Third party Software installation

2007-02-25 Thread Lowell Gilbert
subbu ramanN [EMAIL PROTECTED] writes:

 I am subburaman from bangalore.I am having FreeBsd OS.Now i
 want to install the google earth software.I have downloaded googleearth.bin
 file.How can i install ? Kindly give me the guidlines.

Installing third-party software is best done through the FreeBSD ports
system.  There is a section on this in the FreeBSD Handbook, (e.g., my
copy at 
http://be-well.ilk.org/FreeBSD/doc/en_US.ISO8859-1/books/handbook/ports.html)
and also the standard manual: man ports.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dual monitors

2007-02-25 Thread John Nielsen
On Saturday 24 February 2007 23:34, Eric Stringer wrote:
 I've got FreeBSD 6.2 running with KDE 3.5 with an ATI 9700Pro card.  I
 have my 37 LCD TV attached to the digital out, and my 17 lcd monitor
 attached to the analog out.  In the console (not running X) it outputs
 the same thing to both TV and monitor, which is fine.  However, when I
 get into KDE it only outputs to my 17 monitor.  I really just want it to
 output to the TV, but dual monitors would be nice also.  Any advice would
 be greatly appreciated. Thanks,
 Eric

 Oh yea forgot to post the xorg.xonf file, here it is.  Also I have Xorg
 6.9.0.

Start by reading man 4x radeon and pay close attention to anything it says 
about MergedFB. Decide if there's any reason you don't want to or can't 
use that feature of the driver. If not, you probably want to go that route 
to get the performance bonus. Look around on the web for examples.

If you don't end up wanting or being able to use MergedFB then you should 
use Xinerama (X's multi-head software). You'll need to enable it with 
something like this:

Section ServerFlags
Option Xinerama 1
EndSection

Then you'll need to add an additional Screen item to your ServerLayout 
section (and specify the relationship between the two screens), then add 
additional Device, Monitor, and Screen sections to the file 
describing your second display. Again, there should be a lot of 
documentation and examples out there since (as Ted mentioned) this isn't 
FreeBSD-specific.

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


burning a cd or dvd doesn't work

2007-02-25 Thread Dino Vliet
Hi folks,

I thought I followed all the steps in the handbook to try to burn a cd or dvd 
from my freebsd 6.1 amd64 system but these commands show the problems I'm 
experiencing:

[EMAIL PROTECTED] /usr/ports/devel/g-wrap]# camcontrol devlist
LITE-ON DVD SOHD-16P9S FS09  at scbus1 target 0 lun 0 (cd0,pass0)
PHILIPS DVDR1640P P3.4   at scbus1 target 1 lun 0 (cd1,pass1)

[EMAIL PROTECTED] /usr/ports/devel/g-wrap]# cdrecord dev=1,1,0 -checkdrive
Cdrecord-Clone 2.01 (amd64-unknown-freebsd6.1) Copyright (C) 1995-2004 J�rg 
Schilling
scsidev: '1,1,0'
scsibus: 1 target: 1 lun: 0
cdrecord: Operation not permitted. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

[EMAIL PROTECTED] /usr/ports/devel/g-wrap]# cdrecord -scanbus
Cdrecord-Clone 2.01 (amd64-unknown-freebsd6.1) Copyright (C) 1995-2004 J�rg 
Schilling
cdrecord: Operation not permitted. Error opening /dev/pass0 Cam error 
'cam_real_open_device: couldn't open passthr. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

[EMAIL PROTECTED] /usr/ports/devel/g-wrap]# dmesg | grep cd1
acd1: DVDR PHILIPS DVDR1640P/P3.4 at ata1-slave UDMA33
cd1 at ata1 bus 0 target 1 lun 0
cd1: PHILIPS DVDR1640P P3.4 Removable CD-ROM SCSI-0 device 
cd1: 33.000MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present


What am I missing?








 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Weather update plugin 0.6.0 fails to work

2007-02-25 Thread Kevin Kinsey

[EMAIL PROTECTED] wrote:

Hi,

Since xfce 4.4 the weather plugin 0.6.0 fails to update weather data.

Searching the weather location code also fails. Filling in Rotterdam should
return NLXX0015 but nothing happens.

So far I cannot find any information on this problem.

Does anyone has this same problem or any ideas?


Hmm, I've had some problems with this prior to 4.4., but AFAICR none 
since I upgraded last week.  Portupgrade reinstalled XFCE without the 
plugin, so I rebuilt that, too.


IIRC, the problems I did have in the past were related to a malformed 
xml file somewhere under ~/.config/xfce* 


Are you behind a proxy by any chance?

Kevin Kinsey
--
The future is a myth created by insurance
salesmen and high school counselors.

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


Re: kernel debug messages

2007-02-25 Thread Kris Kennaway
On Sun, Feb 25, 2007 at 04:23:10PM +0100, Andrea Venturoli wrote:

 In the meanwhile I have seen this in the log:
 
 Feb 24 17:51:53 soth kernel: lock order reversal:
 Feb 24 17:51:53 soth kernel: 1st 0xc6a37090 inp (divinp) @ 
 /usr/src/sys/netinet/ip_divert.c:336
 Feb 24 17:51:53 soth kernel: 2nd 0xc070a18c tcp (tcp) @ 
 /usr/src/sys/netinet/ip_fw2.c:1982
 Feb 24 17:51:53 soth kernel: KDB: stack backtrace:

 Any comments?

Divert sockets are known to have lock order reversals which can cause
deadlocks under certain situations.  I think this particular one has
not been reported, so you might like to send it to [EMAIL PROTECTED] for
inclusion in his list (http://sources.zabbadoz.net/freebsd/lor.html).

You might like to ping the net@ list to see if anyone is working on
fixing these problems.

Kris


pgpZUBXBFB8AG.pgp
Description: PGP signature


Using source control to manage system configs

2007-02-25 Thread Rob

Dear List,

I'd like some advice on managing config files on multiple servers  
with a source control system. The idea is to update files locally,  
and commit them back to a central repository.


I know that CVS is the usual choice, but there are a couple of things  
that I can't get CVS to do.


Overlapping directories
---

Some files (/etc/ntp.conf, /etc/resolv.conf) are identical across a  
site. Instead of duplicating these in the repository, I'd like to  
create a module like


  hosts/shared/etc

that gets installed on every server.

Then each server has a module like

  hosts/$HOST/etc

that adds to or overwrites these files. If a file is updated locally,  
it is committed back to the correct module.


CVS (quite reasonably) won't checkout 2 modules to the same working  
directory.


Filemodes  symlinks


CVS only works with regular files, and doesn't preserve permissions.  
I can work around this with mtree(8) and module programs, but it  
would be nice to have it built-in.


So... has anyone come up with a neat way to do these things in CVS,  
or an SCM system that does it better?


Thanks
Rob.

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


Re: replacing port in outgoing packets to any host

2007-02-25 Thread Lowell Gilbert
ck [EMAIL PROTECTED] writes:

 Hello, participants!

 In constant effort to prevent trojans to send spam following question
 came to my mind.

 Is there any way to replace port number for all outgoing packets?

 Long version:

 I want to block outgoing port 25 completely for network behind NAT
 router and allow port 8025 for example. But it means that router will
 have to replace outgoing port 8025 with port 25. After intensive
 googling it looks like my idea is... well... not popular. So, I just
 wonder if this is possible at all? Something like this:

If it *were* popular, the spammers' viruses would be taught to use
it.  None of these kinds of solutions are scalable.

 rdr any to any port 8025 - any port 25

 PS Yes, I know that I can redirect port to open-relay on known static IP.

You can do something like that, but once you're going to that much
effort, it's a lot easier (*and* more effective) to just force
everyone to use an internal smarthost.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: burning a cd or dvd doesn't work

2007-02-25 Thread Patrick Bowen

Dino Vliet wrote:

Hi folks,

I thought I followed all the steps in the handbook to try to burn a cd or dvd 
from my freebsd 6.1 amd64 system but these commands show the problems I'm 
experiencing:

[EMAIL PROTECTED] /usr/ports/devel/g-wrap]# camcontrol devlist
LITE-ON DVD SOHD-16P9S FS09  at scbus1 target 0 lun 0 (cd0,pass0)
PHILIPS DVDR1640P P3.4   at scbus1 target 1 lun 0 (cd1,pass1)

[EMAIL PROTECTED] /usr/ports/devel/g-wrap]# cdrecord dev=1,1,0 -checkdrive
Cdrecord-Clone 2.01 (amd64-unknown-freebsd6.1) Copyright (C) 1995-2004 J�rg 
Schilling
scsidev: '1,1,0'
scsibus: 1 target: 1 lun: 0
cdrecord: Operation not permitted. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

[EMAIL PROTECTED] /usr/ports/devel/g-wrap]# cdrecord -scanbus
Cdrecord-Clone 2.01 (amd64-unknown-freebsd6.1) Copyright (C) 1995-2004 J�rg 
Schilling
cdrecord: Operation not permitted. Error opening /dev/pass0 Cam error 
'cam_real_open_device: couldn't open passthr. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

[EMAIL PROTECTED] /usr/ports/devel/g-wrap]# dmesg | grep cd1
acd1: DVDR PHILIPS DVDR1640P/P3.4 at ata1-slave UDMA33
cd1 at ata1 bus 0 target 1 lun 0
cd1: PHILIPS DVDR1640P P3.4 Removable CD-ROM SCSI-0 device 
cd1: 33.000MB/s transfers

cd1: Attempt to query device size failed: NOT READY, Medium not present


What am I missing?








 


Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

  


You'll probably need to load the atapicam module.

   kldload atapicam

as root, of course.

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


Re: problem building g-wrap

2007-02-25 Thread [EMAIL PROTECTED]

On 25/02/07, Dino Vliet [EMAIL PROTECTED] wrote:

Hi folks,

I'm experiencing problems when building g-wrap on my
amd64 system running freebsd 6.1 after I try to install
gnucash2. The error I get is:

configure: error: libffi has not been ported to amd64-portbld-freebsd6.1.
configure: error: /bin/sh './configure' failed for libffi

massive tail trimmed

Rather simply, either wait for devel/libffi to be ported to amd64
or use i386 instead of amd64.

from ports/devel/libffi/Makefile:
BROKEN= Configure fails on !i386 and !alpha

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


ffmpeg build fails

2007-02-25 Thread Andriy Babiy
Hi all.

Is anyone else experiencing this problem? What can I do to avoid it? Thank 
you very much in advance for advices.

Andriy


S01060014bf5ee711# uname -a
FreeBSD S01060014bf5ee711 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Thu Feb 22 
00:43:46 PST 2007 root@:/usr/obj/usr/src/sys/KRNSTABLE  amd64

==
gmake[1]: Entering directory 
`/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1/libavformat'
cc -O3 -Wall -fPIC -DPIC -I/usr/local/include  -I/usr/X11R6/include  
-fomit-frame-pointer -fno-unit-at-a-time -I.. 
-I/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1 
-I/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1/libavcodec 
-DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c 
-o 
audio.o audio.c
audio.c:24:27: sys/soundcard.h: No such file or directory
audio.c: In function `audio_open':
audio.c:81: error: `SNDCTL_DSP_GETFMTS' undeclared (first use in this 
function)
audio.c:81: error: (Each undeclared identifier is reported only once
audio.c:81: error: for each function it appears in.)
audio.c:92: error: `AFMT_S16_LE' undeclared (first use in this function)
audio.c:94: error: `AFMT_S16_BE' undeclared (first use in this function)
audio.c:113: error: `SNDCTL_DSP_SETFMT' undeclared (first use in this 
function)
audio.c:120: error: `SNDCTL_DSP_STEREO' undeclared (first use in this 
function)
audio.c:129: error: `SNDCTL_DSP_SPEED' undeclared (first use in this 
function)
audio.c: In function `audio_read_packet':
audio.c:243: error: storage size of 'abufi' isn't known
audio.c:279: error: `SNDCTL_DSP_GETISPACE' undeclared (first use in this 
function)
audio.c:243: warning: unused variable `abufi'
gmake[1]: *** [audio.o] Error 1
gmake[1]: Leaving directory 
`/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1/libavformat'
gmake: *** [lib] Error 2
*** Error code 2

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


Re: kernel panic at boot on any 6.x OS

2007-02-25 Thread Joe Auty

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On Feb 25, 2007, at 5:46 AM, Daan Vreeken [PA4DAN] wrote:


On Sunday 25 February 2007 08:59, Kip Macy wrote:

It looks as if you've hit a device driver that is trying to print out
a null string. The message you've given doesn't provide any more
information than that. If you install a snapshot kernel it will
probably have ddb compiled in which will allow you to at least get a
backtrace. I'm sorry you're having trouble.


Grepping the source tree on 6.2-RELEASE shows this message can only  
have com

from one place : sys/kern/kern_conf.c in the function prep_cdevsw() :

if (devsw-d_version != D_VERSION_01) {
printf(
WARNING: Device driver \%s\ has wrong  
version %s\n,

devsw-d_name == NULL ? ??? : devsw-d_name,
and is disabled.  Recompile KLD module.);

Looks like the kernel and the modules are out of sync.



Any idea how this could have happened after disabling everything in  
my /etc/loader.conf, and simply running a:


make buildworld
make buildkernel KERNCONF=myconfig
make installkernel KERNCONF=myconfig


Shouldn't this have installed a fresh kernel plus only essential  
modules?


Here is a diff of my kernel config (which I've called, rather  
uncreatively, 6.x) against GENERIC:


nothing unusual, just IPFIREWALL and Linux compat stuff, right?



# diff 6.x GENERIC
19c19
 # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.7.2.2 2006/05/01  
00:15:12 scottl Exp $

- ---
 # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.13 2006/10/09  
18:41:36 simon Exp $

30,42c30
 options IPFIREWALL
 options IPFIREWALL_VERBOSE
 options IPFIREWALL_VERBOSE_LIMIT=10
 options IPFIREWALL_DEFAULT_TO_ACCEPT
 options IPDIVERT
 #options VFS_AIO
 #options HZ=1200
 #options SMP # Symmetric MultiProcessor  
Kernel

 #device  pf
 #device  pflog
 #device  pfsync
 options COMPAT_LINUX
 options BRIDGE
- ---
 makeoptions   DEBUG=-g# Build kernel with gdb(1)  
debug symbols

44,49d31
 # Enable the linux-like proc filesystem support (requires  
COMPAT_LINUX and PSEUDOFS)

 options LINPROCFS

 #makeoptions  DEBUG=-g# Build kernel with gdb(1)  
debug symbols


 #options  SCHED_ULE   # ULE scheduler
77,80d58
 options   AHC_REG_PRETTY_PRINT# Print register bitfields in  
debug

   # output.  Adds ~128k to driver.
 options   AHD_REG_PRETTY_PRINT# Print register bitfields in  
debug

   # output.  Adds ~215k to driver.
103a82,83
 options   AHC_REG_PRETTY_PRINT# Print register bitfields  
in debug
   # output.  Adds ~128k to  
driver.

104a85,86
 options   AHD_REG_PRETTY_PRINT# Print register bitfields  
in debug
   # output.  Adds ~215k to  
driver.

226a209
 devicestge# Sundance/Tamarack TC9021  
gigabit Ethernet

248a232,234
 devicewlan_wep# 802.11 WEP support
 devicewlan_ccmp   # 802.11 CCMP support
 devicewlan_tkip   # 802.11 TKIP support
249a236,238
 deviceath # Atheros pci/cardbus NIC's
 deviceath_hal # Atheros HAL (Hardware  
Access Layer)
 deviceath_rate_sample # SampleRate tx rate control  
for ath










On 2/24/07, Joe Auty [EMAIL PROTECTED] wrote:

Hello,

(sorry, don't know whether kernel problems should go to questions or
hackers, or both)..

This has been a long-standing problem of mine, but I always ignored
it hoping it would go away on its own with a future 6.x release, but
it remains...

No matter whether I boot into safe mode or regular mode, with all
kernel extensions disabled in /boot/loader.conf, I get the following
panic late at boot of a fresh RELENG_6_2 kernel (with only a few
services left to bring up). The 6.x kernels I've tried all build and
installed cleanly without any errors...


WARNING: Device driver 

Fatal trap 12: page fault while in kernel mode
fault virtual address = 0x40
fault code = supervisor read, page not present
instruction pointer = 0x20:0xc06d4614
stack pointer = 0x28:0xf015491c
frame pointer = 0x28:0xf015491c
code segment = base 0x0, limit 0xff, type 0x1b
   = DPL 0, pres 1, def32 1, gran 1
processor eflags = interupt enabled, resume, IOPL = 0
current process = 898 (kldload)
trap number = 12
panic: page fault
uptime: 36s
cannot dump. No dump device defined
automatic reboot in 15 seconds


This problem does not occur within any 5.x OS for me. I would
certainly like to resolve this issue now, but this sort of debugging
is over my head beyond running fsck (which I've tried). Any ideas  
here?


Thanks in advance for your help!





---
Joe Auty

Re: kernel panic at boot on any 6.x OS

2007-02-25 Thread Joe Auty

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On Feb 25, 2007, at 11:14 AM, Joe Auty wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On Feb 25, 2007, at 5:46 AM, Daan Vreeken [PA4DAN] wrote:


On Sunday 25 February 2007 08:59, Kip Macy wrote:
It looks as if you've hit a device driver that is trying to print  
out

a null string. The message you've given doesn't provide any more
information than that. If you install a snapshot kernel it will
probably have ddb compiled in which will allow you to at least get a
backtrace. I'm sorry you're having trouble.


Grepping the source tree on 6.2-RELEASE shows this message can  
only have com

from one place : sys/kern/kern_conf.c in the function prep_cdevsw() :

if (devsw-d_version != D_VERSION_01) {
printf(
WARNING: Device driver \%s\ has wrong  
version %s\n,

devsw-d_name == NULL ? ??? : devsw-d_name,
and is disabled.  Recompile KLD module.);

Looks like the kernel and the modules are out of sync.



Any idea how this could have happened after disabling everything in  
my /etc/loader.conf, and simply running a:


make buildworld
make buildkernel KERNCONF=myconfig
make installkernel KERNCONF=myconfig


Shouldn't this have installed a fresh kernel plus only essential  
modules?


Here is a diff of my kernel config (which I've called, rather  
uncreatively, 6.x) against GENERIC:


nothing unusual, just IPFIREWALL and Linux compat stuff, right?



Forgot to add that I believe I've also tried building a GENERIC  
kernel and ran into this same problem. It's been a while since I  
tried this though, so I'll gladly try this again if you think it  
would be a useful test! =)










# diff 6.x GENERIC
19c19
 # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.7.2.2 2006/05/01  
00:15:12 scottl Exp $

- ---
 # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.13 2006/10/09  
18:41:36 simon Exp $

30,42c30
 options IPFIREWALL
 options IPFIREWALL_VERBOSE
 options IPFIREWALL_VERBOSE_LIMIT=10
 options IPFIREWALL_DEFAULT_TO_ACCEPT
 options IPDIVERT
 #options VFS_AIO
 #options HZ=1200
 #options SMP # Symmetric  
MultiProcessor Kernel

 #device  pf
 #device  pflog
 #device  pfsync
 options COMPAT_LINUX
 options BRIDGE
- ---
 makeoptions   DEBUG=-g# Build kernel with gdb(1)  
debug symbols

44,49d31
 # Enable the linux-like proc filesystem support (requires  
COMPAT_LINUX and PSEUDOFS)

 options LINPROCFS

 #makeoptions  DEBUG=-g# Build kernel with gdb(1)  
debug symbols


 #options  SCHED_ULE   # ULE scheduler
77,80d58
 options   AHC_REG_PRETTY_PRINT# Print register bitfields  
in debug
   # output.  Adds ~128k to  
driver.
 options   AHD_REG_PRETTY_PRINT# Print register bitfields  
in debug
   # output.  Adds ~215k to  
driver.

103a82,83
 options   AHC_REG_PRETTY_PRINT# Print register bitfields  
in debug
   # output.  Adds ~128k to  
driver.

104a85,86
 options   AHD_REG_PRETTY_PRINT# Print register bitfields  
in debug
   # output.  Adds ~215k to  
driver.

226a209
 devicestge# Sundance/Tamarack TC9021  
gigabit Ethernet

248a232,234
 devicewlan_wep# 802.11 WEP support
 devicewlan_ccmp   # 802.11 CCMP support
 devicewlan_tkip   # 802.11 TKIP support
249a236,238
 deviceath # Atheros pci/cardbus NIC's
 deviceath_hal # Atheros HAL (Hardware  
Access Layer)
 deviceath_rate_sample # SampleRate tx rate  
control for ath










On 2/24/07, Joe Auty [EMAIL PROTECTED] wrote:

Hello,

(sorry, don't know whether kernel problems should go to  
questions or

hackers, or both)..

This has been a long-standing problem of mine, but I always ignored
it hoping it would go away on its own with a future 6.x release,  
but

it remains...

No matter whether I boot into safe mode or regular mode, with all
kernel extensions disabled in /boot/loader.conf, I get the  
following

panic late at boot of a fresh RELENG_6_2 kernel (with only a few
services left to bring up). The 6.x kernels I've tried all build  
and

installed cleanly without any errors...


WARNING: Device driver 

Fatal trap 12: page fault while in kernel mode
fault virtual address = 0x40
fault code = supervisor read, page not present
instruction pointer = 0x20:0xc06d4614
stack pointer = 0x28:0xf015491c
frame pointer = 0x28:0xf015491c
code segment = base 0x0, limit 0xff, type 0x1b
   = DPL 0, pres 1, def32 1, gran 1
processor eflags = interupt enabled, resume, IOPL = 0
current process = 898 (kldload)
trap number = 12
panic: page fault
uptime: 

Re: how to run root cmds when starting xorg?

2007-02-25 Thread Norberto Meijome
On Sun, 25 Feb 2007 00:24:49 +0100
[EMAIL PROTECTED] wrote:

 From: [EMAIL PROTECTED]
 To: freebsd-questions@freebsd.org
 Subject: how to run root cmds when starting xorg?
 Date: Sun, 25 Feb 2007 00:24:49 +0100
 Sender: [EMAIL PROTECTED]
 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
 
 how do i exec a kldload script when starting ttyv8 kdm (or xorg) ?

modify the xorg or kdm  startup script? 

why do you need such thing?

_
{Beto|Norberto|Numard} Meijome

The greater danger for most of us is not that our aim is too high and we miss
it. But that it is too low... and we reach it.
   Michelangelo (1475-1564)

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: Using source control to manage system configs

2007-02-25 Thread Giorgos Keramidas
On 2007-02-26 07:01, Rob [EMAIL PROTECTED] wrote:
 Dear List,
 
 I'd like some advice on managing config files on multiple servers  
 with a source control system. The idea is to update files locally,  
 and commit them back to a central repository.
 
 I know that CVS is the usual choice, but there are a couple of things  
 that I can't get CVS to do.
 
 Overlapping directories
 ---
 
 Some files (/etc/ntp.conf, /etc/resolv.conf) are identical across a  
 site. Instead of duplicating these in the repository, I'd like to  
 create a module like
 
   hosts/shared/etc
 
 that gets installed on every server.
 
 Then each server has a module like
 
   hosts/$HOST/etc
 
 that adds to or overwrites these files. If a file is updated locally,  
 it is committed back to the correct module.
 
 CVS (quite reasonably) won't checkout 2 modules to the same working  
 directory.
 
 Filemodes  symlinks
 
 
 CVS only works with regular files, and doesn't preserve permissions.  
 I can work around this with mtree(8) and module programs, but it  
 would be nice to have it built-in.
 
 So... has anyone come up with a neat way to do these things in CVS,  
 or an SCM system that does it better?

With modern SCM systems, which support easy distribution and update
tracking over distributed collections of 'workspaces', it's very
tempting to attempt to do this.

I'm still not convinced it's a good idea though.  I prefer a more
controlled model of a workspace hierarchy where changes are made by
trusted people and then a separate install process, which publishes,
or pushes if you prefer, the modified files to the deployment hosts.

I know this is now the answer you are looking for, but when evaluating
this sort of thing even a don't do it option should be evaluated.

- Giorgos

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


databases/clip doesn't build

2007-02-25 Thread Wojciech Puchar

fails on gtkextra and says that /usr/local/bin/gtk12-config doesn't exist

gtk12-config is here:


gtk12-config is hashed (/usr/X11R6/bin/gtk12-config)


what's wrong?


Script started on Sun Feb 25 23:56:13 2007
[EMAIL PROTECTED] /usr/ports/databases/clip]# make
===   clip-1.1.16.1_1 depends on executable in : bash - found
===   clip-1.1.16.1_1 depends on executable in : wget - found
===   clip-1.1.16.1_1 depends on executable in : xmkmf - found
===   clip-1.1.16.1_1 depends on executable in : gmake - found
===   clip-1.1.16.1_1 depends on executable in : bison - found
===   clip-1.1.16.1_1 depends on file: /usr/local/bin/intltool-extract - found
===   clip-1.1.16.1_1 depends on executable in : pkg-config - found
===   clip-1.1.16.1_1 depends on shared library: jpeg.9 - found
===   clip-1.1.16.1_1 depends on shared library: png.5 - found
===   clip-1.1.16.1_1 depends on shared library: freetype.9 - found
===   clip-1.1.16.1_1 depends on shared library: gtkextra.17 - not found
===Verifying install for gtkextra.17 in /usr/ports/x11-toolkits/gtkextra
===  Vulnerability check disabled, database not found
===  Extracting for gtkextra-0.99.17_2
= MD5 Checksum OK for gtk+extra-0.99.17.tar.gz.
= SHA256 Checksum OK for gtk+extra-0.99.17.tar.gz.
===  Patching for gtkextra-0.99.17_2
===  Applying FreeBSD patches for gtkextra-0.99.17_2
===   gtkextra-0.99.17_2 depends on executable in : gmake - found
===   gtkextra-0.99.17_2 depends on file: /usr/local/bin/libtool - found
===   gtkextra-0.99.17_2 depends on executable in : pkg-config - found
===   gtkextra-0.99.17_2 depends on shared library: glib-12.3 - found
===   gtkextra-0.99.17_2 depends on shared library: gtk-12.2 - found
===   gtkextra-0.99.17_2 depends on shared library: X11.6 - found
===  Configuring for gtkextra-0.99.17_2
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking whether gmake sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking whether build environment is sane... yes
checking for gcc... cc
checking whether the C compiler (cc -O2 -fno-strict-aliasing -pipe 
-march=pentium3 ) works... yes
checking whether the C compiler (cc -O2 -fno-strict-aliasing -pipe 
-march=pentium3 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for POSIXized ISC... no
checking for cc option to accept ANSI C... none needed
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking whether gmake sets ${MAKE}... (cached) yes
checking host system type... i386-portbld-freebsd6.2
checking build system type... i386-portbld-freebsd6.2
checking for ranlib... ranlib
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions ... no
checking if cc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... freebsd6.2 ld.so
checking if libtool supports shared libraries... yes

*** Warning: the command libtool uses to detect shared libraries,
*** /usr/bin/file, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@gnu.org

checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i386-portbld-freebsd6.2
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for working const... yes
checking for unistd.h... yes
checking for dirent.h... yes
checking 

Re: databases/clip doesn't build

2007-02-25 Thread Garrett Cooper

Wojciech Puchar wrote:

fails on gtkextra and says that /usr/local/bin/gtk12-config doesn't exist

gtk12-config is here:


gtk12-config is hashed (/usr/X11R6/bin/gtk12-config)


what's wrong?


Script started on Sun Feb 25 23:56:13 2007
[EMAIL PROTECTED] /usr/ports/databases/clip]# make
===   clip-1.1.16.1_1 depends on executable in : bash - found
===   clip-1.1.16.1_1 depends on executable in : wget - found
===   clip-1.1.16.1_1 depends on executable in : xmkmf - found
===   clip-1.1.16.1_1 depends on executable in : gmake - found
===   clip-1.1.16.1_1 depends on executable in : bison - found
===   clip-1.1.16.1_1 depends on file: /usr/local/bin/intltool-extract 
- found

===   clip-1.1.16.1_1 depends on executable in : pkg-config - found
===   clip-1.1.16.1_1 depends on shared library: jpeg.9 - found
===   clip-1.1.16.1_1 depends on shared library: png.5 - found
===   clip-1.1.16.1_1 depends on shared library: freetype.9 - found
===   clip-1.1.16.1_1 depends on shared library: gtkextra.17 - not found
===Verifying install for gtkextra.17 in 
/usr/ports/x11-toolkits/gtkextra

===  Vulnerability check disabled, database not found
===  Extracting for gtkextra-0.99.17_2
= MD5 Checksum OK for gtk+extra-0.99.17.tar.gz.
= SHA256 Checksum OK for gtk+extra-0.99.17.tar.gz.
===  Patching for gtkextra-0.99.17_2
===  Applying FreeBSD patches for gtkextra-0.99.17_2
===   gtkextra-0.99.17_2 depends on executable in : gmake - found
===   gtkextra-0.99.17_2 depends on file: /usr/local/bin/libtool - found
===   gtkextra-0.99.17_2 depends on executable in : pkg-config - found
===   gtkextra-0.99.17_2 depends on shared library: glib-12.3 - found
===   gtkextra-0.99.17_2 depends on shared library: gtk-12.2 - found
===   gtkextra-0.99.17_2 depends on shared library: X11.6 - found
===  Configuring for gtkextra-0.99.17_2
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c -o root -g 
wheel

checking whether build environment is sane... yes
checking whether gmake sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking whether build environment is sane... yes
checking for gcc... cc
checking whether the C compiler (cc -O2 -fno-strict-aliasing -pipe 
-march=pentium3 ) works... yes
checking whether the C compiler (cc -O2 -fno-strict-aliasing -pipe 
-march=pentium3 ) is a cross-compiler... no

checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for POSIXized ISC... no
checking for cc option to accept ANSI C... none needed
checking for a BSD compatible install... /usr/bin/install -c -o root -g 
wheel

checking whether gmake sets ${MAKE}... (cached) yes
checking host system type... i386-portbld-freebsd6.2
checking build system type... i386-portbld-freebsd6.2
checking for ranlib... ranlib
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.lo... yes
checking if cc supports -fno-rtti -fno-exceptions ... no
checking if cc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... freebsd6.2 ld.so
checking if libtool supports shared libraries... yes

*** Warning: the command libtool uses to detect shared libraries,
*** /usr/bin/file, produces output that libtool cannot recognize.
*** The result is that libtool may fail to recognize shared libraries
*** as such.  This will affect the creation of libtool libraries that
*** depend on shared libraries, but programs linked with such libtool
*** libraries will work regardless of this problem.  Nevertheless, you
*** may want to report the problem to your system manager and/or to
*** bug-libtool@gnu.org

checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i386-portbld-freebsd6.2
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for working const... yes
checking for unistd.h... yes

Re: ffmpeg build fails

2007-02-25 Thread Martin Tournoij
On Sun 25 Feb 2007 13:02, Andriy Babiy wrote:
 Hi all.
 
 Is anyone else experiencing this problem? What can I do to avoid it? Thank 
 you very much in advance for advices.
 
 Andriy
 
 
 S01060014bf5ee711# uname -a
 FreeBSD S01060014bf5ee711 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Thu Feb 22 
 00:43:46 PST 2007 root@:/usr/obj/usr/src/sys/KRNSTABLE  amd64
 
 ==
 gmake[1]: Entering directory 
 `/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1/libavformat'
 cc -O3 -Wall -fPIC -DPIC -I/usr/local/include  -I/usr/X11R6/include  
 -fomit-frame-pointer -fno-unit-at-a-time -I.. 
 -I/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1 
 -I/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1/libavcodec 
 -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE 
 -c -o 
 audio.o audio.c
 audio.c:24:27: sys/soundcard.h: No such file or directory
 audio.c: In function `audio_open':
 audio.c:81: error: `SNDCTL_DSP_GETFMTS' undeclared (first use in this 
 function)
 audio.c:81: error: (Each undeclared identifier is reported only once
 audio.c:81: error: for each function it appears in.)
 audio.c:92: error: `AFMT_S16_LE' undeclared (first use in this function)
 audio.c:94: error: `AFMT_S16_BE' undeclared (first use in this function)
 audio.c:113: error: `SNDCTL_DSP_SETFMT' undeclared (first use in this 
 function)
 audio.c:120: error: `SNDCTL_DSP_STEREO' undeclared (first use in this 
 function)
 audio.c:129: error: `SNDCTL_DSP_SPEED' undeclared (first use in this 
 function)
 audio.c: In function `audio_read_packet':
 audio.c:243: error: storage size of 'abufi' isn't known
 audio.c:279: error: `SNDCTL_DSP_GETISPACE' undeclared (first use in this 
 function)
 audio.c:243: warning: unused variable `abufi'
 gmake[1]: *** [audio.o] Error 1
 gmake[1]: Leaving directory 
 `/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1/libavformat'
 gmake: *** [lib] Error 2
 *** Error code 2
 
 Stop in /usr/ports/multimedia/ffmpeg.

ffmpeg can't find /usr/include/sys/soundcard.h
Did you delete /usr/include?

You can extract the 6.2 base tarball into annother directory (for
example /usr/base) and then copy /usr/base/usr/include to
/usr/include.

Or you can copy the files from the freebsd source...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


compiling always generates fast code?

2007-02-25 Thread deeptech71
Do you get processor-specific code when you do buildworld and buildkernel, 
particularly on a -RELEASE?


Does building from ports always automatically optimize code (vs packages)?

Do I need to strip some files after the compilation (world, kernel, ports) to 
get the absolute maximum performance?


Any other tips to speed up executables?

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


Re: how to run root cmds when starting xorg?

2007-02-25 Thread deeptech71

Norberto Meijome wrote:

On Sun, 25 Feb 2007 00:24:49 +0100
[EMAIL PROTECTED] wrote:


From: [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Subject: how to run root cmds when starting xorg?
Date: Sun, 25 Feb 2007 00:24:49 +0100
Sender: [EMAIL PROTECTED]
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)

how do i exec a kldload script when starting ttyv8 kdm (or xorg) ?


modify the xorg or kdm  startup script? 


Xorg's xinitrc is a user script. Or does one of the X server or client thing 
start as root? If so, which script runs? xinitrc didnt work..

./kdm -nodaemon: exactly which one (if any) executed as root?


why do you need such thing?


I want to load sound support only when in a desktop environment, and 
auto-disable it when moving back to a console. That is, I need a script that 
loads sound when starting, and unloads when exiting kdm.

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


Re: how to run root cmds when starting xorg?

2007-02-25 Thread Tore Lund
[EMAIL PROTECTED] wrote:
 Norberto Meijome wrote:
 On Sun, 25 Feb 2007 00:24:49 +0100
 [EMAIL PROTECTED] wrote:

 From: [EMAIL PROTECTED]
 To: freebsd-questions@freebsd.org
 Subject: how to run root cmds when starting xorg?
 Date: Sun, 25 Feb 2007 00:24:49 +0100
 Sender: [EMAIL PROTECTED]
 User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)

 how do i exec a kldload script when starting ttyv8 kdm (or xorg) ?
 modify the xorg or kdm  startup script? 
 
 Xorg's xinitrc is a user script. Or does one of the X server or client thing 
 start as root? If so, which script runs? xinitrc didnt work..
 ./kdm -nodaemon: exactly which one (if any) executed as root?

The startup script is /usr/X11R6/lib/X11/xdm/Xsetup_0.  You may also
want to have a look at /usr/X11R6/lib/X11/xdm/Xsession.  This latter
file will call up ~/.xsession, which is where we normally put commands
at the beginning of an X session called up through xdm.  What I do in
that file is to call nvidia-settings and display a background image.  I
guess ~/.xsession is the right place to put a kldload - this file may be
simply a symlink to .xinitrc (if the setup you want is in this file).

 why do you need such thing?
 
 I want to load sound support only when in a desktop environment, and 
 auto-disable it when moving back to a console. That is, I need a script that 
 loads sound when starting, and unloads when exiting kdm.

Okay, when you revert to the console, /usr/X11R6/lib/X11/xdm/Xreset may
be the right place to put a kldunload.  Or maybe you could use
GiveConsole and TakeConsole (in the same directory) to accomplish these
tasks.  I hope more expert users will chime in with more information
about the difference between these various command files.

Have a look at man xdm as well as /usr/X11R6/lib/X11/xdm/xdm-config.

For some reason, not many users appear to use xdm.  The majority
apparently prefer kdm or gdm or just .xinitrc.  I find that odd myself.
-- 
Tore


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


pf and keep/modulate state on 6.2

2007-02-25 Thread J.D. Bronson
I was noticing sporadic FTP transfers DOWN to my fbsd 6.2 machine 
over my DSL line...it would go/pause/go/pause - just a bit, but 
overall slowed the transfers down quite a bit.


I looked at my pf.conf file and changed MODULATE state to KEEP state
in all places and my issues went awayfast clean consistent downloads.

If I changed it back...the issues came back.

is this expected behavior? - the machine is a p4-3.06 with 1GB ram 
and hardly doing anything but PPPoE and pf with NAT.


Anyone have any comments they could share?

-JD

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


Re: Could we get the FreeBSD torrent servers back?

2007-02-25 Thread Ted Mittelstaedt

- Original Message - 
From: Chris Slothouber [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Sent: Saturday, February 24, 2007 10:02 PM
Subject: Re: Could we get the FreeBSD torrent servers back?


 Ted Mittelstaedt wrote:
  - Original Message - 
  From: Andrew Lentvorski [EMAIL PROTECTED]
  To: freebsd-questions@freebsd.org
  Sent: Saturday, February 24, 2007 6:38 PM
  Subject: Could we get the FreeBSD torrent servers back?
 
 
  Can we please get the FreeBSD torrent tracker and/or server back?
 
  (snip)
 
 
  Nobody pays the mirrors for their bandwidth.  They are hosting and
  paying for the bandwidth out of the goodness of their hearts.
 
  Nothing is stopping you from setting up your own torrent server on a big
  fast
  pipe that everyone else can use, and not pay you for.
 
  I don't know for sure how other ISP's do it but we definitely use
  bandwidth limitations on the servers we host, customers that pay a lot
  get a lot, customers that pay less get less, and the freebie servers
  get whatever is left over after the paying customers have had their
fill.
 
  (snip)
 
  I would suspect if you examined the financing scheme used for the Linux
  download servers you would find that it is quite different than FreeBSD.

 But isn't the whole point of peer to peer file distribution to
 *distribute* the bandwidth requirements to the point that the costs
 involved for each of the individual peers is trivial but the client
 receiving the file still obtains full speed of a direct download?

Most of the time the way peer-to-peer filesharing is used, the point is to
hide the sources of the streams, in order to distribute illicit material.

What your talking about only works if you have a large group of FreeBSD
volunteers
that are willing to run the torrent servers.  Let's assume that only 0.01%
of any
population group would step up to the plate to offer a torrent server.  Well
I can see a Linux torrent network working because Linux has an order of
magnitude
greater number of users than FreeBSD.  But I think you would find it
impossible
to recruit something like 1000 FreeBSD users to step up to the plate and
offer a torrent server.  The population numbers just aren't there.  Worse,
the
initial people that offer the server are going to get the brunt of the load
and
you can't give them any guarentee that your going to be able to recruit
future
torrent servers to lessen the work on them.

Like out-of-control-broadcating on an Ethernet nework, sometimes in
networking
things just coalesce out of nowhere when the network gets large enough.  I
don't
think we have enough FreeBSD users in the population to depend on things
like
this just appearing by themselves.

FreeBSD came to the grow big or grow well crossroads many years ago and
took the grow well path.  Linux took the grow big path.  It is very much
like
what happened to MacOS and Windows.  One grew big, the other grew well.
Today, though, neither can really change.  FreeBSD can no more displace
Linux
in terms of numbers and in terms of newbies using it, than Linux could
displace
FreeBSD in terms of being able to be usable for commercial products, or
displace
FreeBSD in terms of being able to collect the absolute best developers in
the
industry.  I think the Open Source world is much better off for this
happening since
it gives more different choices for the consumers, but by the same coin your
going to be frustrated if you try to make FreeBSD look, walk and talk just
like
Linux.

Ted

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


Re: kernel panic at boot on any 6.x OS

2007-02-25 Thread Ted Mittelstaedt

- Original Message - 
From: Joe Auty [EMAIL PROTECTED]
To: Daan Vreeken [PA4DAN] [EMAIL PROTECTED]
Cc: Kip Macy [EMAIL PROTECTED]; freebsd-questions@freebsd.org;
freebsd-hackers@freebsd.org
Sent: Sunday, February 25, 2007 8:14 AM
Subject: Re: kernel panic at boot on any 6.x OS



 Any idea how this could have happened after disabling everything in
 my /etc/loader.conf, and simply running a:

 make buildworld
 make buildkernel KERNCONF=myconfig
 make installkernel KERNCONF=myconfig


well your supposed to do this single-user, run mergemaster and a few other
things.
I also don't see a make installworld.

Joe, please try booting from a 6.2-release install ISO.  If it works without
panicing,
then you did something wrong during the upgrade.

Since by your own admission your not an expert, you would be well advised
to simply back up your files the old fashioned way, reformat your hard disk,
install from a 6.2 boot ISO, then restore your files.  Leave the fancy
in-place
updating to someone else.  It's a big PIA and doesen't work half the time
anyway.

Ted

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


Re: Could we get the FreeBSD torrent servers back?

2007-02-25 Thread Jeff Mohler

Oh ya..i agree.  I was being a futurist, not a realist.


On 2/25/07, Ted Mittelstaedt [EMAIL PROTECTED] wrote:



- Original Message -
From: Chris Slothouber [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Sent: Saturday, February 24, 2007 10:02 PM
Subject: Re: Could we get the FreeBSD torrent servers back?


 Ted Mittelstaedt wrote:
  - Original Message -
  From: Andrew Lentvorski [EMAIL PROTECTED]
  To: freebsd-questions@freebsd.org
  Sent: Saturday, February 24, 2007 6:38 PM
  Subject: Could we get the FreeBSD torrent servers back?
 
 
  Can we please get the FreeBSD torrent tracker and/or server back?
 
  (snip)
 
 
  Nobody pays the mirrors for their bandwidth.  They are hosting and
  paying for the bandwidth out of the goodness of their hearts.
 
  Nothing is stopping you from setting up your own torrent server on a
big
  fast
  pipe that everyone else can use, and not pay you for.
 
  I don't know for sure how other ISP's do it but we definitely use
  bandwidth limitations on the servers we host, customers that pay a lot
  get a lot, customers that pay less get less, and the freebie servers
  get whatever is left over after the paying customers have had their
fill.
 
  (snip)
 
  I would suspect if you examined the financing scheme used for the
Linux
  download servers you would find that it is quite different than
FreeBSD.

 But isn't the whole point of peer to peer file distribution to
 *distribute* the bandwidth requirements to the point that the costs
 involved for each of the individual peers is trivial but the client
 receiving the file still obtains full speed of a direct download?

Most of the time the way peer-to-peer filesharing is used, the point is to
hide the sources of the streams, in order to distribute illicit material.

What your talking about only works if you have a large group of FreeBSD
volunteers
that are willing to run the torrent servers.  Let's assume that only 0.01%
of any
population group would step up to the plate to offer a torrent
server.  Well
I can see a Linux torrent network working because Linux has an order of
magnitude
greater number of users than FreeBSD.  But I think you would find it
impossible
to recruit something like 1000 FreeBSD users to step up to the plate and
offer a torrent server.  The population numbers just aren't there.  Worse,
the
initial people that offer the server are going to get the brunt of the
load
and
you can't give them any guarentee that your going to be able to recruit
future
torrent servers to lessen the work on them.

Like out-of-control-broadcating on an Ethernet nework, sometimes in
networking
things just coalesce out of nowhere when the network gets large enough.  I
don't
think we have enough FreeBSD users in the population to depend on things
like
this just appearing by themselves.

FreeBSD came to the grow big or grow well crossroads many years ago and
took the grow well path.  Linux took the grow big path.  It is very
much
like
what happened to MacOS and Windows.  One grew big, the other grew well.
Today, though, neither can really change.  FreeBSD can no more displace
Linux
in terms of numbers and in terms of newbies using it, than Linux could
displace
FreeBSD in terms of being able to be usable for commercial products, or
displace
FreeBSD in terms of being able to collect the absolute best developers in
the
industry.  I think the Open Source world is much better off for this
happening since
it gives more different choices for the consumers, but by the same coin
your
going to be frustrated if you try to make FreeBSD look, walk and talk just
like
Linux.

Ted

___
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: pf and keep/modulate state on 6.2

2007-02-25 Thread Ted Mittelstaedt
any reason you need to use pf instead of ipfw?

Ted

- Original Message - 
From: J.D. Bronson [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Sent: Sunday, February 25, 2007 2:02 PM
Subject: pf and keep/modulate state on 6.2


 I was noticing sporadic FTP transfers DOWN to my fbsd 6.2 machine
 over my DSL line...it would go/pause/go/pause - just a bit, but
 overall slowed the transfers down quite a bit.

 I looked at my pf.conf file and changed MODULATE state to KEEP state
 in all places and my issues went awayfast clean consistent downloads.

 If I changed it back...the issues came back.

 is this expected behavior? - the machine is a p4-3.06 with 1GB ram
 and hardly doing anything but PPPoE and pf with NAT.

 Anyone have any comments they could share?

 -JD

 ___
 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: Could we get the FreeBSD torrent servers back?

2007-02-25 Thread Joe Holden

Ted Mittelstaedt wrote:
- Original Message - 
From: Chris Slothouber [EMAIL PROTECTED]

To: freebsd-questions@freebsd.org
Sent: Saturday, February 24, 2007 10:02 PM
Subject: Re: Could we get the FreeBSD torrent servers back?



Ted Mittelstaedt wrote:
- Original Message - 
From: Andrew Lentvorski [EMAIL PROTECTED]

To: freebsd-questions@freebsd.org
Sent: Saturday, February 24, 2007 6:38 PM
Subject: Could we get the FreeBSD torrent servers back?



Can we please get the FreeBSD torrent tracker and/or server back?

(snip)


Nobody pays the mirrors for their bandwidth.  They are hosting and
paying for the bandwidth out of the goodness of their hearts.

Nothing is stopping you from setting up your own torrent server on a big
fast
pipe that everyone else can use, and not pay you for.


snip

I would be happy to host torrents.freebsd.org (aswell as the tracker and 
torrents themselves)if no one else has offered.


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


Re: compiling always generates fast code?

2007-02-25 Thread Chuck Swiger

[EMAIL PROTECTED] wrote:
Do you get processor-specific code when you do buildworld and 
buildkernel, particularly on a -RELEASE?


No, not unless you've configured the kernel Makefile and /etc/make.conf to 
include processor-specific CFLAGS.  See /usr/share/examples/etc/make.conf.



Does building from ports always automatically optimize code (vs packages)?


Both ports and packages are optimized at the default level of -O, unless you 
set it otherwise.  The kernel  world are known to be safe building using:


  -O2 -fno-strict-aliasing

Do I need to strip some files after the compilation (world, kernel, 
ports) to get the absolute maximum performance?


Any other tips to speed up executables?


Sure, benchmark performance and make sure you run any self-testing routines 
(make test or make check, usually) when you experiment with non-default 
optimizations.


Pay attention to whether you obtain significant gains by using non-default 
optimizations, because the answer generally varies in different situations and 
on different CPU types.


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


Re: how to run root cmds when starting xorg?

2007-02-25 Thread Tore Lund
Tore Lund wrote:
 The startup script is /usr/X11R6/lib/X11/xdm/Xsetup_0.  You may also
 want to have a look at /usr/X11R6/lib/X11/xdm/Xsession.  This latter
 file will call up ~/.xsession, which is where we normally put commands
 at the beginning of an X session called up through xdm.  What I do in
 that file is to call nvidia-settings and display a background image.  I
 guess ~/.xsession is the right place to put a kldload - this file may be
 simply a symlink to .xinitrc (if the setup you want is in this file).

Correction:  The file where I call nvidia-settings and display a
background image is /usr/X11R6/lib/X11/xdm/Xsetup_0.
-- 
Tore

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


Re: Could we get the FreeBSD torrent servers back?

2007-02-25 Thread Jeffrey Goldberg

On Feb 25, 2007, at 6:50 PM, Ted Mittelstaedt wrote:

What your talking about only works if you have a large group of  
FreeBSD volunteers that are willing to run the torrent servers.   
Let's assume that only 0.01% of any population group would step up  
to the plate to offer a torrent server.  Well I can see a Linux  
torrent network working because Linux has an order of magnitude  
greater number of users than FreeBSD.  But I think you would find  
it impossible to recruit something like 1000 FreeBSD users to step  
up to the plate and offer a torrent server.  The population numbers  
just aren't there.


I've never used a file sharing system, so my understanding of things  
is limited, but that won't stop me from voicing opinions.


As far as I understand how these things work, if you join a file  
sharing network for download, you are 95% of the way to setting  
yourself up as a server.  Remember, it isn't so much as a client/ 
server set-up as a peer-to-peer setup.  There may be plenty of BSD  
users who already use torrents for other things, and so could easily  
add sharing of the ISOs.  So the participation rate might be  
substantially larger than 0.01%.


Worse, the initial people that offer the server are going to get  
the brunt of the load and you can't give them any guarentee that  
your going to be able to recruit future torrent servers to lessen  
the work on them.


The way this sort of problem is generally solved is to have people  
make commitments of the form


  I will do X if at least N other people commit to doing X.

Someone has to keep track of those commitments (I'm *not*  
volunteering) but there is this group participation protocol that has  
been used by various volunteer organizations with some success.


-j


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

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


Outlook With FreeBSD IMAP

2007-02-25 Thread Chris Maness
I am using the default FreeBSD IMAP server in FreeBSD.  It works great 
with thunderbird, but Outlook is not able to log in even though I have 
Secure Authentication checked.  Any ideas?



--
Chris Maness
(909) 223-9179
http://www.chrismaness.com

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


Can't make raid array bootable

2007-02-25 Thread odilist
Hi,

I've tried transferring my system (6.0) to an Nvidia hardware raid array
of two SATA drives on an Asus A8N-E motherboard, following the
instructions in the FAQ. I can't seem to use fdisk to make the array
bootable, or to rewrite the master boot record. It claims to write the
information to disk and then, when I check again, nothing has stuck. I
have tried fdisk -B -b ar0, boot0cfg -s 1 ar0, boot0cfg -B ar0, and
probably many other things in the course of the day, but so far I am
rewarded only with:

Invalid partition
Invalid partition
No boot/loader

Boot defaults to an ad(0,a) which doesn't exist.

Further, diskeditor has just started showing two partitions, one which is
the primary of the raid and the other being the array itself. As the raid
section of the handbook says the disk(s) will look like a single drive to
FreeBSD, this concerns me.

Would anyone have any ideas?

Oliver

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


Re: Outlook With FreeBSD IMAP

2007-02-25 Thread Juha Saarinen

On 2/26/07, Chris Maness [EMAIL PROTECTED] wrote:

I am using the default FreeBSD IMAP server in FreeBSD.  It works great
with thunderbird, but Outlook is not able to log in even though I have
Secure Authentication checked.  Any ideas?


Do you mean Secure Password Authentication or SPA? Don't use that, as
it's a Microsoft proprietary authentication method.


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


Re: Outlook With FreeBSD IMAP

2007-02-25 Thread Chris Maness

Juha Saarinen wrote:

On 2/26/07, Chris Maness [EMAIL PROTECTED] wrote:

I am using the default FreeBSD IMAP server in FreeBSD.  It works great
with thunderbird, but Outlook is not able to log in even though I have
Secure Authentication checked.  Any ideas?


Do you mean Secure Password Authentication or SPA? Don't use that, as
it's a Microsoft proprietary authentication method.


How do I use the Cram-MD5 passwords with Outlook?  Or do I have to go 
plain text?


Thanks,

--
Chris Maness
(909) 223-9179
http://www.chrismaness.com

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


Quanta+ freezes after upgrading

2007-02-25 Thread Rico Secada
Hi

Since I upgraded KDE to 3.5.5 Quanta+ always freezes when I try to start it up. 
It doesn't do anything. No errors, just a freeze, and a CPU usage of 97%.

Has anyone else experienced problems with Quanta+ since KDE 3.5.5?

Best regards.

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


services file question

2007-02-25 Thread Steel City Phantom
I have been trying to figure out an issue with my newest bsd server.  i am 
trying to get jboss to run but nothing outside of the local machine can access 
it.  i have been working on this for a while and am completely out of ideas 
except for one, but i need a little information before i start playing

according to tcpdump when another machine goes to ip:8080 to access jboss, the 
packet does not even reach the box.  all i can think of next is the services 
file.  in order for bsd to allow traffic on a specific port, does it have to be 
listed in the services file?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: input/output error on hd

2007-02-25 Thread Ian Smith
On Sun, 25 Feb 2007, Jerry McAllister wrote:
  On Sun, Feb 25, 2007 at 10:38:01AM -0500, Marty Landman wrote:
  
   On 2/24/07, Jerry McAllister [EMAIL PROTECTED] wrote:
   
   
   Well, I think you are past any label problems now and on to the
   bad sectors and/or finding superbocks.Although I am not quite clear
   from above what resulted in the 'INCOMPLETE LABEL...'  message.
   
   
   Ok then, can you point me to somewhere that can learn about superblocks and
   give me an idea of what to do next? 
  
  Most of what I figured out several years ago (and have essentially
  forgotten since) came from the handbook and something I found by
  searching the web that gave the layout of blocks and chains.  I would
  have to go back searching again.

Failing someone who actually knows what they're talking about re UFS
structures chipping in to this discussion, all I can offer in addition
is what my own exploration of manuals and a bit of googling turned up .. 

Firstly, Marty, you should run dumpfs(8) on your ad1s1a.  With the -m
switch, this produces a single line suitable for feeding into newfs with
all parameters, and is probably worth saving for all slices in case of
any subsequent emergencies.  I've just done that for mine, anyway, along
with fdisk and boot0cfg -v output, and bsdlabel output for UFS slices. 

Without the -m switch, feed the output to a file, or less, as it's very
voluminous.  For a 240GB drive, it'll likely be huge.  However the data
at the head is probably what's needed, though I can't make much of it.

This post by Ian Dowse explains how to compute where the superblocks
are, for a quoted example dumpfs: http://noc.caravan.ru/faq/SBLOCK.html

Note however that Ian is talking about UFS1 (where the superblock offset
was 32) but if you consult fsck_ffs(8) you'll see (under -b) that for
UFS2, which you almost certainly would have used, it's at 140 .. I
gather that's the offset from the start of each cylinder group?


 Also assuming my bad sectors really are
   totally bad, wouldn't fsck allow me to mark them as unusable and move on?
  
  No, fsck does not do that.   Marking blocks bad happend below the
  level of the OS - generally in the disk controller itself.   It remaps
  sectors until it runs out of spares and when it runs out, it starts
  reporting unrecoverable errors.   This is not even reported to the OS
  until it runs out of spares.
  
  The only thing you can do with those bad sectors is to try and figure 
  out if any of them are superblocks.  If they are, you can probably
  rebuild it from other superblock clones.   If it is not, it is probably
  lost data.  In that case try to overwrite the bad sector.  If that 
  works, then the sector itself is OK, but the data that was there is
  gone.   If it doesn't work, then it is bad and there is a good chance
  that more than data got nuked in the power failure - eg, it damaged
  the disk or controller in some way.

Seeing if fsck_ffs will use any discovered alternate superblocks would
be the first step, and if so, whether that helps to get it mounted.  I'd
certainly be careful to mount it read-only before trying data recovery! 

Since Marty has already been bravely using dd :) rewriting those sectors
should be easy enough, bearing in mind the apparent off-by-one numbering
difference between the sectors dd found bad and those fsck reported bad.

  But, the next thing seems to be learning about how to follow the file
  chains and how to find and read and write superblocks.  Alternatively
  you can decide it isn't worth the effort to recover and try and write
  over the drive completely - just totally trash it - and see if those
  bad sectors will write.  If you did that, then you would have to rebuild 
  the slice and partition table and do a newfs before you could again
  use the drive and everything previously on it would be lost.

Well if a dd rewriting those specific contiguous sectors failed, I doubt
that newfs would do any better, so the dd is definitely worth a try, but
I wouldn't write anything further to the fs until all else has failed.

  Good luck.

I can only echo that, again.

  Maybe someone who has some experience in tracking file chains can
  respond and give you more helpp than can I.

Ditto for that .. I'm now very thoroughly out of my depth here, though
I've learned a few new things through the exercise. 

Maybe mailing Ian Dowse with circumstances and the dumpfs head might be
worth a try, Marty?  See the website committers' page for his address.

Cheers, Ian

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


Re: Could we get the FreeBSD torrent servers back?

2007-02-25 Thread Thomas Norris

On Feb 25, 2007, at 8:02 PM, Joe Holden wrote:


 huge quote tree
I would be happy to host torrents.freebsd.org (aswell as the  
tracker and torrents themselves)if no one else has offered.


Ta,
Joe


I'm willing to seed from my 10mbit pipe at a datacenter and at home  
if you do.


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


PHP 5.2.1 and the hard time with vbulletin 3.6.4

2007-02-25 Thread Abdullah Ibn Hamad Al-Marri

Hello,

I just used portupgrade -f last night.

Here is the error I got when I upgrade to PHP 5.2.1_2 when I try to
log to the admin Area.

Warning: preg_replace() [function.preg-replace]: Compilation failed:
lookbehind assertion is not fixed length at offset 13 in
/includes/functions_login.php on line 40

Here when I try to go to advanced reply.

Warning: preg_replace() [function.preg-replace]: Compilation failed:
lookbehind assertion is not fixed length at offset 8 in
/includes/functions_wysiwyg.php on line 149

Fatal error: Maximum execution time of 90 seconds exceeded in
/usr/home/bbwww/www/includes/functions_wysiwyg.php on line 189

I'm using FreeBSD 6.2, Apache 2.3.4, and PHP 5.2.1_2

Thanks in advance for your kind help.

PS: could someone give the syntax to use portdowngrade to to downgrade
PHP to PHP  5.2.0 date 20 Jan 2007 09:17:33
--
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Outlook With FreeBSD IMAP

2007-02-25 Thread Juha Saarinen

On 2/26/07, Chris Maness [EMAIL PROTECTED] wrote:

How do I use the Cram-MD5 passwords with Outlook?  Or do I have to go
plain text?


Off-topic for FreeBSD-Questions but I don't believe Outlook supports
CRAM-MD5 out of the box.

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


Re: PHP 5.2.1 and the hard time with vbulletin 3.6.4

2007-02-25 Thread Joe Auty

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Have you recompiled all PHP extensions too?

I believe the php5-pcre extension might handle perl regular  
expressions (preg_replace) in PHP.



On Feb 26, 2007, at 1:20 AM, Abdullah Ibn Hamad Al-Marri wrote:


Hello,

I just used portupgrade -f last night.

Here is the error I got when I upgrade to PHP 5.2.1_2 when I try to
log to the admin Area.

Warning: preg_replace() [function.preg-replace]: Compilation failed:
lookbehind assertion is not fixed length at offset 13 in
/includes/functions_login.php on line 40

Here when I try to go to advanced reply.

Warning: preg_replace() [function.preg-replace]: Compilation failed:
lookbehind assertion is not fixed length at offset 8 in
/includes/functions_wysiwyg.php on line 149

Fatal error: Maximum execution time of 90 seconds exceeded in
/usr/home/bbwww/www/includes/functions_wysiwyg.php on line 189

I'm using FreeBSD 6.2, Apache 2.3.4, and PHP 5.2.1_2

Thanks in advance for your kind help.

PS: could someone give the syntax to use portdowngrade to to downgrade
PHP to PHP  5.2.0 date 20 Jan 2007 09:17:33
--
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions- 
[EMAIL PROTECTED]


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFF4oFWCgdfeCwsL5ERAqkYAJsFZPwC2dejb5ba2+4+PKG7LIzXhQCfZog9
I2X7Grc/l3c2WwWDO/flvYQ=
=ERCu
-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: kernel panic at boot on any 6.x OS

2007-02-25 Thread Joe Auty

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On Feb 25, 2007, at 7:56 PM, Ted Mittelstaedt wrote:



- Original Message -
From: Joe Auty [EMAIL PROTECTED]
To: Daan Vreeken [PA4DAN] [EMAIL PROTECTED]
Cc: Kip Macy [EMAIL PROTECTED]; freebsd-questions@freebsd.org;
freebsd-hackers@freebsd.org
Sent: Sunday, February 25, 2007 8:14 AM
Subject: Re: kernel panic at boot on any 6.x OS




Any idea how this could have happened after disabling everything in
my /etc/loader.conf, and simply running a:

make buildworld
make buildkernel KERNCONF=myconfig
make installkernel KERNCONF=myconfig



well your supposed to do this single-user, run mergemaster and a  
few other

things.
I also don't see a make installworld.



I usually perform those steps after I've rebooted to ensure that my  
system will boot off the new kernel, as per the instructions in the  
FreeBSD handbook.


Joe, please try booting from a 6.2-release install ISO.  If it  
works without

panicing,
then you did something wrong during the upgrade.



Downloading the image now, I'll let you know if I'm able to boot from  
it...


Since by your own admission your not an expert, you would be well  
advised
to simply back up your files the old fashioned way, reformat your  
hard disk,

install from a 6.2 boot ISO, then restore your files.  Leave the fancy
in-place
updating to someone else.  It's a big PIA and doesen't work half  
the time

anyway.




How well does simply upgrading with the CD work (as opposed to wiping  
clean)? I've upgraded several times to new releases simply by  
rebuilding world, it has never failed me in the past. I don't doubt  
what you are saying here, but since I will have to change how I work,  
assuming that I can boot off of the 6.2 CD, I'd appreciate any  
general upgrade tips that don't involve wiping the disk clean (which  
is not really an option).


For instance, is rebuilding world between point releases (e.g. 5.4 to  
5.5) an okay idea, compared to across major releases (e.g. 5.5 to 6.2)?



I'll do my own homework regarding this too, but I appreciate any  
nuggets of wisdom you might have! As far as me being an expert, I  
guess I'd categorize me somewhere in between complete newb and  
FreeBSD developer =)




Thanks again!






- ---
Joe Auty
NetMusician: web publishing software for musicians
http://www.netmusician.org
[EMAIL PROTECTED]


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFF4oC3CgdfeCwsL5ERAj3vAJ9bMYSj33hg/jU5jU6RyIjXqJ/YLwCfVumh
FsunyXJGMjXHEHKso7xWzcI=
=0p6j
-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: ffmpeg build fails

2007-02-25 Thread Andriy Babiy
On Sunday 25 February 2007 14:50, you wrote:
 On Sun 25 Feb 2007 13:02, Andriy Babiy wrote:
  Hi all.
 
  Is anyone else experiencing this problem? What can I do to avoid it?
  Thank you very much in advance for advices.
 
  Andriy
 
  
  S01060014bf5ee711# uname -a
  FreeBSD S01060014bf5ee711 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Thu Feb
  22 00:43:46 PST 2007 root@:/usr/obj/usr/src/sys/KRNSTABLE  amd64
 
  ==
  gmake[1]: Entering directory
  `/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1/libavformat'
  cc -O3 -Wall -fPIC -DPIC -I/usr/local/include  -I/usr/X11R6/include 
  -fomit-frame-pointer -fno-unit-at-a-time -I..
  -I/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1
  -I/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1/libavcodec
  -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
  -D_GNU_SOURCE -c -o audio.o audio.c
  audio.c:24:27: sys/soundcard.h: No such file or directory
  audio.c: In function `audio_open':
  audio.c:81: error: `SNDCTL_DSP_GETFMTS' undeclared (first use in this
  function)
  audio.c:81: error: (Each undeclared identifier is reported only once
  audio.c:81: error: for each function it appears in.)
  audio.c:92: error: `AFMT_S16_LE' undeclared (first use in this
  function) audio.c:94: error: `AFMT_S16_BE' undeclared (first use in
  this function) audio.c:113: error: `SNDCTL_DSP_SETFMT' undeclared
  (first use in this function)
  audio.c:120: error: `SNDCTL_DSP_STEREO' undeclared (first use in this
  function)
  audio.c:129: error: `SNDCTL_DSP_SPEED' undeclared (first use in this
  function)
  audio.c: In function `audio_read_packet':
  audio.c:243: error: storage size of 'abufi' isn't known
  audio.c:279: error: `SNDCTL_DSP_GETISPACE' undeclared (first use in
  this function)
  audio.c:243: warning: unused variable `abufi'
  gmake[1]: *** [audio.o] Error 1
  gmake[1]: Leaving directory
  `/usr/ports/multimedia/ffmpeg/work/ffmpeg-0.4.9-pre1/libavformat'
  gmake: *** [lib] Error 2
  *** Error code 2
 
  Stop in /usr/ports/multimedia/ffmpeg.

 ffmpeg can't find /usr/include/sys/soundcard.h
 Did you delete /usr/include?

 You can extract the 6.2 base tarball into annother directory (for
 example /usr/base) and then copy /usr/base/usr/include to
 /usr/include.

 Or you can copy the files from the freebsd source...

Thanks Martin.
I found the header file in /usr/src/sys/sys directory. Actually, the 
content of the folders looks the same. I'm not sure why the file was 
missing in the /usr/include/sys.
Anyway, the problem has gone. Everything compiles just fine.

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


Re: Transparent redirect to another interface ?

2007-02-25 Thread Frank Bonnet

Chuck Swiger wrote:

On Feb 23, 2007, at 2:41 AM, Frank Bonnet wrote:
You can do other things, such as using ng_fec to perform port 
trunking, or using IPFW or some other thing to manually force 
traffic out of the other interface, but it's unlikely to result in 
much benefit.



Thanks for the infos , I'll try the port trunking if it is compatible
with Cisco switches ?


FEC is Cisco's protocol, yes.

I don't have much input about the problem you have recompiling ng_fec, 
except that you might need to recompile the entire kernel and not just a 
single module, especially if you've updated your source tree...


---Chuck



OK but I tried on a I386 machine that update its source tree every day, 
it works without recompiling the kernel

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