Re: PHP upgrade fails

2010-05-21 Thread Matthias Fechner

Hi,

Am 21.05.10 02:23, schrieb Zbigniew Szalbot:

I think something is wrong. It may be that I upgraded the wrong php
port? My initial command was portupgrade php\*
   


it is always a good advice to check /usr/ports/UPDATING before you start 
upgrading anything, there is a manual in how to upgrade php to version 
5.3 without problems (as far your application runs with 5.3).


Bye,
Matthias

--
Programming today is a race between software engineers striving to build bigger and 
better idiot-proof programs, and the universe trying to produce bigger and better idiots. 
So far, the universe is winning. -- Rich Cook

___
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: Zpool import failure, metadata checksum fails 8.0-RELEASE

2010-05-21 Thread Joseph Lenox

Update --

Updated to 8.0-STABLE (tagged 8.1-PRERELEASE), zpool is sitting at 
tx-tx state (according to top).


The root cause of this was apparently an enabled write cache on the sata 
controller (an adaptec model, can handle its own RAID5)+inopportune 
power failure; I've disabled it going forward.


I've done some searching through the 'net and haven't found any useful 
info for this type of situation--apparently Solaris just flags the pool 
as having soft errors and the user is expected to move on from there. As 
far as I can tell, the pool MUST be imported to perform any other kind 
of operation on it--you can't even destroy the pool. I don't know if 
recreating the pool from the underlying system destroys the data.


I'm going to leave it for 24 hours and double check to make sure the 
process is truly stuck (although I'm pretty sure it is). The current 
system install is a rebuild on different media--I do have the original 
HDD with the OS install on it, but any attempts to access the pool on 
that drive gives the same symptoms.


--Joseph Lenox

Command:
/sbin/zpool import -p failmode=panic -f valkyrie

PID   username THR PRI NICE SIZE   RES STATE C TIME WCPU COMMAND
 root  1  44   015668K  1936K tx-tx   1  0:00   
0.00%   zpool



/var/log/messages excerpt:

May 21 00:58:31 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd3 offset=494926778368 size=1024
May 21 00:58:31 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd1 offset=494926778368 size=1024
May 21 00:58:31 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd4 offset=494926778368 size=1024
May 21 00:58:31 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd5 offset=494926778368 size=1024
May 21 00:58:31 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd0 offset=494926778880 size=512
May 21 00:58:31 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd2 offset=494926778880 size=512
May 21 00:58:31 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd0 offset=129568120320 size=1024
May 21 00:58:31 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd2 offset=129568120320 size=1024
May 21 00:58:31 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd1 offset=129568120320 size=1024
May 21 00:58:31 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd3 offset=129568120320 size=1024
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd4 offset=129568120320 size=512
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd5 offset=129568120320 size=512
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd4 offset=289968832000 size=1024
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd5 offset=289968832000 size=1024
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd0 offset=289968832512 size=1024
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd2 offset=289968832512 size=1024
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd1 offset=289968832512 size=512
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd3 offset=289968832512 size=512
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd3 offset=494926778368 size=1024
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd1 offset=494926778368 size=1024
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd4 offset=494926778368 size=1024
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd5 offset=494926778368 size=1024
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd0 offset=494926778880 size=512
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd2 offset=494926778880 size=512
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd0 offset=129568120320 size=1024
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd2 offset=129568120320 size=1024
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd1 offset=129568120320 size=1024
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd3 offset=129568120320 size=1024
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd4 offset=129568120320 size=512
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd5 offset=129568120320 size=512
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, zpool=valkyrie 
path=/dev/aacd4 offset=289968832000 size=1024
May 21 00:58:32 silmeria root: ZFS: checksum mismatch, 

Re: Terminal thinks start of line is first character of previous line

2010-05-21 Thread Eitan Adler
On Fri, May 21, 2010 at 1:34 AM, Polytropon free...@edvax.de wrote:
 On Fri, 21 May 2010 01:02:04 +0300, Eitan Adler li...@eitanadler.com wrote:
 For some reason the output of my terminal at times seems to put the
 first character of a line as the last character of the previous line.
 This occurs with x11/Terminal x11/Eterm x11/xterm and probably others.
 As far as I could tell this does not not occur on console but I have
 not tested as thoroughly.

 Do you have any idea what sets $COLUMN for your terminal session?
 I don't have this variable defined neither in xterm or text mode
 console.
I'm unsure - I believe this is bash or zsh  - the problem occurs with
both of them

 When you state at some times for this strange shifting to happen,
 what programs are affected, for example, or is terminal output
 affected in general?
this often happens with ls output - but not all the time - it seems
only when ls doesn't do one column output
this.

Maybe $COLUMNS setting interferes with
 something...

Even I change it I still get the same problem.

-- 
Eitan Adler
___
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: File system

2010-05-21 Thread Eitan Adler
gjournal will replay all write attempts
 (metadata and data) before the failure, so you should be relatively
 sure that all writes are done correctly.

As I understand it journals work by writing to disk a log of all the
changes that have to be made - waits for confirmation that it wrote
the data - and then attempts to make those changes. If after the
confirmation there is a crash the log file is replayed.
Certain virtual machines will report to the OS that it wrote the data
to disk before it actually does so. In that case journaling doesn't
actually help as the log file is still not on some form of stable
storage.
--
Eitan Adler
___
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


phpmyadmin apache22

2010-05-21 Thread Fbsd1
Tried 'make install' on phpmyadmin port and got not found errors on 
php5-filter, php5-session, php5-ctype, php5-mysql all of which were all 
ready installed by pkg_add. Pkg_info verifies that they are there. And 
of course I have compiled php5 with the apache module. I have apache13  
phpmyadmin installed on another box using the same method and it works 
fine. Does phpmyadmin work with apache22?


Also why does the phpmyadmin pkg use the pdflib when there has never 
been a pdflib package built because of requirement of not distributing 
pdf executable module. All the make config defaults should be changed to 
off so the pkg is usable.

___
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 8.1-PRERELEASE: property 'jailed' not supported on FreeBSD: permission denied

2010-05-21 Thread Eugene Mitrofanov
Hi

The command zfs set jailed=on tank/s1 is failed with the message 
property 'jailed' not supported on FreeBSD: permission denied.

Output of zfs get jailed tank/s1 shows me that the property jailed is 
still exists:
NAME PROPERTY  VALUESOURCE
tank/s1  jailedoff  default

How can I change its value?

Thanks.
-- 
EMIT-RIPN, EVM7-RIPE
___
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: Seamonkey 2.0.4: crash crash crash post-update

2010-05-21 Thread J. Altman
The Cairo patch has remedied this for me. Thanks to the maintainer who
patched; and Barbara, who reported the bug correctly.
___
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: phpmyadmin apache22

2010-05-21 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21/05/2010 12:39:44, Fbsd1 wrote:
 Tried 'make install' on phpmyadmin port and got not found errors on
 php5-filter, php5-session, php5-ctype, php5-mysql all of which were all
 ready installed by pkg_add. Pkg_info verifies that they are there. And
 of course I have compiled php5 with the apache module. I have apache13 
 phpmyadmin installed on another box using the same method and it works
 fine. Does phpmyadmin work with apache22?

It certainly does work with apache22.  Your problem is with your PHP
installation rather than any of the other components mentioned.  It
sounds as if you've got some php modules that don't match the version of
the main php interpreter / apache module.  What does
'pkg_info -Ix php' return?

 Also why does the phpmyadmin pkg use the pdflib when there has never
 been a pdflib package built because of requirement of not distributing
 pdf executable module. All the make config defaults should be changed to
 off so the pkg is usable.

If you don't want phpMyAdmin to have its full capabilities enabled, then
use the OPTIONS mechanism in the port to turn off the bits you don't
want.  Or define 'WITHOUT_PHP_DEPENDS' in /etc/make.conf which lets you
install phpMyAdmin without *any* dependency on PHP.  As the process of
installing phpMyAdmin consists almost entirely of copying php files into
place, there's no real advantage to using a pkg over using the port or
vice versa.

Matthew

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

iEYEARECAAYFAkv2fEgACgkQ8Mjk52CukIw2uACffzL8ShOf9rXDJT4ib6XH1U8s
KpwAnj8Ngoz8ittRrAbUwbpKR9bO866Q
=w/z+
-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: phpmyadmin apache22

2010-05-21 Thread Fbsd1

Matthew Seaman wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21/05/2010 12:39:44, Fbsd1 wrote:

Tried 'make install' on phpmyadmin port and got not found errors on
php5-filter, php5-session, php5-ctype, php5-mysql all of which were all
ready installed by pkg_add. Pkg_info verifies that they are there. And
of course I have compiled php5 with the apache module. I have apache13 
phpmyadmin installed on another box using the same method and it works
fine. Does phpmyadmin work with apache22?


It certainly does work with apache22.  Your problem is with your PHP
installation rather than any of the other components mentioned.  It
sounds as if you've got some php modules that don't match the version of
the main php interpreter / apache module.  What does
'pkg_info -Ix php' return?


Matthew

pkg_info -Ix php
ap22-php5-5.3.2 PHP Scripting Language
php5-bz2-5.2.11 The bz2 shared extension for php
php5-ctype-5.2.11   The ctype shared extension for php
php5-filter-5.2.11  The filter shared extension for php
php5-gd-5.2.11  The gd shared extension for php
php5-mbstring-5.2.11 The mbstring shared extension for php
php5-mcrypt-5.2.11  The mcrypt shared extension for php
php5-mysql-5.2.11   The mysql shared extension for php
php5-openssl-5.2.11 The openssl shared extension for php
php5-pcre-5.2.11The pcre shared extension for php
php5-session-5.2.11 The session shared extension for php
php5-simplexml-5.2.11 The simplexml shared extension for php
php5-spl-5.2.11 The spl shared extension for php
php5-zip-5.2.11 The zip shared extension for php
php5-zlib-5.2.11The zlib shared extension for php
___
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


Apache22 Upgrade Failure

2010-05-21 Thread Odhiambo Washington
Hiya,

Did I miss something? Trying to upgrade apache22 on my FreeBSD boxes results
in:

---  Installing 'apache-2.2.15_8' from a port (www/apache22)
---  Building '/usr/ports/www/apache22'
===  Cleaning for apache-2.2.15_8

 To enable a module category: WITH_CATEGORY_MODULES
 To disable a module category: WITHOUT_CATEGORY_MODULES

 Per default categories are:
  AUTH AUTHN AUTHZ DAV CACHE MISC
 Categories available:
  AUTH AUTHN AUTHZ CACHE DAV EXPERIMENTAL LDAP  MISC PROXY SSL SUEXEC
THREADS

  To see all available knobs, type make show-options
  To see all modules in different categories, type make show-categories
  You can check your modules configuration by using make show-modules

===  Vulnerability check disabled, database not found
===  Found saved configuration for apache-2.2.15_8
===  Extracting for apache-2.2.15_8
= MD5 Checksum OK for apache22/httpd-2.2.15.tar.bz2.
= SHA256 Checksum OK for apache22/httpd-2.2.15.tar.bz2.
===   apache-2.2.15_8 depends on file: /usr/local/bin/perl5.8.8 - found
===  Patching for apache-2.2.15_8
===   apache-2.2.15_8 depends on file: /usr/local/bin/perl5.8.8 - found
===  Applying FreeBSD patches for apache-2.2.15_8
===   apache-2.2.15_8 depends on file: /usr/local/bin/perl5.8.8 - found
===   apache-2.2.15_8 depends on file: /usr/local/bin/autoconf-2.62 - found
===   apache-2.2.15_8 depends on package: libtool=2.2 - found
===   apache-2.2.15_8 depends on shared library: expat.6 - found
===   apache-2.2.15_8 depends on shared library: apr-1 - found
===   apache-2.2.15_8 depends on shared library: pcre.0 - found
===   apache-2.2.15_8 depends on shared library: iconv.3 - found
===   apache-2.2.15_8 depends on shared library: mysqlclient.16 - found
===  Configuring for apache-2.2.15_8
checking for chosen layout... FreeBSD
checking for working mkdir -p... yes
checking build system type... i386-portbld-freebsd7.3
checking host system type... i386-portbld-freebsd7.3
checking target system type... i386-portbld-freebsd7.3

Configuring Apache Portable Runtime library ...

checking for APR... configure: error: the --with-apr parameter is incorrect.
It must specify an install prefix, a build directory, or an apr-config file.
===  Script configure failed unexpectedly.
Please report the problem to apa...@freebsd.org [maintainer] and attach the
/usr/ports/www/apache22/work/httpd-2.2.15/config.log including the output
of the failure of your make command. Also, it might be a good idea to
provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/www/apache22.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portinstall.54022.0 env make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! www/apache22  (configure error)



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
If you have nothing good to say about someone, just shut up!.
  -- Lucky Dube
___
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


Apache22 Upgrade Failure

2010-05-21 Thread Odhiambo Washington
Hiya,

Did I miss something? Trying to upgrade apache22 on my FreeBSD boxes results
in:

---  Installing 'apache-2.2.15_8' from a port (www/apache22)
---  Building '/usr/ports/www/apache22'
===  Cleaning for apache-2.2.15_8

 To enable a module category: WITH_CATEGORY_MODULES
 To disable a module category: WITHOUT_CATEGORY_MODULES

 Per default categories are:
 AUTH AUTHN AUTHZ DAV CACHE MISC
 Categories available:
 AUTH AUTHN AUTHZ CACHE DAV EXPERIMENTAL LDAP  MISC PROXY SSL SUEXEC
THREADS

 To see all available knobs, type make show-options
 To see all modules in different categories, type make show-categories
 You can check your modules configuration by using make show-modules

===  Vulnerability check disabled, database not found
===  Found saved configuration for apache-2.2.15_8
===  Extracting for apache-2.2.15_8
= MD5 Checksum OK for apache22/httpd-2.2.15.tar.bz2.
= SHA256 Checksum OK for apache22/httpd-2.2.15.tar.bz2.
===   apache-2.2.15_8 depends on file: /usr/local/bin/perl5.8.8 - found
===  Patching for apache-2.2.15_8
===   apache-2.2.15_8 depends on file: /usr/local/bin/perl5.8.8 - found
===  Applying FreeBSD patches for apache-2.2.15_8
===   apache-2.2.15_8 depends on file: /usr/local/bin/perl5.8.8 - found
===   apache-2.2.15_8 depends on file: /usr/local/bin/autoconf-2.62 - found
===   apache-2.2.15_8 depends on package: libtool=2.2 - found
===   apache-2.2.15_8 depends on shared library: expat.6 - found
===   apache-2.2.15_8 depends on shared library: apr-1 - found
===   apache-2.2.15_8 depends on shared library: pcre.0 - found
===   apache-2.2.15_8 depends on shared library: iconv.3 - found
===   apache-2.2.15_8 depends on shared library: mysqlclient.16 - found
===  Configuring for apache-2.2.15_8
checking for chosen layout... FreeBSD
checking for working mkdir -p... yes
checking build system type... i386-portbld-freebsd7.3
checking host system type... i386-portbld-freebsd7.3
checking target system type... i386-portbld-freebsd7.3

Configuring Apache Portable Runtime library ...

checking for APR... configure: error: the --with-apr parameter is incorrect.
It must specify an install prefix, a build directory, or an apr-config file.
===  Script configure failed unexpectedly.
Please report the problem to apa...@freebsd.org [maintainer] and attach the
/usr/ports/www/apache22/work/httpd-2.2.15/config.log including the output
of the failure of your make command. Also, it might be a good idea to
provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/www/apache22.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portinstall.54022.0 env make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
   ! www/apache22  (configure error)



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
If you have nothing good to say about someone, just shut up!.
  -- Lucky Dube
___
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: Apache22 Upgrade Failure

2010-05-21 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21/05/2010 16:00:59, Odhiambo Washington wrote:
 Did I miss something? Trying to upgrade apache22 on my FreeBSD boxes results
 in:

See the /usr/ports/UPDATING entry for 20100518.  Apache now requires apr
rather than it being optional.  To upgrade smoothly, first deinstall
apache, then install/upgrade apr1, then reinstall apache.

Cheers,

Matthew

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

iEYEARECAAYFAkv2oeYACgkQ8Mjk52CukIzTAgCeKJ/hwilsRoU60pjDrVza670F
EOgAnjyJDOA+yI6uWUhMjwe8ngYSbM3Y
=JBNb
-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: Apache22 Upgrade Failure

2010-05-21 Thread Odhiambo Washington
On Fri, May 21, 2010 at 4:08 PM, Matthew Seaman 
m.sea...@infracaninophile.co.uk wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 21/05/2010 16:00:59, Odhiambo Washington wrote:
  Did I miss something? Trying to upgrade apache22 on my FreeBSD boxes
 results
  in:

 See the /usr/ports/UPDATING entry for 20100518.  Apache now requires apr
 rather than it being optional.  To upgrade smoothly, first deinstall
 apache, then install/upgrade apr1, then reinstall apache.


Thanks. I just figured that out immediately after posting:-)

BTW, FreeBSD lists now have a tag in the subject?? I almost thought I mailed
the wrong address, only to realize it's something new.


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
If you have nothing good to say about someone, just shut up!.
  -- Lucky Dube
___
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: phpmyadmin apache22

2010-05-21 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21/05/2010 14:54:20, Fbsd1 wrote:
 pkg_info -Ix php
 ap22-php5-5.3.2 PHP Scripting Language

 Version 5.3.2

 php5-bz2-5.2.11 The bz2 shared extension for php
 php5-ctype-5.2.11   The ctype shared extension for php
 php5-filter-5.2.11  The filter shared extension for php
 php5-gd-5.2.11  The gd shared extension for php
 php5-mbstring-5.2.11 The mbstring shared extension for php
 php5-mcrypt-5.2.11  The mcrypt shared extension for php
 php5-mysql-5.2.11   The mysql shared extension for php
 php5-openssl-5.2.11 The openssl shared extension for php
 php5-pcre-5.2.11The pcre shared extension for php
 php5-session-5.2.11 The session shared extension for php
 php5-simplexml-5.2.11 The simplexml shared extension for php
 php5-spl-5.2.11 The spl shared extension for php
 php5-zip-5.2.11 The zip shared extension for php
 php5-zlib-5.2.11The zlib shared extension for php

^ Version 5.2.11

That's your problem.  Delete php5-spl-5.2.11 and php5-pcre-5.2.11
(because those are part of the base php5-5.3.2 nowadays) and rebuild all
the other php modules and you should be good to go.

Cheers,

Matthew

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

iEYEARECAAYFAkv2o40ACgkQ8Mjk52CukIwMSgCgiTXMOUmcycQXILzRbAt4fxE1
FmIAnjHrjzgWlcDM98Fgudh3YLYTlh4K
=Mb38
-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: Apache22 Upgrade Failure

2010-05-21 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21/05/2010 16:12:23, Odhiambo Washington wrote:
 BTW, FreeBSD lists now have a tag in the subject?? I almost thought I mailed
 the wrong address, only to realize it's something new.

No -- that's the on-going saga of the Idiot and the Clueless Support
crew.  Every time anyone posts to freebsd-questi...@... they get an
auto-response from mpcustomer.com.  Partly its due to some Idiot who
thought it would be fun to redirect the mailing list traffic into a
support system, but mostly it's because that Support system is badly
designed, not standards compliant (apart from anything else, you should
never send auto-replies to a Precedence: List message) and worst of all:
it sends out replies *forging the sender address*.

postmas...@freebsd.org knows of the problem, but can't do anything
unless the address that is feeding the traffic into their system can be
identified.  mpcustomer.com seem incapable of doing anything to fix the
problem.

Cheers,

Matthew

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

iEYEARECAAYFAkv2rIsACgkQ8Mjk52CukIzHQACfcIKeULETtsiiX0IFnxpPy9np
IpkAnAoQpEFhnFiPS1J0cJFI5/0PXURB
=6vpu
-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


threads and malloc/free on freebsd 8.0

2010-05-21 Thread Vikash Badal

Greetings.

Excuse me if this is a stupid questions.

I have a thread socket application that seems to be behaving strangely

In a worker thread, I have the following.

CODE---
   LogMessage(DEBUG_0, allocated %ld, malloc_usable_size(inst));
   
   free(inst);
   
   LogMessage(DEBUG_0, after free allocated %ld, malloc_usable_size(inst));
   
return 0;
---/CODE

output allocated 2304
output after free allocated 2304

from playing around, this should have segfaulted but it didn't:

if I try this from a non threaded, non socket code:
CODE--
   char *z;

   z = (char*)malloc(1000);
   printf(malloc is %ld\n, malloc_usable_size(z));
   free(z);
   printf(after malloc is %ld\n, malloc_usable_size(z));
--/CODE

Output malloc is 1024
Output Segmentation fault (core dumped)



Can anyone enlighten me ?


If im not clear, please forgive me.


Please note: This email and its content are subject to the disclaimer as 
displayed at the following link 
http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. 
Should you not have Web access, send a mail to disclaim...@is.co.za and a copy 
will be emailed to 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: Playing Ogg Vorbis files with Audacious

2010-05-21 Thread Carl Johnson
Roland Smith rsm...@xs4all.nl writes:

 On Thu, May 20, 2010 at 08:04:58PM -0700, Carl Johnson wrote:
 I just installed the package for the audio player audacious and I
 discovered that it won't recognize ogg vorbis files.  I installed the
 audacious-plugins package, but I don't see any vorbis plugins in the
 file list, so has it been moved to some other port?  

 Make sure your ports tree is up-to-date. Looking at
 ports/multimedia/audacious-plugins/Makefile version 1.74, the Ogg Vorbis input
 plugin _is_ there. But it is off by default.

Thanks, that just occurred to me this morning.  I had installed it as
a package instead of compiling the port, and it never occurred to me
that vorbis wouldn't be included.  I'll just compile the port for the
plugins now.  I think I'll submit a PR suggesting that it is common
enough that it should be included by default.

-- 
Carl Johnsonca...@peak.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: Bash lockups

2010-05-21 Thread Carl Johnson
Giorgos Keramidas keram...@ceid.upatras.gr writes:

 On Wed, 19 May 2010 16:14:52 -0700, Carl Johnson ca...@peak.org wrote:
 I have been experimenting with FreeBSD for a while, and I consistently
 get bash lockups at irregular intervals when it is otherwise idle.  By
 lockup, I mean that it stops responding to the keyboard and uses 100%
 CPU.  It will sometimes go for days with no problems, but I had two
 yesterday, and other today.  They have occurred on test systems
 running in VirtualBox and on a real computer, both i386 and amd64
 images, and a mixture of 7.1, 7.3 and 8.0.  They usually seem to
 happen when I am switching tabs in konsole or switching shells in
 screen, but other times I think they happen when I am not even using
 the system.  The only thing I have found I can do is to do a kill -9
 and start a new shell.

 Does this lock-up happen if you leave the shell 'idle' for too long over
 an ssh session?  There may be problems with stateful connection tracking
 between your terminal and the remote shell :-/

No, I don't think that could be the problem.  I am just using ssh
between local machines and there is no firewall between them.  It also
often seems to happen to a shell as I switch away from it to another
one.  One suspicion is that something is sending a signal to the shell
as it switches, and bash sometimes doesn't handle that signal
properly.

I also should have mentioned that I have been running bash as my
default shell for years under Linux and have never seen this problem
there.

Thanks for the suggestion.

-- 
Carl Johnsonca...@peak.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: PHP upgrade fails

2010-05-21 Thread Zbigniew Szalbot
Hello,

 it is always a good advice to check /usr/ports/UPDATING before you start
 upgrading anything, there is a manual in how to upgrade php to version 5.3
 without problems (as far your application runs with 5.3).
Absolutely so! I wish I had done that.

I still have a strange problem. PHP seems almost fine at the moment.
Sites are working to some extent at least. But I need to add one php
extension so I went to /usr/ports/lang/php5-extensions, followed by
make config.

There I deselected some of the extensions I do not really need plus
checked the one I am after.

The installation went fine (I did not notice any errors) but when I issue:

pkg_info -Ix php5
php5-5.3.2  PHP Scripting Language
php5-bcmath-5.3.2   The bcmath shared extension for php
php5-bz2-5.3.2  The bz2 shared extension for php
php5-ctype-5.3.2The ctype shared extension for php
php5-dom-5.3.2  The dom shared extension for php
php5-extensions-1.4 A meta-port to install PHP extensions
php5-filter-5.3.2   The filter shared extension for php
php5-ftp-5.3.2  The ftp shared extension for php
php5-gd-5.3.2   The gd shared extension for php
php5-gettext-5.3.2  The gettext shared extension for php
php5-hash-5.3.2 The hash shared extension for php
php5-iconv-5.3.2The iconv shared extension for php
php5-imap-5.3.2 The imap shared extension for php
php5-json-5.3.2 The json shared extension for php
php5-mbstring-5.3.2 The mbstring shared extension for php
php5-mcrypt-5.3.2   The mcrypt shared extension for php
php5-mysql-5.3.2The mysql shared extension for php
php5-mysqli-5.3.2   The mysqli shared extension for php
php5-openssl-5.3.2  The openssl shared extension for php
php5-pdo-5.3.2  The pdo shared extension for php
php5-posix-5.3.2The posix shared extension for php
php5-pspell-5.3.2   The pspell shared extension for php
php5-session-5.3.2  The session shared extension for php
php5-simplexml-5.3.2 The simplexml shared extension for php
php5-tokenizer-5.3.2 The tokenizer shared extension for php
php5-xml-5.3.2  The xml shared extension for php
php5-xmlreader-5.3.2 The xmlreader shared extension for php
php5-xmlwriter-5.3.2 The xmlwriter shared extension for php
php5-zip-5.3.2  The zip shared extension for php
php5-zlib-5.3.2 The zlib shared extension for php

I cannot find php5-pdf* which I was trying to install.

Would you have any advice as to why this is happening and how to
troubleshoot it on a  8.0-RELEASE-p2 with a Generic kernel?

Many, many thanks in advance!


-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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


Apache22 Upgrade Failure

2010-05-21 Thread Robert Huff

Odhiambo Washington writes:

  Did I miss something? Trying to upgrade apache22 on my FreeBSD
  boxes results in:

Have you read /usr/ports/UPDATING?


Robert Huff




___
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: PHP upgrade fails

2010-05-21 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 21/05/2010 19:01:40, Zbigniew Szalbot wrote:
 I cannot find php5-pdf* which I was trying to install.

It's called pecl-pdflib

Cheers,

Matthew

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

iEUEARECAAYFAkv20tcACgkQ8Mjk52CukIycqQCY0cPvn3Tl2ZsZVL1uAnyw2C5z
mwCfS+eO1d/qSmwR94Ejh9dZ/JZaam0=
=83MY
-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


HM55

2010-05-21 Thread Chip Camden
I'm posting about this issue again now that I know more about what I'm
talking about.

My ASUS notebook has integrated Intel HD graphics in the HM55 chipset.
The intel driver for Xorg does not recognize it.  I have tried hacking
the device ID (0x0046) into the various supplied Intel drivers, with no
luck.  Is anyone working on supporting this chipset?  How can I help?  I
haven't written a device driver in more than 20 years, but I'd be willing
to try if someone can point me in the right direction.  As it stands, I
have to use the vesa driver, which doesn't make good use of my screen
real estate.

Regards,
-- 
Sterling (Chip) Camden | camdensoftware.com | chipstips.com | chipsquips.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


Re: How long do you go without upgrading FreeBSD to a newer release?

2010-05-21 Thread Hans Ivers
On May 16, 11:42 am, Dan Naumov dan.nau...@gmail.com wrote:
 Hello folks

 Just a thought/question that has recently come to my mind: How long do
 you usually wait until upgrading to a newer release of FreeBSD? I am
 sure there are lots of people who upgrade straight away, but what
 about the opposite? What's your oldest currently running installation,
 do you have any issues and are you planning on an upgrade or do you
 intend to leave it running as is until some critical piece of hardware
 breaks down, requiring a replacement?

I tend to stick with extended releases of FreeBSD, which are supported
for two years instead of one. It reduces the need for minor version
upgrades. When time comes, I jump to the next extended release (i.e,
from 7.1 to 7.3, which has also extended support).

http://security.freebsd.org/#sup

Good luck!
___
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 i use a memory stick on freebsd?

2010-05-21 Thread Gary Kline

guys, 

my wife emptied a bunch of files onto her memory stick;  the pc
is not here.  i have never used one of these devices before and
want to know how, if it is possible, to read her dos/lose
material from my bsd system.  7.3, dell, plenty of disk, and yes,
i know where the usb slot it!

do i need to put something in /usr/rc.conf? build a driver or
utility?  or what?

tia, Y'all!

clueless in king county.



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

___
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: threads and malloc/free on freebsd 8.0

2010-05-21 Thread Dan Nelson
In the last episode (May 21), Vikash Badal said:
 Excuse me if this is a stupid questions.
 
 I have a thread socket application that seems to be behaving strangely
 
 In a worker thread, I have the following.
 
 CODE---
LogMessage(DEBUG_0, allocated %ld, malloc_usable_size(inst));

free(inst);

LogMessage(DEBUG_0, after free allocated %ld, malloc_usable_size(inst));

 return 0;
 ---/CODE
 
 output allocated 2304
 output after free allocated 2304
 
 from playing around, this should have segfaulted but it didn't

You're invoking undefined behaviour here by calling malloc_usable_size on a
free'd pointer.  The function is free to crash, return useful data, or
return useless data, at its discretion :)  

As long as you only call it on pointers that are still valid you will be
okay.

-- 
Dan Nelson
dnel...@allantgroup.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


Re: how do i use a memory stick on freebsd?

2010-05-21 Thread Jerry McAllister
On Fri, May 21, 2010 at 12:03:42PM -0700, Gary Kline wrote:

 
 guys, 
 
 my wife emptied a bunch of files onto her memory stick;  the pc
 is not here.  i have never used one of these devices before and
 want to know how, if it is possible, to read her dos/lose
 material from my bsd system.  7.3, dell, plenty of disk, and yes,
 i know where the usb slot it!
 
 do i need to put something in /usr/rc.conf? build a driver or
 utility?  or what?
 
 tia, Y'all!
 
 clueless in king county.
 

I have the following line in my /etc/fstab and it works just fine.
 
/dev/da1s1  /stick  msdosfs rw,noauto

You have to mount after and umount before plugging the stick in
or pulling it out.   At least that version of FreeBSD does not
automount/umount.

I don't know about a driver.  I didn't have to do anything
extra for a driver.   That machine currently has FreeBSD 7.1
on a Dell desktop of some sort (I don't even remember), probably
an Optiplex.

Of course, the above assumes you have a FATnnn (FAT32) MessyDOS
filesystem on it.I think you can put a UFS on it, but then
MS won't know how to read/write it.

jerry


 
 -- 
  Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
 The 7.83a release of Jottings: http://jottings.thought.org/index.php
http://journey.thought.org  99 44/100% Guaranteed Novel
 
 ___
 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: how do i use a memory stick on freebsd?

2010-05-21 Thread Polytropon
On Fri, 21 May 2010 12:03:42 -0700, Gary Kline kl...@thought.org wrote:
 
 guys, 
 
 my wife emptied a bunch of files onto her memory stick;  the pc
 is not here.  i have never used one of these devices before and
 want to know how, if it is possible, to read her dos/lose
 material from my bsd system. 

It IS possible, and quite easy.



 7.3, dell, plenty of disk, and yes,
 i know where the usb slot it!

It's right beneath the 4X cup holder, I know. :-)



 do i need to put something in /usr/rc.conf?

You mean /etc/rc.conf? Usually not. The /etc/fstab file is where
you can add a default mountpoint and mount options for the USB
stick.

Usually, the device used to access USB sticks is /dev/da (Direct
Access), and I think it will be /dev/da0. Check the output of
dmesg or the last lines in the system log which will reveal the
correct device.

FAT file systems correspond to a slice on the device, /dev/da0s1
for example. You can mount this device.

If it is your first time, play with it, e. g.

# mount_msdosfs -o ro /dev/da0s1 /mnt
# ls /mnt

Is the intended content there? Good.

# umount /mnt

Now add a rule to your file system table, making mount attempts
more easy.

/dev/da0s1  /media/stick  msdosfs rw,noauto,noatime  0  0

This could be a valid entry, depending on the existance of the
directory.

Keep in mind: In order to mount USB sticks as a user you need
sufficient permissions to the involved files, as well as to
own the mount directory, and finally have

vfs.usermount=1

in /etc/sysctl.conf. In case you mount as root (or prefix the
mount command with sudo, ur use the system's su), you don't need
to pay this attention.

You should also read

man mount_msdosfs

and see if you want to use -m and -M: The old-fashioned FAT
file systems don't know file permissions, so files on the USB
stick will have the +x attribute, pretending they were executables
(which they usually aren't); -m and -M apply masks to cut away
this mis-information. It can also be possible that you need the
large option -o large.

Feel free to also read this:

http://www.freebsd.org/doc/en/books/handbook/mount-unmount.html

http://www.freebsd.org/doc/en/books/handbook/usb-disks.html

In any case, keep an eye on umounting the USB stick before
removing it. PCs are bad at hot plug operations. :-)



 build a driver or
 utility? 

This is FreeBSD, not Windows. :-)



 or what?

Or nothing. :-)

If you want nothing, KDE and Gnome (and Xfce, too) allow the
use of automounting USB devices (if sufficient permissions
allow this), through the means of HAL, DBUS and PolicyKit.
But that's too complicated to be explained in a man's life. :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: threads and malloc/free on freebsd 8.0

2010-05-21 Thread Anoop Kumar Narayanan
I think glibc uses asynchronous free, as in it doesn't free the memory
immediately. So even though the memory is free'd its still part of the
process's address space but present in the free pool and so it doesn't
crash.

-Anoop

On Sat, May 22, 2010 at 12:48 AM, Dan Nelson dnel...@allantgroup.com wrote:
 In the last episode (May 21), Vikash Badal said:
 Excuse me if this is a stupid questions.

 I have a thread socket application that seems to be behaving strangely

 In a worker thread, I have the following.

 CODE---
    LogMessage(DEBUG_0, allocated %ld, malloc_usable_size(inst));

    free(inst);

    LogMessage(DEBUG_0, after free allocated %ld, malloc_usable_size(inst));

     return 0;
 ---/CODE

 output allocated 2304
 output after free allocated 2304

 from playing around, this should have segfaulted but it didn't

 You're invoking undefined behaviour here by calling malloc_usable_size on a
 free'd pointer.  The function is free to crash, return useful data, or
 return useless data, at its discretion :)

 As long as you only call it on pointers that are still valid you will be
 okay.

 --
        Dan Nelson
        dnel...@allantgroup.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

___
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: Bash lockups

2010-05-21 Thread Giorgos Keramidas
On Fri, 21 May 2010 09:30:05 -0700, Carl Johnson ca...@peak.org wrote:
 Giorgos Keramidas keram...@ceid.upatras.gr writes:
 Does this lock-up happen if you leave the shell 'idle' for too long
 over an ssh session?  There may be problems with stateful connection
 tracking between your terminal and the remote shell :-/

 No, I don't think that could be the problem.  I am just using ssh
 between local machines and there is no firewall between them.  It also
 often seems to happen to a shell as I switch away from it to another
 one.  One suspicion is that something is sending a signal to the shell
 as it switches, and bash sometimes doesn't handle that signal
 properly.

 I also should have mentioned that I have been running bash as my
 default shell for years under Linux and have never seen this problem
 there.

 Thanks for the suggestion.

That's ok.  If you can attach to the bash process with ktrace please try
to grab a ktrace file from a deadlocked shell.  We may be able to see
why it gets deadlocked by running kdump(8) on the shell trace file.

You can run a second shell under ktrace (and hope that the parent
doesn't deadlock before the traced child shell), by running:

bash$ ktrace -f bash.trace bash --login

When you exit from the child shell you can dump ktrace(8) events from
the bash.trace file with:

bash$ kdump -f bash.trace  logfile 21

Looking near the last records dumped in 'logfile' should be quite
informative if the process is dead-locked or spinning around the same
code over and over again.

___
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: threads and malloc/free on freebsd 8.0

2010-05-21 Thread Dan Nelson
In the last episode (May 22), Anoop Kumar Narayanan said:
 I think glibc uses asynchronous free, as in it doesn't free the memory
 immediately.  So even though the memory is free'd its still part of the
 process's address space but present in the free pool and so it doesn't
 crash.

FreeBSD doesn't use glibc, so that doesn't apply here :)

-- 
Dan Nelson
dnel...@allantgroup.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


Re: Playing Ogg Vorbis files with Audacious

2010-05-21 Thread Gary Kline
On Fri, May 21, 2010 at 09:20:56AM -0700, Carl Johnson wrote:
 Roland Smith rsm...@xs4all.nl writes:
 
  On Thu, May 20, 2010 at 08:04:58PM -0700, Carl Johnson wrote:
  I just installed the package for the audio player audacious and I
  discovered that it won't recognize ogg vorbis files.  I installed the
  audacious-plugins package, but I don't see any vorbis plugins in the
  file list, so has it been moved to some other port?  
 
  Make sure your ports tree is up-to-date. Looking at
  ports/multimedia/audacious-plugins/Makefile version 1.74, the Ogg Vorbis 
  input
  plugin _is_ there. But it is off by default.
 
 Thanks, that just occurred to me this morning.  I had installed it as
 a package instead of compiling the port, and it never occurred to me
 that vorbis wouldn't be included.  I'll just compile the port for the
 plugins now.  I think I'll submit a PR suggesting that it is common
 enough that it should be included by default.
 
 -- 
 Carl Johnson  ca...@peak.org
 

i hope i'm not stealing this thread but here goes.

i can no longer get my freebsd to play my cd's.
audio-cd.  k3b does regonize it in my second optical.  i am
trying to transfer it from cd to ~/Music.  [[and no, i didn't
steal this disc.  i own tape and cd and just want to transfer
it in Ogg-Vorbis fmt and listen to it here where i live for
17hrs/day.

i've tried to play it with kmplayer, with amaroK.  zip.  i've
tried sound-juice and get the fatal error that there are no 
CD-ROM drives.  a few releases ago i used sound-juicer to
transfer [and play] tunes.  no mo'.

roland, some weeks ago i remember you mentions that your
/etc/devfd.conf needed tweaking.  i'm wondering if it might
be this.  meanwhile, i'll play around with audacious* and see
if i get any further clues.

gary

ps:  if there is a new utility to play audio cd's running
7.3, i haven't heard!

 ___
 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

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

___
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: Playing Ogg Vorbis files with Audacious

2010-05-21 Thread Polytropon
On Fri, 21 May 2010 13:46:16 -0700, Gary Kline kl...@thought.org wrote:
   i can no longer get my freebsd to play my cd's.
   audio-cd.  k3b does regonize it in my second optical.  i am
   trying to transfer it from cd to ~/Music.  [[and no, i didn't
   steal this disc.  i own tape and cd and just want to transfer
   it in Ogg-Vorbis fmt and listen to it here where i live for
   17hrs/day.

No need to justify.

Here's an inspiration for what you could put into a script - a
simple converter for audio CD to OGG/Vorbis:

dd bs=2352 if=/dev/acd0t01 | oggenc -q 6 -r -o track01.ogg

Of course, if you want to add information (like album, interpret
etc.), you can use those additional options, explained in the
manual (man oggenc).

You can use cdcontrol info to find out how many tracks to
process, and then iterate automatically to put all tracks into
one directory, in ogg format. No big deal.

Of course, it's helpful when you maintain a good directory and
file naming convention for your files, rather than track01.ogg
and so on. It makes finding a specific peace of music more easy
if file names correspond to what you hear when you play it. :-)



   i've tried to play it with kmplayer, with amaroK.  zip.  i've
   tried sound-juice and get the fatal error that there are no 
   CD-ROM drives.  a few releases ago i used sound-juicer to
   transfer [and play] tunes.  no mo'.

Why not first try the obvious solution?

# cdcontrol -f /dev/acd0 play

You can define CDROM (or CDPLAYER?) environmental variable to
omit the -f device parameter.



   ps:  if there is a new utility to play audio cd's running
   7.3, i haven't heard!

The system brings cdcontrol. For X, why not use XMMS, or if you
want a simple solution that just works, try xcd.





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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 i use a memory stick on freebsd?

2010-05-21 Thread Roland Smith
On Fri, May 21, 2010 at 12:03:42PM -0700, Gary Kline wrote:
 
 guys, 
 
 my wife emptied a bunch of files onto her memory stick;  the pc
 is not here.  i have never used one of these devices before and
 want to know how, if it is possible, to read her dos/lose
 material from my bsd system.  7.3, dell, plenty of disk, and yes,
 i know where the usb slot it!
 
 do i need to put something in /usr/rc.conf? build a driver or
 utility?  or what?

You can mount it as root without having to do anything special. Plug in the
USB stick, and watch dmesg output to see which device appears. Say you see a
device 'da0' appear. Then look in /dev/ to see if there are any slices on it;
'ls /dev/da0*'. You'll probably see one slice, e.g. /dev/da0s1. Then use
mount_msdosfs(8) to mount it somewhere.

If you want to mount as a regular user, things are somewhat more
involved. First, you have to set the sysctl 'vfs.urermount=1'. This has to be
done as root, of course. Then you have to make sure that the user in question
has read/write access to the devices. Generally, I do that by creating a group
called 'usb' with the pw(8) utility, and making users that need access to USB
devices a member of that group. Then I add some lines to /etc/devfs.rules to
make the usb and related devices accessible to that group;

[my_rules=10]
add path 'da*' mode 0660 group usb
add path 'msdosfs/*' mode 0660 group usb
add path 'usb/*' mode 0660 group usb
add path 'ugen*' mode 0660 group usb

The latter two lines are to make e.g. digital cameras and scanners accessible.

This ruleset has to be activated in /etc/rc.conf;

devfs_system_ruleset=my_rules

You'll need to reboot the system or restart devfs for this to take
effect. With these adaptations, you can mount USB drives as a normal user.

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


pgpvBv1KyT0X1.pgp
Description: PGP signature


Re: Playing Ogg Vorbis files with Audacious

2010-05-21 Thread Roland Smith
On Fri, May 21, 2010 at 01:46:16PM -0700, Gary Kline wrote:
   i hope i'm not stealing this thread but here goes.
 
   i can no longer get my freebsd to play my cd's.
   audio-cd.  k3b does regonize it in my second optical.  i am
   trying to transfer it from cd to ~/Music.  [[and no, i didn't
   steal this disc.  i own tape and cd and just want to transfer
   it in Ogg-Vorbis fmt and listen to it here where i live for
   17hrs/day.
 
   i've tried to play it with kmplayer, with amaroK.  zip.  i've
   tried sound-juice and get the fatal error that there are no 
   CD-ROM drives.  a few releases ago i used sound-juicer to
   transfer [and play] tunes.  no mo'.
 
   roland, some weeks ago i remember you mentions that your
   /etc/devfd.conf needed tweaking.  i'm wondering if it might
   be this.  meanwhile, i'll play around with audacious* and see
   if i get any further clues.

For one thing, your user-id, or a group you belong to needs to have read/write
access to the relevant CD device. My solution is to create a group called
'cdrom', and add my user-id to that group. Both is accomplished with pw(8). I
have the following in my /etc/devfs.conf:

# Give members of group cdrom access to the CD/DVD-ROM and DVD+RW via the
# SCSI interface
own xpt0root:cdrom
permxpt00660
own cd0 root:cdrom
permcd0 0660
own cd1 root:cdrom
permcd1 0660
linkcd1 cdrom
linkcd1 dvd

Since my user-id is a member of the cdrom group, I can use these devices
freely. 

If you are using the standard 'atapicd' driver instead of the SCSI emulation
'cd' driver your CD device might be acdX instead of cdX. I prefer to use the
SCSI emulation, since cdrecord (which is required by k3b, I think) likes
talking to SCSI devices, but not ATA. I've built a custom kernel that only has
the cd device and not atapicd, so there cannot be a conflict between the
two. I don't know what happens on a GENERIC kernel that has both
devices. Maybe there is a tunable that determines which device driver gets
access?

To produce sound you need to to load the appropriate sound driver. See
sound(4). Additionally, I like to start a sound server like esd (audio/esound
port). Audacious can use that for output.

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


pgpkUz9GpIzvs.pgp
Description: PGP signature


Re: Bash lockups

2010-05-21 Thread Carl Johnson
Giorgos Keramidas keram...@ceid.upatras.gr writes:

 On Fri, 21 May 2010 09:30:05 -0700, Carl Johnson ca...@peak.org wrote:
 Giorgos Keramidas keram...@ceid.upatras.gr writes:
 Does this lock-up happen if you leave the shell 'idle' for too long
 over an ssh session?  There may be problems with stateful connection
 tracking between your terminal and the remote shell :-/

 No, I don't think that could be the problem.  I am just using ssh
 between local machines and there is no firewall between them.  It also
 often seems to happen to a shell as I switch away from it to another
 one.  One suspicion is that something is sending a signal to the shell
 as it switches, and bash sometimes doesn't handle that signal
 properly.

 I also should have mentioned that I have been running bash as my
 default shell for years under Linux and have never seen this problem
 there.

 Thanks for the suggestion.

 That's ok.  If you can attach to the bash process with ktrace please try
 to grab a ktrace file from a deadlocked shell.  We may be able to see
 why it gets deadlocked by running kdump(8) on the shell trace file.

 You can run a second shell under ktrace (and hope that the parent
 doesn't deadlock before the traced child shell), by running:

 bash$ ktrace -f bash.trace bash --login

 When you exit from the child shell you can dump ktrace(8) events from
 the bash.trace file with:

 bash$ kdump -f bash.trace  logfile 21

 Looking near the last records dumped in 'logfile' should be quite
 informative if the process is dead-locked or spinning around the same
 code over and over again.

Thanks for the detailed information.  I have been mostly a linux user,
so this is new for me.  It hasn't been happening very often lately, so
it might be a while now.  I will definitely try to keep any hung
processes around to try your suggestions.

-- 
Carl Johnsonca...@peak.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: Apache22 Upgrade Failure

2010-05-21 Thread Odhiambo Washington
On Fri, May 21, 2010 at 9:35 PM, Robert Huff roberth...@rcn.com wrote:


 Odhiambo Washington writes:

   Did I miss something? Trying to upgrade apache22 aon my FreeBSD
   boxes results in:

 Have you read /usr/ports/UPDATING?


I hope that bug (of not reading /usr/ports/UPDATING) doesn't bite me again.
I was always asking myself 'what have I not checked' before I posted. I am
subscribed to this list (obviously) and -announce (I believe). How comes I
miss such, or are they never posted at all and only chronicled in UPDATING?

:-)

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
If you have nothing good to say about someone, just shut up!.
  -- Lucky Dube
___
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: [#24512320] Re: Apache22 Upgrade Failure

2010-05-21 Thread Odhiambo Washington
Is someone saying that FreeBSD lists are not hosted on Mailman? Or is the
list admin on holiday on the space station? Mailman supports regexes for
blocking, IIRC.


On Sat, May 22, 2010 at 1:46 AM, Robert Huff roberth...@rcn.com wrote:

 Hello,

 This is an automated response to inform you that your question has been
 entered into our system, and will be reviewed shortly. Your ticket has been
 submitted into the General Support department.

 We will respond to you as soon as possible.

 ==
 Please keep this information, and use it when refering to your ticket:

 Ticket subject: Re: Apache22 Upgrade Failure
 Ticket number: 24512320
 Ticket link: https://secure.mpcustomer.com/ticket.php?ticket=24512320
 Ticket body: On Fri, May 21, 2010 at 9:35 PM, Robert Huff 
 roberth...@rcn.com wrote:

 
  Odhiambo Washington writes:
 
Did I miss something? Trying to upgrade apache22 aon my FreeBSD
boxes results in:
 
  Have you read /usr/ports/UPDATING?
 

 I hope that bug (of not reading /usr/ports/UPDATING) doesn't bite me again.
 I was always asking myself 'what have I not checked' before I posted. I am
 subscribed to this list (obviously) and -announce (I believe). How comes I
 miss such, or are they never posted at all and only chronicled in UPDATING?

 :-)

 --
 Best regards,
 Odhiambo WASHINGTON,
 Nairobi,KE
 +254733744121/+254722743223
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
 If you have nothing good to say about someone, just shut up!.
  -- Lucky Dube
 ___
 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
 ==






-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
If you have nothing good to say about someone, just shut up!.
  -- Lucky Dube
___
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


an ACK, still here...

2010-05-21 Thread Gary Kline

wait, let me check my pulse before saying i'm still here.
...well, cant find it, so this may be the ghost of guerre and
not gar:gare:gary.

anyhow, yet more  has hit the rotors.  as usual, my face was
right there.

anyway, this is thanks and an ACK mostly to polyt and roland.  i
will get down and find the usb port, but if i did it now i'd
never be able to haul myself back up.  they would find my
bleached bones beside my 'puter, crouched and looking for that
usb slot.

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 44/100% Guaranteed Novel

___
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: [#24512320] Re: Apache22 Upgrade Failure

2010-05-21 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 22/05/2010 24:01:52, Odhiambo Washington wrote:
 Is someone saying that FreeBSD lists are not hosted on Mailman? Or is the
 list admin on holiday on the space station? Mailman supports regexes for
 blocking, IIRC.

Check the message headers: the bogus replies to you come direct from
mpcustomer.com and don't go anywhere FreeBSD mailman.

Blacklisting supp...@mpcustomer.com would be an effective fix, if you
have that much control over your mail system.

Cheers,

Matthew

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

iEYEARECAAYFAkv3bx4ACgkQ8Mjk52CukIwC0QCgjSv3tjmPWR/RSgDxm0kYxarT
IK4An1uvrFFwNgcaUs5Xuo750FkELKiH
=aE3S
-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