Re: DBus, Hald and Gnome Volume Manager

2006-01-06 Thread Hans Nieser

Crispy Beef wrote:

Hi,

Have recently set-up hald, dbus and gnome-volume-manager on my Linux box 
so that devices are automounted in fstab etc.  Works great!  Have had a 
look to see if I can have this running with Gnome on my 6.0-RELEASE 
laptop, found dbus in ports, but hald and gnome-volume-manager are 
nowhere to be seen.


Did some more digging and found that hald doesn't seem to have been 
ported yet which is probably why I've hit a dead end.  The site I found 
the info on was from 2004 so it could be out of date, any ideas if 
there's been any progress in this area?


There has been some talk about this on the freebsd-gnome list ( 
http://lists.freebsd.org/pipermail/freebsd-gnome/2006-January/013312.html 
), you might want to check there (or its archives at 
http://lists.freebsd.org/pipermail/freebsd-gnome/ ).


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


Remote backups, reading from and writing to the same file

2006-01-12 Thread Hans Nieser

Hi list,

For a while I have been doing remote backups from my little server at home 
(which hosts some personal websites and also serves as my testing 
webserver) by tarring everything I wanted to be backed up and piping it to 
another machine on my network with nc(1), for example:


On the recieving machine: nc -l 1 > backup-`date +%Y-%m-%d`.tar.gz

On my server: tar -c -z --exclude /mnt* -f - / | nc -w 5 -o aphax 1

(Some excludes for tar(1) are left out for simplicity's sake)

Among the things being backed up are my mysql database tables. This made 
me wonder wether the backup could possibly get borked when mysql writes to 
any of the mysql tables while tar is reading from them.


Do I really have to use MySQL's tools to do a proper SQL dump or stop 
MySQL (and any other services that may write to files included in my 
backup) before doing a backup? Do any of the more involved remote-backup 
solutions have ways of working around this? Or is it simply not possible 
to write to a file while it is being read?

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


Re: mysql backups (was Re: Remote backups, reading from and writing to the same file)

2006-01-14 Thread Hans Nieser

N.J. Thomas wrote:

* Hans Nieser <[EMAIL PROTECTED]> [2006-01-13 00:25:14 +0100]:

Among the things being backed up are my mysql database tables. This
made me wonder wether the backup could possibly get borked when mysql
writes to any of the mysql tables while tar is reading from them.


Yes. While MySQL is writing to the the database, it will put the files
on the disk in an inconsistent state. If you happen to copy those files
while they are in that state, MySQL will see a corrupted database.



Thanks for the replies all. I think for the short term I will simply 
lock/shutdown my MySQL server (it is a home-server after all), in the long 
term I think I will look into snapshotting. I've also been thinking about 
just doing an SQL dump with mysqldump right before the backup, that will 
still copy along the tables which may be in an inconsistent state, but 
also the sql dump.

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


Re: ssl config problem

2006-01-25 Thread Hans Nieser

Beech Rintoul wrote:
I'm trying to set up two virtual ssl websites on Apache2. When I go the the 
first site, it returns the proper cert and everything works as expected. But, 
when I go to the second site it returns the cert from the first site even 
though a different set of certs is specified in ssl.conf. If I comment out 
the first site, the second site works correctly. I've been all through the 
docs on apache.org and I can't figure out what I'm doing wrong.


Because of the way SSL works it is not possible to use different SSL certs 
for name-based virtual hosts. You will have to use unique IP addresses

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


Re: FreeBSD Ports vs. Gentoo Portage (a matter of concept)

2006-02-07 Thread Hans Nieser

FreeBSD Prospect wrote:

Hi,

Reading a lot about FreeBSD recently made me really curious. I know, that the 
founder of Gentoo (the well known GNU/Linux meta-distribution, which is also 
based on compiling everything from source) was using FreeBSD for some time, 
before continuing creating Gentoo, what's why portage (the Gentoo software 
management system) is generally based on FreeBSD's ports. 


[.. comparison of ports/portage features ..]

I've been running Gentoo on my desktop computer for a few months and 
FreeBSD on my laptop / server machines. What I am especially fond of in 
portage is the USE-flags and the way you can specify then globally and 
individually for each package and how you can get a nice, short overview 
of which USE-flags a package uses and which of them are enabled with 
"emerge -pv port". And also how you can find their descriptions without 
having to dig through Makefiles (although that's becoming less 
intimidating for me now that I have been using FreeBSD for half a year or so).


FreeBSD-ports' config mechanism isn't too bad but not all ports seem to 
support these. I also remember an instance where I did a config-recursive 
before installing Gnome and I was still presented with one or two config 
menus.

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


Re: compat 5.X where to find?

2006-02-21 Thread Hans Nieser
Bernt Hansson wrote:
> Hi all
> 
> Trying to install nvidias drivers for my graphicscard nvidia 400MX
> The install is looking for compat 5.X I dont have that one, where can I
> find compat 5.X? Can I install it after installing FreeBSD?
> 
> It's on a testbox so no need to panic.

Yes I believe you can. See /usr/ports/misc/compat5x . There is also a
kernelconfig option for it, my guess is you need that too, but it is
enabled in GENERIC so unless you specifically removed it you probably have
nothing to worry about.

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


ports libtool change, what does it mean?

2006-02-23 Thread Hans Nieser
Earlier today, after a portsnap, I noticed a lot of ports with new
revisions. I checked the UPDATING file, but it had nothing new in it
(something about acroread7 was the latest entry). I decided to just do a
simple portupgrade -a and let it rebuild everything (this is on a laptop
with Xorg, Gnome2, etc.).

Sometime later I portsnapped a server machine and noticed that there was
now an updated UPDATING file explaining that the ports revisions were
bumped because of the libtool change. It seems I portsnapped my laptop at
a bad time, as it had apparently already gotten the ports after the
libtool change but not the updated UPDATING file. (Note that I installed
FreeBSD 6.0-RELEASE on this laptop only 2 days ago with a fresh portstree
 so I don't think the bumped ports could have from some previous change).

I have read the UPDATING entry 3 times now but I'm still not really sure
what it means. Fortunately it seems that my laptop's portupgrade -a went
OK except a dependency of subversion (apr-db4) failing to configure, but
since I don't need svn at the moment I just removed it altogether and let
it be for now. My question basically is, can I expect more problems later
on, if so, should I rebuild my system from scratch?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Remove a Port and All Dependencies

2006-02-24 Thread Hans Nieser
Jeff Cross wrote:
> I would like to know if it is possible to remove a port/package and all
> of the dependencies it installed that are not needed by other applications.
> 
> Example: I installed Nautilus and some Gnome games but don't want them
> installed any longer.  However, if I remove the package itself, doesn't
> it leave all of the other dependencies out there?
> 
> Upgrading my system takes forever now that there are a ton of libs and
> such installed by these applications.  So, if anyone can point me in the
> right direction for doing this I would greatly appreciate it.
> 

There is a menu-ish version of pkg_cutleaves called pkg_rmleaves. I use
this to clean up any ports that don't aren't depended upon anymore and
that I don't need anymore. When new leaf-packages (packages that arent
depended upon) are created by doing so it will show them again and allow
you to remove these too (and so on, recursively). I found this to be a
really easy way to clean up an entire system in a matter of minutes.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Card for basic 3D acceleration in FreeBSD

2006-03-02 Thread Hans Nieser
Micah wrote:
> 
> I'm looking for a card to handle some simple OpenGL stuff for a class
> I'm taking.  I have an ATI X300 card, but 3D acceleration is not
> supported on it in the current Xorg.  The only slots on my Mobo are PCI
> and PCI-EX.  I use the i386 release of FreeBSD currently, but would like
> to have the option to move to the amd64 release.  Any suggestions on a
> low-end (read cheap) card?  I know "nvidia" is often recommended, but
> any particular model?
> 

I myself ran into an issue with FreeBSD and nvidia where my PCI-Express
Geforce 6800GT only gave a fraction of the performance that I should have
been able to get. After asking about it on the nvidia forums at nvnews.net
I was told that there is an issue between the nvidia driver and FreeBSD
kernel that affect non-native PCI-Express cards, it was being worked on
but for now I am still suffering from it. More info:

http://www.nvnews.net/vbulletin/showthread.php?t=59981
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Card for basic 3D acceleration in FreeBSD

2006-03-03 Thread Hans Nieser
Micah wrote:
> Hans Nieser wrote:
>> Micah wrote:
>>> I'm looking for a card to handle some simple OpenGL stuff for a class
>>> I'm taking.  I have an ATI X300 card, but 3D acceleration is not
>>> supported on it in the current Xorg.  The only slots on my Mobo are PCI
>>> and PCI-EX.  I use the i386 release of FreeBSD currently, but would like
>>> to have the option to move to the amd64 release.  Any suggestions on a
>>> low-end (read cheap) card?  I know "nvidia" is often recommended, but
>>> any particular model?
>>>
>>
>> I myself ran into an issue with FreeBSD and nvidia where my PCI-Express
>> Geforce 6800GT only gave a fraction of the performance that I should have
>> been able to get. After asking about it on the nvidia forums at
>> nvnews.net
>> I was told that there is an issue between the nvidia driver and FreeBSD
>> kernel that affect non-native PCI-Express cards, it was being worked on
>> but for now I am still suffering from it. More info:
>>
>> http://www.nvnews.net/vbulletin/showthread.php?t=59981
> 
> Yeah, I've seen that problem mentioned in previous posts.  How terrible
> is the performance?  I just need something that can get more than 1 fps
> on simple ogl class projects.
> 
> Additionally, does anyone know the answer to the last question in the
> thread pointed to above? "Exactly which nvidia cards are/are not
> 'native' PCI-Express?"
> 

Well, the performance isn't too horrible I think, especially if you're
just going to run some basic OpenGL apps. I think it was roughly 1/4 to
1/3 of what I would get in Windows in a game like Doom 3, games like Quake
3 actually ran at about 40-50 FPS on the Geforce 6800GT

I too am curious about which cards are native PCI-Express
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Unable to perform clean shutdown.

2005-10-29 Thread Hans Nieser

Hi list,

I am experimenting with using FreeBSD as a desktop OS (with Xorg and
GNOME), and because I still need to keep Windows around for certain
applications, I have decided to create 3 partitions (or slices in the BSD
world). One NTFS, for Windows (ad8s1, 40GiB), one for FreeBSD (ad8s2,
20GiB) and one Ext2 partition to share data between the two OSs (ad8s3,
taking up the rest of the disk). The disk itself is a S-ATA disk, and
identified during boot-up as:


ad8: 190782MB  [387621/16/63] at

ata4-master UDMA33

I chose Ext2 as it would allow me to still use UNIX permissions under
FreeBSD, and could be read from and written to in Windows using a
third-party driver. Because neither FreeBSD nor the Ext2 driver in Windows
support Ext3 journalling I figured there was no point in using that.

My problem is, and I believe it started after I created the Ext2
partition, that my system is not able to perform a clean shutdown anymore.
When I do a "shutdown -p now" or "reboot" it will sync the disks but then
says "Giving up on 8 buffers." right before it turns off, is that normal?

When FreeBSD boots the next time it will complain and tells me "WARNING: /
was not properly dismounted.", it does this for all the FreeBSD partitions
(/var, /tmp, /usr).

It also appears that the fsck for Ext2 (which I had to install from ports
and then manually copy the e2fsck and fsck_ext2fs binaries from
/usr/local/sbin to /sbin) also has some issues, as it outputs the
following during boot-up:


fsck_ext2fs: unknown option -F


Dispite that, the next thing happens is a forced fsck of the Ext2
partition (which takes a while). Then eventually FreeBSD boots and GDM 
starts and all seems to be in working order.


This is what my /etc/fstab looks like:

# Device   Mountpoint  FStype  OptionsDump  Pass# 
/dev/ad8s2bnoneswapsw 0 0 
/dev/ad8s2a/   ufs rw 1 1 
/dev/ad8s2e/tmpufs rw 2 2 
/dev/ad8s2f/usrufs rw 2 2 
/dev/ad8s2d/varufs rw 2 2


/dev/acd0  /mnt/cdrom  cd9660  ro,noauto,noexec   0 0 
/dev/ad8s1 /mnt/windowsntfsro,noexec  0 0 
/dev/ad8s3 /mnt/shared ext2fs  rw 0 2


Does anyone know what causes my system not to be able to perform a clean
shutdown anymore? and, does anyone know what the deal with fsck_ext2fs
being called with a non-existent -F options is?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Unable to perform clean shutdown.

2005-10-30 Thread Hans Nieser

Hans Nieser wrote:

Hi list,


[...]


Does anyone know what causes my system not to be able to perform a clean
shutdown anymore? and, does anyone know what the deal with fsck_ext2fs
being called with a non-existent -F options is?


My apologies, I didn't properly google the subject and missed 
http://hacks.oreilly.com/pub/h/3243 and various mailinglist posts.

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


Serial ATA drive in UDMA33 mode, nForce 4 chipset

2005-10-31 Thread Hans Nieser

Hi list,

I have an ASUS A8N-SLI Deluxe motherboard (which has an nForce4 chipset) 
and use a 200GB Western Digital Serial ATA hard disk in a box with FreeBSD 
5.4-RELEASE-p8 on it. For some reason, this disk is using the UDMA33 mode. 
I have come to understand that it should be able to use a much faster 
mode. I placed the output of pciconf -lv online here: 
http://pastebin.com/412798 . The relevant lines from dmesg:


  
  atapci0:  port
0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 6.0 on pci0
  ata0: channel #0 on atapci0
  ata1: channel #1 on atapci0
  atapci1:  port 
0xd800-0xd80f,0xb70-0xb73,0x970-0x977,0xbf0-0xbf3,0x9f0-0x9f7 irq 20 at 
device 7.0 on pci0

  ata2: channel #0 on atapci1
  ata3: channel #1 on atapci1
  atapci2:  port 
0xc400-0xc40f,0xb60-0xb63,0x960-0x967,0xbe0-0xbe3,0x9e0-0x9e7 irq 22 at 
device 8.0 on pci0

  ata4: channel #0 on atapci2
  ata5: channel #1 on atapci2
  ad8: 190782MB  [387621/16/63] at 
ata4-master UDMA33

  

I have tried - without success - to change the mode to UDMA133 (and slower 
modes, down to UDMA33) manually as follows:


  
  [EMAIL PROTECTED]:~# atacontrol list
  ATA channel 0:
  Master: acd0  ATA/ATAPI revision 0
  Slave:   no device present
  ATA channel 1:
  Master:  no device present
  Slave:   no device present
  ATA channel 2:
  Master:  no device present
  Slave:   no device present
  ATA channel 3:
  Master:  no device present
  Slave:   no device present
  ATA channel 4:
  Master:  ad8  Serial ATA v1.0
  Slave:   no device present
  ATA channel 5:
  Master:  no device present
  Slave:   no device present

  [EMAIL PROTECTED]:~# atacontrol mode 4
  Master = UDMA33
  Slave  = BIOSPIO

  [EMAIL PROTECTED]:~# atacontrol mode 4 udma6 biospio
  Master = UDMA33
  Slave  = BIOSPIO
  

After some googling I found a previous mailinglist post, one was about so 
called 'MKIII' patches, which I was going to give a try, when I read 
another post from earlier this year from someone with the same chipset 
with the exact same issue: 
<http://lists.freebsd.org/pipermail/freebsd-current/2005-May/050522.html>

And he's had no success with the patches.

So now I'm wondering what I should do... Should I try those patches 
anyway? (If so, does anyone know of a guide for someone who has never 
applied any patches before?) Is there perhaps by now another solution for 
this, or should I just switch to 6.0RC1 (or final, which I understand 
should be released very soon)?


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


Re: 6.0 panics on boot

2005-11-06 Thread Hans Nieser

Derek Ragona wrote:


I have a computer that has been running FreeBSD 4.X and 5.X without
problems.  It runs 5.4 with no problems at all.  This system has an 
Intel 845 Motherboard and chipset, Intel Pentium 4 1.6 GHz CPU, 1 GB 
RAM, NVidea GEForce MX/MX 400 video card, atapi CD-RW, IDE hard drive, 
standard floppy.  Nothing very exotic in this hardware.


I tried first to cvsup to 6.0, and rebuild everything.  The build was 
fine including a custom kernel, but when I tried to boot the new 6.0, I 
got a panic, Fatal trap 12, page fault at the NVidea driver in the 
boot.  So I re-booted the kernel.old, reverted my sources to 5.4 and 
rebuilt the system all again.


As the system rebuilt I downloaded and burned the ISO 6.0 image.

I tried to boot the ISO image and do a binary upgrade.  The CD booted 
6.0 fine, and the upgrade installed with only one error that the X.org 
was already present.  When I tried to boot the new 6.0 GENERIC kernel 
that was installed, I got the same panic/page fault error I had when I 
updated via cvsup.


But since the same GENERIC kernel boots fine from CD I suspect there may 
be some loader options I might need?  I'd appreciate any help with 
getting 6.0 to boot without the panic.


Thanks


Hi Derek,

You probably just have to stop the nvidia driver from loading by 
specifying "unset nvidia_load" at the boot prompt and reinstall the nvidia 
driver once the system is booted.


That's what I did at least, and I have had no problems while I've heard 
from other people that didn't disable and rebuilt their nvidia drivers 
that they also got panics on boot.

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


Re: 6.0 panics on boot

2005-11-06 Thread Hans Nieser

Derek Ragona wrote:

At 07:19 PM 11/6/2005, Hans Nieser wrote:


Derek Ragona wrote:


I have a computer that has been running FreeBSD 4.X and 5.X without
problems.  It runs 5.4 with no problems at all.  This system has an 
Intel 845 Motherboard and chipset, Intel Pentium 4 1.6 GHz CPU, 1 GB 
RAM, NVidea GEForce MX/MX 400 video card, atapi CD-RW, IDE hard 
drive, standard floppy.  Nothing very exotic in this hardware.
I tried first to cvsup to 6.0, and rebuild everything.  The build was 
fine including a custom kernel, but when I tried to boot the new 6.0, 
I got a panic, Fatal trap 12, page fault at the NVidea driver in the 
boot.  So I re-booted the kernel.old, reverted my sources to 5.4 and 
rebuilt the system all again.

As the system rebuilt I downloaded and burned the ISO 6.0 image.
I tried to boot the ISO image and do a binary upgrade.  The CD booted 
6.0 fine, and the upgrade installed with only one error that the 
X.org was already present.  When I tried to boot the new 6.0 GENERIC 
kernel that was installed, I got the same panic/page fault error I 
had when I updated via cvsup.
But since the same GENERIC kernel boots fine from CD I suspect there 
may be some loader options I might need?  I'd appreciate any help 
with getting 6.0 to boot without the panic.

Thanks



Hi Derek,

You probably just have to stop the nvidia driver from loading by 
specifying "unset nvidia_load" at the boot prompt and reinstall the 
nvidia driver once the system is booted.


That's what I did at least, and I have had no problems while I've 
heard from other people that didn't disable and rebuilt their nvidia 
drivers that they also got panics on boot.


Hans,

Let me see if I understand the process.  When I go to boot 6.0, escape 
to the boot prompt, then type:

unset nvidia_load

Once the system boots then, how do I reinstall the nvidia driver?  That 
last step has me confused.  Would I rebuild the kernel again?  Or 
something else?


I (hopefully correctly) assumed you were using NVIDIA's own native drivers 
for FreeBSD as a loadable module (from the x11/nvidia-driver port), if so, 
then after booting without the nvidia module loaded, a "portupgrade -f 
nvidia-driver" should do the trick (or pkg_delete nvidia-driver && cd 
/usr/ports/x11/nvidia-driver && make install clean).


But just in case, this is how I upgraded my system; I deleted all the 
ports/packages I had installed (since they have to be rebuilt for 6.0 
anyway) with "pkg_delete -a", cvsupped ports and the RELENG_6_0 sources, 
rebuilt the kernel/world, commented out any third party modules (including 
nvidia) in /boot/loader.conf, rebooted and installed all the packages 
(including x11/nvidia-driver) I needed, and that's basically it.


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


Re: Upgrade from 5.3 to 6.0

2005-11-06 Thread Hans Nieser

Doug Hardie wrote:
I am in the midst of upgrading via source from 5.3 to 6.0.  All is  
going fine, but the instructions in UPDATING do not include a make  
installkernel command.  I know that needs to be done somewhere.  I  
suspect between the buildkernel and the reboot.


I think it says "make kernel ...", which apparently does both
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Upgrade from 5.3 to 6.0

2005-11-07 Thread Hans Nieser

Doug Hardie wrote:

On Nov 6, 2005, at 22:15, Hans Nieser wrote:

Doug Hardie wrote:


I am in the midst of upgrading via source from 5.3 to 6.0.  All  is  
going fine, but the instructions in UPDATING do not include a  make  
installkernel command.  I know that needs to be done  somewhere.  I  
suspect between the buildkernel and the reboot.



I think it says "make kernel ...", which apparently does both


I see that now.  But, then how do you build multiple kernels?  I  
maintain all source on one system and build all the kernels there.  I  
don't want to install them as they won't work.  Also, I don't want to  
build them on the production machines, just install them.


I think you can still use the buildkernel and installkernel targets for 
that purpose, they are still mentioned in the Makefile at least.

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


Re: Unusual permissions on /var/named/etc/namedb/master?

2005-11-08 Thread Hans Nieser

Lowell Gilbert wrote:

Josh Tolbert <[EMAIL PROTECTED]> writes:



Hello,

I'm running DHCP + dynamic DNS here on my home LAN and I've noticed a problem
that needs a manual fix every time the DNS machine gets rebooted. It doesn't
happen very often, but it does happen. :)

My firewall/gateway machine runs FreeBSD-5.4-RELEASE of some patchlevel. It
uses ISC DHCPD from ports to update my DNS server, another FreeBSD machine
(now running 6.0-RELEASE) with new entries when machines register with the
DHCP server. The problem arises because by default named runs -u bind, however
/var/named/etc/namedb/master is owned by root. I believe this is caused by
/etc/mtree/BIND.chroot.dist, since I'm running bind chrooted (the default
setup). When the DNS machine reboots, I have to manually chown
/var/named/etc/namedb/master (or /etc/namedb/master) to bind before updates
will continue, otherwise I see errors such as

named[297]: dumping master file: master/tmp-QQ2UU6pWaZ: open: permission denied

Is there any good workaround for this issue? I'd like to keep bind running as
the bind user as well as keep bind chrooted if possible. I know I could edit
the mtree file on my machine, but that seems somewhat kludgy to me.

Thanks for any help/advice you can give me,



Normally mtree is only automatically run by installworld.  
Is that what causes the permissions to be reverted?

If so, then change the mtree file (and keep the modifications over
time when you run mergemaster).
If not, then figure out what *is* changing the permissions.


This happened to me too; everytime named started it would change back the 
owner of the "master" directory from "bind" to "root" according to the 
mtree file.


In the end I just used the "dynamic" folder to store my dynamic zones in 
with "bind" as owner, which makes more sense, and also doesn't get its 
user changed by the mtree.


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


Getting rid of /dev and mount entry after unplugging mounted USB memory stick

2005-11-12 Thread Hans Nieser

Hi list,

Every now and then I forget to unmount my USB memory stick. This becomes a 
problem because every time I do it, I am left with a bogus mount and 
device entry. "umount -f" makes the whole machine reboot instantly. From 
the googling that I have done, I have concluded that this is normal. (But 
just to be sure, I will paste my dmesg output below).


Is there a way I can get rid of the bogus mount / device entry other than 
rebooting, or will I really have to teach myself to unmount my USB device 
everytime before I unplug it?


Note that integrity of the data or data-transfer speed of the USB device 
is not critical as it is actually an MP3 player that I copy a bunch of 
mp3s to every now and then. So sacrifices can be made if neccesary.


Below is the dmesg output of all USB-related devices (da0 through da3 are 
flashcard readers, haven't actually done anything with those so they can 
probably be ignored). Output from plugging in the mp3player is at the bottom.


ohci0:  mem 0xc9003000-0xc9003fff irq 21 at 
device 2.0 on pci0

ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0:  on ohci0
usb0: USB revision 1.0
uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 10 ports with 10 removable, self powered
ehci0:  mem 0xfeb0-0xfeb000ff irq 
22 at device 2.1 on pci0

ehci0: [GIANT-LOCKED]
usb1: EHCI version 1.0
usb1: companion controller, 4 ports each: usb0
usb1:  on ehci0
usb1: USB revision 2.0
uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 10 ports with 10 removable, self powered
uhub2: vendor 0x03eb Standard USB Hub, class 9/0, rev 1.10/3.00, addr 2
uhub2: 4 ports with 4 removable, self powered
umass0: ICSI IC1100 V2.5b, rev 1.10/2.5b, addr 3
ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/21.00, addr 4, iclass 3/1
ums0: 7 buttons and Z dir.
da0 at umass-sim0 bus 0 target 0 lun 0
da0:  Removable Direct Access SCSI-0 device
da0: 1.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
da1 at umass-sim0 bus 0 target 0 lun 1
da1:  Removable Direct Access SCSI-0 device
da1: 1.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present
da2 at umass-sim0 bus 0 target 0 lun 2
da2:  Removable Direct Access SCSI-0 device
da2: 1.000MB/s transfers
da2: Attempt to query device size failed: NOT READY, Medium not present
da3 at umass-sim0 bus 0 target 0 lun 3
da3:  Removable Direct Access SCSI-0 device
da3: 1.000MB/s transfers
da3: Attempt to query device size failed: NOT READY, Medium not present
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
(da0:umass-sim0:0:0:0): Unretryable error
Opened disk da0 -> 6
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
(da0:umass-sim0:0:0:0): Unretryable error
Opened disk da0 -> 6
(da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): NOT READY asc:3a,0
(da0:umass-sim0:0:0:0): Medium not present
(da0:umass-sim0:0:0:0): Unretryable error
Opened disk da0 -> 6
(da1:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0
(da1:umass-sim0:0:0:1): CAM Status: SCSI Status Error
(da1:umass-sim0:0:0:1): SCSI Status: Check Condition
(da1:umass-sim0:0:0:1): NOT READY asc:3a,0
(da1:umass-sim0:0:0:1): Medium not present
(da1:umass-sim0:0:0:1): Unretryable error
Opened disk da1 -> 6
(da1:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0
(da1:umass-sim0:0:0:1): CAM Status: SCSI Status Error
(da1:umass-sim0:0:0:1): SCSI Status: Check Condition
(da1:umass-sim0:0:0:1): NOT READY asc:3a,0
(da1:umass-sim0:0:0:1): Medium not present
(da1:umass-sim0:0:0:1): Unretryable error
Opened disk da1 -> 6
(da1:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0
(da1:umass-sim0:0:0:1): CAM Status: SCSI Status Error
(da1:umass-sim0:0:0:1): SCSI Status: Check Condition
(da1:umass-sim0:0:0:1): NOT READY asc:3a,0
(da1:umass-sim0:0:0:1): Medium not present
(da1:umass-sim0:0:0:1): Unretryable error
Opened disk da1 -> 6
(da2:umass-sim0:0:0:2): READ CAPACITY. CDB: 25 40 0 0 0 0 0 0 0 0
(da2:umass-sim0:0:0:2): CAM Status: SCSI Status Error
(da2:umass-sim0:0:0:2): SCSI Status: Check Condition
(da2:umass-sim0:0:0:2): NOT READY asc:3a,0
(da2:umass-sim0:0:0:2): Medium not present
(da2:umass-sim0:0:0:2): Unretryable error
Opened disk da2 -> 6
(da2:umass-sim0:0:0:2): READ CAPACITY. CDB: 25 40 0 0 0 0 0 0 0 0
(da2:umass-sim0:0:0:2): CAM Status: SCSI Status Error
(da2:umass-sim0:0:0:2): SCSI Sta

Re: converting a .chm file

2005-11-13 Thread Hans Nieser

Dave wrote:

Hi,
Thanks, do you know of any non-x ports for converting .chm files?
Thanks.


Perhaps this one:

Port:   chmview-1.0_2
Path:   /usr/ports/converters/chmview
Info:   Extractor from .chm files
Maint:  [EMAIL PROTECTED]
B-deps:
R-deps:
WWW:http://trexinc.narod.ru

I believe there may be more (cd /usr/ports && make search name=chm ).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How to redirect mail sent to root to external mailbox?

2005-11-14 Thread Hans Nieser

Hi list,

I operate several servers, one of which is at home, behind NAT. The local 
network is configured to use the domainname "nieser.local.", which 
obviously only exists on the local (forwarding) nameserver.


To be able to send e-mail from this machine (which would normally be 
rejected by any MTA because of the non-existent 'from' domainname ) I have 
configured sendmail to masquerade e-mail sent from the 
"royen.nieser.local" machine as "royen.nieser.net" which resolves to the 
external IP adress of the DSL gateway device (which has smtp forwarded to 
the royen.nieser.local machine).


The above setup *mostly* (see below) works, e-mail that I send from the 
server has it's "royen.nieser.local" hostname properly substituted with 
"royen.nieser.net").


Now, to make monitoring all the servers I operate easier, I wanted to 
forward all mail sent to root (including the periodic output), by putting 
"root: [EMAIL PROTECTED]" in the /etc/mail/aliases file, as the comments 
in this file suggested:


# Pretty much everything else in this file points to "root", so
# you would do well in either reading root's mailbox or forwarding
# root's email from here.

But here's the weird thing, the periodic mail doesn't get masqueraded and 
  therefore gets rejected by the remote MTA. The "rejected" message which 
 gets sent back to the root account, however, *does* get masqueraded 
properly and subsequently forwarded to the e-mail I specified in the 
/etc/mail/aliases file!


Also, when I ssh to the royen machine and type "periodic daily" on the 
commandline, the mail it generates DOES get masqueraded correctly... 
What's going on here? I'm having a real hard time getting my head around 
this because of all the redirecting and forwarding and perhaps lack of 
in-depth knowledge of smtp/sendmail... I have my sendmail configuration 
attached (also mirrored at http://nieser.net/files/sendmail/1/ ).


I'd rather keep the nieser.local/nieser.net domainnames seperate and use 
masquerading because the whole NAT setup is confusing enough for me as it 
is, having the same domainname resolve to different adresses for the LAN 
and the Internet would probably drive me mad.


Can anyone assist?

PS: The domainnames used in my problem description above may not actually 
resolve as I've tried to simplify my problem by using more logical names.
[EMAIL PROTECTED]:/etc/mail# cat aliases
# $FreeBSD: src/etc/mail/aliases,v 1.20 2004/06/30 16:47:08 maxim Exp $
#   @(#)aliases 5.3 (Berkeley) 5/24/90
#
#  Aliases in this file will NOT be expanded in the header from
#  Mail, but WILL be visible over networks.
#
#   >>  The program "newaliases" must be run after
#   >> NOTE >>  this file is updated for any changes to
#   >>  show through to sendmail.
#
#
# See also RFC 2142, `MAILBOX NAMES FOR COMMON SERVICES, ROLES
# AND FUNCTIONS', May 1997

# Pretty much everything else in this file points to "root", so
# you would do well in either reading root's mailbox or forwarding
# root's email from here.

root:   [EMAIL PROTECTED]

# Basic system aliases -- these MUST be present
MAILER-DAEMON: postmaster
postmaster: root

# General redirections for pseudo accounts
_pflogd: root
bin:root
bind:   root
daemon: root
games:  root
kmem:   root
mailnull: postmaster
man:root
news:   root
nobody: root
operator: root
pop:root
proxy:  root
smmsp:  postmaster
sshd:   root
system: root
toor:   root
tty:root
usenet: news
uucp:   root

# Well-known aliases -- these should be filled in!
# manager:
# dumper:

# BUSINESS-RELATED MAILBOX NAMES
# info:
# marketing:
# sales:
# support:

# NETWORK OPERATIONS MAILBOX NAMES
abuse:  root
# noc:  root
security:   root

# SUPPORT MAILBOX NAMES FOR SPECIFIC INTERNET SERVICES
ftp:root
ftp-bugs:   ftp
hostmaster: root
webmaster:  root
www:webmaster

# NOTE: /var/msgs and /var/msgs/bounds must be owned by sendmail's
#   DefaultUser (defaults to mailnull) for the msgs alias to work.
#
# msgs: "| /usr/bin/msgs -s"

# bit-bucket: /dev/null
# dev-null: bit-bucket

aphax:  hans
[EMAIL PROTECTED]:/etc/mail# cat royen.nieser.local.mc
divert(-1)
#
# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1988, 1993
#   The Regents of the University of California.  All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#notice, this list of conditions and the following disclaimer in the
#documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#must display the following acknowledgement:
#   This pro

Re: How to redirect mail sent to root to external mailbox?

2005-11-14 Thread Hans Nieser

Greg Barniskis wrote:


Mark J. Sommer wrote:



This is really a sendmail question I believe.  Your problem is probably
because root doesn't get masqueraded.  In your sendmail.cf, is there 
a line

like the following:

CEroot

or

C{E}root

If so, comment it out and restart sendmail.



That will work but the config will get overwritten on upgrades. It is 
best to override the defaults via the mc config generator, so that "CE 
root" doesn't appear in the first place.


Thanks to both of you! This appears to be causing my problems. (I
haven't been able to actually test it yet because when I "su -l" to root
and try to use "mail" to send e-mail it seems to use the user I
initially logged in with anyway.)

For the sake of completeness, I found the solution to removing root as
an exposed user at http://www.grok.org.uk/docs/smroot.html . (It does
require a bit more editing and adjusting of configuration files then I
would like, but it's well-explained and does kinda make sense.)

My apologies for sending this to the wrong list


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


ports db a mess after portsnap fetch/update

2005-11-14 Thread Hans Nieser

Hi list,

I just did the usual portsnap fetch/update routine to keep my portstree up 
to date and check for new versions of installed packages. But after doing 
a pkg_version, I noticed the following line:


gaim!

Thinking that perhaps my ports database got corrupted I ran "pkgdb -F", 
which resulted in the following mess:


--
[EMAIL PROTECTED]:/usr/ports/www# pkgdb -F
--->  Checking the package registry database
[Updating the pkgdb  in /var/db/pkg ... - 350 packages 
found (-0 +342) 
.. 
done]

Stale origin: 'net/gaim': perhaps moved or obsoleted.
-> The port 'net/gaim' was moved to 'net-im/gaim' on 2005-11-09 because:
"Moved to a new net-im category"
Fixed. (-> net-im/gaim)
Stale dependency: deskbar-applet-0.8.4 -> libgnomecups-0.2.0_2,1 
(print/libgnomecups):
[Updating the portsdb  in /usr/ports ... - 13654 port 
entries found 
.1000.2000.3000.4000.5000.6000.7000.8000.9000.1.11000.12000.13000.. 
. done]

libgnomecanvas-2.12.0 (score:45%) ? ([y]es/[n]o/[a]ll) [no]
New dependency? (? to help): ?
 [Enter] to skip, [Ctrl]+[D] to delete,  [.][Enter] to abort, [Tab] to 
complete

New dependency? (? to help):
Display all 350 possibilities? (y or n)
New dependency? (? to help):
Skip this? ([y]es/[n]o/[a]ll) [yes] yes
Skipped.
Stale dependency: epiphany-extensions-1.8.1 -> libgnomecups-0.2.0_2,1 
(print/libgnomecups):

Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: evolution-gconf-tools-0.1.6 -> libgnomecups-0.2.0_2,1 
(print/libgnomecups):

Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: gdesklets-0.35.2_1 -> libgnomecups-0.2.0_2,1 
(print/libgnomecups):

Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: gnome2-power-tools-2.12.1 -> libgnomecups-0.2.0_2,1 
(print/libgnomecups):

Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: musicpd-0.11.5_1 -> madplay-esound-0.15.0b_3 
(audio/madplay):

New dependency? (? to help):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Skipped.
Stale dependency: musicpd-0.11.5_1 -> mad-0.15.0b (audio/mad):
New dependency? (? to help):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Skipped.
Stale dependency: nvidia-driver-1.0.7676 -> localedata-5.4 (misc/localedata):
New dependency? (? to help):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Skipped.
Stale dependency: nvidia-driver-1.0.7676 -> compat5x-i386-5.4.0.8 
(misc/compat5x):

New dependency? (? to help):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Skipped.
Stale dependency: py24-gnome-extras-2.12.0 -> libgnomecups-0.2.0_2,1 
(print/libgnomecups):

Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: serpentine-0.6.4_1 -> libgnomecups-0.2.0_2,1 
(print/libgnomecups):

Skip this? ([y]es/[n]o/[a]ll) [yes]
[EMAIL PROTECTED]:/usr/ports/www#
--

Although the "gaim !" thing seems to have been fixed, it starts asking me 
all kinds of things about dependencies that I know nothing about (and to 
be honest, I don't care to know anything about - I want it to 'just work' 
(tm) ).


I tried entering the suggested answers, but the next "pkgdb -F" presents 
the exact same questions and are apparently not resolved by using the 
default answers. "pkgdb -fu" doesn't appear to help  either.


Can anyone tell me how to fix all this (or point me to any 
guide/article/manpage/whatever for me to read), and how it possibly 
could've gotten this way? The last thing I did before the portsnap 
fetch/update routine was installing a bunch of ports (linuxpluginwrapper, 
linux-flashplugin, linux-flashplugin6, linux-flashplugin7) trying to get 
the cursed flash plugin to work for firefox (without success by the way, 
but that's another story...).


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


Re: ports db a mess after portsnap fetch/update

2005-11-14 Thread Hans Nieser

Hans Nieser wrote:
.> Hi list,




[... huge complaint about stale dependencies ...]

My apologies, in my frustration I sent this out without properly 
investigating, seems all I had to do was install the ports mentioned in 
the pkgdb output about the stale dependencies and run pkgdb -F again to 
fix it for me.


I'm still kind of wondering how it got that way, but at least I got it all 
fixed again without having to do anything drastic like pkg_deinstall *

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


Re: Linuxpluginwrapper

2005-11-14 Thread Hans Nieser

Dev Tugnait wrote:

I have built the linuxpluginwrapper port but it  doesn't work anymore.
Attaching my libmap.conf

Here's what happens when i do a deinstall in that port
===>  Deinstalling for www/linuxpluginwrapper
===>   Deinstalling linuxpluginwrapper-20050910
pkg_delete: file '/usr/local/sbin/is_enabled_lpw' doesn't exist
pkg_delete: couldn't entirely delete package (perhaps the packing list
is
incorrectly specified?)

Anyone got flash working?



I haven't been unable to uninstall anything, but I definitely am having
issues getting flash to work for firefox. I have an up-to-date portstree
and have all the latest version of ports installed.

I've simply tried installing linuxpluginwrapper and linux-flashplugin7,
with the following in my /etc/libmap.conf:

###
# [ALPHA SUPPORT] Flash7 with Mozilla
[/usr/X11R6/lib/linux-flashplugin7/libflashplayer.so]
libpthread.so.0 libpthread.so.2
libdl.so.2  pluginwrapper/flash7.so
libz.so.1   libz.so.3
libm.so.6   libm.so.4
libc.so.6   pluginwrapper/flash7.so

I've been told to link something, but not what needs to be linked to what
exactly, and I don't really understand much about the whole library thing
to figure it out for myself...

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


Re: Linuxpluginwrapper

2005-11-14 Thread Hans Nieser

Hans Nieser wrote:

Dev Tugnait wrote:


I have built the linuxpluginwrapper port but it  doesn't work anymore.
Attaching my libmap.conf

Here's what happens when i do a deinstall in that port
===>  Deinstalling for www/linuxpluginwrapper
===>   Deinstalling linuxpluginwrapper-20050910
pkg_delete: file '/usr/local/sbin/is_enabled_lpw' doesn't exist
pkg_delete: couldn't entirely delete package (perhaps the packing list
is
incorrectly specified?)

Anyone got flash working?



I haven't been unable to uninstall anything, but I definitely am having
issues getting flash to work for firefox. I have an up-to-date portstree
and have all the latest version of ports installed.

I've simply tried installing linuxpluginwrapper and linux-flashplugin7,
with the following in my /etc/libmap.conf:

###
# [ALPHA SUPPORT] Flash7 with Mozilla
[/usr/X11R6/lib/linux-flashplugin7/libflashplayer.so]
libpthread.so.0 libpthread.so.2
libdl.so.2  pluginwrapper/flash7.so
libz.so.1   libz.so.3
libm.so.6   libm.so.4
libc.so.6   pluginwrapper/flash7.so

I've been told to link something, but not what needs to be linked to what
exactly, and I don't really understand much about the whole library thing
to figure it out for myself...


Thanks to the helpful people in #freebsd-gnome on freenode IRC I got it to 
work doing the following (the diff step was in the pkg-message for 
linuxpluginwrapper, so missing that step was my own fault):


- Install www/linuxpluginwrapper
- Install www/linux-flashplugin7
- Put following in /etc/libmap.conf

  [/usr/X11R6/lib/linux-flashplugin7/libflashplayer.so]
  libpthread.so.0 libpthread.so.2
  libdl.so.2  pluginwrapper/flash7.so
  libz.so.1   libz.so.3
  libm.so.6   libm.so.4
  libc.so.6   pluginwrapper/flash7.so

- Apply the patch at http://people.FreeBSD.org/~nork/rtld_dlsym_hack.diff 
to /usr/src/libexec/rtld-elf/rtld.c (using "patch < difffile").

- Rebuild rtld-elf:

  cd /usr/src/libexec/rtld-elf/
  make clean cleandir
  make clean cleandir
  make obj
  make depend
  make
  make install

- Link the plugin:

  ln -s /usr/X11R6/lib/linux-flashplugin7/libflashplayer.so 
/usr/X11R6/lib/browser_plugins/

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


Does FreeBSD 6.0 fully support PCI-Express?

2005-11-21 Thread Hans Nieser

Hi list,

I've been having troubles getting OpenGL applications' performance up to 
par. I have an Nvidia Geforce 6800GT with a PCI-Express interface and I 
use nvidia's closed FreeBSD drivers.


I have been told that FreeBSD (and consequently the nvidia driver) do not 
fully support PCI-Express which makes my card operate at the same speed of 
a plain old PCI bus, which would be a logical explanation for my troubles. 
I have however not been able to find _anything_ on the matter on google 
and I am now wondering how much truth there is to this.


My question is in the subject, I hope someone can clarify this as I it 
will help me decide to get an AGP card instead or perhaps keep trying to 
figure out if I have misconfigured something.


Thanks in advance,

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


Re: Does FreeBSD 6.0 fully support PCI-Express?

2005-11-22 Thread Hans Nieser

Ted Mittelstaedt wrote:

This is correct.  The various driver authors who have been
affected by the PCI Express issue have implemented logic in
their probe code that activates the devices on pci express busses,
so for most devices it's a non-issue.  But this is kludgy and
there's been discussion in the core as to try to get someone
to write a PCI Express driver that would talk to the bus
and would handle the devices the way the buss is intended.

You still get weirdness though - for example on several Intel
motherboards that have PCI Express that I've run FBSD on,
the BSD kernel complains about no interrupt being available
for the serial port.  But the serial port works anyway.

I'm surprised you didn't find this with Google, it's in
there.  Perhaps look through the mailing list archives?

As far as I know Nvidia hasn't allowed Xorg to write drivers
for their cards, all the nvidia drivers out there are
binaries from Nvidia.  This for me would cross that card
off my list.

In any case, this really isn't a FreeBSD issue, it's an Xorg
issue and you should ask on those mailing lists.  Others have
had Nvidia troubles for other reasons and should be able to
better advise you.


Many thanks for your clarification Ted. I did post to freebsd-x11 but the 
list seems relatively low-traffic and unfortunately got no responses. 
Through google the closest I got to a possible answer was a post about PCI 
Express support as a kind of hack-job (on freebsd-arch, I think) but it 
didn't really provide a definite answer to me about wether or not my card 
 was in fact limited by FreeBSD/nvidia's (lacking) PCI-Express support.


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


Re: Does FreeBSD 6.0 fully support PCI-Express?

2005-11-22 Thread Hans Nieser

Mike Hernandez wrote:

On  Tue, Nov 22, 2005 at 07:01:31AM -0800, Micah wrote:


Ted Mittelstaedt wrote:


As far as I know Nvidia hasn't allowed Xorg to write drivers
for their cards, all the nvidia drivers out there are
binaries from Nvidia.  This for me would cross that card
off my list.


Just to correct this bit of mis-information, there are two drivers 
available for nvidia.  The nv driver is an open source driver provided 
by xorg, and the nvidia driver is a closed source driver provided by nvidia.





And the nvidia driver is in the ports tree, and works just fine.
Just watch out if you're messing with the composite extension, glx, etc.
I've been using it with my GeForce 6800 Pci-X card for months now with
no problems (of course the composite stuff is still a bit flaky but
it's still new).



I have no choice but to use the closed nvidia driver, because when I use 
the "nv" driver, Xorg tends to freeze after a few minutes.


Mike, out of curiousity, when you say that you have been using your card 
without troubles, do you actually mean it performs well too? Because I 
just installed Xorg+Gnome on my Dell Inspiron 510m laptop (equipped with a 
Pentium M 1.7GHz / 512 MB RAM / Intel i810 855GM graphics chip), and it 
depresses me to see that it greatly outperforms my desktop machine even in 
2D. Things like dragging and resizing windows and the text rendering in 
gnome-terminal is clearly a lot smoother. ;(

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


Troubles getting firmware for ipw (wifi) driver to load

2005-11-24 Thread Hans Nieser

Hi list,

I'm trying to setup wireless networking with WPA for my Dell Inspiron 
510m, which is equipped with an Intel PRO/Wireless 2100 MiniPCI NIC on 
FreeBSD 6.0-RELEASE. I'm following this guide: 
http://www.freebsdmall.com/~loader/en_US.ISO8859-1/articles/wireless/article.html 


(Also with the handbook chapter on wireless networking on the side)

I am encountering troubles when executing the command "ifconfig ipw0 up 
scan", it doesn't list any APs at all. Looking at my dmesg output, it 
seems that ipw0 needs a firmware.


ipw0:  mem 0xfcffe000-0xfcffefff irq 9 
at device 3.0 on pci1

ipw0: Ethernet address: 00:0c:f1:52:fe:88
ipw0: Please load firmware

Not knowing exactly what that meant I checked ipw(4) and it does indeed 
say I need ipwcontrol to load the firmware. I found this in the portstree 
at net/ipw-firmware, but it won't install saying:


[EMAIL PROTECTED]:/usr/ports/net/ipw-firmware# make install clean
===>  ipw-firmware-1.3_4 ipw(4) support is already included in your tree.
===>  Cleaning for ipw-firmware-1.3_4

Yet ipwcontrol is nowhere to be found (tried to locate it with an updated 
DB, but no luck). It's not there in the output of pkg_version either. I 
did however CTRL+C right after the options screen when trying to install 
this port the first time because I forgot to check the option. Maybe this 
broke things, but I did try make clean / make distclean / make config to 
try ti fix it but alas.. maybe it really isn't supposed to install.


So this leaves the question, how do I load the firmware? Should I manually 
download the thing, or is there some way I can make the port work?

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


Re: Troubles getting firmware for ipw (wifi) driver to load [SOLVED]

2005-11-25 Thread Hans Nieser

Hans Nieser wrote:

I found this in the 
portstree at net/ipw-firmware, but it won't install saying:


[EMAIL PROTECTED]:/usr/ports/net/ipw-firmware# make install clean
===>  ipw-firmware-1.3_4 ipw(4) support is already included in your tree.
===>  Cleaning for ipw-firmware-1.3_4


Turns out all I had to do was "make config" and disable the option of 
loading the module. Now it continues on and installs the firmwares. I 
guess looking at the error message it's kind of obvious, not sure why I 
couldn't figure this out yesterday.

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


Questions regarding wlan, ipw and project evil

2005-11-25 Thread Hans Nieser

Hello,

I have been trying to get my Intel PRO/Wireless 2100 NIC working with WPA 
with FreeBSD 6.0-RELEASE, but am left with a few questions that I couldn't 
find clear answers to.


- It seems that when I put ipw in my kernel instead of loading it as a 
module, it won't will not attach to my NIC (no ipw0 to be found in my 
dmesg). When I load ipw as a module however it does attach to my NIC as 
ipw0. Is this normal? As the module seems to work ok, it doesn't really 
pose a problem but it does make me wonder.


- Somewhat similar as my question above (except that it's the other way 
around), I wanted to move wlan/wlan_* from my kernel to modules (so I 
could keep all the wifi stuff together in one place), but it seems I can't 
load "wlan" as a module. Putting wlan_load="YES" in my loader.conf doesn't 
make it load on boot nor can I manually load it with kldload wlan (it says 
"File exists"), it's not there when I do kldstat, but it's definitely not 
in my kernel either. Does wlan _have_ to be in the kernel? The wlan_* 
modules do load fine, by the way.


- I read on the website of the author of the ipw driver that it doesn't 
support WPA, is this still true and if so, is there any chance of it 
eventually supporting it, or should I just go out and get a NIC that does 
work with WPA under FreeBSD 6.0? Does Project Evil support WPA? or does it 
depend on the ndis driver used?

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


Re: WARNING /usr was not properly dismounted ...

2005-11-26 Thread Hans Nieser

Kiffin Gish wrote:

I'm using FreeBSD 5.4 at the moment, so does it take care of itself also?


My server went down unexpectedly yesterday (seems like the powergrid had 
some stability issues as I noticed the lights dimming on several 
occasions), and consequently my filesystems weren't cleanly unmounted.


dmesg told me:

WARNING: / was not properly dismounted
WARNING: /tmp was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
/var: mount pending error: blocks 4 files 1
WARNING: /mnt/data1 was not properly dismounted
WARNING: /mnt/data2 was not properly dismounted

/var/log/messages said:

Nov 25 18:07:25 royen fsck: /dev/ad0s1e: 19 files, 21 used, 126818 free 
(34 frags, 15848 blocks, 0.0% fragmentation)
Nov 25 18:12:46 royen fsck: /dev/ad0s1f: UNREF FILE I=8201190  OWNER=root 
MODE=100755
Nov 25 18:12:46 royen fsck: /dev/ad0s1f: SIZE=1495233 MTIME=Sep 23 22:54 
2005  (CLEARED)


[ lots of this ]

Nov 25 18:12:46 royen fsck: /dev/ad0s1f: Reclaimed: 0 directories, 25 
files, 0 fragments
Nov 25 18:12:46 royen fsck: /dev/ad0s1f: 210808 files, 22903168 used, 
14065264 free (75304 frags, 1748745 blocks, 0.2% fragmentation)
Nov 25 18:13:05 royen fsck: /dev/ad0s1d: UNREF FILE I=8307  OWNER=mysql 
MODE=100600
Nov 25 18:13:05 royen fsck: /dev/ad0s1d: SIZE=0 MTIME=Nov 10 19:42 2005 
(CLEARED)


[ lots of this ]

Nov 25 18:13:05 royen fsck: /dev/ad0s1d: Reclaimed: 0 directories, 6 
files, 1 fragments
Nov 25 18:13:05 royen fsck: /dev/ad0s1d: 2132 files, 52839 used, 73999 
free (879 frags, 9140 blocks, 0.7% fragmentation)
Nov 25 18:14:57 royen fsck: /dev/ad2s1e: 3 files, 2 used, 24036310 free 
(10 frags, 6009075 blocks, 0.0% fragmentation)
Nov 25 18:20:53 royen fsck: /dev/ad3s1e: 38581 files, 24063902 used, 
4771792 free (2392 frags, 1192350 blocks, 0.0% fragmentation)


It seems to have taken care of everything, I'm using FreeBSD 5.4. Hope 
this helps.

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


Re: sk0: watchdog timeout

2005-11-26 Thread Hans Nieser

A long, long time ago Vladimir Dvorak wrote:


Hello,

I have a problem with network card. From time to time kernel says

sk0: watchdog timeout


I just ran into the same issue. I have an ASUS A8N-SLI Deluxe in my
desktop machine which runs FreeBSD 6.0+Xorg+Gnome. It has two on-board
NICs, the nvidia one and a Marvel one. The nvidia was one big disaster and
was giving me device timeouts so I never bothered with that one again.

-
skc0:  port 0xac00-0xacff mem
0xd4008000-0xd400bfff irq 17 at device 12.0 on pci5
skc0: Marvell Yukon Lite Gigabit Ethernet rev. (0x9)
sk0:  on skc0
sk0: Ethernet address: 00:11:d8:99:3b:b0
miibus0:  on sk0
e1000phy0:  on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
1000baseTX-FDX, auto
-
nve0:  port 0xb000-0xb007 mem
0xd500-0xd5000fff irq 22 at device 10.0 on pci0
nve0: Ethernet address 00:11:d8:99:39:be
miibus1:  on nve0
ukphy0:  on miibus1
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
nve0: Ethernet address: 00:11:d8:99:39:be
nve0: [GIANT-LOCKED]
-
[EMAIL PROTECTED]:12:0: class=0x02 card=0x811a1043 chip=0x432011ab rev=0x13
hdr=0x00
vendor   = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
device   = '88E8001/8003/8010 Gigabit Ethernet Controller with
Integrated PHY (copper)'
class= network
subclass = ethernet
-
[EMAIL PROTECTED]:10:0: class=0x068000 card=0x81411043 chip=0x005710de rev=0xa3
hdr=0x00
vendor   = 'NVIDIA Corporation'
device   = 'nForce4 Ethernet Controller'
class= bridge
-

Until now the Marvell one had worked flawlessly for me, until today, when
I was moving 80GB of data to my server. It keeps crapping out with "sk0:
watchdog timeout" and appears to take the whole desktop down with it, apps
become unresponsive and Nautilus basically freezes.

Bringing the interface down and up restores connectivity, unfortunately
Nautilus won't continue copying files (despite it offering a "Retry"
button, it just kept spewing errors) so having to manually figure out what
was and wasn't copied over every 20GB or so is quickly becoming a pain in
the behind.

Looks like some PRs were filed on this issue but I guess they haven't been
able to fix it (yet? - say yes please). It may also be worth noting that
this NIC also lost connectivity in Windows XP from time to time forcing me
to disable/enable it, so maybe the NIC itself is just garbage.

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


Re: sk0: watchdog timeout

2005-11-26 Thread Hans Nieser

Nicolas Blais wrote:


On November 26, 2005 09:15 am, Hans Nieser wrote:
 


A long, long time ago Vladimir Dvorak wrote:
   


Hello,

I have a problem with network card. From time to time kernel says

sk0: watchdog timeout
 


I just ran into the same issue. I have an ASUS A8N-SLI Deluxe in my
desktop machine which runs FreeBSD 6.0+Xorg+Gnome. It has two on-board
NICs, the nvidia one and a Marvel one. The nvidia was one big disaster and
was giving me device timeouts so I never bothered with that one again.
   



I have an sk0 too on one of my computer's onboard A8V-DX which will timeout 
once in a while too.  I found a way to reduce down time by modifying my 
rc.conf to force 'full-duplex 100Mbps'.  Now, even when it goes into a 
watchdog timeout, I quickly get back my link within that second.


This is what my rc.conf line looks like:

ifconfig_sk0="inet 192.168.1.100 media 100baseTX mediaopt full-duplex netmask 
255.255.255.0"
 


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


Re: sk0: watchdog timeout

2005-11-27 Thread Hans Nieser

Vladimir Dvorak wrote:


I found some other solution here:
http://sources.zabbadoz.net/freebsd/if_sk.html

There is recommended to "use correct on-chip RAM size":

6. use correct on-chip RAM size; committed to HEAD


Can some of you know how ?


I don't think that patch could solve anything in my case as it's pretty 
old and already included in FreeBSD 6.0, I think. Many thanks for that 
link though, it's got loads of info.

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


Re: Switching wired <-> wireless in a user-friendly manner, possible?

2005-11-27 Thread Hans Nieser

AT Matik wrote:


may be you like what I do

i have DHCP for my nic in rc.conf

when my eth is up (sis0 in my case)  nothing happens as getting the config 
from the dhcp server


else I call a script to configure my wireless connection (/etc/start-wif)

so you may check running this in crontab as I understand you unplug the cable 
and run around ;)


Thanks for the replies everyone. I think I am going to try and do 
something with devd.conf first. I'm going through the /etc/rc.d/netif, 
/etc/network.subr scripts at the moment so I can get a clear picture of 
how exactly FreeBSD (6.0 is what I'm using) sets up interfaces at boot, to 
prevent myself from screwing anything up ;)

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


Re: sk0: watchdog timeout

2005-11-28 Thread Hans Nieser

Hans Nieser wrote:

Nicolas Blais wrote:

I have an sk0 too on one of my computer's onboard A8V-DX which will 
timeout once in a while too.  I found a way to reduce down time by 
modifying my rc.conf to force 'full-duplex 100Mbps'.  Now, even when 
it goes into a watchdog timeout, I quickly get back my link within 
that second.


This is what my rc.conf line looks like:

ifconfig_sk0="inet 192.168.1.100 media 100baseTX mediaopt full-duplex 
netmask 255.255.255.0"


Thanks! Will give this a try


It appears the above hasn't helped me, it still goes down after copying 
about 10-15GB of data and I still have to bring the interface down and up 
again to regain connectivity. Thanks for the tip though, it was worth a try

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


Re: sk0: watchdog timeout

2005-11-28 Thread Hans Nieser

Bernhard Fischer wrote:

ifconfig_sk0="inet 192.168.1.100 media 100baseTX mediaopt full-duplex
netmask 255.255.255.0"



It appears the above hasn't helped me, it still goes down after copying
about 10-15GB of data and I still have to bring the interface down and up
again to regain connectivity. Thanks for the tip though, it was worth a try


If you change hardware settings, you should also maintain the same settings on 
both ends of the wire, i.e. at the computer *and* the ethernet switch.


Hmm, I'm not sure what you mean. There isn't much (in fact, nothing at 
all) I can configure on my switch's end as it's a cheap 8-port 10/100mbit 
switch (A UNEX NexSwitch SD080s). I just forced it to use 100baseTX / 
full-duplex which I think was used before I forced it as well.

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


Re: sk0: watchdog timeout

2005-11-29 Thread Hans Nieser

Bernhard Fischer wrote:

If you change hardware settings, you should also maintain the same
settings on both ends of the wire, i.e. at the computer *and* the
ethernet switch.


[SNIP]

I just forced it to use 100baseTX /
full-duplex which I think was used before I forced it as well.



That's exactly what I ment. If you force your sk0 to 100-full do the same with 
your switch. If you set sk0 to auto-config -- do it with your switch.


That's great. But as I said, there's nothing I can configure on my 
switch's side.

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


Re: sk0: watchdog timeout

2005-12-01 Thread Hans Nieser

Ferdinand Haselbacher (jr.) wrote:

On Tue, Nov 29, 2005 at 07:22:17PM -0500, Nicolas Blais wrote:


That's great. But as I said, there's nothing I can configure on my
switch's side.


Anyway, you and I aren't the only ones with the same problem, under the same 
circonstances.  My forcing of the TX/RX mode does speed up recovery, but 
doesn't fix the actual issue.


The driver has a bug somewhere.  Although I'm not talented enough in driver 
programming, but someone with skills could probably fix this.




Maybe the driver has a bug somewhere, but i also think that this marvell
chips have some design flaws, iam using one on my A8V and it 's giving me
problems in WinXp (although i didn't use it for a while), Linux (seems to
work better now in 2.6.14-mm1, but still connection losses) and freebsd too.


I can confirm that I got pretty much the same thing happening in Windows 
XP Professional SP2. There was a driver update for the Marvel Yukon NIC in 
Windows XP sometime ago which made it even worse and made the whole 
machine crash under heavy load (and my Windows XP is generally rock 
solid). I will be installing Gentoo soon and if it's still happening there 
with that skge (not sure if that's what it was called) driver, then I 
guess it's got to be something with the hardware.


It's a bit of a shame that my other on-board nvidia NIC (nforce 4 chipset) 
doesn't really work well with the nve driver either. Two on-board NICs and 
I still need to go out and buy a 'real' one ;(

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


Re: deamon, priority

2005-12-01 Thread Hans Nieser

Efren Bravo wrote:

Hi,

How can I set priority to start deamons when
freebsd boots?

mysql is starting first than jabberd and it write
this log message.

Thu Dec  1 17:22:03 2005 [error] mysql:
connection to database failed: Can't connect to
local MySQL server through socket
'/tmp/mysql.sock' (2)


I *think* (because I'm no expert on rcNG) jabberd should have "# REQUIRE: 
mysql"  in it's rc.d script, then it should be taken care off.

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


Re: Gnome upgrade - screen lock no longer works

2005-12-02 Thread Hans Nieser

Paul Schmehl wrote:
I just upgraded Gnome to 2.12 (FreeBSD 5.4) using the gnome_upgrade 
script. Now screen locking is no longer working, and I'm not seeing 
anything in the logs to explain it.  Anyone have any ideas how to 
troubleshoot this? Logging out and back in constantly is a PITA.


I vaguely remember getting something like that and it had something to do 
with D-BUS, have you enabled D-BUS? (Instructions are in the FAQ)

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


Re: Gnome upgrade - screen lock no longer works

2005-12-02 Thread Hans Nieser

Paul Schmehl wrote:
--On Friday, December 02, 2005 18:55:42 +0100 Hans Nieser 
<[EMAIL PROTECTED]> wrote:



Paul Schmehl wrote:


I just upgraded Gnome to 2.12 (FreeBSD 5.4) using the gnome_upgrade
script. Now screen locking is no longer working, and I'm not seeing
anything in the logs to explain it.  Anyone have any ideas how to
troubleshoot this? Logging out and back in constantly is a PITA.



I vaguely remember getting something like that and it had something to do
with D-BUS, have you enabled D-BUS? (Instructions are in the FAQ)



I don't see anything in the FAQ about D-BUS.

One other thing.  I now have two  Screensaver selections under 
Desktop/Preferences.  One has the old icon (screen with the red fire in 
front of it), and when I open that one, it says "The XScreenSaver daemon 
doesn't seem to be running on display ":0.0".  Launch it now?


If I click on OK, it starts up and the screensaver works, but screenlock 
still does not.


The FAQ entry I was referring to is located at 
http://www.freebsd.org/gnome/docs/faq2.html#q25

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


Unable to upgrade subversion 1.4.2 to 1.4.3 (apache22 db4 support)

2007-02-16 Thread Hans Nieser

Hi list,

I'm trying to upgrade subversion from 1.4.2 to 1.4.3 (as part of a full
system update using 'portupgrade -a') but during compilation it aborts
with the following message:


You should build `www/apache22' with db4 support to use subversion with
it. Please rebuild `www/apache22' with option
`WITH_BERKELYDB=(db4|db41|db42)' and try again.


(or it suggests disabling db4 entirely with WITHOUT_DBD)

Since it doesn't seem like a bad idea to have the DB4 repository backend 
available I decided to recompile apache22 (version 2.2.4) with DB4 support 
by adding the following to the MAKE_ARGS list in /usr/local/etc/pkgtools.conf:


> 'www/apache22' => 'WITH_BERKELYDB=db42',

I ran portupgrade -f apache and made sure it was using this make argument. 
After recompilation of apache22 I tried to upgrade subversion again, but 
I'm still getting the exact same error. I checked /usr/ports/UPDATING to 
see if there's anything else I may need to do, but couldn't find anything.


Can someone tell me what I'm doing wrong here?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Unable to upgrade subversion 1.4.2 to 1.4.3 (apache22 db4 support)

2007-02-20 Thread Hans Nieser

Hans Nieser wrote:

Hi list,

I'm trying to upgrade subversion from 1.4.2 to 1.4.3 (as part of a full
system update using 'portupgrade -a') but during compilation it aborts
with the following message:


You should build `www/apache22' with db4 support to use subversion with
it. Please rebuild `www/apache22' with option
`WITH_BERKELYDB=(db4|db41|db42)' and try again.


(or it suggests disabling db4 entirely with WITHOUT_DBD)

Since it doesn't seem like a bad idea to have the DB4 repository backend 
available I decided to recompile apache22 (version 2.2.4) with DB4 
support by adding the following to the MAKE_ARGS list in 
/usr/local/etc/pkgtools.conf:


 > 'www/apache22' => 'WITH_BERKELYDB=db42',



Problem solved now. I double checked several times, yet somehow I missed 
that I had written BERKELY instead of BERKELEY


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


Re: MythTV port compilation error

2007-05-31 Thread Hans Nieser
Greg 'groggy' Lehey wrote:
> [Format recovered--see http://www.lemis.com/email/email-format.html]
> 
> Computer output unfolded.
> 
> On Thursday, 31 May 2007 at 19:32:49 +0200, Hans Nieser wrote:
>> I've been trying occasionally the past few weeks to compile MythTV, but it
>> keeps failing. I have an updated ports tree. Does anyone know if this is a
>> known problem, or how to fix it?
> 
> This is probably better addressed to FreeBSD-questions.  I'm copying
> that list and copying multimedia@ (the original mailing list) as Bcc.
> 
>> g++ -Wl,-rpath,/usr/local/lib  -Wl,-rpath,/usr/local/lib -pthread -o 
>> mythcommflag main.o mmDetector2.o  pgm.o  EdgeDetector.o  
>> CannyEdgeDetector.o  PGMConverter.o  BorderDetector. omEventRelayer.o  
>> moc_CommDetectorBase.o  moc_LogoDetectorBase.o 
>> moc_SceneChangeDetectorBlibavcodec -L../../libs/libavformat 
>> -L../../libs/libmythfreemheg -L../../libs/libmythui -L hupnp-0.20 
>> -lmythlivemedia-0.20 -lmyth-0.20 -lmythui-0.20 -lfreetype -lmp3lame 
>> -L/usr/loca
>> main.o(.text+0x1f9c): In function `FlagCommercials(QString, QString)': 
>> /usr/ports/multimedia/mythtv/work/mythtv-fixes-0.20-13053/programs/mythcommflag/main.cpp:4
>> *** Error code 1
> 
> OK, I've tried to reconstitute the output you quoted, but it looks as
> if you have truncated the lines.  In particular, the important part of
> the last line seems to be missing.
> 
> At first sight, this did look like a problem I've seen, but it's
> difficult to say.  What do you have in /var/db/ports/mythtv/options?
> What revision of the port are you compiling (i.e. what is PORTREVISION
> in the Makefile)?  What version of FreeBSD are you running?
> 

Yeah I was puzzled by what seems to be a truncated error message as well
but this really seems to be all I was getting. The contents of the options
file are:

# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for mythtv-0.20
_OPTIONS_READ=mythtv-0.20
WITHOUT_LIRC=true
WITHOUT_MYSQL_LOCAL=true

The portrevision is 2 ("PORTVERSION=0.20"
and "PORTREVISION=   2" in the Makefile).

I'm running 6.1-RELEASE-p6

I'll try to recompile it again and make sure I did in fact copy paste the
error correctly (I did resize my terminal window so maybe it somehow
screwed up and truncated the lines or something)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: MythTV port compilation error

2007-06-01 Thread Hans Nieser
Hans Nieser wrote:
> Greg 'groggy' Lehey wrote:
>> [Format recovered--see http://www.lemis.com/email/email-format.html]
>>
>> Computer output unfolded.
>>
>> On Thursday, 31 May 2007 at 19:32:49 +0200, Hans Nieser wrote:
>>> I've been trying occasionally the past few weeks to compile MythTV, but it
>>> keeps failing. I have an updated ports tree. Does anyone know if this is a
>>> known problem, or how to fix it?
>> This is probably better addressed to FreeBSD-questions.  I'm copying
>> that list and copying multimedia@ (the original mailing list) as Bcc.
>>
>>> g++ -Wl,-rpath,/usr/local/lib  -Wl,-rpath,/usr/local/lib -pthread -o 
>>> mythcommflag main.o mmDetector2.o  pgm.o  EdgeDetector.o  
>>> CannyEdgeDetector.o  PGMConverter.o  BorderDetector. omEventRelayer.o  
>>> moc_CommDetectorBase.o  moc_LogoDetectorBase.o 
>>> moc_SceneChangeDetectorBlibavcodec -L../../libs/libavformat 
>>> -L../../libs/libmythfreemheg -L../../libs/libmythui -L hupnp-0.20 
>>> -lmythlivemedia-0.20 -lmyth-0.20 -lmythui-0.20 -lfreetype -lmp3lame 
>>> -L/usr/loca
>>> main.o(.text+0x1f9c): In function `FlagCommercials(QString, QString)': 
>>> /usr/ports/multimedia/mythtv/work/mythtv-fixes-0.20-13053/programs/mythcommflag/main.cpp:4
>>> *** Error code 1
>> OK, I've tried to reconstitute the output you quoted, but it looks as
>> if you have truncated the lines.  In particular, the important part of
>> the last line seems to be missing.
>>
>> At first sight, this did look like a problem I've seen, but it's
>> difficult to say.  What do you have in /var/db/ports/mythtv/options?
>> What revision of the port are you compiling (i.e. what is PORTREVISION
>> in the Makefile)?  What version of FreeBSD are you running?
>>
> 
> Yeah I was puzzled by what seems to be a truncated error message as well
> but this really seems to be all I was getting. The contents of the options
> file are:
> 
> # This file is auto-generated by 'make config'.
> # No user-servicable parts inside!
> # Options for mythtv-0.20
> _OPTIONS_READ=mythtv-0.20
> WITHOUT_LIRC=true
> WITHOUT_MYSQL_LOCAL=true
> 
> The portrevision is 2 ("PORTVERSION=0.20"
> and "PORTREVISION=   2" in the Makefile).
> 
> I'm running 6.1-RELEASE-p6
> 
> I'll try to recompile it again and make sure I did in fact copy paste the
> error correctly (I did resize my terminal window so maybe it somehow
> screwed up and truncated the lines or something)

Ah it does seem like the terminal I copied it from was borked. I have
attached the actual error.

>From googling around a bit I can see that I'm not the only one with this
problem and that it's not specific to FreeBSD, I couldn't find any
solution unfortunately.

g++ -Wl,-rpath,/usr/local/lib  -Wl,-rpath,/usr/local/lib -pthread -o 
mythcommflag main.o  CommDetectorFactory.o  CommDetectorBase.o  Histogram.o  
ClassicLogoDetector.o  ClassicSceneChangeDetector.o  ClassicCommDetector.o  
quickselect.o  CommDetector2.o  pgm.o  EdgeDetector.o  CannyEdgeDetector.o  
PGMConverter.o  BorderDetector.o  FrameAnalyzer.o  TemplateFinder.o  
TemplateMatcher.o  HistogramAnalyzer.o  BlankFrameDetector.o  
SceneChangeDetector.o moc_SlotRelayer.o  moc_CustomEventRelayer.o  
moc_CommDetectorBase.o  moc_LogoDetectorBase.o  moc_SceneChangeDetectorBase.o  
moc_ClassicCommDetector.o   -L/usr/local/lib -L/usr/local/lib 
-L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavutil 
-L../../libs/libavcodec -L../../libs/libavformat -L../../libs/libmythfreemheg 
-L../../libs/libmythui -L../../libs/libmythupnp -L../../libs/libmythlivemedia 
-lmythtv-0.20 -lmythavformat-0.20 -lmythavutil-0.20 -lmythavcodec-0.20 
-lmythfreemheg-0.20 -lmythupnp-0.20 -lmythlivemedia-0.20 -lmyth-0.20 
-lmythui-0.20 -lfreetype -lmp3lame -L/usr/local/lib -lXinerama -lXv -lXxf86vm 
-lXrandr -lviaXvMC -lXvMC -lqt-mt -lGLU -lGL -lXmu -lXext -lX11 -lm
main.o(.text+0x1f9c): In function `FlagCommercials(QString, QString)':
/usr/ports/multimedia/mythtv/work/mythtv-fixes-0.20-13053/programs/mythcommflag/main.cpp:495:
 undefined reference to `ProgramInfo::GetRecordFilename(QString const&, bool) 
const'
*** Error code 1

Stop in 
/usr/ports/multimedia/mythtv/work/mythtv-fixes-0.20-13053/programs/mythcommflag.
*** Error code 1

Stop in /usr/ports/multimedia/mythtv/work/mythtv-fixes-0.20-13053/programs.
*** Error code 1

Stop in /usr/ports/multimedia/mythtv/work/mythtv-fixes-0.20-13053.
*** Error code 1

Stop in /usr/ports/multimedia/mythtv.
*** Error code 1

Stop in /usr/ports/multimedia/mythtv.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.38159.58 
env UPGRADE_TOOL=portupgrade UPG

Re: MythTV port compilation error (solved)

2007-06-01 Thread Hans Nieser
Hans Nieser wrote:
> I've been trying occasionally the past few weeks to compile MythTV, but it
> keeps failing. I have an updated ports tree. Does anyone know if this is a
> known problem, or how to fix it?
> 
> ...

Ok, after reading
http://linpvr.org/forum/viewtopic.php?p=6168&sid=660d608693094519a305b939cc711e6e
and especially this bit: "For some packages, the already installed files
for the package can impact the build. This is true for Myth.", I decided
to try uninstalling MythTV manually before trying to build it, and it
worked. I nany case, thanks for your interest in my problem Greg and Torfinn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Error updating php5-simplexml-5.2.0 to 5.2.2, missing ext/spl/spl_sxe.h

2007-06-03 Thread Hans Nieser
I'm trying to update one of my FreeBSD machines, but it is failing on
php5-simplexml:

> ===>  Building for php5-simplexml-5.2.2
> /bin/sh 
> /usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml/libtool 
> --mode=compile cc  -I. 
> -I/usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml 
> -DPHP_ATOM_INC 
> -I/usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml/include 
> -I/usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml/main 
> -I/usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml 
> -I/usr/local/include/php -I/usr/local/include/php/main 
> -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend 
> -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib 
> -I/usr/local/include/libxml2 -I/usr/local/include  -DHAVE_CONFIG_H  -O -pipe  
>  -c 
> /usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml/simplexml.c 
> -o simplexml.lo
> mkdir .libs
>  cc -I. -I/usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml 
> -DPHP_ATOM_INC 
> -I/usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml/include 
> -I/usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml/main 
> -I/usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml 
> -I/usr/local/include/php -I/usr/local/include/php/main 
> -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend 
> -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib 
> -I/usr/local/include/libxml2 -I/usr/local/include -DHAVE_CONFIG_H -O -pipe -c 
> /usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml/simplexml.c  
> -fPIC -DPIC -o .libs/simplexml.o
> /usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml/simplexml.c:38:29:
>  ext/spl/spl_sxe.h: No such file or directory
> *** Error code 1
> 
> Stop in /usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml.
> *** Error code 1
> 
> Stop in /usr/ports/textproc/php5-simplexml.
> ** Command failed [exit code 1]: /usr/bin/script -qa 
> /tmp/portupgrade.26157.27 env UPGRADE_TOOL=portupgrade 
> UPGRADE_PORT=php5-simplexml-5.2.0 UPGRADE_PORT_VER=5.2.0 make
> ** Fix the problem and try again.
> --->  Skipping 'devel/php5-spl' (php5-spl-5.2.2) because a requisite package 
> 'php5-simplexml-5.2.0' (textproc/php5-simplexml) failed (specify -k to force)
> --->  Skipping 'textproc/php5-dom' (php5-dom-5.2.2) because a requisite 
> package 'php5-spl-5.2.2' (devel/php5-spl) failed (specify -k to force)
> --->  Skipping 'databases/php5-mysqli' (php5-mysqli-5.2.2) because a 
> requisite package 'php5-spl-5.2.2' (devel/php5-spl) failed (specify -k to 
> force)
> --->  Skipping 'lang/php5-extensions' (php5-extensions-1.1) because a 
> requisite package 'php5-dom-5.2.2' (textproc/php5-dom) failed (specify -k to 
> force)
> ** Listing the failed packages (*:skipped / !:failed)
> ! textproc/php5-simplexml (php5-simplexml-5.2.0)(missing 
> header)
> * devel/php5-spl (php5-spl-5.2.2)
> * textproc/php5-dom (php5-dom-5.2.2)
> * databases/php5-mysqli (php5-mysqli-5.2.2)
> * lang/php5-extensions (php5-extensions-1.1)
> --->  Packages processed: 0 done, 81 ignored, 4 skipped and 1 failed

Other misc info:

> [EMAIL PROTECTED]:~# uname -a
> FreeBSD winona.lan 6.1-RELEASE-p3 FreeBSD 6.1-RELEASE-p3 #0: Sun Aug  6 
> 22:43:09 CEST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/WINONA  i386

> # portversion -v
> apache-2.0.59   =  up-to-date with port 
> autoconf-2.53_3 =  up-to-date with port 
> autoconf-2.59_2 =  up-to-date with port 
> automake-1.5_3,1=  up-to-date with port 
> bash-3.1.17 =  up-to-date with port 
> cclient-2004g,1 =  up-to-date with port 
> csup-20060318   =  up-to-date with port 
> cups-base-1.2.10=  up-to-date with port 
> expat-2.0.0_1   =  up-to-date with port 
> fontconfig-2.4.2_2,1=  up-to-date with port 
> freetype2-2.2.1_2   =  up-to-date with port 
> gettext-0.16.1_3=  up-to-date with port 
> gmake-3.81_2=  up-to-date with port 
> gnutls-1.6.2=  up-to-date with port 
> help2man-1.36.4_1   =  up-to-date with port 
> jpeg-6b_4   =  up-to-date with port 
> ldconfig_compat-1.0_8   =  up-to-date with port 
> libdrm-2.3.0=  up-to-date with port 
> libgcrypt-1.2.4_1   =  up-to-date with port 
> libgpg-error-1.4_1  =  up-to-date with port 
> libiconv-1.9.2_2=  up-to-date with port 
> libltdl-1.5.22_2=  up-to-date with port 
> libmcrypt-2.5.8 =  up-to-date with port 
> libtool-1.5.22_4=  up-to-date with port 
> libxml2-2.6.27  =  up-to-date with port 
> m4-1.4.9=  up-to-date with port 
> mysql-client-4.1.22 =  up-to-date with port 
> mysql-server-4.1.22 =  up-to-date with port 
> net-snmp-5.3.1_3=  up-to-date

Re: BSDstats Project v1.0

2006-08-04 Thread Hans Nieser
User Freebsd wrote:
> On Fri, 4 Aug 2006, Colin Percival wrote:
> 
>> User Freebsd wrote:
>>> 'k folks ... the quick and dirty .. actually, not too dirty ...
>>>
>>> The attached script [...]
>>
>> Can you make this into a port which users can install?
> 
> I'm not sure, can I?  Can ports install into /etc/periodic?  Or is there
> some other way of doing it?
> 
> If you want to do the initial port and assign MAINTAINER to
> [EMAIL PROTECTED], I'll maintain it from there ... I'm just not sure
> how to deal with installing into non-/usr/local as a port ... :(
> 

Well, there's /usr/local/etc/periodic, won't that work? (The dir exists
for me because that's where portaudit installed its script.)

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


Re: problem with phpMyAdmin port

2006-08-30 Thread Hans Nieser
fbsd wrote:
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Bill Moran
> Sent: Wednesday, August 30, 2006 1:14 PM
> To: Daniel Gerzo
> Cc: fbsd; [EMAIL PROTECTED] ORG
> Subject: Re: problem with phpMyAdmin port
> 
> 
> In response to Daniel Gerzo <[EMAIL PROTECTED]>:
> 
>>> When I try to run phpMyAdmin I get this error
>>> Fatal error: Call to undefined function preg_replace() in
>>> /usr/local/www/phpMyAdmin/libraries/sanitizing.lib.php on line
> 37
>> this is not error of the port. You are missing PCRE php extension.
>> Install the lang/php4-extensions or php5-extensions port.
> 
> Actually, this _is_ an error in the port.  The port should properly
> specify the pcre extension as a dependency.  The workaround
> suggested
> will get you going, however.
> 
> If this problem is reproducible, you should file a PR.
> 
> Are you sure the port installed successfully?  I just installed this
> port a few weeks ago and it worked fine.  If you're ports tree is
> up to date, then these bugs are newly introduced.
> 
> --
> Bill Moran
> Collaborative Fusion Inc.
> 
> **
> 
> pkg_info shows php5-pcre-5.1.4 installed so is this not
> the correct pcre dependency?
> 

You have to make sure that the pcre extension is actually being loaded by
PHP. Check that you have the following line un
/usr/local/etc/php/extensions.ini:

extension=pcre.so

I believe this should have been added automatically though, but to double
check that it is loaded, restart apache if you've got PHP running as a
module, and check the output of phpinfo();
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"