Re: Soekris for a Trac server

2013-10-01 Thread John Levine
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dunno about Soekris, but I'm very happy with one of these
mini-box systems that cost about $250 with a 60GB SSD disk:

http://www.mini-box.com/MiniPC-Value-Systems

I got a fan but it doesn't need it.  It runs ordinary amd64 FreeBSD
9.1, installed from a thumb drive.  It provides DNS, DHCP, and some
other random services on my home network.

It's also my backup server, running a four drive ZFS raid with an
ESATA controller, so I bumped the RAM up to 4GB.  My only complaint is
that the PCI slot doesn't have a matching cutout on the back panel for
for the ESATA adapter I have to use a riser card and leave the cover
off, which looks stupid but looks fine. 

It's just like any other FreeBSD box do I don't see why it wouldn't
run jails perfecty well.

R's,
John


-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.21 (FreeBSD)

iEYEARECAAYFAlJLKJsACgkQkEiFRdeC/kWt/QCeKyA1GOHNxWXtx+oXSLEYocay
L58An1PAV3zGKO9/9mvOhARkCkkgvExq
=jLRV
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problems with stable/9 and LSI controlers?

2013-09-10 Thread John
On Tue, Sep 10, 2013 at 11:21:02AM -0700, Dennis Glatting wrote:
 
 Today I updated several systems against stable/9 that had not bee updated 
 in ~five months. Two of the systems are serviced by LSI 2008 controllers 
 with a RAID1 array housing the operating system.
 
 These systems no longer properly boot.
 
 Specifically, they begin the boot process but bomb when they try to mount 
 root. Neither system sees the GPT partitions of the boot disk at the 
 mountroot prompt. On one system I replaced the hard disks, 
 repartitioned, and reinstalled but the problem continued.
 
 I don't see any mention of geom or controller update in UPDATING but I 
 know they have been updated because I saw their revisions fly actross my 
 screen during the svn update. Also, I am running IR vers 16 on my 
 controllers, which is the latest version of LSI firmware.
 
 Is there some new action I have to take to sucessfully boot LSI disks 
 against the updated kernel?

Hi, does it use the mfi driver? Because that has been updated. There was
an errata notice about it on the 22nd August concerning mfi in JBOD
mode and disks 2TB

-- 
John

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


Re: UUID in fstab.

2013-08-26 Thread John Baldwin
On Monday, August 26, 2013 12:06:21 am varanasi sainath wrote:
 Thanks John, I have tried as you suggested using a Live CD and yes the
 partitions uuid's are present in gptid  ..
 I found the UUID's in /dev/gptid - how do I determine which uid corresponds
 to which partition (ufs or swap or boot) (I used glabel status and after
 some trial and error I found them) edited the fstab accordingly and
 everything is working now ..

The other way would be to examine the kern.geom.confxml output directly as I
think you can probably use that to map between them.

 Is there a way to have both the /dev/XXXpYY and /dev/gptid/uuid present
 in /dev/

Not currently.  freebsd-geom@ is probably the best place to ask that question.

-- 
John Baldwin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: UUID in fstab.

2013-08-23 Thread John Baldwin
On Wednesday, August 21, 2013 4:38:00 pm varanasi sainath wrote:
 Thanks for the support.
 
 I want to use the uuid's found using sysctl -a in fstab.
 /dev/gptid/ has only uuid for boot partition.

You probably have the other GPT paritions already mounted via
another name which removes the names in /dev/gptid.  Try
booting an install CD or USB stick such that you use an
alternate root fs and don't mount any of the partitions on
your drive.  Then you should be able to see the entries in
/dev/gptid and update your fstab appropriately.  If you
console access you could also try to update your fstab to
use /dev/gptid/uid directly instead of /dev/XXXpYY and
reboot.  If it works I believe the /dev/XXXpYY names will
now be gone from /dev and the /dev/gptid names present
instead.

-- 
John Baldwin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Kernel Panic - Unix socket communication in kernel module

2013-08-23 Thread John Baldwin
On Monday, July 29, 2013 3:31:49 am varanasi sainath wrote:
 Hello,
 
 I am writing a kernel module in which I am trying to connect to a UNIX
 socket
 (UNIX domain sockets use the file system as their address name space).
 Kernel module (loadable) acts as a client and User mode program acts as
 server,
 I have loaded the module using kldload and communication between
 user and kernel module works fine,
 when I try to load the kernel module from loader.conf -
 auto load the kernel module at boot up leads to kernel panic
 as the file system is not ready and kern_connect fails.
 
 How to notify kernel module that File system is ready?
 (any specific event flags)
 
 Is there any specific location for Unix domain socket files?
 (currently created it under /root/soc/socket )
 
 Using MODULE_DEPEND Can I make the module dependent of file system?

You can register a hook for the 'mountroot' EVENTHANDLER event which
will fire after / is mounted.  (You could compare rootvnode against
NULL during module startup to determine if you should defer your
work to the EVENTHANDLER vs doing it right away.)  If you need to
wait for all local filesystems to be mounted, then you will need to
have some userland utility poke your module via a sysctl/ioctl/etc.
after the filesystems are mounted (you could use a custom rc.d script
for this).

-- 
John Baldwin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


freebsd 9.2 via svn

2013-08-18 Thread John
Hello list,

Is it safe to start using 9.2 in the svn repos? I have a line like
this in a daily crontab:

svn co svn://svn.us-east.freebsd.org/base/releng/9.1 /usr/src

Can I change that 9.1 to 9.2 now, or should I wait? I aim to follow
9.2-R with security updates.

thanks,
-- 
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: freebsd 9.2 via svn

2013-08-18 Thread John
On Mon, Aug 19, 2013 at 04:17:02AM +0200, Polytropon wrote:

 9.2-RELEASE hasn't been released yet. :-)

well yes, there is that I suppose ;)

 If you don't use a custom kernel, why not use freebsd-update
 and follow the 9.2-RELEASE path with the security updates?

Not sure if this is logic or religon, but freebsd-update makes me
nervous. I'm allergic to automatic anything unless I've written it. The only
times I've run generic is when installing a new system, to see what I
need and what I don't. Maybe I'm just old.

thanks for the input,
-- 
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: virtualbox-ose fails to build on FreeBSD 9.2-BETA2 #0 r253698

2013-08-04 Thread John
On 02/08/2013 16:54, John wrote:
 Hello list,
 
 I'm trying to install virtualbox on a new machine running
 FreeBSD 9.2-BETA2 #0 r253698. The ports version is 324162. Is it a
 problem with the port or my machine?

This was fixed by:

commenting everything out of /etc/make.conf
svn to 9-stable, make world (etc) reboot
then deleting all installed ports
then removing everything from /usr/local
then rm -rf /usr/ports
portsnap
install svn then checkout ports
install virtualbox-ose

sorry for the noise
-- 
John

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


TRIM on ZFS mirror

2013-08-02 Thread John Andreasson
Hi.

I read that FreeBSD 9.2 will bring TRIM to ZFS. Does anyone know if this
works even if the zpool is a mirror?

John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


virtualbox-ose fails to build on FreeBSD 9.2-BETA2 #0 r253698

2013-08-02 Thread John
 -O2 -fno-exceptions -fno-rtti -Wall -Wextra
-Wno-missing-field-initializers -Wno-unused -Wno-trigraphs
-fdiagnostics-show-option -Wpointer-arith -Winline -O2
-fno-strict-aliasing -fno-common -finline-limit=8000
-fno-stack-protector -O2 -mtune=generic -fno-omit-frame-pointer
-nostdinc -include
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.16/include/VBox/VBoxGuestMangling.h
-m64 --param inline-unit-growth=100 --param large-function-growth=1000
-fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387
-mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float
-fno-asynchronous-unwind-tables -Wundef -I/usr/src/sys
-I/usr/src/sys/contrib/altq -I/usr/src/sys/../include -I/usr/include
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.16/out/freebsd.amd64/release/obj/HGSMIGuestR0Lib/dtrace
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.16/include
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.16/out/freebsd.amd64/release
-DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS
-DVBOX_WITH_HARDENING -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64
-D__AMD64__ -DRTPATH_APP_PRIVATE=\/usr/local/share/virtualbox-ose\
-DRTPATH_APP_PRIVATE_ARCH=\/usr/local/lib/virtualbox\
-DRTPATH_SHARED_LIBS=\/usr/local/lib/virtualbox\
-DRTPATH_APP_DOCS=\/usr/local/share/doc/virtualbox-ose\ -DIN_RING0
-DIN_RT_R0 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -D_KERNEL -DKLD_MODULE
-DIN_GUEST -DIN_GUEST_R0
-Wp,-MD,/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.16/out/freebsd.amd64/release/obj/HGSMIGuestR0Lib/HGSMICommon.o.dep
-Wp,-MT,/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.16/out/freebsd.amd64/release/obj/HGSMIGuestR0Lib/HGSMICommon.o
-Wp,-MP -o
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.16/out/freebsd.amd64/release/obj/HGSMIGuestR0Lib/HGSMICommon.o
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.16/src/VBox/GuestHost/HGSMI/HGSMICommon.cpp
*** [do-build] Error code 2

Stop in /usr/ports/emulators/virtualbox-ose.
*** [build] Error code 1

Stop in /usr/ports/emulators/virtualbox-ose.

thanks,
-- 
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: System hangs for several minutes (disk IO related)

2013-07-31 Thread John Johnstone

On 7/31/13 9:41 AM, Mark Felder wrote:

If you Google SmartArray P400 I'm sure you will find tons of horror
stories. As soon as I saw that in your post I recalled looking into an
issue for a customer not too long ago. In short, it's a very bad
controller with tons of issues. I could be mistaking this for another
controller, but I'm pretty confident this is the same one.


FreeBSD 9.1 is running here on a few DL360 G5's with the P400i and I've 
seen no problems with them.  I've seen about 200 of the same machines in 
production for a few years with Windows and Linux and not a particularly 
notable failure rate.  I just did a simple web search for P400 problems 
and didn't come up with much.  I'd be surprised if there's a significant 
difference between the P400i and the P400.


-
John J.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re:

2013-07-21 Thread john trimarchi
http://trust-seats.com/cnn.com.today.html?m0d0x8d5m4k6b2k0y5v2o2
  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


trashed installation ?

2013-07-18 Thread john francis lee

Hi,

I got FreeBSD 10 CURRENT installed in a virtualbox on my ubuntu desktop, 
had installed x11, and was working on gnome (the 3rd day of compilation 
!) when I lost power ... twice in a row. The FreeBSD recovered the first 
time but it doesn't look good this second time. I attach a screenshot. I 
installed the guest editions as well (another day's compilation !) but 
mouse doesn't work in the FreeBSD terminal and there's no way I can copy 
text, or share anything via the clipboard.  I'm afraid it's shot and 
I'll have to spend another week recreating a FreeBSD virtualbox guest 
... unless you can tell me how to fix this one.


Hope to hear from you, but if I haven't by tomorrow I'll just go ahead 
and wipe this machine and try again ... with pkgs instead of ports this 
time. Might not a take a week that way. I get the impression that 
there's no one reading my mails, or else no interest in my problems. 
Fair enough. What do I expect for free, right? Thanks for the software 
anyway.


--
john francis lee
246/3 Moo 22
Thanon Kaew Wai
Mueang Chiangrai 57000
Thailand

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

NVIDIA GeForce 6100/nForce 430 chipset

2013-07-15 Thread john francis lee


   2.2.1.2. FreeBSD/amd64

   There are two classes of processors capable of running
   FreeBSD/amd64. The first are AMD64 processors, including the
   AMD Athlon™64, AMD Athlon™64-FX, AMD Opteron™ or better processors.

   The second class of processors that can use FreeBSD/amd64 includes
   those using the Intel® EM64T architecture. Examples of these
   processors include the Intel® Core™ 2 Duo, Quad, Extreme processor
   families, the Intel® Xeon™ 3000, 5000, and 7000 sequences of
   processors, and the Intel® Core™ i3, i5 and i7 processors.

   /If you have a machine based on an nVidia nForce3 Pro-150, you
   ///must///use the BIOS setup to disable the IO APIC. If you do not
   have an option to do this, you will likely have to disable ACPI
   instead. There are bugs in the Pro-150 chipset for which we have not
   yet found a workaround./



I have a gigabyte GA-M61PME-52P mother board with an NVIDIA GeForce 
6100/nForce 430 chipset.


Is that OK? Thanks.

--
john francis lee
246/3 Moo 22
Thanon Kaew Wai
Mueang Chiangrai 57000
Thailand

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

WAS : NVIDIA GeForce 6100/nForce 430 chipset NOW : installation in Vbox repeats endlessly

2013-07-15 Thread john francis lee


   2.2.1.2. FreeBSD/amd64

   There are two classes of processors capable of running
   FreeBSD/amd64. The first are AMD64 processors, including the
   AMD Athlon™64, AMD Athlon™64-FX, AMD Opteron™ or better processors.

   The second class of processors that can use FreeBSD/amd64 includes
   those using the Intel® EM64T architecture. Examples of these
   processors include the Intel® Core™ 2 Duo, Quad, Extreme processor
   families, the Intel® Xeon™ 3000, 5000, and 7000 sequences of
   processors, and the Intel® Core™ i3, i5 and i7 processors.

   /If you have a machine based on an nVidia nForce3 Pro-150, you
   ///must///use the BIOS setup to disable the IO APIC. If you do not
   have an option to do this, you will likely have to disable ACPI
   instead. There are bugs in the Pro-150 chipset for which we have not
   yet found a workaround./



I have a gigabyte GA-M61PME-52P mother board with an NVIDIA GeForce 
6100/nForce 430 chipset.


Is that OK? Thanks.

Answer : It seems to be OK. I downloaded the release 10 memstick image, 
put it on a memstick, booted from, ran it as a live cd and it worked OK. 
I looked at the messages and there were no complaints about ACPI. There 
was a WARNING : WITNESS option enabled, expect reduced performance. 
Don't know what that meant.


So I downloaded a 9.1 iso and ... actually  I had one I'd downloaded in 
March, i386, and tried to install that in a Virtual box under ubuntu. 
The installation seemed OK ... but I looked up and it was rebooting. It 
ran the installation again and I watched ... to see it drop out at the 
3rd screen with a % of files installed.


I'll try and download the 10.0 iso image, since it worked from the memstick.

--
john francis lee
246/3 Moo 22
Thanon Kaew Wai
Mueang Chiangrai 57000
Thailand

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

Fwd: WAS : NVIDIA GeForce 6100/nForce 430 chipset NOW : installation in Vbox repeats endlessly

2013-07-15 Thread john francis lee


That did it! Looks good now. The 10.0 installation completed ... but I 
forgot to umount the iso image, so the installation was offered again. I 
'forcibly' unmounted the iso image, as Virtual Box put it, and booted 
again. Looks good. Thanks ! No I'll try to add X and some ports.


 Original Message 
Subject: 	WAS : NVIDIA GeForce 6100/nForce 430 chipset NOW : 
installation in Vbox repeats endlessly

Date:   Mon, 15 Jul 2013 19:10:33 +0700
From:   john francis lee j...@robinlea.com
To: questi...@freebsd.org



   2.2.1.2. FreeBSD/amd64

   There are two classes of processors capable of running
   FreeBSD/amd64. The first are AMD64 processors, including the
   AMD Athlon™64, AMD Athlon™64-FX, AMD Opteron™ or better processors.

   The second class of processors that can use FreeBSD/amd64 includes
   those using the Intel® EM64T architecture. Examples of these
   processors include the Intel® Core™ 2 Duo, Quad, Extreme processor
   families, the Intel® Xeon™ 3000, 5000, and 7000 sequences of
   processors, and the Intel® Core™ i3, i5 and i7 processors.

   /If you have a machine based on an nVidia nForce3 Pro-150, you
   ///must///use the BIOS setup to disable the IO APIC. If you do not
   have an option to do this, you will likely have to disable ACPI
   instead. There are bugs in the Pro-150 chipset for which we have not
   yet found a workaround./



I have a gigabyte GA-M61PME-52P mother board with an NVIDIA GeForce 
6100/nForce 430 chipset.


Is that OK? Thanks.

Answer : It seems to be OK. I downloaded the release 10 memstick image, 
put it on a memstick, booted from, ran it as a live cd and it worked OK. 
I looked at the messages and there were no complaints about ACPI. There 
was a WARNING : WITNESS option enabled, expect reduced performance. 
Don't know what that meant.


So I downloaded a 9.1 iso and ... actually  I had one I'd downloaded in 
March, i386, and tried to install that in a Virtual box under ubuntu. 
The installation seemed OK ... but I looked up and it was rebooting. It 
ran the installation again and I watched ... to see it drop out at the 
3rd screen with a % of files installed.


I'll try and download the 10.0 iso image, since it worked from the memstick.

--
john francis lee
246/3 Moo 22
Thanon Kaew Wai
Mueang Chiangrai 57000
Thailand



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

Baker Invites freebsd-questions@freebsd.org to spend holiday in Goa

2013-06-29 Thread John Baker
 - This mail is a HTML mail. Not all elements could be shown in plain text 
mode. -

Hi,
Still plan where to spend your vacation, where you can relax, enjoy and store 
the golden memories of your vacation. Visit
http://travaholic.in
Your ultimate guide.
Regards ...
John Baker
Note : If you are not the intended receipt and want your email id to be removed 
from any future invites kindly forward this mail to
shilpasworld2...@yahoo.in
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD:: How to set VLAN priority?

2013-06-26 Thread John-Mark Gurney
Alex Liptsin wrote this message on Wed, Jun 26, 2013 at 11:54 +:
 I work with FreeBSD 9.1 RELEASE.
 I had configured VLANs on my server, but I can't find a way to configure VLAN 
 priority.
 How can I do it?

Looks like you can't w/ the default VLAN code:
BUGS
 No 802.1Q features except VLAN tagging are implemented.

You could probably implement it w/ ng_patch, but that would also mean
you'd lose the feature of the card adding the VLAN tag for you...

-- 
  John-Mark Gurney  Voice: +1 415 225 5579

 All that I will do, has been done, All that I have, has not.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Failed to allocate receive buffer problem

2013-06-25 Thread John Baldwin
On Wednesday, June 12, 2013 3:06:26 am Alex Liptsin wrote:
 Hi.
 
 I have a problem that when running a ping (or any other traffic) over IPoIB 
port,
 Traffic fails after some time.
 At destination server DMESG I see that errors:
 
 Jun 11 14:42:11 h-qa-033 kernel: ib1: failed to allocate receive buffer 253
 Jun 11 14:42:12 h-qa-033 kernel: ib1: failed to allocate receive buffer 254
 Jun 11 14:42:13 h-qa-033 kernel: ib1: failed to allocate receive buffer 255
 Jun 11 14:42:14 h-qa-033 kernel: ib1: failed to allocate receive buffer 0
 Jun 11 14:42:15 h-qa-033 kernel: ib1: failed to allocate receive buffer 1
 Jun 11 14:42:16 h-qa-033 kernel: ib1: failed to allocate receive buffer 2
 Jun 11 14:42:17 h-qa-033 kernel: ib1: failed to allocate receive buffer 3
 Jun 11 14:42:18 h-qa-033 kernel: ib1: failed to allocate receive buffer 4
 Jun 11 14:42:19 h-qa-033 kernel: ib1: failed to allocate receive buffer 5
 Jun 11 14:42:20 h-qa-033 kernel: ib1: failed to allocate receive buffer 6
 Jun 11 14:42:21 h-qa-033 kernel: ib1: failed to allocate receive buffer 7
 
 I work with FreeBSD 9.1.
 
 Is it a bug or some configuration issues?

Do you see memory allocation errors in netstat -m?

Specifically this line:

0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)

If so, it may be that the IPoIB layer has an mbuf leak.  The rest of netstat -
m might be useful here as you can see if any of the zones are full.

-- 
John Baldwin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to compile ipoib module manually?

2013-06-05 Thread John Baldwin
On Tuesday, June 04, 2013 5:18:46 am Alex Liptsin wrote:
 I commented on that lines, because I want to compile and load that modules 
manually.
 I had succeed to compile and load mlx4, mlx4ib and mlxen from /sys/modules:
 
 [root@h-qa-033 mlxen]# kldstat
 Id Refs AddressSize Name
 1   14 0x8020 13acbd8  kernel
 21 0x81612000 21e5 if_mos.ko
 33 0x81615000 124ebmlx4.ko
 41 0x81628000 e225 mlx4ib.ko
 51 0x81637000 ec60 mlxen.ko
 
 The problem is that IPOIB module is missing in /sys/modules.
 
 1.  Where can I find it?
 
 2.  How can I compile ipoib support?

You will have to create one.  You should be able to use the existing module 
Makefiles as a guide.

-- 
John Baldwin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to switch Datgram/Connected mtu modes?

2013-05-29 Thread John Baldwin
On Sunday, May 26, 2013 7:43:29 am Alex Liptsin wrote:
 Hello.
 
 I work with FreeBSD 9.1 and Mellanox devices.
 
 How can I configure MTU in connected mode on FreeBSD 9.1?
 In Linux to enable connected mode for interface ib0, I enter:
 
echo connected  /sys/class/net/ib0/mode
 
 
 
 Switching between CM and UD mode can be done in run time:
 
echo datagram  /sys/class/net/ib0/mode sets the mode of ib0 to UD
 
echo connected  /sys/class/net/ib0/mode sets the mode ib0 to CM
 
 There is no such directories at FreeBSD. Wat shall I do?

Have you tried looking for dev.ib.0 sysctls?  It looks like the OFED bits in 
FreeBSD map Linux sysfs entries to sysctl nodes, but I don't have a box with 
IB handy to see what it looks like at runtime.

-- 
John Baldwin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Thunderbird 17.0.6 build failure FreeBSD 9.1-p3 amd64

2013-05-23 Thread John
]
NS_IMPL_THREADSAFE_ISUPPORTS1(ImapProtocolSinkProxy,
^
../../../mozilla/dist/include/nsISupportsImpl.h:1386:3: note: expanded
from macro 'NS_IMPL_THREADSAFE_ISUPPORTS1'
  NS_IMPL_THREADSAFE_RELEASE(_class)
  \
  ^
../../../mozilla/dist/include/nsISupportsImpl.h:1363:5: note: expanded
from macro 'NS_IMPL_THREADSAFE_RELEASE'
delete (this);
  \
^
nsAutoSyncManager.cpp:1413:1: warning: delete called on
'nsAutoSyncManager' that has virtual functions but non-virtual
  destructor [-Wdelete-non-virtual-dtor]
NS_IMPL_ISUPPORTS3(nsAutoSyncManager, nsIObserver, nsIUrlListener,
nsIAutoSyncManager)
^
../../../mozilla/dist/include/nsISupportsImpl.h:1211:3: note: expanded
from macro 'NS_IMPL_ISUPPORTS3'
  NS_IMPL_RELEASE(_class)
  \
  ^
../../../mozilla/dist/include/nsISupportsImpl.h:495:40: note: expanded
from macro 'NS_IMPL_RELEASE'
  NS_IMPL_RELEASE_WITH_DESTROY(_class, delete (this))
   ^
../../../mozilla/dist/include/nsISupportsImpl.h:475:5: note: expanded
from macro 'NS_IMPL_RELEASE_WITH_DESTROY'
_destroy;
  \
^
3 warnings generated.
5 warnings generated.
rm -f libmsgimap_s.a
/usr/local/bin/python2.7 ../../../mozilla/config/pythonpath.py
-I../../../mozilla/config ../../../mozilla/config/expandlibs_gen.py
--depend .deps/libmsgimap_s.a.pp -o libmsgimap_s.a.desc nsImapUtils.o
nsIMAPBodyShell.o nsIMAPGenericParser.o nsIMAPHostSessionList.o
nsIMAPNamespace.o nsImapIncomingServer.o nsImapMailFolder.o
nsImapProtocol.o nsImapSearchResults.o nsImapServerResponseParser.o
nsImapService.o nsImapUrl.o nsImapFlagAndUidState.o nsImapUndoTxn.o
nsImapStringBundle.o nsImapOfflineSync.o nsAutoSyncState.o
nsAutoSyncManager.o nsSyncRunnableHelpers.o
gmake[6]: Leaving directory
`/usr/ports/mail/thunderbird/work/comm-esr17/mailnews/imap/src'
gmake[5]: Leaving directory
`/usr/ports/mail/thunderbird/work/comm-esr17/mailnews/imap'
gmake[4]: Leaving directory
`/usr/ports/mail/thunderbird/work/comm-esr17/mailnews'
gmake[3]: *** [libs_tier_platform] Error 2
gmake[3]: Leaving directory
`/usr/ports/mail/thunderbird/work/comm-esr17/mozilla'
gmake[2]: *** [tier_platform] Error 2
gmake[2]: Leaving directory
`/usr/ports/mail/thunderbird/work/comm-esr17/mozilla'
gmake[1]: *** [default] Error 2
gmake[1]: Leaving directory
`/usr/ports/mail/thunderbird/work/comm-esr17/mozilla'
gmake: *** [default] Error 2
*** [do-build] Error code 1

Stop in /usr/ports/mail/thunderbird.
*** [build] Error code 1

Stop in /usr/ports/mail/thunderbird.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade20130523-67949-3bp8cw-0 env UPGRADE_TOOL=portupgrade
UPGRADE_PORT=thunderbird-17.0.5 UPGRADE_PORT_VER=17.0.5 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! mail/thunderbird (thunderbird-17.0.5) (coredump)

#

many thanks,
-- 
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Tell me how to increase the virtual disk with ZFS?

2013-05-11 Thread John-Mark Gurney
Alexander Yerenkow wrote this message on Sat, May 11, 2013 at 18:13 +0300:
 zpools or increase/decrease UFS partitions.

growfs(8)

NAME
 growfs -- grow size of an existing ufs file system

HISTORY
 The growfs utility first appeared in FreeBSD 4.4.

-- 
  John-Mark Gurney  Voice: +1 415 225 5579

 All that I will do, has been done, All that I have, has not.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: WANTED: Tool to verify installed package/port consistancy

2013-05-09 Thread John Levine
I expect the reason you won't find a port verifier is that the usual
way to recover from a situation like yours is to reinstall them all:

# portupgrade --all --force

This might take longer than trying to verify them, but it has the
advantage of not needing a lot of attention (use -DBATCH to skip
config steps) and when you're done, the packages have all been updated
and fixed.

Doing a general port verifier is a pain because the scripts called from
make install can run arbitrary programs.

R's,
John

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


chromium won't build on FreeBSD 9.1 ports rev 315799

2013-04-17 Thread John
Hello list,

In my daily vulnerability report, I'm seeing this:


Affected package: chromium-25.0.1364.160
Type of problem: chromium -- multiple vulnerabilities.
Reference:
http://portaudit.FreeBSD.org/bdd48858-9656-11e2-a9a8-00262d5ed8ee.html


Latest ports update as of 1630 UTC - 315981

I try to update it. I get:


 portupgrade chromium
---  Upgrading 'chromium-25.0.1364.160' to 'chromium-25.0.1364.172'
(www/chromium)
---  Building '/usr/ports/www/chromium'
===  Cleaning for chromium-25.0.1364.172

To build Chromium, you should have around 1 GB of memory
and a fair amount of free diskspace (~ 2.2GB).

===  chromium-25.0.1364.172 has known vulnerabilities:
Affected package: chromium-25.0.1364.172
Type of problem: chromium -- multiple vulnerabilities.
Reference:
http://portaudit.FreeBSD.org/bdd48858-9656-11e2-a9a8-00262d5ed8ee.html
= Please update your ports tree and try again.
*** [check-vulnerable] Error code 1

Stop in /usr/ports/www/chromium.
*** [build] Error code 1

Stop in /usr/ports/www/chromium.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade20130417-83106-6ngbzf-0 env UPGRADE_TOOL=portupgrade
UPGRADE_PORT=chromium-25.0.1364.160 UPGRADE_PORT_VER=25.0.1364.160 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! www/chromium (chromium-25.0.1364.160) (unknown build error)
=

I know the code is now at revision 26.something. I have a look at
https://wiki.freebsd.org/Chromium and follow the instructions there. I
get up to here:

../../depot_tools/gclient sync --force

Error: Can't update/checkout ~/tmp/depot_tools/src if an unversioned
directory is present. Delete the directory and try again.

Please advise if/how I can proceed?

thanks,
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: chromium won't build on FreeBSD 9.1 ports rev 315799

2013-04-17 Thread John
On 17/04/2013 19:27, Andrei Brezan wrote:
 You can try:
 portupgrade -m -DDISABLE_VULNERABILITIES chromium
 
 From what I can see there is no update yet for the mentioned security
 vulnerability.
 
 Regards,
 Andrei

Hi Andrei

It seems there is an update in the source but not in the ports. Source
is up to 26.mumble
-- 
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Portsnap gets ports that claim to be out of date

2013-03-29 Thread John Levine
When I do portsnap update and try building stuff, I get errors like this:

Mk/bsd.port.mk, line 5: warning: You are using a ports file that originated 
from CVS!!
Mk/bsd.port.mk, line 6: warning: The FreeBSD project has switched from CVS to 
SubVersion.
Mk/bsd.port.mk, line 7: warning: This CVS repository is NO LONGER UPDATED!  
If you see this
Mk/bsd.port.mk, line 8: warning: message then your tree is STALE and you need 
to follow
Mk/bsd.port.mk, line 9: warning: the update instructions to receive any more 
updates.

I'm not using CVS, I'm using portsnap.  Any ideas?  It's a 9.1 system,
fully up to date as far as I know.

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


Re: day light saving time happened today

2013-03-10 Thread John Levine
day light saving time happened early sunday morning and the time shown 
by the date command is still one hour behind. I just did a clean 9.1 
install from cdrom and selected the correct time zone for my location.

I don't see any entry for daylight saving time in tzsetup

I though the EDT had daylight saving time built in.

It does.  Any chance your computer's clock got reset an hour slow?

My 8.3 and 9.1 systems handled the daylight switch just like they were
supposed to.

-- 
Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies,
Please consider the environment before reading this e-mail. http://jl.ly

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


Strange delays in ZFS scrub or resilver

2013-02-23 Thread John Levine
I have a raidz of three 1 TB SATA drives, in USB enclosures.  One of
the disks went bad, so I replaced it last night and it's been
resilvering ever since.  I can watch the activity lights on the disks
and it cranks away for a minute or so, then stops for a minute, then
cranks for a minute, and so forth.  If I do a zpool status while it's
stopped, the zpool waits until the I/O resumes, and a ^T shows it
waiting for zio-io_cv.

I'm running FreeBSD 9.1, amd64 version, totally vanilla install on a
mini-itx box with 4GB of RAM.  The root/swap disk is an SSD separate
from the zfs disks.  When the disks are active, top shows about 10%
system time and 4% interrupt.  When it isn't, top shows about 99.8%
idle.  The server isn't doing much else, and nothing else currently
touches the disks.  (They're for remote backup of a system somewhere
else, and I have the backup job turned off until resilvering
completes.)

I'm running this on the console, and there are no disk error messages.

Any idea what's going on or how to fix it?  I could move the disks to
an ESATA enclosure if USB is losing interrupts or something.

My recollection is that when I've done a scrub, it does the same thing,
work, pause, work, pause.

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: building custom kernel on -current: unknown option COMPAT_LINUX

2013-02-14 Thread John Baldwin
On Saturday, February 09, 2013 10:01:25 pm ill...@gmail.com wrote:
 On 9 February 2013 20:26, Anton Shterenlikht me...@bristol.ac.uk wrote:
 
 
  I removed COMPAT_LINUX, and only left
 
  options COMPAT_43
  options COMPAT_LINUX32
 
 
 From /usr/src/sys/amd64/conf/NOTES (9.1-RELEASE):
 
 # Enable Linux ABI emulation
 #XXX#optionsCOMPAT_LINUX
 
 # Enable 32-bit Linux ABI emulation (requires COMPAT_43 and
 COMPAT_FREEBSD32)
 options COMPAT_LINUX32
 
 I think I first ran up against this when I moved to 9.0 some
 time ago, but yes, amd64 uses a different kernel config
 option than i386 for linux compat.
 
 I tend to leave it as a module  load it if I perchance
 need it. This also allows rebuilding  reloading the
 modules without a reboot, should it need it.  The
 modules seems to build fine without having to
 fiddle about with kernel config jiggerypokey.

COMPAT_LINUX will work on amd64 eventually and will be used for 64-bit Linux 
binaries (COMPAT_LINUX32 is to run Linux/i386 binaries on FreeBSD/amd64).

-- 
John Baldwin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: sh script ?

2013-01-24 Thread John Levine
I get this message [: 10.0.10.21: bad number on this code

[ ${saved_ip} -eq ${used_ip} ]  echo good match

Both variables have valid ip addresses in them.
Why does it think the variable content is a number and not text?
What am I doing wrong?

My guess would be that you didn't read the man page for the test
(sometimes spelled [ ) command.



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


Re: which version of FBSD should i install?

2013-01-08 Thread John Levine
   I want the Gnome Desktop, espeak, and gvim.  If there is a CD 
   or DVD with 9.x, can somebody give me a URL?

The usual place:

http://www.freebsd.org/releases/9.1R/announce.html

I'm typing this on a Thinkpad X200, which works well under 9.0.

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


strange network problem with multiple interfaces

2013-01-05 Thread John
hi, I just installed stock FreeBSD 9.0 on a PowerEdge server with two network 
cards:

bce0 is directly connected to isp's gateway
bce1~3 are connected to the inside port of a router configured as 
192.168.1.0/24 network with 192.168.1.1 as gateway

If the ENTIRE content of /etc/rc.conf is:

hostname=test.com
ifconfig_bce0=inet 1.2.3.4 netmask 255.255.255.0
defaultrouter=1.2.3.1
#the above numbers are supplied by isp
ifconfig_bce1=inet 192.168.1.4 netmask 255.255.255.0
static_routes=interface1
route_interface1=-net 192.168.1.0/24 192.168.1.1

then the machine can do all public network activities without problem, but 
doesn't appear to be able to connect to the router at all.  In fact, if I do:

tcpdmp -l -i eth1 host 192.168.1.1

and then do telnet 192.168.1.1 443, there are two wierd results: 
1. the tcpdump catches nothing
2. the telnet window got the following result:
Trying 192.168.1.1...
telnet: connect to address 192.168.1.1: Operation not permitted
telnet: Unable to connect to remote host

routing table is the following:
#netstat -rn

DestinationGatewayFlagsRefs  Use  Netif Expire
default1.2.3.1  UGS 0  193   bce0
1.2.3.0/24   link#1 U   00   bce0
1.2.3.4 link#1 UHS 00lo0
127.0.0.1  link#5UH  00lo0
192.168.1.0/24 192.168.1.1UGS 01   bce1
192.168.1.4   link#2 UHS 01lo0

No firewall is configured.  Also unless there is a known relevant bug of the 
stock 9.0, we want to stick to this version for the moment due to some other 
concern.

Could someone help to enlighten what I did wrong?  Thank you!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Somewhat OT: Is Full Command Logging Possible?

2012-12-18 Thread John Hein
Tim Daneliuk wrote at 17:48 -0600 on Dec  5, 2012:
  On 12/05/2012 05:44 PM, Kurt Buff wrote:
   On Wed, Dec 5, 2012 at 3:19 PM, Tim Daneliuk tun...@tundraware.com wrote:
   I am working with an institution that today provides limited privilege
   escalation
   on their servers via very specific sudo rules.  The problem is that the
   administrators can do 'sudo su -'.
   snip
  
  
   sudo is misconfigured.
  
   man 5 sudoers and man 8 visudo
  
  
  
   Kurt
  
 
  I'm sorry Kurt, I'm sort of dense today, I'm not sure what you're
  saying.  Are you suggesting that there is a way to configure
  sudo so that if someone does 'sudo su -' to become an admin,
  sudo can be made to log every command they execute thereafter?

See log_input and log_output in sudoers(5)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Help! Firefox + acroread costs me $$$$

2012-12-12 Thread John Levine
So, on FreeBSD, how does one get firefox and/or opera to use, for example,
evince or some other PDF displayer instead of using this goddamn lousey
buggy *^%$#@ acroread ?

In Firefox, Edit-Preferences, click the Applications tab, look for
application/pdf and make the obvious adjustments.

I find that for nearly everything else, chromium works better than
firefox, but for PACER, only Firefox supports RECAP.  You do use
RECAP, I hope.

R's,
John

PS: On my FBSD 9.0, acroread8 works OK, much slower than evince but in
some cases it renders the PDF better, and often translates to
postscript better for printing.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: SMS application

2012-12-06 Thread John Levine
In article blu0-smtp19ad48d80755ecda768cb193...@phx.gbl you write:
Can anyone recommend a good SMS application that works on FreeBSD? I
have used several different ones on MS Windows; however, I cannot find
one that works on FreeBSD. There doesn't appear to be a fully
functional one in the ports system either, although I might have missed
it.

What do you want to do?  If you just want to send SMS, there are plenty
of vendors that have http interfaces that you can script with wget or
www libraries in perl, python, and the other usual suspects.

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


Re: svn incantation for 9.1-RELEASE

2012-12-04 Thread John
On 03/12/2012 07:42, Christer Solskogen wrote:
 On Mon, Dec 3, 2012 at 5:16 AM, John free...@growveg.net wrote:
 Hello list,

 At the moment, I get sources via a line like this:

 svn checkout svn://svn.freebsd.org/base/releng/9.1/ /usr/src

 
 
 That one should give you 9.1-RELEASE.
 

thanks for this
-- 
freebsd at growveg dot net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


svn incantation for 9.1-RELEASE

2012-12-02 Thread John
Hello list,

At the moment, I get sources via a line like this:

svn checkout svn://svn.freebsd.org/base/releng/9.1/ /usr/src

Is this sufficient and correct to follow 9.1-RELEASE when it eventually
comes out? Right now, building world from that checkout gives 9.1-RC3.

thanks
-- 
freebsd at growveg dot net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Fetched Ports index falling out of date

2012-10-16 Thread John Marshall
On 17/10/2012 09:10, Paul Macdonald wrote:
 For the past 4 days or so, i have noticed an issue where the ports INDEX
 is out of date.

Yes, the published INDEX-n files (for make fetchindex) haven't been
updated since Saturday.

ozsrv03 curl -I http://www.FreeBSD.org/ports/INDEX-8.bz2
HTTP/1.1 200 OK
Content-Type: application/x-bzip
Accept-Ranges: bytes
ETag: 3485320067
Last-Modified: Sat, 13 Oct 2012 09:05:08 GMT
Content-Length: 1661371
Date: Wed, 17 Oct 2012 01:11:59 GMT
Server: httpd/1.4.x LaHonda

ozsrv03 curl -I http://www.FreeBSD.org/ports/INDEX-9.bz2
HTTP/1.1 200 OK
Content-Type: application/x-bzip
Accept-Ranges: bytes
ETag: 3948082461
Last-Modified: Sat, 13 Oct 2012 10:24:02 GMT
Content-Length: 1658256
Date: Wed, 17 Oct 2012 01:12:03 GMT
Server: httpd/1.4.x LaHonda

ozsrv03 curl -I http://www.FreeBSD.org/ports/INDEX-10.bz2
HTTP/1.1 200 OK
Content-Type: application/x-bzip
Accept-Ranges: bytes
ETag: 219974981
Last-Modified: Sat, 13 Oct 2012 11:40:03 GMT
Content-Length: 1658256
Date: Wed, 17 Oct 2012 01:12:08 GMT
Server: httpd/1.4.x LaHonda

-- 
John Marshall



signature.asc
Description: OpenPGP digital signature


Re: Building Ports: Is there a make equivalent for --batch ?

2012-10-07 Thread John Levine
... Note that setting the BATCH environment variable to yes will answer
yes to any prompts during this process, removing the need for manual
intervention during the build process.

(This was said with respect to upgrading ports via portupgrade.)

Or you can use portmaster, which runs through all the ports first and
does the config dialogs before starting the rebuild.  There are stil
a few places it can get stuck, but many fewer than portupgrade.

Portmaster is worth a look just out of amazement. It is a 4,000 line
shell script.

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: iso image question

2012-08-26 Thread John Levine
In article alpine.bsf.2.00.1208261419520.56...@fledge.watson.org you write:
I have a CD that was burned (but not labeled so well). Is is possible to tell 
if 
this is an i386 or amd64 image?

Sure.  Mount it, do a file on some of the programs in /bin and see whether 
they're
i386 or x86-64 code.

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /tmp filesystem full

2012-08-22 Thread John Hein
Andy Wodfer wrote at 12:59 +0200 on Aug 22, 2012:
  Hi,
  I have about 500MB in my /tmp and it seems to be too small when the
  periodic LOCATE script runs every week.
 
  What's the best way to increase the size of /tmp ? Could I simply remove it
  and create a symbolic link ln -s to say /usr/tmp instead (where I have
  several hundred GBs free)?
 
  PS! This is on a live server and I would like to keep downtime and
  problems to a minimum. :-)

One way is to work around your problem is to add
'TMPDIR=/path/to/bigger/filesystem' in /etc/crontab
and/or 'export TMPDIR=/path/...' in /etc/periodic.conf.
No downtime for that.

But yes, you can make /tmp a sym link.  You may have to worry about
edge cases regarding booting (like if the filesystem you point to is
not available early enough at boot time).  In the typical case (e.g.,
locally mounted ufs), it should work fine.  There may be very rare
cases of software that gets confused by a sym link for /tmp, but
certainly the stock periodic scripts should work with it.

Depending on what processes have files open on /tmp, you may decide to
use some down time to make the sym link.  You can't use mv(1) to
rename a mounted mount point.  If you can umount /tmp, then you can
rename it and make the sym link.  But it's possible some processes
have files open in /tmp preventing a normal umount (see lsof(8),
fstat(1)).  You would have to convince those processes to close the
/tmp file descriptors.

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


Apache 2.2 and php 5.4.5 failing on freebsd 8.3

2012-08-20 Thread John Levine
I have a fully patche amd64 freebsd 8.3 server with apache 2.2 and PHP 5.4.5.

In the past day, php scripts have started failing with a variety of random 
errors,
they hang, errors claiming that builtins like require_once() are not found, and
other stuff.  I don't see any pattern.  I also can't figure out what's changed.
I update the ports fairly often, but none of the recent updates were for apache
or PHP.

I've done all the usual voodoo repair: I have rebuilt apache, php, and
all the php modules from source, and rebooted, and it didn't help.

Does this sound familiar?  Any suggestions beyond what I've already done?

R's,
John




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


Re: Apache 2.2 and php 5.4.5 failing on freebsd 8.3

2012-08-20 Thread John R. Levine

I've done all the usual voodoo repair: I have rebuilt apache, php, and
all the php modules from source, and rebooted, and it didn't help.



Did you also rebuilt lang/php5-extensions for the modules you need?


Uh, yes, I said that I did.

Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies,
Please consider the environment before reading this e-mail. http://jl.ly

Re: Apache 2.2 and php 5.4.5 failing on freebsd 8.3

2012-08-20 Thread John R. Levine

Then perhaps you should downgrade to lang/php53 and lang/php53-extensions
and compare the results!


Good thought, I just did that.  Results:

php5.3: works fine as far as I can tell

php5.4: fails in random ways

This suggests there is a bug in 5.4 which only is apparent on FreeBSD 8.x. 
I note that the packages for 8.x have gone away on the distribution 
server, so I expect they're not regression testing 8.x any more


Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies,
Please consider the environment before reading this e-mail. http://jl.ly
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Apache 2.2 and php 5.4.5 failing on freebsd 8.3

2012-08-20 Thread John R. Levine

Good thought, I just did that.  Results:

php5.3: works fine as far as I can tell

php5.4: fails in random ways

This suggests there is a bug in 5.4 which only is apparent on FreeBSD 8.x.
I note that the packages for 8.x have gone away on the distribution server,
so I expect they're not regression testing 8.x any more


Packages??

It's better for you to use the ports tree!


Ahem.  If you will review the messages to which you were responding, you 
will note that yes, I did build everything from the ports tree.  My point 
is that since they're not building 8.3 packages any more, they're not 
validating updated ports against 8.3 any more.


R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Apache 2.2 and php 5.4.5 failing on freebsd 8.3

2012-08-20 Thread John R. Levine
Are you running pecl-APC? If so, what version? There's a major issue with the 
latest.


Hmmn, that might have been it.

I backed down to 5.3, but when I have a chance I'll try 5.4 again without 
APC.


R's,
John

Re: Apache 2.2 and php 5.4.5 failing on freebsd 8.3

2012-08-20 Thread John Levine
 Are you running pecl-APC? If so, what version? There's a major issue with 
 the 
 latest.

Hmmn, that might have been it.

I backed down to 5.3, but when I have a chance I'll try 5.4 again without 
APC.

Tried it without APC, didn't help.  We're back to the theory that there's
something in PHP 5.4.5 that builds OK on 9.0 but not on 8.x.

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Firefox 13.0.1.1 won't build under 8.3 on amd64

2012-08-12 Thread John Levine
I'm reasonably sure I have the png and sqlite3 libraries built as
needed, but the build still barfs when compiling the SSL function
nsNSSErrors.cpp.  The end of the build log is copied below.

I don't have the logs handy, but Thunderbird fails the same way.  Any
suggestions?

R's,
John


c++ -o nsNSSErrors.o -c -I../../../../dist/stl_wrappers 
-I../../../../dist/system_wrappers -include 
../../../.././../config/gcc_hidden.h -DNSS_ENABLE_ECC -DDLL_PREFIX=\lib\ 
-DDLL_SUFFIX=\.so\  -DMOZ_GLUE_IN_PROGRAM 
-DXPCOM_TRANSLATE_NSGM_ENTRY_POINT=1 -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM 
-DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET 
-DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DSTATIC_EXPORTABLE_JS_API 
-DOSTYPE=\FreeBSD8\ -DOSARCH=FreeBSD -I/usr/local/include/nss 
-I../../../.././../security/manager/ssl/src -I. -I../../../../dist/include 
-I../../../../dist/include/nsprpub -I/usr/local/include  
-I/usr/local/include/nspr -I/usr/local/include/nss -I/usr/local/include 
-I/usr/local/include-fPIC -I/usr/local/include/nss 
-I/usr/local/include/nss/nss  -I/usr/local/include -fno-rtti -Wall 
-Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wno-ctor-dtor-privacy 
-Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros -Wcast-align 
-O2 
 -pipe -f
 no-strict-aliasing -fno-exceptions -fno-strict-aliasing -fshort-wchar 
-ffunction-sections -fdata-sections -pipe  -DNDEBUG -DTRIMMED -O2 
-fomit-frame-pointer  -I/usr/local/include/nss -I/usr/local/include/nss/nss 
 -I/usr/local/include -DMOZILLA_CLIENT -include ../../../../mozilla-config.h 
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsNSSErrors.cpp
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsNSSComponent.cpp:
 In member function 'virtual nsresult nsCryptoHash::Finish(bool, 
nsACString_internal)':
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsNSSComponent.cpp:2879:
 error: 'BTOA_DataToAscii' was not declared in this scope
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsNSSComponent.cpp:
 In member function 'virtual nsresult nsCryptoHMAC::Finish(bool, 
nsACString_internal)':
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsNSSComponent.cpp:3070:
 error: 'BTOA_DataToAscii' was not declared in this scope
gmake[5]: *** [nsNSSComponent.o] Error 1
gmake[5]: *** Waiting for unfinished jobs
gmake[5]: Leaving directory 
`/usr/ports/www/firefox/work/mozilla-release/obj-x86_64-portbld-freebsd8.3/security/manager/ssl/src'
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory 
`/usr/ports/www/firefox/work/mozilla-release/obj-x86_64-portbld-freebsd8.3/security/manager/ssl'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory 
`/usr/ports/www/firefox/work/mozilla-release/obj-x86_64-portbld-freebsd8.3/security/manager'
gmake[2]: *** [libs_tier_platform] Error 2
gmake[2]: Leaving directory 
`/usr/ports/www/firefox/work/mozilla-release/obj-x86_64-portbld-freebsd8.3'
gmake[1]: *** [tier_platform] Error 2
gmake[1]: Leaving directory 
`/usr/ports/www/firefox/work/mozilla-release/obj-x86_64-portbld-freebsd8.3'
gmake: *** [default] Error 2
*** Error code 1



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


Re: Firefox 14.0.1 won't build under 8.3 on amd64

2012-08-12 Thread John Levine
Oops, it's 14.0.1 I'm trying to build.  13.0.0.1 is what I have installed now.

In article 20120813053621.24629.qm...@joyce.lan you write:
I'm reasonably sure I have the png and sqlite3 libraries built as
needed, but the build still barfs when compiling the SSL function
nsNSSErrors.cpp.  The end of the build log is copied below.

I don't have the logs handy, but Thunderbird fails the same way.  Any
suggestions?

R's,
John


c++ -o nsNSSErrors.o -c -I../../../../dist/stl_wrappers 
-I../../../../dist/system_wrappers
-include ../../../.././../config/gcc_hidden.h -DNSS_ENABLE_ECC 
-DDLL_PREFIX=\lib\
-DDLL_SUFFIX=\.so\  -DMOZ_GLUE_IN_PROGRAM 
-DXPCOM_TRANSLATE_NSGM_ENTRY_POINT=1
-DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API 
-D_IMPL_NS_GFX
-D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  
-DSTATIC_EXPORTABLE_JS_API
-DOSTYPE=\FreeBSD8\ -DOSARCH=FreeBSD -I/usr/local/include/nss -I..
+ /../../.././../security/manager/ssl/src -I. -I../../../../dist/include
-I../../../../dist/include/nsprpub -I/usr/local/include  
-I/usr/local/include/nspr
-I/usr/local/include/nss -I/usr/local/include -I/usr/local/include-fPIC
-I/usr/local/include/nss -I/usr/local/include/nss/nss  
-I/usr/local/include -fno-rtti -Wall
-Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wno-ctor-dtor-privacy
-Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros 
-Wcast-align -O2 
 -pipe -f
 no-strict-aliasing -fno-exceptions -fno-strict-aliasing -fshort-wchar 
 -ffunction-sections
-fdata-sections -pipe  -DNDEBUG -DTRIMMED -O2 -fomit-frame-pointer  
-I/usr/local/include/nss
-I/usr/local/include/nss/nss  -I/usr/local/include -DMOZILLA_CLIENT 
-include
../../../../mozilla-config.h
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsNSSErrors.cpp
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsNSSComponent.cpp:
 In
member function 'virtual nsresult nsCryptoHash::Finish(bool, 
nsACString_internal)':
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsNSSComponent.cpp:2879:
error: 'BTOA_DataToAscii' was not declared in this scope
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsNSSComponent.cpp:
 In
member function 'virtual nsresult nsCryptoHMAC::Finish(bool, 
nsACString_internal)':
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsNSSComponent.cpp:3070:
error: 'BTOA_DataToAscii' was not declared in this scope
gmake[5]: *** [nsNSSComponent.o] Error 1
gmake[5]: *** Waiting for unfinished jobs
gmake[5]: Leaving directory
`/usr/ports/www/firefox/work/mozilla-release/obj-x86_64-portbld-freebsd8.3/security/manager/ssl/src'
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory
`/usr/ports/www/firefox/work/mozilla-release/obj-x86_64-portbld-freebsd8.3/security/manager/ssl'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory
`/usr/ports/www/firefox/work/mozilla-release/obj-x86_64-portbld-freebsd8.3/security/manager'
gmake[2]: *** [libs_tier_platform] Error 2
gmake[2]: Leaving directory 
`/usr/ports/www/firefox/work/mozilla-release/obj-x86_64-portbld-freebsd8.3'
gmake[1]: *** [tier_platform] Error 2
gmake[1]: Leaving directory 
`/usr/ports/www/firefox/work/mozilla-release/obj-x86_64-portbld-freebsd8.3'
gmake: *** [default] Error 2
*** Error code 1



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



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


Re: Patent hit - MS goes after Linux - FreeBSD ?

2012-08-04 Thread John Levine
 Out of curiosity has anyone ever heard of trolls patenting open source
 technologies after the fact?

The prior art stipulations pretty much kills that off, unless they make a
genuine improvement/change to it to not qualify under that, then they would
be well within patent law to apply for a patent.

The patent office has never been very good at examining software
patents, and I have made a lot of money helping companies document the
prior art not cited in patents that are being asserted against them.

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


No network connectivity to system

2012-08-01 Thread John Salomon
Hi,

I'm running 9.0-R on a small fileserver.  I am weirdly unable to make any
connections (tcp, udp, icmp)  to the machine and am hoping someone has some
off-the-cuff ideas.

I violated rule #1 (don't sysadmin while tired) and somehow nuked my ipfw
configuration while attempting to set up NAT via OpenVPN (using IPDIVERT in
my kernel build).  I rebuilt it from memory, but since then, I cannot
connect to the machine at all.

I do not believe that it is ipfw related.  I've tried enabling/disabling
ipfw via sysctl and /etc/rc.conf.  I've flushed all rules, as well as
installed an entirely open ruleset.  I've re-built and booted into a kernel
with all IPFIREWALL-related options (including IPDIVERT) commented out.
 While I had denyhosts installed, it's disabled.  I've tried single user
mode with networking enabled.

The system boots fine.  It NFS-mounts network drives without problem.
 Default gateway and network configuration look fine, it can ping and
connect to both LAN and Internet addresses.  tcpdump sees incoming
connections, but no replies.

Inetd is running.  From the system console itself, I can telnet to all
ports on its IP.  Syslog tells me nothing.  No console messages.

I'm missing something utterly fundamentally idiotically harebrained and I
have no clue what it could be - I'd be endlessly grateful for any tips or
ideas on what to try (beyond an exorcist).

Thanks!

-John

-- 
John Morgan Salomon
john - at - zog.net
www.zog.net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Firefox 14 build broken due to wrong libpng

2012-07-30 Thread John Levine
In article 20120730045308.gh7...@mail3.dcoder.net you write:
same problem.  so i rebuilt png w/ 

   OPTIONS=APNG Animated PNG support On

firefox build still fails because of complaints about APNG.  what am i missing
here?

I rebuilt png with APNG turned on (make  make deinstall  make install clean)

The png errors went away but it still failed.  The last few lines of the log 
are below.

This is 8.3 on amd64, ports are as far as I know fully up to date.

Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies,
Please consider the environment before reading this e-mail. http://jl.ly



c++ -o nsNSSCallbacks.o -c -I../../../../dist/stl_wrappers 
-I../../../../dist/system_wrappers -include 
../../../.././../config/gcc_hidden.h -DNSS_ENABLE_ECC -DDLL_PREFIX=\lib\ 
-DDLL_SUFFIX=\.so\  -DMOZ_GLUE_IN_PROGRAM 
-DXPCOM_TRANSLATE_NSGM_ENTRY_POINT=1 -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM 
-DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET 
-DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DSTATIC_EXPORTABLE_JS_API 
-DOSTYPE=\FreeBSD8\ -DOSARCH=FreeBSD -I/usr/local/include/nss 
-I../../../.././../security/manager/ssl/src -I. -I../../../../dist/include 
-I../../../../dist/include/nsprpub -I/usr/local/include  
-I/usr/local/include/nspr -I/usr/local/include/nss -I/usr/local/include 
-I/usr/local/include-fPIC -I/usr/local/include/nss 
-I/usr/local/include/nss/nss  -I/usr/local/include -fno-rtti -Wall 
-Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wno-ctor-dtor-privacy 
-Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros -Wcast-align 
-
 O2 -pipe
  -fno-strict-aliasing -fno-exceptions -fno-strict-aliasing -fshort-wchar 
-ffunction-sections -fdata-sections -pipe  -DNDEBUG -DTRIMMED -O2 
-fomit-frame-pointer  -I/usr/local/include/nss -I/usr/local/include/nss/nss 
 -I/usr/local/include -DMOZILLA_CLIENT -include ../../../../mozilla-config.h 
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsNSSCallbacks.cpp
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsProtectedAuthThread.cpp:
 In member function 'void nsProtectedAuthThread::Run()':
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsProtectedAuthThread.cpp:164:
 warning: unused variable 'rv'
nsNSSComponent.cpp
c++ -o nsNSSComponent.o -c -I../../../../dist/stl_wrappers 
-I../../../../dist/system_wrappers -include 
../../../.././../config/gcc_hidden.h -DNSS_ENABLE_ECC -DDLL_PREFIX=\lib\ 
-DDLL_SUFFIX=\.so\  -DMOZ_GLUE_IN_PROGRAM 
-DXPCOM_TRANSLATE_NSGM_ENTRY_POINT=1 -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM 
-DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET 
-DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DSTATIC_EXPORTABLE_JS_API 
-DOSTYPE=\FreeBSD8\ -DOSARCH=FreeBSD -I/usr/local/include/nss 
-I../../../.././../security/manager/ssl/src -I. -I../../../../dist/include 
-I../../../../dist/include/nsprpub -I/usr/local/include  
-I/usr/local/include/nspr -I/usr/local/include/nss -I/usr/local/include 
-I/usr/local/include-fPIC -I/usr/local/include/nss 
-I/usr/local/include/nss/nss  -I/usr/local/include -fno-rtti -Wall 
-Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wno-ctor-dtor-privacy 
-Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros -Wcast-align 
-
 O2 -pipe
  -fno-strict-aliasing -fno-exceptions -fno-strict-aliasing -fshort-wchar 
-ffunction-sections -fdata-sections -pipe  -DNDEBUG -DTRIMMED -O2 
-fomit-frame-pointer  -I/usr/local/include/nss -I/usr/local/include/nss/nss 
 -I/usr/local/include -DMOZILLA_CLIENT -include ../../../../mozilla-config.h 
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsNSSComponent.cpp
nsNSSErrors.cpp
c++ -o nsNSSErrors.o -c -I../../../../dist/stl_wrappers 
-I../../../../dist/system_wrappers -include 
../../../.././../config/gcc_hidden.h -DNSS_ENABLE_ECC -DDLL_PREFIX=\lib\ 
-DDLL_SUFFIX=\.so\  -DMOZ_GLUE_IN_PROGRAM 
-DXPCOM_TRANSLATE_NSGM_ENTRY_POINT=1 -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM 
-DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET 
-DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DSTATIC_EXPORTABLE_JS_API 
-DOSTYPE=\FreeBSD8\ -DOSARCH=FreeBSD -I/usr/local/include/nss 
-I../../../.././../security/manager/ssl/src -I. -I../../../../dist/include 
-I../../../../dist/include/nsprpub -I/usr/local/include  
-I/usr/local/include/nspr -I/usr/local/include/nss -I/usr/local/include 
-I/usr/local/include-fPIC -I/usr/local/include/nss 
-I/usr/local/include/nss/nss  -I/usr/local/include -fno-rtti -Wall 
-Wpointer-arith -Woverloaded-virtual -Werror=return-type -Wno-ctor-dtor-privacy 
-Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros -Wcast-align 
-O2 
 -pipe -f
 no-strict-aliasing -fno-exceptions -fno-strict-aliasing -fshort-wchar 
-ffunction-sections -fdata-sections -pipe  -DNDEBUG -DTRIMMED -O2 
-fomit-frame-pointer  -I/usr/local/include/nss -I/usr/local/include/nss/nss 
 -I/usr

Re: for the impatient: Linux LibreOffice works on FreeBSD

2012-07-19 Thread John Levine
What sort of errors did you encounter while building the package using 
the ports?

The first problem is that it now demands clang-devel, which conflicts
with chromium which still wants regular clang.

Any idea how likely it is that chromium will build if I tell it to use
clang-devel?

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: fsck on FAT32 filesystem?

2012-07-15 Thread John Levine
Is there any such a tool (as fsck for FAT32) available for freeBSD?  If so,
where would I find it?

There's fsck_msdosfs, part of the base system.  Regular fsck should
call it automatically if you run it on a FAT filesystem.

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: portupgrade -- is there a way to only build and update ports that actually NEED it?

2012-06-25 Thread John Levine
You would think there's an option to portupgrade that says don't upgrade 
every single package I've got, but if somewhere in the dependency chain I 
need a newer version of a thing, then do it.

The problem is that the versioning in the ports system doesn't
distinguish between upgrades that present interface changes and
upgrades that are just nits, new features, or minor bug fixes.
Port makefiles can contain version dependency info, e.g., this
port needs at least version N.M of package X, but few of them do.

This has bitten me in the past with PHP and pcre.  In fact, PHP5
won't work with old versions of pcre, but the PHP port maintainer
refuses to put in version dependency info, because he thinks that
every port should be up to date all the time.

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Is ZFS production ready?

2012-06-23 Thread John Levine
 snafu on my part freebsd 8.3 also uses zfs pool version 28:-)

No, 8.3 uses version 15.  It's been quite stable for me.

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Is ZFS production ready?

2012-06-23 Thread John Levine
 snafu on my part freebsd 8.3 also uses zfs pool version 28:-)

No, 8.3 uses version 15.  It's been quite stable for me.

Sorry, I misread my notes, 8.2 uses v 15, 8.3 uses v 28.

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Building libreoffice on 8.3 x86-64, not

2012-06-22 Thread John Levine
I have an 8.3 x86-64 system, fully patched, all ports but one up to date.

When I try to build libreoffice, it fails in various sub-builds.  Most of
the sub-builds work when I retry them, except for tail_build which fails
repeatedly.

It's using clang for the build, but I don't see any option to use GCC.

Any suggestions?  I have 500 megabytes of build logs if anyone wants
to look at them.

R's,
John

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


Free space in ZFS

2012-06-15 Thread John Levine
I made a three disk zraid ZFS pool yesterday from three new 1 TB
disks, which I'm using for backup.  Then I did a backup and made a zfs
volume.  The free space numbers don't make sense.  This is on 8.3, ZFS
version 15.

# zpool list
NAME  SIZE   USED  AVAILCAP  HEALTH  ALTROOT
backup2  2.72T   310G  2.42T11%  ONLINE  -

Given that it's zraid, the total available space should be a little
under 2TB since the third disk is for parity.  But zpool gives me a
total of 2.72T, as though the third disk was for data.

# zfs list
NAMEUSED  AVAIL  REFER  MOUNTPOINT
backup2 206G  1.58T  31.3K  /backup2
backup2/20120615206G  1.58T   206G  /backup2/20120615

Well, that makes more sense, total is 1.78Tb.

# df -g
Filesystem1G-blocks Used Avail Capacity  Mounted on
backup216180  1618 0%/backup2
backup2/20120615   1825  206  161811%/backup2/20120615

Now the total is 1.82Tb.  Huh?  The backup filesystems are compressed,
but surely they're showing me the actual size, not the uncompressed
size.  Or are they?

R's,
John

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


Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-05-31 Thread John Baldwin
On Wednesday, May 30, 2012 3:56:02 pm Mark Felder wrote:
 On Wed, 30 May 2012 12:17:07 -0500, John Baldwin j...@freebsd.org wrote:
 
 
  Humm, can you test it with 2 CPUs?
 
 
 We primarily only run with 1 CPU. We have seen it crash on multiple CPU  
 VMs. Also, Dane Foster appeared to have been using multiple CPUs in his  
 video transcoding VMs.
 
 Unfortunately I can't give you more information at the moment. I'm working  
 with Dane to compile easy to follow steps that recreate this failure. I  
 have not been successful in getting this to crash on demand in my  
 environment, but Dane has so we're trying to recreate his.

Ok.  It would be really helpful if we could get a crashdump, though I realize 
that may not be doable.  Otherwise, full DDB ps output from a hang would be a 
good start.  Primarily I would want to see what the system is doing and why it 
isn't running the threads on the run queue.  It might also be useful to add 
KTR_SCHED tracing so we can get the output of that via 'show ktr' from DDB 
when it hangs.

-- 
John Baldwin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-05-31 Thread John Baldwin
On Thursday, May 31, 2012 11:11:11 am Mark Felder wrote:
 So when this hang happens, there never is a real panic. It just sits in a  
 state which I describe as like being in a deadlock. How would I go about  
 getting a crashdump if it never panics? Is it possible to do the dump over  
 a network or something because I don't believe it can write through the  
 controller at all.

You can break into ddb and run 'call doadump'.  It should use polled IO, so 
there is a slight chance of it working.

 Also, thank you for the KTR_SCHED tip. This is the type of info I was  
 looking for. Unfortunately I've only ever seen this crash once on a kernel  
 with debugging enabled. The machine which is currently prepared to do this  
 work used to crash a few times a week and now it has 70 days uptime...  
 however, it is an example of a machine with mpt0 and em0 sharing an IRQ so  
 I might be able to trigger it using Dane's method.
 
 $ vmstat -i
 interrupt  total   rate
 irq1: atkbd0 392  0
 irq6: fdc0 9  0
 irq14: ata0   34  0
 irq18: em0 mpt0   1189748491218
 cpu0: timer   2174263198400
 Total 3364012124619
 
 
 I'm doing my best to get you guys the info you need, but this is one heck  
 of a Heisenbug...

Thanks.

-- 
John Baldwin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Please help me diagnose this crazy VMWare/FreeBSD 8.x crash

2012-05-30 Thread John Baldwin
On Thursday, May 24, 2012 9:47:46 am Mark Felder wrote:
 On Wed, 23 May 2012 17:30:40 -0500, Adrian Chadd adr...@freebsd.org  
 wrote:
 
  Hi,
 
  can you please, -please- file a PR? And place all of the above
  information in it so we don't lose it?
 
 
 I'd be glad to post a PR and assist in helping to get it permanently  
 fixed. I certainly don't want this data to get lost and honestly our  
 business uses FreeBSD on VMWare so much that we really need a permanent  
 fix as much as anyone else :-)
 
 The reason I've hesitated to post a PR so far is that I didn't have any  
 truly useful or concrete evidence of where the problem lies. After Dane  
 Foster contacted me and told me he could recreate the crash on demand with  
 his workload it was easier to narrow things down. The suggestion that it  
 was an interrupts issue (by possibly Bjoern Zeeb?) and Dane's discovery  
 that his crashes ceased when em0 and mpt0 share an IRQ, but em0 is  
 completely unused was starting to prove there is some strong evidence here  
 in favor of the interrupts issue.
 
 Dane, what's the status on your end? Has your fix still been successful?  
 Is it also stable if you simply set hint.mpt.0.msi_enable=1 ?

Hmm, so the set of ps output you have from DDB shows a lot of runnable 
processes and swi6 (Giant taskq) as the only running thread (all consistent
with your hang).  (And that is from your Ctrl-Alt-Esc)

Do you only have one CPU in this VM?  If not, do you know which threads
the other CPUs were running (e.g. do you have ps7.png, etc.)?

-- 
John Baldwin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Kernel Panic any help?

2012-05-25 Thread John Levine
panic: ffs_clusteralloc: map mismatch

Something's fairly badly screwed up on your disk.  My advice would be
to boot from a CD or USB key and run fsck to try to repair it.

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Evolution 2.32.3 printing

2012-05-23 Thread John Hein
Polytropon wrote at 11:45 +0200 on May 23, 2012:
  On Wed, 23 May 2012 10:20:18 +0200, Matthias Apitz wrote:
  
   Hi,
  
   I run Evolution 2.32.3 in FreeBSD 9-CURRENT in my office because I have
   to use a MS Exchange server with OWA only;
  
   When I want to print something (Ctrl-P) a dialog comes up presenting the
   CUPS configured printers and a field where one could type in a command
   line for printing; this field is pre-set to
  
  lpr
  
   I would like to have it set to
  
  lpr -Paps -o SelectColor=Grayscale -o 
  
   I don't see how to configure this.
 
  I see tow ways to do it:
 
  1. Change the settings for your default printer in the CUPS
 configuration web page. Make aps the default printer
 and add the desired options. Now lpr will default to
 that specific set of options.
 
  2. Consult Evolution's documentation in regards of a config
 file that allows overriding the content of the printing
 dialog setting (such as xpdf can do). Good luck. :-)

3. Install mail/davmail (gateway from proprietary exchange formats to
   standard protocols) and use any mail client you want (via imap or
   pop).  And use any calendar client you want (caldav, ical).
   A bit off topic unless you have an email client that you
   can more easily achieve your goal - so worth mentioning.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Preventing portmaster from using packages for specified ports

2012-05-08 Thread John Webster
--On May 8, 2012 9:33:59 PM +0100 Mike Clarke jmc-freeb...@milibyte.co.uk 
wrote:

 
 I'm happy to use the -P option to let portmaster use packages for most 
 of my ports but there's a few that must be compiled from the port 
 instead because I need to configure non default options, e.g. to enable 
 GIMP plugin support in graphics/xsane
 
 Is there any way of forcing portmaster to never use packages for certain 
 specified ports?
 
 -- 

Would this work for you?  From the manpage:

 For those who wish to be sure that specific ports are always compiled
 instead of being installed from packages the PT_NO_INSTALL_PACKAGE vari-
 able can be defined in the make(1) environment, perhaps in
 /usr/local/etc/ports.conf if using /usr/ports/ports-mgmt/portconf, or in
 /etc/make.conf.  This setting is not compatible with the
 -PP/--packages-only option.



pgpBUQ7LBK3b1.pgp
Description: PGP signature


Re: Preventing portmaster from using packages for specified ports

2012-05-08 Thread John Webster


--On May 8, 2012 10:51:16 PM +0100 Mike Clarke jmc-freeb...@milibyte.co.uk 
wrote:

 On Tuesday 08 May 2012, John Webster wrote:
 
 Would this work for you?  From the manpage:
 
      For those who wish to be sure that specific ports are always
 compiled instead of being installed from packages the
 PT_NO_INSTALL_PACKAGE vari- able can be defined in the make(1)
 environment, perhaps in /usr/local/etc/ports.conf if using
 /usr/ports/ports-mgmt/portconf, or in /etc/make.conf.  This setting
 is not compatible with the -PP/--packages-only option.
 
 Yes, that looks like exactly what I need. I don't know how I missed it, 
 I must have searched through the manpage several times and had a total 
 blind spot for that paragraph - sorry for looking so dumb.
 
 -- 
 Mike Clarke


I know how that is, I've missed stuff in the manpages too.  grin


 sorry for looking so dumb.

Not dumb.  You had a question and you asked it on freebsd-questions
looking for an answer.  That's smart in my book.  That's what the 
list is for.

Cheers,

jw



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


RE: FTP oddness, over SSH session.

2012-04-13 Thread John McDonnell


 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- 
 questi...@freebsd.org] On Behalf Of Dave B

 FYI, you have to create an entry in FileZilla's Site Manager, for it 
 to invoke SFTP, the Quickconnect feature just uses plain vanilla FTP.
 
 Best Regards.
 
 Dave Baxter.

You can use the Quickconnect feature with SFTP. If you are running on
standard port 22, you can simply put 22 in the port box. For non-standard
ports, you can prepend sftp:// to the host name and it will connect via SFTP
instead of FTP.

Apologies to Dave as he'll be getting this twice as I somehow forgot to
include questions@ when replying. Thought this might come in handy for
others who want to SFTP into a box with FileZilla, so resending to the list
this time.

All in all, creating an entry in Site Manager makes more sense if it's
something you connect to from your own hardware. From someone else's
machine, the quick connect is quite handy though.

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


Re: Fast question abount EDITOR

2012-04-05 Thread John Levine
 Do I really need a script which in turns call emacs -nw?
Authoritative answer: 'maybe'. grin

There may be an alternative to the obvious one line shell script, but
that's what one line shell scripts are for.  One of the strengths of
Unix is that its design encourages people to solve problems by
composing existing tools rather than by adding ever more options to
every program.

R's,
John

PS: I realize that over the decades we have strayed somewhat from this ideal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: IPv6 default-route - gone

2012-04-03 Thread John
On 03/04/2012 18:40, Ewald Jenisch wrote:
 Hi,
 
 After installing a new machine under FreeBSD9 I discovered that the
 IPv6-configuration I had in place with FreeBSD8 does no longer work.
 
 Here's what I've got in /etc/rc.conf:
 ipv6_enable=YES
 ipv6_ifconfig_em0=2001:76c:2218:2009::11/64
 ipv6_defaultrouter=2001:76c:2218:2009::1
 
 The interface address correctly shows up under ifconfig however the
 default route doesn't seem to be installed, so I'm basically cut off
 the Internet in terms of IPv6.
 
 Please note that the above config has worked unser FreeBSD8 - in fact
 I've got a couple of boxes under FreeBSD8 with this exact same config.
 
 Has the IPv6-related config changed from FBSD 8 - FBSD 9?
 
 Thanks much in advance for any help,
 -ewald

Hi,

Yeah it's changed in 9. Here's what I have, for autoconfig use with a
tunnel:

ipv6_network_interfaces=re0
ifconfig_re0_ipv6=inet6 accept_rtadv
ip6addrctl_policy=ipv6_prefer

...and it works

For static I'd have:

#ipv6_network_interfaces=re0
#ifconfig_re0_ipv6=my_end_of_tunnel_ipv6_ip prefixlen 64
#ipv6_defaultrouter=their_end_of_tunnel_ipv6_ip
#ip6addrctl_policy=ipv6_prefer

but I've not tried it static yet.
-- 
freebsd at growveg dot net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Still having trouble with package upgrades

2012-03-07 Thread John
On 07/03/2012 18:56, David Jackson wrote:
 You have just now declared complete indifference to and alienated about 99%
 of the potential user base and their needs, those who could care less about
 compiling source and messing with compiler options.

You're forgetting that one size does *not* fit all. There are many
systems and much hardware out there that needs to be tweaked before it
will just work. And there is some hardware that is non-free and will
not work without some software or firmware blob. And it's couldn't care
less not could.
-- 
freebsd at growveg dot net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: make install fails for /usr/ports/security/sudo after downgrade from 9.0-R to 8-STABLE

2012-03-03 Thread John
On 04/03/2012 04:36, ill...@gmail.com wrote:
 Hmm, I would think that merely removing the offending file
 and copying the correct one from /usr/obj/usr/src/tmp/usr/include/
 would suffice.

I dunno, I don't think so. Why would it not be installed in the
downgrade process? Also, the filenames aren't the same but the
functionality (as far as I know) is. It might not have been the only
thing broken.

Downgrading across minor versions is simple and usually painless but
there was a heads-up for the change from utmp.h to utmpx.h in -current
back in January so I guess it was considered a major, low-level change
and the downgrade couldn't work with that.

Anyhow, rebuilding to 9-R has fixed everything as far as I can see, so
I'm happy ;)
-- 
freebsd at growveg dot net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


odd SDcard behaviour in freebsd-9.0-R

2012-02-27 Thread John
Hi list,

I recently upgraded from 8.2-R to 9.0-R via freebsd-update and noticed
different behaviour when I plug in my Nikon D50 via the usb port. I'm
using the generic kernel while I try to sort this. It is the same in all
but identity.

8.2 behaviour used to create a device /dev/da(x)s1 depending on what
else was also connected to the USB subsystem. Typically the system would
see the card whilst it was still in the camera as /dev/da5s1 and I could
then mount it with mount_msdosfs.

9.0 behaviour just shows the following in /var/log/messages:

Feb 26 09:18:02 potato kernel: ugen4.6: NIKON at usbus4
Feb 26 09:18:02 potato kernel: umass2: NIKON NIKON DSC D50, class 0/0,
rev 2.00/1.00, addr 6 on usbus4
Feb 26 09:18:02 potato kernel: umass2:  SCSI over Bulk-Only; quirks = 0x4100
Feb 26 09:18:02 potato kernel: umass2:5:2:-1: Attached to scbus5

and nothing corresponding to the device in /dev

What am I doing wrong?

thanks,
-- 
freebsd at growveg dot net
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Maildir Format

2012-02-17 Thread John Levine
Can anyone suggest a MUA which has support for Maildir that I can use?

Pine is dead, replaced by alpine.  The FreeBSD port has a config option
to support maildirs.  I've used it, it works.

R's,
John
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Printing directly to IP address

2012-02-14 Thread John Levine
same way I do, via a wireless network. The difference is that I am
using CUPS to achieve that goal. My friend would like to do it sans
CUPS if possible.

If the printer supports the hoary lpd protocol, you can configure it
in /etc/printcap.  If it wants socket or IPP protocols, CUPS is the
least painful route.

Installing CUPS on freebsd is pretty straightforward.  The main wart
is that you have to manually move all the lpr commands in /usr/bin out
of the way and symlink them to the CUPS versions in /usr/local/bin.
Other than that, the web config works great, and it has drivers for
vast numbers of printers, particularly when you also install hplip.

R's,
John
-- 
Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies,
Please consider the environment before reading this e-mail. http://jl.ly
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: USB 3 / eSATA support

2012-02-03 Thread John Levine
I have an two-disk external box with both USB and eSATA interface.  Go
with eSATA, which is better supported as a disk.  I use mine as a ZFS
mirror.

I have a SiI3124 SATA controller which isn't recognized by the generic kernel, 
but works
fine once I put a suitable hint in loader.conf:

# for external SATA
siis_load=YES

I also have three USB disks configured as a ZFS RAID which I use for
backups.  It works OK, but I wouldn't want to depend on it from day to
day.

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD 9 on Lenovo X200 what works?

2012-01-25 Thread John Levine
I'm running 8.2 on an X200.  For the most part everything works.  My
main complaint is that the sound is very quiet, and I haven't found
the setting to fix that.

Video and wifi work fine.  The kernel sees the camera and the thumb
reader but I haven't looked for applications that use them.

R's,
John
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


failure - write_dma issue

2012-01-06 Thread John Almberg
One of my servers -- I believe running 6.x -- developed a HD problem last 
night. The console was displaying the following, over and over again:

g_vfs_done():ad0s1d[WRITE(offset=970506240, length=-16384)error= 5
ad0: FAILURE - WRITE_DMA status=71READY,DMA_READY,DSC,ERROR error=4ABORTED 
LBA=3918703

My FreeBSD servers have been quite reliable since I started using them 4 or 5 
years ago, so I don't have much experience debugging them.

Can anyone give me a hint about what might be wrong (I assume with the HD), and 
how/if it might be fixable?

TIA: John 

“Wealth is the ability to fully experience life.” – Henry David Thoreau

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


Re: df with ZFS vs. zpool list

2011-12-15 Thread John Levine
Each of SATA-drives is about 80G in size. When using df -h I'm only
receiving

storage145G42k 145G0%  /storage

where I expected something like 220GB (due to the �-issue). However,

It's raidz.  The third disk is parity for the first two.

   NAMESTATE READ WRITE CKSUM
   storage ONLINE   0 0 0
 raidz1-0  ONLINE   0 0 0
   ada1ONLINE   0 0 0
   ada2ONLINE   0 0 0
   ada3ONLINE   0 0 0

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


What's wrong with this code?

2011-12-12 Thread John Levine
This tiny routine is in a .so loadable module I use.  (It's part of the 
mailfront
SMTP daemon.)

static const char* date_string(void)
{
  static char datebuf[64];
  time_t now = time(0);
  struct tm* tm = gmtime(now);
  strftime(datebuf, sizeof datebuf - 1, %d %b %Y %H:%M:%S -, tm);
  return datebuf;
}

I was getting bogus dates.  Running it under GDB, time() is returning
-1, and setting errno to 22, which is EINVAL.  Changing the call to
time to time(NULL) or time(now) made no difference.

I changed it to a call to gettimeofday(), which works fine.  But what
could the problem have been?  When I splice this routine into a tiny
test program that calls it and prints out the result, it works fine.

The obvious problem, since it's in a .so, is that it's linking to something 
other than
the system library time() function, but I did an nm on the .so, and it said 
this,
which sure looks like the system time() function to me:

 U time@@FBSD_1.0

Setting a breakpoint in gdb gets a complaint about trying to set a breakpoint 
in /lib/libc.so.7.

Any ideas what the problem was?

R's,
John




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


Re: What's wrong with this code?

2011-12-12 Thread John R. Levine

how about a tiny .so that includes -only- that routine, and a 3-line or so
main() that links against -that- .so?


not a bad idea.


Mentioning O/S release level, and CPU architecture would be a good idea :)


Oh sorry, FreeBSD 8.2 release, AMD64

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


re0: PHY read failed

2011-11-17 Thread John Kotrla
this message is appearing hundreds of times. I don't use the device, so 
its more of a neatness thing but it also makes it difficult to use logs 
when this error pops up every single second.


It doesn't begin at boot, usually after a few hours. But if I do plug it 
into my router instead of using WiFi, it connects and works.


re0@pci0:2:0:0: class=0x02 card=0x3656103c chip=0x813610ec rev=0x02 
hdr=0x00

vendor = 'Realtek Semiconductor'
device = 'Realtek 10/100/1000 PCI-E NIC Family all in one NDIS 
Driver v5.728.0604.2009 06/04/2009 (Rtl8023)'

class  = network
subclass   = ethernet


any suggestions?

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


Re: How do you rebuild wpa_supplicant?

2011-11-12 Thread John R. Levine

Doesn't this work for you?

cd /usr/src/usr.sbin/wpa
make install


Well, yes, now that you mention it.  Sigh.

Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies,
Please consider the environment before reading this e-mail. http://jl.ly
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How do you rebuild wpa_supplicant?

2011-11-12 Thread John Levine

Look in /usr/src/usr.sbin/wpa.


Oh, duh.  I used to know that.  Tnx.

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Provides Best Quality Support and Services Of Web Hosting

2011-11-12 Thread john john
 Provides Best Quality Support and Services Of Web Hosting Reseller Hosting

*Would you like to start a web hosting company, or take your current
hosting business to the next level? Our reseller hosting account puts YOU
in control! With **WebHostMaker** you can sell unlimited plans to your
customers and we also enable overselling! You will have your own FREE
private name servers (ns1.yourdomain.com  ns2.yourdomain.com) that will
build and solidify your brand.*

*Basic*

*$3.99** per month *

*Host Unlimited** Domains *

*100 GB** Storage *

*1000 GB** Bandwidth *

*Unlimited** Email Accounts *

*Unlimited** FTP Accounts *

*Unlimited** Databases *

*RvSitebuilder Pro** *

*Softaculous** *

*PHP, CGI, Perl, MySQL, PostgreSQL, Ruby on Rails (RoR), Ioncube, Zend
Opitmizer, Cron Jobs, GD Library, ImageMagick, Awstats etc... *

*Sign Up Now http://www.webhostmaker.com/clients/cart.php?a=addpid=3 Sign
Up to get access now*

*More packages details visit this site now*

*http://www.webhostmaker.com*
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


How do you rebuild wpa_supplicant?

2011-11-11 Thread John Levine
I would like to rebuild wpa_supplicant to increase the maximum number
of APs from 128 to 255.  (I'm sitting in an airline lounge at LAX
where there are 191 visible APs.)

When I use csup to check out the source, there aren't any makefiles.
I tried copying in makefiles from the base wpa tarball, which didn't
work.

Any suggestions how one rebuilds this?  If it matters, I'm using 8.2
RELEASE.

R's,
John



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


Re: How do you rebuild wpa_supplicant?

2011-11-11 Thread John R. Levine

This is part of FreeBSD's user land; i.e. you should checkout the full
sources /usr/src from SVN and build world;


Surely there is some way to rebuild just part of the tree.  I know there 
used to be.


Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies,
Please consider the environment before reading this e-mail. http://jl.ly
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Fast personal printing _without_ CUPS

2011-10-27 Thread John Levine
I'm not a huge fan of CUPS, but at this point it's the best of a bad
lot.  I find the queueing useful, since I often print documents long
enough that I don't want to wait.

More importantly, CUPS, for me at least, seems to be quite slow.
There's a lng pause after I queue something for printing
until something actually comes out of the printer.

Yeah.  I have a similar printer with a similar problem.  I believe
that what's going on is that the current version of CUPS tells all the
clients to print to PDF, then for printers that don't handle PDF,
converts that to postcript using ghostscript which is very, very slow.

I think this is a bug. A few versions ago it used to tell clients to
print postscript which it can send directly to my printer.  I also
looked at using pdftops, which is much faster, to convert the PDF, but
the call to ghostscript and the ghostscript command options are wired
into the CUPS code and were more hassle to change than I wanted to do.

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Fast personal printing _without_ CUPS

2011-10-27 Thread John Levine

I'm not a huge fan of CUPS, but at this point it's the best of a bad
lot.  I find the queueing useful, since I often print documents long
enough that I don't want to wait.

I don't quite understand the issue you are raising john.

$ lpr foo
$ lpr bar
$ lpr baz

It will print the three files in a row, starting each when the previous
one is done.  Like, you know, a print queue.

John are you saying that my documents, some of which *start out* as
.PS files, are converted by CUPS to .PDF and thence (since I don't
have any printers that speak PDF) the document is then converted
*back* to Postscript for actual printing??

Seems that way, based on a little poking around.  If I use something
like evince, I think it will do whatever CUPS tells it to do.  If I
use the basic CUPS lpr command to print a .ps file, that's fast since
there's nothing smart enough to do something stupid.

I think this is a bug.

If it is, then I think it may be a long-standing one.

I did something very like what I just described doing on FreeBSD 8.2 also
back on my old FreeBSD 7.0 system which I first installed maybe three years
of more ago.

My recollection is that CUPS on FBSD 7 printed a lot faster, although
it also may have something to do with the fact that I used to use a
USB to parallel thing, and since then I scored a print server card on
ebay for about $15 and print over the network.  (There are other
computers on the network that other people print from, so this is an
overall win.)

R's,
John

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


Re: Updating emacs fails

2011-10-24 Thread John R. Levine

It sounds to me like the right thing to do is to fix emacs' configuration
so it always uses the base system ncurses whether or not the package
version is there.  Right?


maybe/maybe not.  It depends on what emacs needs - whether it only works
with either its own termcap module or a conventional termcap library in
the system.  Probably its installation documentation tells what's needed.


If you look at the build log I posted, it's failing because it's trying to 
link in the system termcap library and failing because ncurses doesn't 
provide it.


Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies,
Please consider the environment before reading this e-mail. http://jl.ly
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Install FreeBSD using Windows desktop and PXE

2011-10-24 Thread John Kotrla

On 10/24/11 04:29, Eir Nym wrote:

-- Eir Nym



On 24 October 2011 13:23, Eir Nymeir...@gmail.com  wrote:



✪

On 24 Oct 2011, at 11:10, Matthew Seamanm.sea...@infracaninophile.co.uk  
wrote:


On 24/10/2011 02:18, Eir Nym wrote:

I want to install FreeBSD to my second box and I have only Windows 7
x64 desktop without CD drives.
1. I have access to remote FreeBSD server (via SSH) where I can make
custom FreeBSD installation in any format.
2. I know how to create TFTP/DHCPD/PXE server to boot loader and kernel.

So questions are:
1) Do I able to boot some minimal FreeBSD environment without NFS aka
embedded BSD to install fully functional environment? What things
should I do to boot up it?
How can I use Crunch/MFS_ROOT ??


You should be able to PXE boot FreeBSD and then mount a copy of one of
the install DVDs by NFS from where you can run the system installer.
That is, you mount the root filesystem via NFS while you're running the
installer.



There's simple tftp server for Windows with dhcpd features. But NFS server 
becomes available only in Windows 2008 platform.


In principle this should be enough for you to install FreeBSD locally on
your second machine.  This is quite unusual stuff, and probably not as
well tested as more orthodox installation mechanisms.

It might be simpler if you can install from a USB memory stick image.


I'm looking for USB image


I'm looking for USB image writer which works in Windows 7 to write raw
image to USB drive


https://launchpad.net/win32-image-writer






2) How can I write it to Flash drive in Windows 7?
dd/flashnul/rawrite/rawcopy/etc are not working under this OS: it
blocks access to drives even administrative rights.


If you can boot the install media, then you aren't running Windows 7 any
more, and the restrictions imposed by that OS simply don't apply.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW




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



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


Re: Updating emacs fails

2011-10-24 Thread John R. Levine

There's enough in the emacs sources to make it pretty clear that a
failure to have emacs find the termcap functions would be a problem
in the emacs port - emacs prefers -lncurses to -ltermcap unless it's
being overridden.


Well, OK.  Now we know that on FreeBSD that doesn't work, since there's an 
optional ncurses library that doesn't define the termcap functions.  Do we 
fix it, or wave our hands and claim it's someone else's fault?


Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies,
Please consider the environment before reading this e-mail. http://jl.ly
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Updating emacs fails

2011-10-24 Thread John R. Levine

Yes, that's just what I did, and I got an emacs that was linked against
the port version of ncurses.  It worked fine.  I then deleted the
ncurses port to make sure emacs *really* was using ncurses from the
port, and, indeed, emacs stopped working.


That is bizarre.  I got the linker errors you saw in that log until I 
deleted the files from the ncurses port.


Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies,
Please consider the environment before reading this e-mail. http://jl.ly
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Updating emacs fails

2011-10-24 Thread John R. Levine

Yes, that's just what I did, and I got an emacs that was linked against
the port version of ncurses.  It worked fine.


I deinstalled and rebuilt and reinstalled the ncurses port, and now emacs 
builds fine.  Gaaah.  I think the former version was the package that gets 
installed with 8.2, but reconstructing the former state would be a 
challenge.


So, uh, I guess we chalk it up to bit rot.  Never mind.

I have a couple of other ports that fail in similar ways, but I think I'll 
wiggle a few more moving parts before reporting the problem.


Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies,
Please consider the environment before reading this e-mail. http://jl.ly
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Updating emacs fails

2011-10-23 Thread John Levine
anything useful that might help you to fix the problem.  We'd need to see

   * Your choice of options for the port (ie. 'make showconfig' output)

   * A complete build log showing the problem occurring. (ie  'make
 clean build' output)

   * The config.log from $WRKSRC showing what autoconf did.

I put them at http://www.taugh.com/emacsbuild.txt

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Updating emacs fails

2011-10-23 Thread John R. Levine

On 23/10/2011 09:03, John R. Levine wrote:

   checking for tparm in -lncurses... no

but that's not correct.  libncurses should certainly contain that
symbol.  I get a 'yes' there on my stable/8 machine.  As -lncurses is
part of your LDFLAGS ... hmmm... do you have libncurses on your system
anywhere other than in /lib ?


I have the ncurses-5.9 package installed from ports.  Several gnome
programs depend on it:

pkg_delete: package 'ncurses-5.9' is required by these other packages
and may not be deinstalled:
aalib-1.4.r5_6
gnome-games-2.32.1_2
guile-1.8.8
libcdio-0.82_2
libxine-1.1.19_7


Interesting.  Can you try moving /usr/local/lib/libncurses.* and
/usr/local/include/ncurses.h aside temporarily and then rebuild emacs?
If that works, then looks like you've found a bug in the editors/emacs
port, which should be reported to the port's maintainer.


Yup, that fixed it.  I'll file a bug report.  I tried rebuilding some of 
the packages that allegedly depend on the ncurses port, and they all 
seemed to work OK, so the right solution may be to deprecate the ncurses 
port or fold it into the mainline system.


Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies,
Please consider the environment before reading this e-mail. http://jl.ly
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Updating emacs fails

2011-10-23 Thread John R. Levine

On 23/10/2011 09:03, John R. Levine wrote:

   checking for tparm in -lncurses... no

but that's not correct.  libncurses should certainly contain that
symbol.  I get a 'yes' there on my stable/8 machine.  As -lncurses is
part of your LDFLAGS ... hmmm... do you have libncurses on your system
anywhere other than in /lib ?


I have the ncurses-5.9 package installed from ports.  Several gnome
programs depend on it:

pkg_delete: package 'ncurses-5.9' is required by these other packages
and may not be deinstalled:
aalib-1.4.r5_6
gnome-games-2.32.1_2
guile-1.8.8
libcdio-0.82_2
libxine-1.1.19_7


Interesting.  Can you try moving /usr/local/lib/libncurses.* and
/usr/local/include/ncurses.h aside temporarily and then rebuild emacs?
If that works, then looks like you've found a bug in the editors/emacs
port, which should be reported to the port's maintainer.


Yup, that fixed it.  I'll file a bug report.  I tried rebuilding some
of the packages that allegedly depend on the ncurses port, and they
all seemed to work OK, so the right solution may be to deprecate the
ncurses port or fold it into the mainline system.


The way it's supposed to work is that emacs will depend on (and link to)
ncurses if it's installed when the emacs port is built, and to the base
system curses if not.  I just did a quick test, and this was just what
did happen.  So at least part of the problem is local to your system...


Did you try installing the ncurses port and then rebuilding emacs? For 
some reason the library in the ncurses port doesn't define the termcap 
routines, leading to the problem.


This computer has an extremely vanilla install of 8.2 with gnome.  I'm 
having trouble figuring what I'm doing different from anyone else other 
than perhaps doing portupgrade more often than others do.


Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies,
Please consider the environment before reading this e-mail. http://jl.ly
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Updating emacs fails

2011-10-23 Thread John Levine
ncurses is already in the base system - with different options. ...

 Did you try installing the ncurses port and then rebuilding emacs? For 
 some reason the library in the ncurses port doesn't define the termcap 
 routines, leading to the problem.

Whether or not the termcap routines are provided isn't configurable.
However, emacs could be confused since they're implemented on top
of terminfo.

It sounds to me like the right thing to do is to fix emacs' configuration
so it always uses the base system ncurses whether or not the package
version is there.  Right?

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Updating emacs fails

2011-10-22 Thread John Levine
For at least several weeks, attempts to rebuild emacs from ports fails
with an odd linker error saying it can't find symbols in the termcap
library.  I poked around a little, the makefile does include the
appropriate library and adding it again at the end of the line in
the makefile didn't help.

This is on 8.2, building it with no nonstandard options I'm aware of.

Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies,
Please consider the environment before reading this e-mail. http://jl.ly

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


Re: Do you find chrome on FreeBSD buggy?

2011-10-15 Thread John Levine
I've had the same problem with recent versions on amd64 8.2.

The versions at http://chromium.hybridsource.org/ work much better.
They cost a little money but it's worth it.

R's,
John
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


  1   2   3   4   5   6   7   8   9   10   >