amd64: Fatal Trap 12 in high load situations

2010-02-06 Thread ms80
Hi

I have a problem installing / upgrading FreeBSD 8.0-release on a new machine.

The computers specs are:

cpu: AMD Phenom II X4
board: Gigabyte MA790GPT-UD3H
ram: 4x2GBytes DDR3/1333
hdd: 2xMaxtor STM31000528AS
nic: 4x Intel(R) PRO/1000

and I'm running 
FreeBSD phenom2.localnet 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 
15:02:08 UTC 2009 r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  
amd64

During 'make buildworld' the machine regulary crashes with the following 
panic:

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual adress= 0x8
fault code  = supervisor write data, page not 
present
instruction pointer = 0x20:0x80578591
stack pointer   = 0x28:0xff80eab94700
frame pointer   = 0x28:0xff80eab94720
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags= interrupt enabled, resume IOPL = 0
current process = 22039 (uudecode)
trap number = 12
panic: pagefault
cpuid = 0
Uptime: 2h35m4s
Physical memory: 8176 MB
Dumping 2195 MB: 2180 2164 2148 2132 2116


or this one, its from last night and the machine wrote a minidump before 
locking up:

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x8
fault code  = supervisor write data, page not 
present
instruction pointer = 0x20:0x80578591
stack pointer   = 0x28:0xff80eab21500
frame pointer   = 0x28:0xff80eab21520
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 5238 (objcopy)
trap number = 12
panic: page fault
cpuid = 0
Uptime: 1h15m45s
Physical memory: 8176 MB
Dumping 2148 MB: 2133 2117 2101 2085 2069 2053 2037 2021 2005 1989 1973 1957 
1941 1925 1909 1893 1877 1861 1845 1829 1813 1797 1781 1765 1749 1733 1717 
1701 1685 1669 1653 1637 1621 1605 1589 1573 1557 1541 1525 1509 1493 1477 
1461 1445 1429 1413 1397 1381 1365 1349 1333 1317 1301 1285 1269 1253 1237 
1221 1205 1189 1173 1157 1141 1125 1109 1093 1077 1061 1045 1029 1013 997 981 
965 949 933 917 901 885 869 853 837 821 805 789 773 757 741 725 709 693 677 
661 645 629 613 597 581 565 549 533 517 501 485 469 453 437 421 405 389 373 
357 341 325 309 293 277 261 245 229 213 197 181 165 149 133 117 101 85 69 53 
37 21 5


While the 'current process' is a different one at any crash, 'Fatal trap 12' 
and 'supervisor write data, page not present' are always the same, just as the 
instruction pointer 0x80578591 and virtual address.  

The most times, the kernel hangs completly so I have to hard reset the machine 
to get it responding again. About once in every ten crashs it is able to write 
a dump before rebooting or locking up. I have no knowledge in debugging the 
kernel (or debugging anything else) so I tried what I found in the handbook. 
This resulted in the following:

kgdb kernel.debug /var/crash/vmcore.0
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as amd64-marcel-freebsd...
Cannot access memory at address 0x400
(kgdb) list *0x80578591
0x80578591 is in lf_advlockasync (/usr/src/sys/kern/kern_lockf.c:604).
599 LIST_INIT(ls-ls_active);
600 LIST_INIT(ls-ls_pending);
601 ls-ls_threads = 1;
602
603 sx_xlock(lf_lock_states_lock);
604 LIST_INSERT_HEAD(lf_lock_states, ls, ls_link);
605 sx_xunlock(lf_lock_states_lock);
606
607 /*
608  * Cope if we lost a race with some other thread while
(kgdb) backtrace
#0  0x in ?? ()
Cannot access memory at address 0x0


So here are my questions:
1. Are there any known caveats or quirks regarding my hardware?
2. What can I do to further investigate this issue
3. Not fully on topic but might be related: The buildsystem recognizes my cpu 
as 686 class cpu wich is wrong. Are there any switches I can set in 
make.conf to have 'make' use the correct values? Currently I'm using a blank 
make.conf, meaning it is not present (as it is by default on a fresh installed 
system).

If you need any more Information, I would be happy to provide it

best regards,
Sven

--
00
--
00

/usr/ports/x11-toolkits/qt33: /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link)

2010-02-06 Thread O. Hartmann
Since yesterday's portsnape and attempt updating my ports, ALL FreeBSD 
boxes (running FreeBSD 8.0/amd64) fail to update ports via 'portmaster 
-av' at the same point with the following error.


It seems that that port jpeg-8 has been updated and now offering 
libjpeg.so.11 instead of the desired old libjpeg.so.10, so I guess 
everything depending on port jpeg-8 needs to be rebuild - but 
ports/UPDATE does not reflect this.


c++ -fno-exceptions  -Wl,-rpath,/usr/local/lib 
-Wl,-rpath,/usr/local/lib -pthread -o ../../../bin/uic 
.obj/release-shared-mt/main.o  .obj/release-shared-mt/uic.o 
.obj/release-shared-mt/form.o  .obj/release-shared-mt/object.o 
.obj/release-shared-mt/subclassing.o  .obj/release-shared-mt/embed.o 
.obj/release-shared-mt/widgetdatabase.o 
.obj/release-shared-mt/domtool.o  .obj/release-shared-mt/parser.o 
-L/usr/local/lib -L/usr/local/lib 
-L/usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/lib 
-L/usr/local/lib -lqt-mt -lmng -ljpeg -lpng -lz -lXi -lXrender -lXrandr 
-lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM 
-lICE
/usr/bin/ld: warning: libjpeg.so.10, needed by 
/usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libqt-mt.so: undefined reference to 
`jpeg_start_decompr...@libjpeg_7.0'
/usr/local/lib/libmng.so: undefined reference to 
`jpeg_input_compl...@libjpeg_7.0'
/usr/local/lib/libmng.so: undefined reference to 
`jpeg_start_out...@libjpeg_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to 
`jpeg_resync_to_rest...@libjpeg_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to 
`jpeg_read_scanli...@libjpeg_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to 
`jpeg_start_compr...@libjpeg_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to 
`jpeg_finish_compr...@libjpeg_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to 
`jpeg_finish_decompr...@libjpeg_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to 
`jpeg_createcompr...@libjpeg_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to 
`jpeg_set_defau...@libjpeg_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to 
`jpeg_read_hea...@libjpeg_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to 
`jpeg_createdecompr...@libjpeg_7.0'
/usr/local/lib/libmng.so: undefined reference to 
`jpeg_has_multiple_sc...@libjpeg_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to 
`jpeg_std_er...@libjpeg_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to 
`jpeg_destroy_compr...@libjpeg_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to 
`jpeg_destroy_decompr...@libjpeg_7.0'
/usr/local/lib/libmng.so: undefined reference to 
`jpeg_finish_out...@libjpeg_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to 
`jpeg_write_scanli...@libjpeg_7.0'
/usr/local/lib/libqt-mt.so: undefined reference to 
`jpeg_set_qual...@libjpeg_7.0'

*** Error code 1

Stop in 
/usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer/uic.

*** Error code 1

Stop in 
/usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer/uic.

*** Error code 1

Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools/designer.
*** Error code 1

Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/tools.
*** Error code 1

Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8.
*** Error code 1

Stop in /usr/ports/x11-toolkits/qt33.
*** Error code 1

Stop in /usr/ports/x11-toolkits/qt33.

=== make failed for x11-toolkits/qt33
=== Aborting update

=== Update for qt-copy-3.3.8_10 failed
=== Aborting update

=== Update for arts-1.5.10_2,1 failed
=== Aborting update
___
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: amd64: Fatal Trap 12 in high load situations

2010-02-06 Thread Michael Powell
ms80 wrote:

 Hi
 
 I have a problem installing / upgrading FreeBSD 8.0-release on a new
 machine.
 
 The computers specs are:
 
 cpu: AMD Phenom II X4
 board: Gigabyte MA790GPT-UD3H
 ram: 4x2GBytes DDR3/1333
 hdd: 2xMaxtor STM31000528AS
 nic: 4x Intel(R) PRO/1000
[snip]
 
 
 So here are my questions:
 1. Are there any known caveats or quirks regarding my hardware?
 2. What can I do to further investigate this issue
 3. Not fully on topic but might be related: The buildsystem recognizes my
 cpu as 686 class cpu wich is wrong. Are there any switches I can set in
 make.conf to have 'make' use the correct values? Currently I'm using a
 blank make.conf, meaning it is not present (as it is by default on a fresh
 installed system).
 
[snip]

I am using this motherboard with an AMD x4 630 Propus cpu and 4G Ram 
(2x2GB). I have done a basic overclock to 3.36GHz with the ram running at 
1600MHz. This is my KDE4 desktop machine running FreeBSD 8 and all ports 
currently up to date.

When selecting the RAM to put on this motherboard you should have consulted 
the list from Gigabyte for approved memory and chosen very carefully. The 
memory I actually have was not an exact line item from the list, but it was 
something extremely close and which was designed and manufactured for use 
with an AM3 socket motherboard.

You will notice that some RAM today is designed for Intel P55 chipsets and 
Lynnfield processors while other RAM is designed specifically for AM3/AM2 
socket use. It is probably not a good idea to disregard this during 
selection, e.g. memory not specifically meant for AM3 socket mobos may not 
function correctly.

I also seem to recall seeing somewhere that this motherboard acquires 
limitations in overclocking when all 4 sockets are filled and the best 
overclocking results when only 2 sockets are in use. I am only using 2 
sockets in a 2x2GB arrangement for 4GB RAM total. If you are not 
overclocking and have all 4 sockets filled you may not be able to go above 
1066MHz memory multiplier. With only 2 sockets populated 1333MHz should be 
attainable. 

I believe your problem centers around memory. It may not be designed for AM3 
socket and/or may not be able to handle a higher memory multiplier. When I 
first put this motherboard in I attempted to boot from an already installed 
OS with the memory multiplier set too high and saw numerous examples similar 
to what you are describing. Since I had bought 1600MHz memory I mistakenly 
set the multiplier too high. When I set it back to 1333MHz everything was 
fine. Either the memory multiplier is set too high for your RAM or it is 
just the wrong RAM to begin with.

As far as make.conf goes I use: CPUTYPE?= k8

-Mike


___
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


[WORKAROUND] Re: /usr/ports/x11-toolkits/qt33: /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link)

2010-02-06 Thread Ion-Mihai Tetcu
On Sat, 06 Feb 2010 11:13:08 +0100
O. Hartmann ohart...@mail.zedat.fu-berlin.de wrote:

 Since yesterday's portsnape and attempt updating my ports, ALL
 FreeBSD boxes (running FreeBSD 8.0/amd64) fail to update ports via
 'portmaster -av' at the same point with the following error.
 
 It seems that that port jpeg-8 has been updated and now offering 
 libjpeg.so.11 instead of the desired old libjpeg.so.10, so I guess 
 everything depending on port jpeg-8 needs to be rebuild - but 
 ports/UPDATE does not reflect this.
 
 c++ -fno-exceptions  -Wl,-rpath,/usr/local/lib 
 -Wl,-rpath,/usr/local/lib -pthread -o ../../../bin/uic 
 .obj/release-shared-mt/main.o  .obj/release-shared-mt/uic.o 
 .obj/release-shared-mt/form.o  .obj/release-shared-mt/object.o 
 .obj/release-shared-mt/subclassing.o  .obj/release-shared-mt/embed.o 
 .obj/release-shared-mt/widgetdatabase.o 
 .obj/release-shared-mt/domtool.o  .obj/release-shared-mt/parser.o 
 -L/usr/local/lib -L/usr/local/lib 

^^^

 -L/usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/lib 
 -L/usr/local/lib -lqt-mt -lmng -ljpeg -lpng -lz -lXi -lXrender
 -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext
 -lX11 -lm -lSM -lICE
 /usr/bin/ld: warning: libjpeg.so.10, needed by 
 /usr/local/lib/libqt-mt.so, not found (try using -rpath or
 -rpath-link) /usr/local/lib/libqt-mt.so: undefined reference to 
 `jpeg_start_decompr...@libjpeg_7.0'


That above it's the problem, kde team is aware of it.

For the moment the workaround, when you get to this, is to:
mv /usr/local/lib/libqt-mt.so /usr/local/lib/libqt-mt.so.old  \
cd /usr/ports/x11-toolkits/qt33/  make  \
mv /usr/local/lib/libqt-mt.so.old /usr/local/lib/libqt-mt.so  \
portmaster -C x11-toolkits/qt33


I did this yesterday while under KDE3 without problems.


-- 
IOnut - Un^d^dregistered ;) FreeBSD user
  Intellectual Property is   nowhere near as valuable   as Intellect
FreeBSD committer - ite...@freebsd.org, PGP Key ID 057E9F8B493A297B


signature.asc
Description: PGP signature


Re: [WORKAROUND] Re: /usr/ports/x11-toolkits/qt33: /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link)

2010-02-06 Thread Ion-Mihai Tetcu
On Sat, 6 Feb 2010 12:49:52 +0200
Ion-Mihai Tetcu ite...@freebsd.org wrote:

 On Sat, 06 Feb 2010 11:13:08 +0100
 O. Hartmann ohart...@mail.zedat.fu-berlin.de wrote:
 
  Since yesterday's portsnape and attempt updating my ports, ALL
  FreeBSD boxes (running FreeBSD 8.0/amd64) fail to update ports via
  'portmaster -av' at the same point with the following error.
  
  It seems that that port jpeg-8 has been updated and now offering 
  libjpeg.so.11 instead of the desired old libjpeg.so.10, so I guess 
  everything depending on port jpeg-8 needs to be rebuild - but 
  ports/UPDATE does not reflect this.
  
  c++ -fno-exceptions  -Wl,-rpath,/usr/local/lib 
  -Wl,-rpath,/usr/local/lib -pthread -o ../../../bin/uic 
  .obj/release-shared-mt/main.o  .obj/release-shared-mt/uic.o 
  .obj/release-shared-mt/form.o  .obj/release-shared-mt/object.o 
  .obj/release-shared-mt/subclassing.o  .obj/release-shared-mt/embed.o 
  .obj/release-shared-mt/widgetdatabase.o 
  .obj/release-shared-mt/domtool.o  .obj/release-shared-mt/parser.o 
  -L/usr/local/lib -L/usr/local/lib 
 
 ^^^
 
  -L/usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/lib 
  -L/usr/local/lib -lqt-mt -lmng -ljpeg -lpng -lz -lXi -lXrender
  -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext
  -lX11 -lm -lSM -lICE
  /usr/bin/ld: warning: libjpeg.so.10, needed by 
  /usr/local/lib/libqt-mt.so, not found (try using -rpath or
  -rpath-link) /usr/local/lib/libqt-mt.so: undefined reference to 
  `jpeg_start_decompr...@libjpeg_7.0'
 
 
 That above it's the problem, kde team is aware of it.
 
 For the moment the workaround, when you get to this, is to:
 mv /usr/local/lib/libqt-mt.so /usr/local/lib/libqt-mt.so.old  \
 cd /usr/ports/x11-toolkits/qt33/  make  \
 mv /usr/local/lib/libqt-mt.so.old /usr/local/lib/libqt-mt.so  \
 portmaster -C x11-toolkits/qt33
 
 
 I did this yesterday while under KDE3 without problems.

You'll run into the same kind of problem with kdelibs3:


Making all in dnssd
gmake[2]: Entering directory 
`/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd'
../kdecore/kconfig_compiler/kconfig_compiler ./kcm_kdnssd.kcfg 
./settings.kcfgc; ret=$?; \
if test $ret != 0; then rm -f settings.h ; exit $ret ;  fi
/libexec/ld-elf.so.1: Shared object libjpeg.so.10 not found, required by 
libkdefx.so.6
gmake[2]: *** [settings.h] Error 1
gmake[2]: Leaving directory 
`/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/x11/kdelibs3.


The same workaround works.

And yes, this means the kde ports are in wrong.


-- 
IOnut - Un^d^dregistered ;) FreeBSD user
  Intellectual Property is   nowhere near as valuable   as Intellect
FreeBSD committer - ite...@freebsd.org, PGP Key ID 057E9F8B493A297B


signature.asc
Description: PGP signature


Re: amd64: Fatal Trap 12 in high load situations

2010-02-06 Thread ms80
Am Saturday 06 February 2010 11:38:25 schrob Michael Powell:
 ms80 wrote:
  Hi
 
  I have a problem installing / upgrading FreeBSD 8.0-release on a new
  machine.
 
  The computers specs are:
 
  cpu: AMD Phenom II X4
  board: Gigabyte MA790GPT-UD3H
  ram: 4x2GBytes DDR3/1333
  hdd: 2xMaxtor STM31000528AS
  nic: 4x Intel(R) PRO/1000
 
 [snip]
 
  So here are my questions:
  1. Are there any known caveats or quirks regarding my hardware?
  2. What can I do to further investigate this issue
  3. Not fully on topic but might be related: The buildsystem recognizes my
  cpu as 686 class cpu wich is wrong. Are there any switches I can set in
  make.conf to have 'make' use the correct values? Currently I'm using a
  blank make.conf, meaning it is not present (as it is by default on a
  fresh installed system).
 
 [snip]
 

[snip too]

 
 I believe your problem centers around memory. It may not be designed for
  AM3 socket and/or may not be able to handle a higher memory multiplier.
  When I first put this motherboard in I attempted to boot from an already
  installed OS with the memory multiplier set too high and saw numerous
  examples similar to what you are describing. Since I had bought 1600MHz
  memory I mistakenly set the multiplier too high. When I set it back to
  1333MHz everything was fine. Either the memory multiplier is set too high
  for your RAM or it is just the wrong RAM to begin with.
 
 As far as make.conf goes I use: CPUTYPE?= k8
 
 -Mike
 


Hi 

Thank you for your reply.
I'm using two of this: OCZ3P1333LVAM4GK  
(OCZ DDR3 AMD Edition, rated for 1333MHz at 1.65V). My Board is rated for 1066 
- 1600 MHz memory, and neither the website nor the manual say anything about 
limitations with memory. Anyway: I didn't overclock cpu or memory. I have 
stability and long life in mind, so I try to keep the hardware cool. During 
testing I underclocked the memory with 1066 and 800 MHz which didn't help: The 
machine crashes anyway. The only thing to note is that by default the board 
tries to set 1.5V DDR3 Voltage which is wrong, you have to set it to 1.65V 
manually.

A faulty piece of hardware was the first thing I suspected and I tested among 
other things the memory with memtest86+. This runs fine for 4 passes, without 
any error. As far as I can tell, my memory subsystem is ok.

As for make.conf: thanks, I will set this when I try again.

with best regards

Sven

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


backup terminal title

2010-02-06 Thread Dominic Fandrey
I just started to wonder how portmaster changes the window title
of my terminal and why it doesn't change it back when it
terminates.

Some digging in the portmaster code showed up an escape sequence:
printf \033]0;%s\007 YOUR TEXT GOES HERE

Unfortunately I am entirely clueless as to how one could backup
the old title string to restore it upon termination. It seems
to me this ought to be a precondition to using this kind of
feature.

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 
___
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: backup terminal title

2010-02-06 Thread Matthias Apitz
El día Saturday, February 06, 2010 a las 01:38:11PM +0100, Dominic Fandrey 
escribió:

 I just started to wonder how portmaster changes the window title
 of my terminal and why it doesn't change it back when it
 terminates.
 
 Some digging in the portmaster code showed up an escape sequence:
 printf \033]0;%s\007 YOUR TEXT GOES HERE
 
 Unfortunately I am entirely clueless as to how one could backup
 the old title string to restore it upon termination. It seems
 to me this ought to be a precondition to using this kind of
 feature.

Play around with xwininfo(1), like:

$ xwininfo -tree -root | fgrep xterm

which prints the titles for all your XTerm windows.

HIH

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu
___
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: amd64: Fatal Trap 12 in high load situations

2010-02-06 Thread David N
On 6 February 2010 22:18, ms80 m...@dynamik.sytes.net wrote:
 Am Saturday 06 February 2010 11:38:25 schrob Michael Powell:
 ms80 wrote:
  Hi
 
  I have a problem installing / upgrading FreeBSD 8.0-release on a new
  machine.
 
  The computers specs are:
 
  cpu: AMD Phenom II X4
  board: Gigabyte MA790GPT-UD3H
  ram: 4x2GBytes DDR3/1333
  hdd: 2xMaxtor STM31000528AS
  nic: 4x Intel(R) PRO/1000

 [snip]

  So here are my questions:
  1. Are there any known caveats or quirks regarding my hardware?
  2. What can I do to further investigate this issue
  3. Not fully on topic but might be related: The buildsystem recognizes my
  cpu as 686 class cpu wich is wrong. Are there any switches I can set in
  make.conf to have 'make' use the correct values? Currently I'm using a
  blank make.conf, meaning it is not present (as it is by default on a
  fresh installed system).

 [snip]


 [snip too]


 I believe your problem centers around memory. It may not be designed for
  AM3 socket and/or may not be able to handle a higher memory multiplier.
  When I first put this motherboard in I attempted to boot from an already
  installed OS with the memory multiplier set too high and saw numerous
  examples similar to what you are describing. Since I had bought 1600MHz
  memory I mistakenly set the multiplier too high. When I set it back to
  1333MHz everything was fine. Either the memory multiplier is set too high
  for your RAM or it is just the wrong RAM to begin with.

 As far as make.conf goes I use: CPUTYPE?= k8

 -Mike



 Hi

 Thank you for your reply.
 I'm using two of this: OCZ3P1333LVAM4GK
 (OCZ DDR3 AMD Edition, rated for 1333MHz at 1.65V). My Board is rated for 1066
 - 1600 MHz memory, and neither the website nor the manual say anything about
 limitations with memory. Anyway: I didn't overclock cpu or memory. I have
 stability and long life in mind, so I try to keep the hardware cool. During
 testing I underclocked the memory with 1066 and 800 MHz which didn't help: The
 machine crashes anyway. The only thing to note is that by default the board
 tries to set 1.5V DDR3 Voltage which is wrong, you have to set it to 1.65V
 manually.

 A faulty piece of hardware was the first thing I suspected and I tested among
 other things the memory with memtest86+. This runs fine for 4 passes, without
 any error. As far as I can tell, my memory subsystem is ok.

 As for make.conf: thanks, I will set this when I try again.

 with best regards

 Sven

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


What power supply do you have?
How many watts? brand?

If you have insufficient power, it may cause the system to become unstable.

Regards
David N
___
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: backup terminal title

2010-02-06 Thread Thomas Dickey
On Sat, Feb 06, 2010 at 01:38:11PM +0100, Dominic Fandrey wrote:
 I just started to wonder how portmaster changes the window title
 of my terminal and why it doesn't change it back when it
 terminates.
 
 Some digging in the portmaster code showed up an escape sequence:
 printf \033]0;%s\007 YOUR TEXT GOES HERE
 
 Unfortunately I am entirely clueless as to how one could backup
 the old title string to restore it upon termination. It seems
 to me this ought to be a precondition to using this kind of
 feature.

It can, depending - some people object to the control sequence which
can retrieve the previous value.  I added a push/pop stack for xterm last
year which can work around that (transparently).  I used that in vile
(vi like emacs), and I made a fix for 'screen' which uses it.

see
http://invisible-island.net/xterm/xterm.log.html#xterm_251

For other terminals - some have disabled the objectionable feature,
some have not.  (Some will eventually copy the push/pop feature ;-)

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpdNZr7YsZSr.pgp
Description: PGP signature


Re: backup terminal title

2010-02-06 Thread Thomas Dickey
On Sat, Feb 06, 2010 at 01:55:55PM +0100, Matthias Apitz wrote:
 El día Saturday, February 06, 2010 a las 01:38:11PM +0100, Dominic Fandrey 
 escribió:
 
  I just started to wonder how portmaster changes the window title
  of my terminal and why it doesn't change it back when it
  terminates.
  
  Some digging in the portmaster code showed up an escape sequence:
  printf \033]0;%s\007 YOUR TEXT GOES HERE
  
  Unfortunately I am entirely clueless as to how one could backup
  the old title string to restore it upon termination. It seems
  to me this ought to be a precondition to using this kind of
  feature.
 
 Play around with xwininfo(1), like:
 
 $ xwininfo -tree -root | fgrep xterm
 
 which prints the titles for all your XTerm windows.

iirc, vim does something like this, but it has the potential for being
very slow (ymmv).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgprUhQe4zlss.pgp
Description: PGP signature


Re: amd64: Fatal Trap 12 in high load situations

2010-02-06 Thread Michael Powell
ms80 wrote:

[snip]
 
 Thank you for your reply.
 I'm using two of this: OCZ3P1333LVAM4GK
 (OCZ DDR3 AMD Edition, rated for 1333MHz at 1.65V). My Board is rated for
 1066 - 1600 MHz memory, and neither the website nor the manual say
 anything about limitations with memory. Anyway: I didn't overclock cpu or
 memory. I have stability and long life in mind, so I try to keep the
 hardware cool. During testing I underclocked the memory with 1066 and 800
 MHz which didn't help: The machine crashes anyway. The only thing to note
 is that by default the board tries to set 1.5V DDR3 Voltage which is
 wrong, you have to set it to 1.65V manually.
 
 A faulty piece of hardware was the first thing I suspected and I tested
 among other things the memory with memtest86+. This runs fine for 4
 passes, without any error. As far as I can tell, my memory subsystem is
 ok.
 

Poking around in the OCZ forum for something I thought I recalled seeing 
somewhere before. I had seen reports that this board might be touchy about 
1.65v memory. As far as the consensus goes with the small sampling I looked 
at, it seemed that 1.63 or 1.64 vdc was the sweet spot. Some claims are that 
it didn't want to work at anything either above or below this range.

My RAM is OCZ3BE1600C8LV4GK (anything with BE or AM in the part number is 
designed specifically for AM3). I thought it was 1.5v, but since I didn't 
remember for certain I checked and it shows a spec for 1.65v. However, I 
rebooted so I could look at the CMOS/BIOS stuff and I have the System 
Voltage Control section set for AUTO for all. Then I looked in the PC 
Health Status page and on the DDR3 1.5V line it was only reading 1.600v.

There seems to be a general feeling the newer AMD processors don't much care 
for higher memory voltages. Try lowering your voltages and see if it helps.

I am successfully using this board with the CPU clock set at 240MHz, which 
with the x14 multiplier results in 3.36GHz operation. The Hypertransport and 
FSB bus speeds are 2400MHz and the memory is running at 1599MHz at the x6.66 
multiplier. When I get the RAM up to 1680MHz is where I can get it to 
freeze. As long as I don't do that it is totally stable.

-Mike


___
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: [WORKAROUND] Re: /usr/ports/x11-toolkits/qt33: /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link)

2010-02-06 Thread Franci Nabalanci
There is a new jpeg 8 and you need to rebuild with for example portmaster -r
jpeg-\* if you use a portmaster (there are instructions in
/usr/ports/UPDATING).

But antwhere I have a problem with arts where I get an error 1. I am trying
again and will sent what kind of error I got.


On Sat, Feb 6, 2010 at 4:58 AM, Ion-Mihai Tetcu ite...@freebsd.org wrote:

 On Sat, 6 Feb 2010 12:49:52 +0200
 Ion-Mihai Tetcu ite...@freebsd.org wrote:

  On Sat, 06 Feb 2010 11:13:08 +0100
  O. Hartmann ohart...@mail.zedat.fu-berlin.de wrote:
 
   Since yesterday's portsnape and attempt updating my ports, ALL
   FreeBSD boxes (running FreeBSD 8.0/amd64) fail to update ports via
   'portmaster -av' at the same point with the following error.
  
   It seems that that port jpeg-8 has been updated and now offering
   libjpeg.so.11 instead of the desired old libjpeg.so.10, so I guess
   everything depending on port jpeg-8 needs to be rebuild - but
   ports/UPDATE does not reflect this.
  
   c++ -fno-exceptions  -Wl,-rpath,/usr/local/lib
   -Wl,-rpath,/usr/local/lib -pthread -o ../../../bin/uic
   .obj/release-shared-mt/main.o  .obj/release-shared-mt/uic.o
   .obj/release-shared-mt/form.o  .obj/release-shared-mt/object.o
   .obj/release-shared-mt/subclassing.o  .obj/release-shared-mt/embed.o
   .obj/release-shared-mt/widgetdatabase.o
   .obj/release-shared-mt/domtool.o  .obj/release-shared-mt/parser.o
   -L/usr/local/lib -L/usr/local/lib
 
  ^^^
 
   -L/usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/lib
   -L/usr/local/lib -lqt-mt -lmng -ljpeg -lpng -lz -lXi -lXrender
   -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext
   -lX11 -lm -lSM -lICE
   /usr/bin/ld: warning: libjpeg.so.10, needed by
   /usr/local/lib/libqt-mt.so, not found (try using -rpath or
   -rpath-link) /usr/local/lib/libqt-mt.so: undefined reference to
   `jpeg_start_decompr...@libjpeg_7.0'
 
 
  That above it's the problem, kde team is aware of it.
 
  For the moment the workaround, when you get to this, is to:
  mv /usr/local/lib/libqt-mt.so /usr/local/lib/libqt-mt.so.old  \
  cd /usr/ports/x11-toolkits/qt33/  make  \
  mv /usr/local/lib/libqt-mt.so.old /usr/local/lib/libqt-mt.so  \
  portmaster -C x11-toolkits/qt33
 
 
  I did this yesterday while under KDE3 without problems.

 You'll run into the same kind of problem with kdelibs3:


 Making all in dnssd
 gmake[2]: Entering directory
 `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd'
 ../kdecore/kconfig_compiler/kconfig_compiler ./kcm_kdnssd.kcfg
 ./settings.kcfgc; ret=$?; \
if test $ret != 0; then rm -f settings.h ; exit $ret ;  fi
 /libexec/ld-elf.so.1: Shared object libjpeg.so.10 not found, required by
 libkdefx.so.6
 gmake[2]: *** [settings.h] Error 1
 gmake[2]: Leaving directory
 `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd'
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory
 `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10'
 gmake: *** [all] Error 2
 *** Error code 1

 Stop in /usr/ports/x11/kdelibs3.


 The same workaround works.

 And yes, this means the kde ports are in wrong.


 --
 IOnut - Un^d^dregistered ;) FreeBSD user
  Intellectual Property is   nowhere near as valuable   as Intellect
 FreeBSD committer - ite...@freebsd.org, PGP Key ID 057E9F8B493A297B

___
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: backup terminal title

2010-02-06 Thread Dominic Fandrey
Matthias Apitz wrote:
 El día Saturday, February 06, 2010 a las 01:38:11PM +0100, Dominic Fandrey 
 escribió:
 
 I just started to wonder how portmaster changes the window title
 of my terminal and why it doesn't change it back when it
 terminates.

 Some digging in the portmaster code showed up an escape sequence:
 printf \033]0;%s\007 YOUR TEXT GOES HERE

 Unfortunately I am entirely clueless as to how one could backup
 the old title string to restore it upon termination. It seems
 to me this ought to be a precondition to using this kind of
 feature.
 
 Play around with xwininfo(1), like:
 
 $ xwininfo -tree -root | fgrep xterm
 
 which prints the titles for all your XTerm windows.

Nice, but I need something that works with base system
components. Like an escape sequence that causes the terminal
to reset its title.

Regards

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 
___
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: amd64: Fatal Trap 12 in high load situations

2010-02-06 Thread ms80
Am Saturday 06 February 2010 14:03:06 schrob David N:
[snip]

 
 What power supply do you have?
 How many watts? brand?
 
 If you have insufficient power, it may cause the system to become unstable.
 
 Regards
 David N

I tested with an Enermax EPR425AWT Pro82+ II, 425W wich was the psu I bought 
and intended to use with this computer. 
After stumbling across the instabilities I tested with a 
HEC 550TE-2WX 550W, but it made no difference, so either both are faulty / 
insufficient or the problem is something else.

regards,

Sven
--
00
___
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: amd64: Fatal Trap 12 in high load situations

2010-02-06 Thread ms80
Am Saturday 06 February 2010 14:37:16 schrob Michael Powell:
 ms80 wrote:
[snip]

 
 There seems to be a general feeling the newer AMD processors don't much
  care for higher memory voltages. Try lowering your voltages and see if it
  helps.
 
 I am successfully using this board with the CPU clock set at 240MHz, which
 with the x14 multiplier results in 3.36GHz operation. The Hypertransport
  and FSB bus speeds are 2400MHz and the memory is running at 1599MHz at the
  x6.66 multiplier. When I get the RAM up to 1680MHz is where I can get it
  to freeze. As long as I don't do that it is totally stable.
 
 -Mike
 
 

My CPU is an AMD Phenom II  X 4 905e. Its (default) settings are:

CPU Clock Ratio (Auto) 2500MHz
CPU Northbridge Freq.   (Auto) 2000MHz
CPU Host Clock Contr.   (Auto)
HT Link Width   (Auto)
HT Link Freq.   (Auto) 2000MHz
Memory Clock(x6.66 ) 1333MHz

I set the DDR3 voltage to auto, now it shows about 1.58V. 
Testing will take a little bit. Thank you for the hint.

regards,

Sven
--
00
___
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: backup terminal title

2010-02-06 Thread Matthew Seaman
On 06/02/2010 13:55, Dominic Fandrey wrote:

 Nice, but I need something that works with base system
 components. Like an escape sequence that causes the terminal
 to reset its title.

Something like this for tcsh:

set prompt = '%{\033]0;%...@%m:%/\007%}%B%m%b:%c03:%# '

Sets the window title to 'u...@hostname:/current/directory'.  Porting
this escape sequence to other shells left as an exercise for the student.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.  7 Priory Courtyard, Flat 3
Black Earth Consulting   Ramsgate
 Kent, CT11 9PW
Free and Open Source Solutions   Tel: +44 (0)1843 580647



signature.asc
Description: OpenPGP digital signature


Re: backup terminal title

2010-02-06 Thread Dominic Fandrey
Matthew Seaman wrote:
 On 06/02/2010 13:55, Dominic Fandrey wrote:
 
 Nice, but I need something that works with base system
 components. Like an escape sequence that causes the terminal
 to reset its title.
 
 Something like this for tcsh:
 
 set prompt = '%{\033]0;%...@%m:%/\007%}%B%m%b:%c03:%# '
 
 Sets the window title to 'u...@hostname:/current/directory'.  Porting
 this escape sequence to other shells left as an exercise for the student.

Already experimented with that, but it makes tcsh believe the prompt
is longer than it really is. So it will blow up when you move your
cursor around in long commands.

Also this doesn't really relate to the question, does it?

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 
___
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


Detecting cards in USB card reader

2010-02-06 Thread Mike Clarke
In an attempt to get round the problem that my Olympus C-2040Z camera 
won't communicate with FreeBSD versions above 6.4 I've installed an 
Akasa AK-ICR-01B internal card reader on my 8.0-RELEASE-p2 system.

The reader is detected when the system boots and device nodes are 
created for da0, da1, da2 and da3. If a card is inserted before booting 
the computer it is detected and the appropriate device node is created 
(e.g. /dev/da0s1) but subsequently inserting a card into a slot which 
was empty fails to create the appropriate device. Playing around with 
camcontrol and restarting devd have no effect either.

After a bit of Googling I found that 'cat /dev/null  /dev/da0' appears 
to be the fix for forcing the creation of /dev/da0s1 after inserting a 
card in the slot associated with da0. Although this gets round the 
problem I can't help feeling uncomfortable about attempting to write to 
raw devices and was wondering if there was any suitable usbconfig or 
HAL incantation which could be used to achieve the desired effect in a 
safer looking way.

-- 
Mike Clarke
___
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: samba34 fails building on FreeBSD 8.0-STABLE: Compiling lib/memcache.c, lib/memcache.c:29: error: expected specifier-qualifier-list before 'uint8'

2010-02-06 Thread O. Hartmann

On 02/06/10 16:24, Timur I. Bakeyev wrote:

Hi!

On Fri, Feb 05, 2010 at 11:02:18AM +, O. Hartmann wrote:

Trying to compile SAMAB 3.4 on FreeBSD 8.0/amd64 STABLE ends up in the
following error and it seems a bit sticky.


Check, that there is no memcache.h somewhere in your include paths, in
particular in /usr/local/include.

Also, try last update if the port.

With best regards,
Timur.


Hello,
thanks for responding. Indeed, their was a port installed, needed by 
www/lighttpd. After temporarily deinstalling libmemcache, the 
installation of the port went all right. I figured that it would be 
better leaving lighttpd's option 'with memcache' untouched and switched 
off to be on the secure side.


Thanks,

Oliver
___
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: samba34 fails building on FreeBSD 8.0-STABLE: Compiling lib/memcache.c, lib/memcache.c:29: error: expected specifier-qualifier-list before 'uint8'

2010-02-06 Thread Timur I. Bakeyev
Hi!

On Fri, Feb 05, 2010 at 11:02:18AM +, O. Hartmann wrote:
 Trying to compile SAMAB 3.4 on FreeBSD 8.0/amd64 STABLE ends up in the 
 following error and it seems a bit sticky.

Check, that there is no memcache.h somewhere in your include paths, in
particular in /usr/local/include.

Also, try last update if the port.

With best regards,
Timur.
___
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 to set loader password

2010-02-06 Thread Erik Norgaard

Hi:

I was looking in /boot/loader.rc and found these lines:

\ Tests for password -- executes autoboot first if a password was defined
check-password

OK, great, so: How do I set this password? What does it protect? Didn't 
find documentation in loader(8) and no man-page for loader.rc.


Thanks, Erik
--
Erik Nørgaard
Ph: +34.666334818/+34.915211157  http://www.locolomo.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 to set loader password

2010-02-06 Thread Nerius Landys
 I was looking in /boot/loader.rc and found these lines:

 \ Tests for password -- executes autoboot first if a password was defined
 check-password

 OK, great, so: How do I set this password? What does it protect? Didn't find
 documentation in loader(8) and no man-page for loader.rc.

/boot/loader.conf

 man loader.conf

 cat /boot/loader.conf

autoboot_delay=6
loader_logo=beastie
password=pass
snd_ich_load=YES
___
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: backup terminal title

2010-02-06 Thread Dominic Fandrey
Dominic Fandrey wrote:
 Matthew Seaman wrote:
 On 06/02/2010 13:55, Dominic Fandrey wrote:

 Nice, but I need something that works with base system
 components. Like an escape sequence that causes the terminal
 to reset its title.
 Something like this for tcsh:

 set prompt = '%{\033]0;%...@%m:%/\007%}%B%m%b:%c03:%# '

 Sets the window title to 'u...@hostname:/current/directory'.  Porting
 this escape sequence to other shells left as an exercise for the student.
 
 Also this doesn't really relate to the question, does it?

I realize my wording should be clearer.

I wish to use  the \033]0;%s\007 sequence in a shell-script to set
the title of a terminal. But only if I am able to undo it.

My requirement is that this must be done without using anything
outside the base system.

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 
___
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: [WORKAROUND] Re: /usr/ports/x11-toolkits/qt33: /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link)

2010-02-06 Thread Ion-Mihai Tetcu
On Sat, 6 Feb 2010 07:53:04 -0600
Franci Nabalanci lum...@gmail.com wrote:

 On Sat, Feb 6, 2010 at 4:58 AM, Ion-Mihai Tetcu ite...@freebsd.org
 wrote:
 
  On Sat, 6 Feb 2010 12:49:52 +0200
  Ion-Mihai Tetcu ite...@freebsd.org wrote:
 
   On Sat, 06 Feb 2010 11:13:08 +0100
   O. Hartmann ohart...@mail.zedat.fu-berlin.de wrote:
  
Since yesterday's portsnape and attempt updating my ports, ALL
FreeBSD boxes (running FreeBSD 8.0/amd64) fail to update ports
via 'portmaster -av' at the same point with the following error.
   
It seems that that port jpeg-8 has been updated and now offering
libjpeg.so.11 instead of the desired old libjpeg.so.10, so I
guess everything depending on port jpeg-8 needs to be rebuild -
but ports/UPDATE does not reflect this.
   
c++ -fno-exceptions  -Wl,-rpath,/usr/local/lib
-Wl,-rpath,/usr/local/lib -pthread -o ../../../bin/uic
.obj/release-shared-mt/main.o  .obj/release-shared-mt/uic.o
.obj/release-shared-mt/form.o  .obj/release-shared-mt/object.o
.obj/release-shared-mt/subclassing.o  .obj/release-shared-mt/embed.o
.obj/release-shared-mt/widgetdatabase.o
.obj/release-shared-mt/domtool.o  .obj/release-shared-mt/parser.o
-L/usr/local/lib -L/usr/local/lib
  
   ^^^
  
-L/usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/lib
-L/usr/local/lib -lqt-mt -lmng -ljpeg -lpng -lz -lXi -lXrender
-lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig
-lXext -lX11 -lm -lSM -lICE
/usr/bin/ld: warning: libjpeg.so.10, needed by
/usr/local/lib/libqt-mt.so, not found (try using -rpath or
-rpath-link) /usr/local/lib/libqt-mt.so: undefined reference to
`jpeg_start_decompr...@libjpeg_7.0'
  
  
   That above it's the problem, kde team is aware of it.
  
   For the moment the workaround, when you get to this, is to:
   mv /usr/local/lib/libqt-mt.so /usr/local/lib/libqt-mt.so.old  \
   cd /usr/ports/x11-toolkits/qt33/  make  \
   mv /usr/local/lib/libqt-mt.so.old /usr/local/lib/libqt-mt.so  \
   portmaster -C x11-toolkits/qt33
  
  
   I did this yesterday while under KDE3 without problems.
 
  You'll run into the same kind of problem with kdelibs3:
 
 
  Making all in dnssd
  gmake[2]: Entering directory
  `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd'
  ../kdecore/kconfig_compiler/kconfig_compiler ./kcm_kdnssd.kcfg
  ./settings.kcfgc; ret=$?; \
 if test $ret != 0; then rm -f settings.h ; exit $ret ;  fi
  /libexec/ld-elf.so.1: Shared object libjpeg.so.10 not found,
  required by libkdefx.so.6
  gmake[2]: *** [settings.h] Error 1
  gmake[2]: Leaving directory
  `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10/dnssd'
  gmake[1]: *** [all-recursive] Error 1
  gmake[1]: Leaving directory
  `/usr/home/itetcu/wrk/usr/ports/x11/kdelibs3/work/kdelibs-3.5.10'
  gmake: *** [all] Error 2
  *** Error code 1
 
  Stop in /usr/ports/x11/kdelibs3.
 
 
  The same workaround works.
 
  And yes, this means the kde ports are in wrong.

 There is a new jpeg 8 and you need to rebuild with for example
 portmaster -r jpeg-\* if you use a portmaster (there are instructions
 in /usr/ports/UPDATING).

- there isn't
- it shouldn't be needed since all ports that depend directly or
  indirectly on it had their version bumped
- what happens above is obviously wrong.


-- 
IOnut - Un^d^dregistered ;) FreeBSD user
  Intellectual Property is   nowhere near as valuable   as Intellect
FreeBSD committer - ite...@freebsd.org, PGP Key ID 057E9F8B493A297B


signature.asc
Description: PGP signature


Fw: Re: sysinstall and mfs I'm out of Ideas.

2010-02-06 Thread Mark


--- On Sat, 2/6/10, Mark redt...@sbcglobal.net wrote:

 From: Mark redt...@sbcglobal.net
 Subject: Re: sysinstall and mfs I'm out of Ideas.
 To: Martin McCormick mar...@dc.cis.okstate.edu
 Date: Saturday, February 6, 2010, 12:17 AM
 
 
 --- On Fri, 2/5/10, Martin McCormick mar...@dc.cis.okstate.edu
 wrote:
 
  From: Martin McCormick mar...@dc.cis.okstate.edu
  Subject: Re: sysinstall and mfs I'm out of Ideas.
  To: Mark redt...@sbcglobal.net
  Date: Friday, February 5, 2010, 8:21 PM
  Mark writes:
   I'm sure you have already read this from man
  sysinstall, but it may give 
   a hint to something you may have missed.
   
   
    Note:
  Nothing is actually written to disk by this function,
 an
               
  explicit call to diskPartitionWrite being required for
 that
  
   to happen. 
   
        diskPartitionWrite
                Causes
  any pending MBR changes (typically from the
               
  diskPartitionEditor function) to be written out.
   
               
  Variables: None
   
   
Note: No file system data is
 actually
  written to disk until an
               
  explicit call to diskLabelCommit is made.
  
      Thank you. The commit is definitely
  never happening.
  When it does happen, several messages appear and there
 is a
  time
  lag while the newfs takes place. It should happen
 right
  after
  one selects the installation media. Instead, it just
 skips
  that
  step and ruins mfs by overwriting some of its
 utilities
  with
  binaries that should be going to the hard drive. 
  Again, thanks.
  
  Martin McCormick
 
 
 perhaps adding sleep 120 to halt the script execution for
 2 minutes to allow the new files system write to complete.
 hth
 

___
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: samba34 fails building on FreeBSD 8.0-STABLE: Compiling lib/memcache.c, lib/memcache.c:29: error: expected specifier-qualifier-list before 'uint8'

2010-02-06 Thread Timur I. Bakeyev
Hi, Oliver!

On Sat, Feb 6, 2010 at 4:46 PM, O. Hartmann
ohart...@mail.zedat.fu-berlin.de wrote:
 On 02/06/10 16:24, Timur I. Bakeyev wrote:
 On Fri, Feb 05, 2010 at 11:02:18AM +, O. Hartmann wrote:

 Trying to compile SAMAB 3.4 on FreeBSD 8.0/amd64 STABLE ends up in the
 following error and it seems a bit sticky.

 Check, that there is no memcache.h somewhere in your include paths, in
 particular in /usr/local/include.

 Also, try last update if the port.

 thanks for responding. Indeed, their was a port installed, needed by
 www/lighttpd. After temporarily deinstalling libmemcache, the installation
 of the port went all right. I figured that it would be better leaving
 lighttpd's option 'with memcache' untouched and switched off to be on the
 secure side.

Yeh, that's a trap... I hope, that with my last update of the port
Samba won't pick up headers from the /usr/local/include
if it has a local one with the same name. So, should be safe to
combine both ports :)

With best regards,
Timur.
___
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: Detecting cards in USB card reader

2010-02-06 Thread Polytropon
On Sat, 6 Feb 2010 15:11:11 +, Mike Clarke jmc-freeb...@milibyte.co.uk 
wrote:
 Although this gets round the 
 problem I can't help feeling uncomfortable about attempting to write to 
 raw devices and was wondering if there was any suitable usbconfig or 
 HAL incantation which could be used to achieve the desired effect in a 
 safer looking way.

I can understand this. Maybe accessing the SCSI layer of
the card reader can help? If

% camcontrol reset all

will cause the same effect (of creating the correct nodes in
/dev), you can be more precise (e. g. just reset da0); see

% man camcontrol

for further (and maybe more elegant) details.


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


Wireless Access Point

2010-02-06 Thread Bill Tillman
Okay I have finally decided to scrap my old D-Link wireless router in favor of 
my FreeBSD-8.0 server with a wireless NIC ral0. I have thus far got the NIC to 
come up and work as an access point. I can connect to this AP with my laptop 
computer via wireless. I'm running dhcpd on the FreeBSD server so my laptop is 
also assigned an IP address as well.
 
My existing setup has a FreeBSD server running as a router/gateway for my 
entire LAN. This router has two NICs one connected to the cable modem from my 
ISP and one connected to a switch on 10.0.0.0/24 Lan.
 
The existing D-Link router has it's WAN port connected to this same switch and 
it gets a 10.0.0.0/24 IP address from another FreeBSD server running dhcpd. 
This D-Link router is running dhcpd and it assigns 192.168.0.0/24 IP addresses 
to all wireless clients. When a wireless client boots up in my house they 
connect to this D-Link router and all is well.
 
This setup is working fine as all the workstations on 10.0.0.0/24 can access 
the Internet and all wireless clients on 192.168.0.0/24 can access the Internet.
 
Now my new FreeBSD-8.0-STABLE server seems to be almost ready to take over for 
the D-Link router and my old FreeBSD server. I have two NIC's in this server, 
an ethernet cable one (bge0) and the wireless NIC (ral0) or wlan0. 
 
I can ping outside addresses from this new server but of course it's using the 
10.0.0.0/24 segment which I knew would work. But even though the wireless 
clients can connect to the wirless NIC and be assigned an IP address and can 
ping the IP address of the server, both of them,  I cannot access the Internet 
from any of the wireless machines. I could use some advice on what to do to 
correct this. 
 



___
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


MPD5 Question

2010-02-06 Thread evert
Hello everyone,

I've got MPD5 working on FreeBSD 8, i just got one question.
When i add a user in mpd.secret and restart mpd with
/usr/local/etc/rc.d/mpd5 restart, the user can login.
But there is also a drawback, all currently logged in users get disconnected.
Does anyone know if there is a way to reload mpd.secret without
disconnecting the connected users ?

Regards,

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


What is easiest way to build a BSD 8 binary on a BSD 7 box?

2010-02-06 Thread Peter Steele
I have a BSD 7 system with the full BSD 8 sources loaded on it, and we use this 
box to build our custom BSD 8 kernel and tools. We do not install the custom 
code on the BSD 7 box but simply collect the artifacts as a basis for our 
custom BSD 8 image. I have a standalone tool that has previously been built on 
this same BSD 7 system, but it just uses gcc and links against the normal BSD 7 
libraries that are located on this box.

When we run this tool on a BSD 7 box it works fine. However, we've discovered 
one function it performs doesn't work properly. It uses kvm_read to collect 
network statistics and apparently applications that use this function have to 
be linked against the libraries of the actual target OS. One easy solution of 
course is to build our tool on a BSD 8 box, and in the long run we'll likely go 
that route as we move away from BSD 7. Right now though our build server is BSD 
7 and we need to build this tool against BSD 8 libraries. This obviously can be 
done since make world does exactly that-it builds everything against 8.0 
objects even if the build is done on a BSD 7 box.

Without dissecting the magic going on in make world, can any explain how I 
could do the same thing with my standalone tool? Specifically, build it on a 
BSD 7 box but link it against BSD 8 libraries.

___
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


Clarification Of In Place Upgrade Process

2010-02-06 Thread Tim Daneliuk
When migrating from 6.x to 7.x and to do system refreshes within a
given release branch, I did/do this:

- Get sources
- mergemaster -i
- make buildworld buildkernel
- go single user
- make installworld installkernel
- reboot

I now wish to do the same to get to the 8.x branch, BUT ... somewhere on
USENET, someone commented that you have to also reinstall/rebuild
all the packages/ports when you do this.  This was news to me.  Is there
some reason the entire application base has to be reinstalled when
moving to a new branch?  If so, has this always been the case or is it
new for 8.x?  My 6.x - 7.x upgrade went flawlessly using the method
above without touching the ports/packages tree.

TIA,
-- 

Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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


jail_list not working

2010-02-06 Thread claudiu vasadi
Hello folks,

I need you help about this issue. If I write more than 1 jail inside the
jail_list in rc.conf, neither of the jails are started.

my system is a vmware workstation machine, with guest os freebsd
8.0-release. nothing is changed in the OS.

here is the rc.conf:

hostname=freebsd2
ifconfig_em0=DHCP
ifconfig_em0_alias=192.168.0.21
#ifconfig_em0=inet 192.168.0.11 netmask 255.255.255.0 broadcast
192.168.0.255
#defaultrouter=192.168.0.1
moused_enable=YES
sshd_enable=YES
hald_enable=YES
dbus_enable=YES
zfs_enable=YES
#ifconfig_vxn0=dhcp

#pf_enable=YES
#apache22_enable=YES # Apache is running in jail


# Jails


jail_enable=YES# Set to NO to disable starting of any jails
jail_list=apache georgi # Space separated list of names of jails

# Apache Jail settings
jail_apache_rootdir=/jails/apache # jail's root directory
jail_apache_hostname=apache.da1.ro  # jail's hostname
jail_apache_interface=em0
jail_apache_ip=192.168.0.21   # jail's IP address
jail_apache_devfs_enable=YES  # mount devfs in the jail
#jail_apache_devfs_ruleset=apache_ruleset # devfs ruleset to apply to jail

# Georgi Jail settings
jail_georgi_rootdir=/jails/georgi # jail's root directory
jail_georgi_hostname=georgi.da1.ro  # jail's hostname
jail_georgi_interface=em0
jail_georgi_ip=192.168.0.22   # jail's IP address
jail_georgi_devfs_enable=YES  # mount devfs in the jail
#jail_georgi_devfs_ruleset=georgi_ruleset # devfs ruleset to apply to jail



If I write only 1 jail, it starts without any problems. but if I put more
than 1, either none of them start, either the first one starts (always the
first one).

No errors in /var/log/messages and no errors in stdout while os load.


googleing since this morning. any ideea ?
___
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: best firewall for a web server

2010-02-06 Thread Iv Ray
Thank you all for your help.

Two for PF and one for IPFILTER - I'll have to do some math now :)

All best, Iv
___
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: Wireless Access Point

2010-02-06 Thread Warren Block

On Sat, 6 Feb 2010, Bill Tillman wrote:
...
Now my new FreeBSD-8.0-STABLE server seems to be almost ready to take 
over for the D-Link router and my old FreeBSD server. I have two NIC's 
in this server, an ethernet cable one (bge0) and the wireless NIC 
(ral0) or wlan0.

...  
I can ping outside addresses from this new server but of course it's 
using the 10.0.0.0/24 segment which I knew would work. But even though 
the wireless clients can connect to the wirless NIC and be assigned an 
IP address and can ping the IP address of the server, both of them,  I 
cannot access the Internet from any of the wireless machines. I could 
use some advice on what to do to correct this.


Sounds like NAT is working for the internal wired interface, but not the 
wireless interface.  Check your firewall rules.


-Warren Block * Rapid City, South Dakota USA___
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: Wireless Access Point

2010-02-06 Thread Bill Tillman


--- On Sat, 2/6/10, Warren Block wbl...@wonkity.com wrote:


From: Warren Block wbl...@wonkity.com
Subject: Re: Wireless Access Point
To: Bill Tillman btillma...@yahoo.com
Cc: freebsd-questions@freebsd.org
Date: Saturday, February 6, 2010, 1:45 PM


On Sat, 6 Feb 2010, Bill Tillman wrote:
...
 Now my new FreeBSD-8.0-STABLE server seems to be almost ready to take over 
 for the D-Link router and my old FreeBSD server. I have two NIC's in this 
 server, an ethernet cable one (bge0) and the wireless NIC (ral0) or wlan0.
...  
 I can ping outside addresses from this new server but of course it's using 
 the 10.0.0.0/24 segment which I knew would work. But even though the wireless 
 clients can connect to the wirless NIC and be assigned an IP address and can 
 ping the IP address of the server, both of them,  I cannot access the 
 Internet from any of the wireless machines. I could use some advice on what 
 to do to correct this.

Sounds like NAT is working for the internal wired interface, but not the 
wireless interface.  Check your firewall rules.

-Warren Block * Rapid City, South Dakota USA
 
Thanks for your reply. The new FreeBSD-8.0-STABLE server is currently not 
running a firewall. I have that taken care of with the other FreeBSD router 
10.0.0.253.
 
In this other router I do have IPFW running and have assigned 
natd_interface=rl0. My new server is doing a make buildworld right now so I 
can't test this right away, but it sounds like I need to add 
natd_interface=wlan0 in the /etc/rc.conf file. Is there a way to add this to 
the setup without editing /etc/rc.conf and restarting the system? Otherwise I 
have to wait until the make buildworld is over. This is a very fast machine so 
it shouldn't be long.



___
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: MPD5 Question

2010-02-06 Thread evert
Hey,

That i try'd already, but so far i dont really see a command which says
reload password file or something like that.
Doing a : load /usr/local/etc/mpd5/mpd.conf pptp_server
Does also not work (tryed that also)

Regards,

Evert

 Çäðàâñòâóéòå, Evert.

 Âû ïèñàëè 6 ôåâðàëÿ 2010 ã., 20:52:27:

 edn Hello everyone,

 edn I've got MPD5 working on FreeBSD 8, i just got one question.
 edn When i add a user in mpd.secret and restart mpd with
 edn /usr/local/etc/rc.d/mpd5 restart, the user can login.
 edn But there is also a drawback, all currently logged in users get
 disconnected.
 edn Does anyone know if there is a way to reload mpd.secret without
 edn disconnecting the connected users ?

 try to run commands in mpd console
 telnet 127.0.0.1 5005

 edn Regards,

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



 --
 Ñ óâàæåíèåì,
  Êîíüêîâ  mailto:kes-...@yandex.ru

 http://kes.net.ua



___
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: Wireless Access Point

2010-02-06 Thread Mark


--- On Sat, 2/6/10, Warren Block wbl...@wonkity.com wrote:

 From: Warren Block wbl...@wonkity.com
 Subject: Re: Wireless Access Point
 To: Bill Tillman btillma...@yahoo.com
 Cc: freebsd-questions@freebsd.org
 Date: Saturday, February 6, 2010, 1:45 PM
 On Sat, 6 Feb 2010, Bill Tillman
 wrote:
 ...
  Now my new FreeBSD-8.0-STABLE server seems to be
 almost ready to take over for the D-Link router and my old
 FreeBSD server. I have two NIC's in this server, an ethernet
 cable one (bge0) and the wireless NIC (ral0) or wlan0.
 ...  
  I can ping outside addresses from this new server but
 of course it's using the 10.0.0.0/24 segment which I knew
 would work. But even though the wireless clients can connect
 to the wirless NIC and be assigned an IP address and can
 ping the IP address of the server, both of them,  I cannot
 access the Internet from any of the wireless machines. I
 could use some advice on what to do to correct this.
 
 Sounds like NAT is working for the internal wired
 interface, but not the wireless interface.  Check your
 firewall rules.
 
 -Warren Block * Rapid City, South Dakota USA
 -Inline Attachment Follows-
 
 ___
 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

In rc.conf you need gateway_enabe=YES. After making the entry you can do 
/etc/netstart to keep from rebooting.

Are you running a dhcp server, that is pushing the gateway IP and dns server 
ip's out to the wireless network or just hand config??


___
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: [WORKAROUND] Re: /usr/ports/x11-toolkits/qt33: /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link)

2010-02-06 Thread ajtiM
On Saturday 06 February 2010 04:49:52 Ion-Mihai Tetcu wrote:
 On Sat, 06 Feb 2010 11:13:08 +0100
 
 O. Hartmann ohart...@mail.zedat.fu-berlin.de wrote:
  Since yesterday's portsnape and attempt updating my ports, ALL
  FreeBSD boxes (running FreeBSD 8.0/amd64) fail to update ports via
  'portmaster -av' at the same point with the following error.
 
  It seems that that port jpeg-8 has been updated and now offering
  libjpeg.so.11 instead of the desired old libjpeg.so.10, so I guess
  everything depending on port jpeg-8 needs to be rebuild - but
  ports/UPDATE does not reflect this.
 
  c++ -fno-exceptions  -Wl,-rpath,/usr/local/lib
  -Wl,-rpath,/usr/local/lib -pthread -o ../../../bin/uic
  .obj/release-shared-mt/main.o  .obj/release-shared-mt/uic.o
  .obj/release-shared-mt/form.o  .obj/release-shared-mt/object.o
  .obj/release-shared-mt/subclassing.o  .obj/release-shared-mt/embed.o
  .obj/release-shared-mt/widgetdatabase.o
  .obj/release-shared-mt/domtool.o  .obj/release-shared-mt/parser.o
  -L/usr/local/lib -L/usr/local/lib
 
 ^^^
 
  -L/usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/lib
  -L/usr/local/lib -lqt-mt -lmng -ljpeg -lpng -lz -lXi -lXrender
  -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext
  -lX11 -lm -lSM -lICE
  /usr/bin/ld: warning: libjpeg.so.10, needed by
  /usr/local/lib/libqt-mt.so, not found (try using -rpath or
  -rpath-link) /usr/local/lib/libqt-mt.so: undefined reference to
  `jpeg_start_decompr...@libjpeg_7.0'
 
 That above it's the problem, kde team is aware of it.
 
 For the moment the workaround, when you get to this, is to:
 mv /usr/local/lib/libqt-mt.so /usr/local/lib/libqt-mt.so.old  \
 cd /usr/ports/x11-toolkits/qt33/  make  \
 mv /usr/local/lib/libqt-mt.so.old /usr/local/lib/libqt-mt.so  \
 portmaster -C x11-toolkits/qt33
 
 
 I did this yesterday while under KDE3 without problems.
 

I had the same errors plus 'update for arts-1.5.10_2,1 failed'

I use FreeBSD 8.0, KDE 4.3.5


Mitja

http://starikarp.redbubble.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: [WORKAROUND] Re: /usr/ports/x11-toolkits/qt33: /usr/bin/ld: warning: libjpeg.so.10, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link)

2010-02-06 Thread ajtiM
On Saturday 06 February 2010 04:49:52 Ion-Mihai Tetcu wrote:
 On Sat, 06 Feb 2010 11:13:08 +0100
 
 O. Hartmann ohart...@mail.zedat.fu-berlin.de wrote:
  Since yesterday's portsnape and attempt updating my ports, ALL
  FreeBSD boxes (running FreeBSD 8.0/amd64) fail to update ports via
  'portmaster -av' at the same point with the following error.
 
  It seems that that port jpeg-8 has been updated and now offering
  libjpeg.so.11 instead of the desired old libjpeg.so.10, so I guess
  everything depending on port jpeg-8 needs to be rebuild - but
  ports/UPDATE does not reflect this.
 
  c++ -fno-exceptions  -Wl,-rpath,/usr/local/lib
  -Wl,-rpath,/usr/local/lib -pthread -o ../../../bin/uic
  .obj/release-shared-mt/main.o  .obj/release-shared-mt/uic.o
  .obj/release-shared-mt/form.o  .obj/release-shared-mt/object.o
  .obj/release-shared-mt/subclassing.o  .obj/release-shared-mt/embed.o
  .obj/release-shared-mt/widgetdatabase.o
  .obj/release-shared-mt/domtool.o  .obj/release-shared-mt/parser.o
  -L/usr/local/lib -L/usr/local/lib
 
 ^^^
 
  -L/usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.8/lib
  -L/usr/local/lib -lqt-mt -lmng -ljpeg -lpng -lz -lXi -lXrender
  -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext
  -lX11 -lm -lSM -lICE
  /usr/bin/ld: warning: libjpeg.so.10, needed by
  /usr/local/lib/libqt-mt.so, not found (try using -rpath or
  -rpath-link) /usr/local/lib/libqt-mt.so: undefined reference to
  `jpeg_start_decompr...@libjpeg_7.0'
 
 That above it's the problem, kde team is aware of it.
 
 For the moment the workaround, when you get to this, is to:
 mv /usr/local/lib/libqt-mt.so /usr/local/lib/libqt-mt.so.old  \
 cd /usr/ports/x11-toolkits/qt33/  make  \
 mv /usr/local/lib/libqt-mt.so.old /usr/local/lib/libqt-mt.so  \
 portmaster -C x11-toolkits/qt33
 
 
 I did this yesterday while under KDE3 without problems.
 

For me the temporary savings doesn't work.

Mitja

http://starikarp.redbubble.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


why update...

2010-02-06 Thread ajtiM
...if is doesn't work???

It is not the first time and I think the last too but I have a question 
anywhere:

The problem is jpeg 8.0 which need to update many ports. It is not a problem 
if works. But if doesn't which is my case that is a problem. As I sent a 
previous mails about problem to rebuilt qt33 and arts (not just me) and the 
problem became a BIG problem because many other applications don't work. Why 
all of this rush for update a port in this case jpeg which IMO is not so 
important (BTW Linux world use K3b for KDE 4 more than six months without 
problem, we don't) and update for QT33 doen't works??? Is it QT33 less 
important as jpeg 8.0. As a user of FreeBSD I expected that when update is in 
the port that is safe to use this port. But looks like that I am wrong.
Thanks.

Mitja

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


how to control upload data in bittorrent clients

2010-02-06 Thread dhaneshk k




   I am using  transmission-daemon and tr
ansmission web  for  accessing bittorrent sites. 

I have a slow connection,   the problem is that 


1)  in the transmission web   it showing  downloading is 10  kbps to 30 kbps
but uploading  it shows  50 to 92 kbps 
my question is  is it possible to  limit the uploading data rate , how can I do 
this ?

2)  When ever transmission  daemon running and downloading  files,  I can't  
access any other sites, it waiting for long and getting message sever not found 
...  When I stop transmission daemon  then  other sites accessible.  
why its happening ?  any hints to fix it ?


transmission-daemon-1.51_1
transmission-web-1.51


any help most welcome.

dhanesh


  
_
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how to control upload data in bittorrent clients

2010-02-06 Thread Morgan Wesström
I am using  transmission-daemon and tr
 ansmission web  for  accessing bittorrent sites. 
 
 I have a slow connection,   the problem is that 
 
 
 1)  in the transmission web   it showing  downloading is 10  kbps to 30 kbps  
   but uploading  it shows  50 to 92 kbps 
 my question is  is it possible to  limit the uploading data rate , how can I 
 do this ?
 
 2)  When ever transmission  daemon running and downloading  files,  I can't  
 access any other sites, it waiting for long and getting message sever not 
 found ...  When I stop transmission daemon  then  other sites accessible.  
 why its happening ?  any hints to fix it ?
 
 
 transmission-daemon-1.51_1
 transmission-web-1.51
 
 
 any help most welcome.
 
 dhanesh

Check out Daniel Hartmeier's excellent article on how to prioritize TCP
ACKs (and other traffic). It will explain what you experience and solve
the problem for you.
http://www.benzedrine.cx/ackpri.html
/Morgan
___
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: Detecting cards in USB card reader

2010-02-06 Thread Mike Clarke
On Saturday 06 February 2010, Polytropon wrote:

 I can understand this. Maybe accessing the SCSI layer of
 the card reader can help? If

 % camcontrol reset all

 will cause the same effect (of creating the correct nodes in
 /dev), you can be more precise (e. g. just reset da0); see

 % man camcontrol

 for further (and maybe more elegant) details.

Neither reset nor rescan have any effect with camcontrol. Without a 
suitable incantation like 'cat /dev/null  /dev/da0' I just 
have /dev/da0 but no /dev/da0s1 after inserting a card. The system 
knows that the media is there, fdisk /dev/da0 can see the slice even, 
but there's no device node for it.

This is what happens after inserting a 16MB card in the reader:

curlew:/root# ls -l /dev/da0*
crw-r-  1 root  operator0, 176  6 Feb 23:15 /dev/da0
curlew:/root# fdisk /dev/da0
*** Working on device /dev/da0 ***
parameters extracted from in-core disklabel are:
cylinders=15 heads=64 sectors/track=32 (2048 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=15 heads=64 sectors/track=32 (2048 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 1 (0x01),(Primary DOS with 12 bit FAT)
start 32, size 31264 (15 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 488/ head 1/ sector 32
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED
curlew:/root# ls -l /dev/da0*
crw-r-  1 root  operator0, 176  6 Feb 23:15 /dev/da0

Still no device for slice 1 until after I attempt to open da0 for 
writing:

curlew:/root# cat /dev/null  /dev/da0
curlew:/root# ls -l /dev/da0*
crw-r-  1 root  operator0, 176  6 Feb 23:15 /dev/da0
crw-r-  1 root  operator0, 129  6 Feb 23:18 /dev/da0s1

I can use this to initialise the card reader but I'd feel more 
comfortable with something a bit less dangerous looking.

-- 
Mike Clarke
___
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: MPD5 Question

2010-02-06 Thread Коньков Евгений
Здравствуйте, Evert.

Вы писали 6 февраля 2010 г., 20:52:27:

edn Hello everyone,

edn I've got MPD5 working on FreeBSD 8, i just got one question.
edn When i add a user in mpd.secret and restart mpd with
edn /usr/local/etc/rc.d/mpd5 restart, the user can login.
edn But there is also a drawback, all currently logged in users get 
disconnected.
edn Does anyone know if there is a way to reload mpd.secret without
edn disconnecting the connected users ?

try to run commands in mpd console
telnet 127.0.0.1 5005

edn Regards,

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



-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

http://kes.net.ua

___
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: Wireless Access Point

2010-02-06 Thread Bill Tillman


--- On Sat, 2/6/10, Mark redt...@sbcglobal.net wrote:


From: Mark redt...@sbcglobal.net
Subject: Re: Wireless Access Point
To: Bill Tillman btillma...@yahoo.com
Cc: help help freebsd-questions@freebsd.org
Date: Saturday, February 6, 2010, 2:46 PM




--- On Sat, 2/6/10, Warren Block wbl...@wonkity.com wrote:

 From: Warren Block wbl...@wonkity.com
 Subject: Re: Wireless Access Point
 To: Bill Tillman btillma...@yahoo.com
 Cc: freebsd-questions@freebsd.org
 Date: Saturday, February 6, 2010, 1:45 PM
 On Sat, 6 Feb 2010, Bill Tillman
 wrote:
 ...
  Now my new FreeBSD-8.0-STABLE server seems to be
 almost ready to take over for the D-Link router and my old
 FreeBSD server. I have two NIC's in this server, an ethernet
 cable one (bge0) and the wireless NIC (ral0) or wlan0.
 ...  
  I can ping outside addresses from this new server but
 of course it's using the 10.0.0.0/24 segment which I knew
 would work. But even though the wireless clients can connect
 to the wirless NIC and be assigned an IP address and can
 ping the IP address of the server, both of them,  I cannot
 access the Internet from any of the wireless machines. I
 could use some advice on what to do to correct this.
 
 Sounds like NAT is working for the internal wired
 interface, but not the wireless interface.  Check your
 firewall rules.
 
 -Warren Block * Rapid City, South Dakota USA
 -Inline Attachment Follows-
 
 ___
 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

In rc.conf you need gateway_enabe=YES. After making the entry you can do 
/etc/netstart to keep from rebooting.

Are you running a dhcp server, that is pushing the gateway IP and dns server 
ip's out to the wireless network or just hand config??
 
Yes, my dhcp server which is this same FreeBSD server with the wireless NIC is 
pushing the gateway IP address 192.168.0.254
 
This is my /etc/rc.conf file
 
hostname=FreeBSD13.mydomain.com
gateway_enable=YES
ifconfig_bge0=DHCP
inetd_enable=YES
nfs_client_enable=YES
nfs_server_enable=YES
rpcbind_enable=YES
sshd_enable=YES
wlans_ral0=wlan0
create_args_wlan0=wlanmode hostap mode 11g
ifconfig_wlan0=inet 192.168.0.254 netmask 255.255.255.0 ssid freebsdap channel 
11
sendmail_enable=NO
natd_interface=wlan0
 
The wireless laptop is seeing the FreeBSD server and is connecting and getting 
an IP address. But I cannot get out to the Internet with it. I really 
appreciate the advice gang. I know this thing is probably simple and I just 
can't find the resolution.



___
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: why update...

2010-02-06 Thread b. f.
...if is doesn't work???

It is not the first time and I think the last too but I have a question
anywhere:

The problem is jpeg 8.0 which need to update many ports. It is not a problem
if works. But if doesn't which is my case that is a problem. As I sent a
previous mails about problem to rebuilt qt33 and arts (not just me) and the
problem became a BIG problem because many other applications don't work. Why
all of this rush for update a port in this case jpeg which IMO is not so
important (BTW Linux world use K3b for KDE 4 more than six months without
problem, we don't) and update for QT33 doen't works??? Is it QT33 less
important as jpeg 8.0. As a user of FreeBSD I expected that when update is in
the port that is safe to use this port. But looks like that I am wrong.
Thanks.


Why update? is a question that *you* should ask *before* you update
your ports tree, or rebuild your ports.  No one is forcing you to
track the latest ports tree, that is *your* choice.  Committers put in
a lot of work to try to ensure that large updates go as smoothly as
possible, but there are often some problems that go undetected during
test builds, and need to be fixed after the first commit.  If you
don't feel confident about resolving such problems yourself, then wait
for several days after a major commit for the dust to settle before
updating.  There are four major kinds of problems that often go
undetected by test builds:

1) problems that occur because of the presence of outdated or
conflicting ports (in the test builds, everything is built in a clean
sandbox, unlike on most actual systems, where the presence of ports
that haven't yet been updated or conflict but don't have the proper
CONFLICTS entries can break updates);

2) problems due to ports built with non-default build options (there
are just too many build options in ports to test every possible
combination of options, so most test builds just use the defaults;
users who use non-default options may have to work with committers to
fix any resulting problems);

3) problems that arise because portmaster, portupgrade, and other
build tools don't do what the test servers do (sometimes these
third-party tools are broken, or problems arise because the tools
leave outdated ports in place as they are rebuilding them, so that
users can continue to use the ports during the time that they are
rebuilt; this can lead to problems that can usually be circumvented,
but may break big batches of port builds);

and

4) run-time problems that occur after the updating of a port (there
are far too many ports, and too few of them have regression test
suites with complete coverage that are run before installation, to
test the entire functionality of every port as part of a pre-commit
test, so users can expect some problems to slip through).

You can cut down on the number of problems that you encounter from 1)
and 3) by removing all of the ports that you intend to update, and all
of the ports that depend upon them, before updating them.

There was no rush, as you put it, involved with this update: the
committer announced his intention to do this on the mailing lists on
Jan. 24, then he worked with other committers to do a full test run,
before making any changes.  Again, you have the option of using a
previous version of the ports tree, or of using packages, or of
managing your updates more carefully, or of not using ports at all,
but some other packaging system.  You should expect problems from all
of these: nothing is perfect.
___
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


Howto run privileged commands on login/logout

2010-02-06 Thread Erik Norgaard

Hi:

I'm playing around with diskless operation. I'd like to be able to run 
privileged commands when a user logins or logs out:


- on login, nfs mount the user's home directory (ok, not critical, I can 
mount /home)
- on logout a system reboot to clean up any temporary files left from 
the session.


Is this possible, without messing arround with sudo or adding users to 
wheel or operator groups?


Thanks, Erik

--
Erik Nørgaard
Ph: +34.666334818/+34.915211157  http://www.locolomo.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: Howto run privileged commands on login/logout

2010-02-06 Thread Rob Farmer
On Sat, Feb 6, 2010 at 4:55 PM, Erik Norgaard norga...@locolomo.org wrote:
 Hi:

 I'm playing around with diskless operation. I'd like to be able to run
 privileged commands when a user logins or logs out:

 - on login, nfs mount the user's home directory (ok, not critical, I can
 mount /home)
 - on logout a system reboot to clean up any temporary files left from the
 session.

Not sure if it would work or not but you could try setting
/etc/csh.logout setuid root (or whatever). However, IIRC, there are
security concerns with setuid scripts (I remember previous list
discussions about setuid shell scripts but don't remember what the
verdict was).

-- 
Rob Farmer


 Is this possible, without messing arround with sudo or adding users to wheel
 or operator groups?

 Thanks, Erik

 --
 Erik Nørgaard
 Ph: +34.666334818/+34.915211157                  http://www.locolomo.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

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


Re: What is easiest way to build a BSD 8 binary on a BSD 7 box?

2010-02-06 Thread Pieter de Goeje
On Saturday 06 February 2010 20:22:13 Peter Steele wrote:
 I have a BSD 7 system with the full BSD 8 sources loaded on it, and we use
 this box to build our custom BSD 8 kernel and tools. We do not install the
 custom code on the BSD 7 box but simply collect the artifacts as a basis
 for our custom BSD 8 image. I have a standalone tool that has previously
 been built on this same BSD 7 system, but it just uses gcc and links
 against the normal BSD 7 libraries that are located on this box.

 When we run this tool on a BSD 7 box it works fine. However, we've
 discovered one function it performs doesn't work properly. It uses kvm_read
 to collect network statistics and apparently applications that use this
 function have to be linked against the libraries of the actual target OS.
 One easy solution of course is to build our tool on a BSD 8 box, and in the
 long run we'll likely go that route as we move away from BSD 7. Right now
 though our build server is BSD 7 and we need to build this tool against BSD
 8 libraries. This obviously can be done since make world does exactly
 that-it builds everything against 8.0 objects even if the build is done on
 a BSD 7 box.

 Without dissecting the magic going on in make world, can any explain how
 I could do the same thing with my standalone tool? Specifically, build it
 on a BSD 7 box but link it against BSD 8 libraries.

The easiest way would probably be the following.

# SOMEDIR=/path/to/fbsd8buildenv
# mkdir -p ${SOMEDIR}
# cd /path/to/FreeBSD-8.0/src
# make buildworld
# make installworld DESTDIR=${SOMEDIR}

Then adding --sysroot=${SOMEDIR} to all invocations of gcc/ld and/or liberal use
of -I and -L gcc options should do the trick.

For example:
# export CFLAGS=-I${SOMEDIR}/usr/include -L${SOMEDIR}/lib -L${SOMEDIR}/usr/lib
# make

Regards,

Pieter de Goeje
___
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: Howto run privileged commands on login/logout

2010-02-06 Thread Pieter de Goeje
On Sunday 07 February 2010 01:55:02 Erik Norgaard wrote:
 I'm playing around with diskless operation. I'd like to be able to run
 privileged commands when a user logins or logs out:

 - on login, nfs mount the user's home directory (ok, not critical, I can
 mount /home)

This can be done using amd(8). Check out the example section in amd.conf(5).

 - on logout a system reboot to clean up any temporary files left from
 the session.

Not sure why you would want to reboot the entire system but simply 
doing chmod +s /sbin/shutdown should give all users access to the 
shutdown(8) command.


 Is this possible, without messing arround with sudo or adding users to
 wheel or operator groups?

--
Pieter de Goeje
___
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: backup terminal title

2010-02-06 Thread perryh
 I wish to use  the \033]0;%s\007 sequence in a shell-script to
 set the title of a terminal. But only if I am able to undo it.

 My requirement is that this must be done without using anything
 outside the base system.

There is an escape sequence which will cause the terminal to echo
back its current title, but it's a bit tricky to use given only
base-system tools because the echo ends with, IIRC, \007 rather
than \n.  It may be possible in some shells to temporarily set the
line-end character to \007.  You probably also want to (somehow)
cover problematic cases like terminals that don't reply to the
inquiry even though TERMCAP implies that they should.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: What is easiest way to build a BSD 8 binary on a BSD 7 box?

2010-02-06 Thread Peter Steele
Okay, that looks doable. I'll see how this works out. Thanks very much for the 
info!

-Original Message-
From: Pieter de Goeje [mailto:pie...@degoeje.nl] 
Sent: Saturday, February 06, 2010 5:28 PM
To: freebsd-questions@freebsd.org
Cc: Peter Steele
Subject: Re: What is easiest way to build a BSD 8 binary on a BSD 7 box?

On Saturday 06 February 2010 20:22:13 Peter Steele wrote:
 I have a BSD 7 system with the full BSD 8 sources loaded on it, and we 
 use this box to build our custom BSD 8 kernel and tools. We do not 
 install the custom code on the BSD 7 box but simply collect the 
 artifacts as a basis for our custom BSD 8 image. I have a standalone 
 tool that has previously been built on this same BSD 7 system, but it 
 just uses gcc and links against the normal BSD 7 libraries that are located 
 on this box.

 When we run this tool on a BSD 7 box it works fine. However, we've 
 discovered one function it performs doesn't work properly. It uses 
 kvm_read to collect network statistics and apparently applications 
 that use this function have to be linked against the libraries of the actual 
 target OS.
 One easy solution of course is to build our tool on a BSD 8 box, and 
 in the long run we'll likely go that route as we move away from BSD 7. 
 Right now though our build server is BSD 7 and we need to build this 
 tool against BSD
 8 libraries. This obviously can be done since make world does 
 exactly that-it builds everything against 8.0 objects even if the 
 build is done on a BSD 7 box.

 Without dissecting the magic going on in make world, can any explain 
 how I could do the same thing with my standalone tool? Specifically, 
 build it on a BSD 7 box but link it against BSD 8 libraries.

The easiest way would probably be the following.

# SOMEDIR=/path/to/fbsd8buildenv
# mkdir -p ${SOMEDIR}
# cd /path/to/FreeBSD-8.0/src
# make buildworld
# make installworld DESTDIR=${SOMEDIR}

Then adding --sysroot=${SOMEDIR} to all invocations of gcc/ld and/or liberal 
use of -I and -L gcc options should do the trick.

For example:
# export CFLAGS=-I${SOMEDIR}/usr/include -L${SOMEDIR}/lib -L${SOMEDIR}/usr/lib 
# make

Regards,

Pieter de Goeje
___
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


Modules and Custom Kernels

2010-02-06 Thread James Colannino
Hey everyone.  Please bear with me as I'm very new to FreeBSD.  I've
recently started building a custom kernel after having had to apply a
patch to enable support for my wireless device (Atheros 9285) in
8.0-RELEASE, and had a quick question about the process in general.


According to the documentation, a line with device driver name will
cause that driver to be compiled into the kernel.  If one of those lines
is commented out, does that mean that the driver will still be built,
but that it will be installed as a module?  I didn't see anything that
told me that explicitly in the documentation, but that's the feeling I
got from what I read.  I just want to make sure that my assumption is
correct, and if not, how to make sure that something gets built as a
module rather than built directly into the kernel.

In all, the process looks relatively painless as long as I'm careful not
to make too many changes to the GENERIC config.

Hopefully this isn't a dumb question :)  I really like FreeBSD so far,
and think I'm going to enjoy my new experience quite a bit.

Thanks in advance!

James
___
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: backup terminal title

2010-02-06 Thread Warren Block

On Sat, 6 Feb 2010, per...@pluto.rain.com wrote:


I wish to use  the \033]0;%s\007 sequence in a shell-script to
set the title of a terminal. But only if I am able to undo it.

My requirement is that this must be done without using anything
outside the base system.


There is an escape sequence which will cause the terminal to echo
back its current title, but it's a bit tricky to use given only
base-system tools because the echo ends with, IIRC, \007 rather
than \n.  It may be possible in some shells to temporarily set the
line-end character to \007.  You probably also want to (somehow)
cover problematic cases like terminals that don't reply to the
inquiry even though TERMCAP implies that they should.


% printf \033]0;Title Here\007

What's the sequence for reading the terminal title?

-Warren Block * Rapid City, South Dakota USA
___
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: Howto run privileged commands on login/logout

2010-02-06 Thread perryh
Erik Norgaard norga...@locolomo.org wrote:
 I'm playing around with diskless operation. I'd like to be able
 to run privileged commands when a user logins or logs out:

 - on login, nfs mount the user's home directory (ok, not critical,
 I can mount /home)

Or, better yet, use an automounter.

 - on logout a system reboot to clean up any temporary files left
 from the session.

I'm not aware of any existing, simple method to handle this part.
It might not be all that difficult to hack something into getty(8)
or init(8).  Another possibility would be to clean /tmp and /var/tmp
in the .logout script, which should not require any special privs.
___
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: Clarification Of In Place Upgrade Process

2010-02-06 Thread RW
On Sat, 06 Feb 2010 13:00:23 -0600
Tim Daneliuk tun...@tundraware.com wrote:

 When migrating from 6.x to 7.x and to do system refreshes within a
 given release branch, I did/do this:
 
   - Get sources
 - mergemaster -i
   - make buildworld buildkernel

I'm pretty sure you are supposed to install the kernel here and then
reboot into single user mode. Typically you can skip this kind of thing
but I wouldn't push my luck on a major upgrade

   - go single user
 - make installworld installkernel
 - reboot



 I now wish to do the same to get to the 8.x branch, BUT ... somewhere
 on USENET, someone commented that you have to also reinstall/rebuild
 all the packages/ports when you do this.  This was news to me.  Is
 there some reason the entire application base has to be reinstalled
 when moving to a new branch?  If so, has this always been the case or
 is it new for 8.x?  My 6.x - 7.x upgrade went flawlessly using the
 method above without touching the ports/packages tree.

It's prudent to do it. When you cross a major boundary your packages
will be linked to obsolete libraries that have been left behind until
you do a make delete-old-libs or make delete-old. They will continue to
work but may develop security problems, or conflicts as you
update piecemeal
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how to control upload data in bittorrent clients

2010-02-06 Thread RW
On Sat, 06 Feb 2010 23:14:45 +0100
Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote:


  1)  in the transmission web   it showing  downloading is 10  kbps
  to 30 kbpsbut uploading  it shows  50 to 92 kbps my question
  is  is it possible to  limit the uploading data rate , how can I do
  this ?

 
 Check out Daniel Hartmeier's excellent article on how to prioritize
 TCP ACKs (and other traffic). It will explain what you experience and
 solve the problem for you.

It's a good idea to handle this from within  transmission too.
Rate limiting works best at the TCP level.
___
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: backup terminal title

2010-02-06 Thread perryh
Warren Block wbl...@wonkity.com wrote:
 What's the sequence for reading the terminal title?

If I remembered it I'd have included it :)

The first 3 results from Googling xterm escape sequences are

  rtfm.etla.org/xterm/ctlseq.html

  www.faqs.org/docs/Linux-mini/Xterm-Title.html

  www.kitebird.com/csh-tcsh-book/ctlseqs.pdf

I'd expect it to be in at least one of them.

(#4 may be a miss, but the next 5 also look promising.)
___
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: backup terminal title

2010-02-06 Thread Warren Block

On Sat, 6 Feb 2010, per...@pluto.rain.com wrote:


Warren Block wbl...@wonkity.com wrote:

What's the sequence for reading the terminal title?


If I remembered it I'd have included it :)


I did some unsuccessful searching for query xterm title earlier today.


The first 3 results from Googling xterm escape sequences are

 rtfm.etla.org/xterm/ctlseq.html


That one has it:

printf \033];badexample\007

This sets the title in both xterm and Terminal.

printf \033[21;t\n

That brings back the title in Terminal, with a leading l... and in the 
keyboard buffer.  Doesn't work in xterm, possibly because xterm is 
pickier about the exact sequence.


-Warren Block * Rapid City, South Dakota USA
___
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: amd64: Fatal Trap 12 in high load situations

2010-02-06 Thread ms80
Am Saturday 06 February 2010 10:17:05 schrob ms80:
 Hi
 
 I have a problem installing / upgrading FreeBSD 8.0-release on a new
  machine.
 
 The computers specs are:
 
 cpu: AMD Phenom II X4
 board: Gigabyte MA790GPT-UD3H
 ram: 4x2GBytes DDR3/1333
 hdd: 2xMaxtor STM31000528AS
 nic: 4x Intel(R) PRO/1000
 
 and I'm running
 FreeBSD phenom2.localnet 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21
 15:02:08 UTC 2009
  r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
 
 During 'make buildworld' the machine regulary crashes with the following
 panic:
 
 Fatal trap 12: page fault while in kernel mode
 cpuid = 0; apic id = 00
 fault virtual adress  = 0x8
 fault code= supervisor write data, page not 
 present
 instruction pointer   = 0x20:0x80578591
 stack pointer = 0x28:0xff80eab94700
 frame pointer = 0x28:0xff80eab94720
 code segment  = base 0x0, limit 0xf, type 0x1b
   = DPL 0, pres 1, long 1, def32 0, gran 1
 processor eflags  = interrupt enabled, resume IOPL = 0
 current process   = 22039 (uudecode)
 trap number   = 12
 panic: pagefault
 cpuid = 0
 Uptime: 2h35m4s
 Physical memory: 8176 MB
 Dumping 2195 MB: 2180 2164 2148 2132 2116
 
 
 or this one, its from last night and the machine wrote a minidump before
 locking up:
 
 Fatal trap 12: page fault while in kernel mode
 cpuid = 0; apic id = 00
 fault virtual address = 0x8
 fault code= supervisor write data, page not 
 present
 instruction pointer   = 0x20:0x80578591
 stack pointer = 0x28:0xff80eab21500
 frame pointer = 0x28:0xff80eab21520
 code segment  = base 0x0, limit 0xf, type 0x1b
   = DPL 0, pres 1, long 1, def32 0, gran 1
 processor eflags  = interrupt enabled, resume, IOPL = 0
 current process   = 5238 (objcopy)
 trap number   = 12
 panic: page fault
 cpuid = 0
 Uptime: 1h15m45s
 Physical memory: 8176 MB
 Dumping 2148 MB: 2133 2117 2101 2085 2069 2053 2037 2021 2005 1989 1973
  1957 1941 1925 1909 1893 1877 1861 1845 1829 1813 1797 1781 1765 1749 1733
  1717 1701 1685 1669 1653 1637 1621 1605 1589 1573 1557 1541 1525 1509 1493
  1477 1461 1445 1429 1413 1397 1381 1365 1349 1333 1317 1301 1285 1269 1253
  1237 1221 1205 1189 1173 1157 1141 1125 1109 1093 1077 1061 1045 1029 1013
  997 981 965 949 933 917 901 885 869 853 837 821 805 789 773 757 741 725
  709 693 677 661 645 629 613 597 581 565 549 533 517 501 485 469 453 437
  421 405 389 373 357 341 325 309 293 277 261 245 229 213 197 181 165 149
  133 117 101 85 69 53 37 21 5
 
[snip]

I know, its kind of stupid to reply to my own mails, but for reference:
I edited loader.conf to contain 
ahci_load=YES

So far it works: The machine compiled all night and didn't crash.

I had the idea because yesterday while testing the proposal to lower the ddr3 
voltages, the machine crashed again. Additionally to the panic I'm already 
used to, I had a second panic in my core.txt.1: This was a fatal trap 1, 
referencing (current process) to irq 22. I checked what irq22 is and it is my 
atapci (ATI IXP700/800 SATA300 controller). Googling a bit around I found a 
tutorial how to activate ahci. I gave it a try and as said above: So far it 
seems to work.

regards

Sven
--
00
___
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: backup terminal title

2010-02-06 Thread Dominic Fandrey
per...@pluto.rain.com wrote:
 I wish to use  the \033]0;%s\007 sequence in a shell-script to
 set the title of a terminal. But only if I am able to undo it.

 My requirement is that this must be done without using anything
 outside the base system.
 
 There is an escape sequence which will cause the terminal to echo
 back its current title, but it's a bit tricky to use given only
 base-system tools because the echo ends with, IIRC, \007 rather
 than \n.  It may be possible in some shells to temporarily set the
 line-end character to \007.  You probably also want to (somehow)
 cover problematic cases like terminals that don't reply to the
 inquiry even though TERMCAP implies that they should.

That actually doesn't sound tricky at all, remember that the
original sequence to change the title also ends with \007.
Where can I find this magical sequence?

I've been trying to read:
http://www.xfree86.org/current/ctlseqs.html

But the Syntax is really cryptic.
___
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