When statically linked Abort trap: 6 (core dumped)
Hi all This is FreeBSD 9.1 on i386. My program works well without any issue when all libraries are dynamically linked. But when some libraries are statically link and run it develops: Abort trap: 6 (core dumped) How I compile and link: cc myprog.c -Wall -O \ -L. -ls1 -ls2 \ -lz -lm -lmd -lpthread \ -o myprog libs1.a and libs2.a are static libs. Any idea why? Many thanks in advance. Regards Unga ___ 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: When statically linked Abort trap: 6 (core dumped)
- Original Message - From: Matthew Seaman matt...@freebsd.org To: freebsd-questions@freebsd.org Cc: Sent: Monday, September 9, 2013 2:23 PM Subject: Re: When statically linked Abort trap: 6 (core dumped) On 09/09/13 13:21, Unga wrote: This is FreeBSD 9.1 on i386. My program works well without any issue when all libraries are dynamically linked. But when some libraries are statically link and run it develops: Abort trap: 6 (core dumped) How I compile and link: cc myprog.c -Wall -O \ -L. -ls1 -ls2 \ -lz -lm -lmd -lpthread \ -o myprog libs1.a and libs2.a are static libs. Any idea why? Not the foggiest, and we aren't going to be able to tell you anything sensible without a lot more detailed debugging information. I mean, between us we know a lot, but we are by no means omniscient. How about getting a back trace from the core file your program has produced? Cheers, Matthew Hi Matthew Sorry being not informative enough. 1. gdb ./myprog myprog.core Program terminated with signal 6, Aborted. : Loaded symbols for /libexec/ld-elf.so.1 #0 0x292e6297 in kill () from /lib/libc.so.7 2. truss ./myprog : getpid() = 0 (0x0) _umtx_op(0x2a4044ac,0x15,0x1,0x0,0x0,0x2a4520d0) = 0 (0x0) _umtx_op(0x281b7158,0xf,0x0,0x0,0x0,0x2a407f00) = 0 (0x0) SIGNAL 6 (SIGABRT) kill(4506,SIGABRT) = 0 (0x0) process exit, rval = 0 3. I'm trying to statically link relevant portions from following two libs for my app: /usr/local/lib/libssl.a /usr/local/lib/libcrypto.a Same error (Abort trap: 6) develops even if I use: /usr/lib/libssl.a /usr/lib/libcrypto.a 4. openssl-1.0.1_8 is installed here. 5. Please note, when the libssl.so (either one) dynamically linked no issue. 6. Does it mean libssl.a and libcrypto.a in FreeBSD 9.1 broken or I don't link it right? Please let me know what other info you need. Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Which is the public interface to use for ipfw when lagg(4)? [SOLVED]
Hi Mark Thanks for the reply. It worked. It was lagg1.Unga - Original Message - From: Mark Felder f...@feld.me To: freebsd-questions@freebsd.org Cc: Sent: Tuesday, June 25, 2013 2:29 PM Subject: Re: Which is the public interface to use for ipfw when lagg(4)? On Tue, Jun 25, 2013, at 7:13, Unga wrote: What is the interface should I use for the pif? Is it lagg1? The interface you should use is the interface the IPs are on. It doesn't matter what kind of interface it is. In this case it looks like lagg1. ___ 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
Which is the public interface to use for ipfw when lagg(4)?
Hi all My server runs FreeBSD 9.0 (i386). /etc/rc.conf shows: # cloned_interfaces=lagg0 lagg1 # ifconfig_em0=up ifconfig_em2=up ifconfig_lagg0=laggproto lacp laggport em0 laggport em2 ipv4_addrs_lagg0=someIP/26 # ifconfig_em1=up ifconfig_em3=up ifconfig_lagg1=laggproto lacp laggport em1 laggport em3 ipv4_addrs_lagg1=publicIP1/29 publicIP2/32 The server is publicly accessed using publicIP1 and publicIP2. In the ipfw rules: cmd=ipfw -q add pif=??? # Allow out ping $cmd 00100 allow icmp from any to any out via $pif keep-state What is the interface should I use for the pif? Is it lagg1? Best regards Unga ___ 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
ipfw+natd port forward does not work as intended
Hi all I'm on 192.168.1.62, the server running on 192.168.1.3 and listen to port 1234. I want any connection going out of my machine to port 1234 to port forward to 192.168.1.3:1234. But when I attempt to connect to 192.168.1.1:1234 , natd shows following verbose message: natd[2051]: Aliasing to 192.168.1.62, mtu 1500 bytes Out {default}[TCP] [TCP] 192.168.1.62:45642 - 192.168.1.1:1234 aliased to [TCP] 192.168.1.62:45642 - 192.168.1.1:1234 This is FreeBSD 8.1-RELEASE and the kernel is built with following options: options IPFIREWALL # Enable ipfw options IPFIREWALL_FORWARD # Enable ipfw forward options IPDIVERT /etc/rc.conf -- # Enable ipfw firewall firewall_enable=YES firewall_script=/etc/rc.firewall.test # Natd gateway_enable=YES natd_enable=YES natd_interface=msk0 natd_flags=-f /etc/natd.conf sysctl net.inet.ip.forwarding=1 /etc/rc.firewall.test --- #!/bin/sh IFACE=msk0 IPFW=/sbin/ipfw ${IPFW} -f flush ${IPFW} add 100 divert natd ip from any to any 1234 via ${IFACE} ${IPFW} add 6 permit ip from any to any /etc/natd.conf - port 8668 log verbose interface msk0 redirect_port tcp 192.168.1.3:1234 1234 Is there any configuration error above? Best regards Unga ___ 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
Bind99 stopped resolving for external queries
Hi all I'm running a FreeBSD 9.0-RELEASE based server. It used to work fine. But suddenly about 2 days ago stopped resolving DNS for external queries. From my laptop if I ping the server: ping www.mydoamin.com ping: cannot resolve www.mydoamin.com: Host name lookup failure But if I log in to the server and do the same ping, it works fine. As a fix, I have upgraded the Bind99 to the latest bind99-base-9.9.2, but it did not fix the issue. I don't see anything changed in my DNS server setup. Appreciate very much if any help could be extended in this regard to understand what went wrong in the server. Many thanks in advance. Best regards Unga ___ 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: Bind99 stopped resolving for external queries
Hi IIya Thank you for your reply. Hello, From my laptop if I ping the server: ping www.mydoamin.com ping: cannot resolve www.mydoamin.com: Host name lookup failure But if I log in to the server and do the same ping, it works fine. 1) check your laptop is configured to work with this DNS server (cat /etc/resolv.conf on laptop or ipconfig /all | findstr DNS in case of windows ) My laptop and the server are in two different countries. Btw, laptop also run FreeBSD. 2) check server is accessible (ping YOUR_SERVER_IP from laptop) Yes, the server is accessible (ping YOUR_SERVER_IP from the laptop. 3) check server is accessible via TCP/53 (telnet YOUR_SERVER_IP 53 from your laptop) No, there was a reverse DNS error here. It was pointing to the Reverse DNS server of the data centre. Now its been corrected: telnet YOUR_SERVER_IP 53 Trying YOUR_SERVER_IP... Connected to ns1.mydomain.com. Escape character is '^]'. 4) check firewall on server and/or devices between server and laptop, it may block requests No firewall on the server yet. 5) check your server is configured to use the same DNS: cat /etc/resolv.conf nameserver 127.0.0.1 nameserver other_ip1 nameserver other_ip2 Although the Reverse DNS is now been corrected, still cannot ping as from the laptop: ping www.mydomain.com ping: cannot resolve www.mydomain.com: Host name lookup failure Any ideas? Regards Unga ___ 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: Bind99 stopped resolving for external queries [SOLVED]
From: Unga unga...@yahoo.com To: Ilya Kazakevich kazakevichi...@gmail.com Cc: freebsd-questions@freebsd.org freebsd-questions@freebsd.org Sent: Wednesday, November 21, 2012 3:36 PM Subject: Re: Bind99 stopped resolving for external queries Hi IIya Thank you for your reply. Hello, From my laptop if I ping the server: ping www.mydoamin.com ping: cannot resolve www.mydoamin.com: Host name lookup failure But if I log in to the server and do the same ping, it works fine. 1) check your laptop is configured to work with this DNS server (cat /etc/resolv.conf on laptop or ipconfig /all | findstr DNS in case of windows ) My laptop and the server are in two different countries. Btw, laptop also run FreeBSD. 2) check server is accessible (ping YOUR_SERVER_IP from laptop) Yes, the server is accessible (ping YOUR_SERVER_IP from the laptop. 3) check server is accessible via TCP/53 (telnet YOUR_SERVER_IP 53 from your laptop) No, there was a reverse DNS error here. It was pointing to the Reverse DNS server of the data centre. Now its been corrected: telnet YOUR_SERVER_IP 53 Trying YOUR_SERVER_IP... Connected to ns1.mydomain.com. Escape character is '^]'. 4) check firewall on server and/or devices between server and laptop, it may block requests No firewall on the server yet. 5) check your server is configured to use the same DNS: cat /etc/resolv.conf nameserver 127.0.0.1 nameserver other_ip1 nameserver other_ip2 Although the Reverse DNS is now been corrected, still cannot ping as from the laptop: ping www.mydomain.com ping: cannot resolve www.mydomain.com: Host name lookup failure Any ideas? Regards Unga Hi all Found the problem. The domain name was expired 2 days ago. That was the last thing I expected :) Best regards Unga ___ 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: Segmentation fault in FreeBSD 9.0 flockfile ()
From: Robert Bonomi bon...@mail.r-bonomi.com To: freebsd-questions@freebsd.org Cc: Sent: Wednesday, May 2, 2012 6:38 AM Subject: Re: Segmentation fault in FreeBSD 9.0 flockfile () Unga unga...@yahoo.com wrote; From: Darren Baginski kick...@yandex.com Unga unga...@yahoo.com wrote: 01.05.2012, 22:08, Unga unga...@yahoo.com: Hi all I'm getting a Segmentation fault in FreeBSD 9.0 as follows for myprog.c: Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x28ebb062 in flockfile () from /lib/libc.so.7 [New Thread 29c04900 (LWP 100575/SDLTimer)] [New Thread 29c04300 (LWP 100416/myprog)] (gdb) (gdb) info threads * 2 Thread 29c04300 (LWP 100416/myprog) 0x28ebb062 in flockfile () from /lib/libc.so.7 1 Thread 29c04900 (LWP 100575/SDLTimer) 0x28e1527b in _umtx_op () from /lib/libc.so.7 (gdb) I don't use flockfile () directly in my program. Hi! Mind to share code snippet caused the problem? Hi Thanks for the reply. I have mentioned in my original post that neithe r I nor SDL use the flockfile () in the source. There was a _reason_ the prior poster asked about seeing your code. The information you provided is not adequate/sufficient for anyone to have any chance of helping you. Informationn that -is- necessary was therefore requested. What you don't use is irrelevant to solving the problem. To be any help one must figure out what you _did_ do -- which =indirectly= calls flockfile(). Your code calls something in 'libc' that calls flockfile(). You don't know what that something in your code is. Other eyes _might_ recognize it, -if- they saw what you were doing. Here is how to find out what does that calling, yourself. 1) recompile all the components of 'myprog' with the '-g' compiler option. 2) start 'script', so that you have a complete log of the debugger session. 3) load the debugger with 'myprog' as the program to be debugged. 4) set a breakpoinnt in the 'flockfile' function 5) 'run' the program 6) when it stops at flockfile() entry. use 'where' to see a stack trace. 7) 'display' each of the arguments to flockfile(). 9) go 'up' to the calling code. 9) repeat steps 7 and 8 util you reach 'your' code. 10) now 'continue' the program. If it immediately segfaults, this was the offending call. Otherwise, the program will stop aggain at another flockfile() invocation. repeat from step 7 -until- you get the segfault. If, from that debugger session, you still don't see anything wrong, post the log of the debugger session. There is a *remote* possibility that the program will run properly under the debugger, while it crashes when run directly. This has been known to happen when a program _uses_ a variable before initializing it. *IF* that happens, you will have to modify 'myprog' to add diagnostic output before and after each identified point (above) in your code that indirectly invokes flockfile() to find which is failing. In _that_ event, you =will= have to post the 'relevant' source-code from 'myprog', with the failing statement identified. Hopefully I have not offended anyone with my reply :) Very sorry if I did. My this FreeBSD 9.0 box is seems very messy. I have another issue that getaddrinfo(3) doesn't accept localhost. After installing FreeBSD 9.0, I installed KDE, then realised that the existing Intel display driver does not support my Intel Sandy Bridge based GPU. So I had to patch the kernel to support KMS based latest Intel driver, upgraded to Xorg to 7.5.2, etc. etc. Whole process was done multiple times as I was new to this complex upgrade. I presume, I should erase off the hard disk and reinstall everything cleanly and then retry my programs on FreeBSD 9.0. If the problem still persists, I'll surely do a detailed debug. Pls note, whole thing works well on FreeBSD 8.1. As this is time consuming and as per existing commitments, I only try this at least in another two weeks time. I will sure let the list know the outcome. Best regards Unga ___ 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
localhost not recognised in getaddrinfo(3) in FreeBSD 9.0-STABLE
Hi all Following code fragment works in FreeBSD 8.1-RELEASE, but not in FreeBSD 9.0-STABLE: error = getaddrinfo(localhost, port, hints, res0); if (error) { fprintf(stderr,getaddrinfo failed - %s\n, gai_strerror(error)); exit(1); } It complains: getaddrinfo failed - hostname nor servname provided, or not known Any idea why? Best regards Unga ___ 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
Segmentation fault in FreeBSD 9.0 flockfile ()
Hi all I'm getting a Segmentation fault in FreeBSD 9.0 as follows for myprog.c: Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x28ebb062 in flockfile () from /lib/libc.so.7 [New Thread 29c04900 (LWP 100575/SDLTimer)] [New Thread 29c04300 (LWP 100416/myprog)] (gdb) (gdb) info threads * 2 Thread 29c04300 (LWP 100416/myprog) 0x28ebb062 in flockfile () from /lib/libc.so.7 1 Thread 29c04900 (LWP 100575/SDLTimer) 0x28e1527b in _umtx_op () from /lib/libc.so.7 (gdb) I don't use flockfile () directly in my program. I use -lpthread. Same program runs without any issue on FreeBSD 8.1. Any idea what's going on? Best regards Unga ___ 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: Segmentation fault in FreeBSD 9.0 flockfile ()
From: Darren Baginski kick...@yandex.com To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org freebsd-questions@freebsd.org Sent: Tuesday, May 1, 2012 7:04 PM Subject: Re: Segmentation fault in FreeBSD 9.0 flockfile () Hi! Mind to share code snippet caused the problem? 01.05.2012, 22:08, Unga unga...@yahoo.com: Hi all I'm getting a Segmentation fault in FreeBSD 9.0 as follows for myprog.c: Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x28ebb062 in flockfile () from /lib/libc.so.7 [New Thread 29c04900 (LWP 100575/SDLTimer)] [New Thread 29c04300 (LWP 100416/myprog)] (gdb) (gdb) info threads * 2 Thread 29c04300 (LWP 100416/myprog) 0x28ebb062 in flockfile () from /lib/libc.so.7 1 Thread 29c04900 (LWP 100575/SDLTimer) 0x28e1527b in _umtx_op () from /lib/libc.so.7 (gdb) I don't use flockfile () directly in my program. Hi Thanks for the reply. I have mentioned in my original post that neither I nor SDL use the flockfile () in the source. Regards Unga ___ 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 dual-boot FreeBSD 9 with Linux?
- Original Message - From: Thomas Mueller mueller6...@bellsouth.net To: freebsd-questions@FreeBSD.org Cc: Sent: Saturday, October 29, 2011 4:47 AM Subject: Re: How to dual-boot FreeBSD 9 with Linux? Is any one by now successfully dual-booting FreeBSD 9 with Linux? I have tried with OpenSuse 11.4 with FreeBSD 9. OpenSuse installs Grub1 to mbr. Grub1 doesn't seem to support FreeBSD 9. It cannot recognise the file system +type. Any help in this regard is very much appreciated. Many thanks in advance. Unga Not yet, but I intend to, once I get Linux built and installed, possibly starting with a cross-compile from FreeBSD 9. On my older computer, i386 (32-bit), I dual-boot FreeBSD 8.2 and Linux (Slackware) using LILO, also FreeDOS on another hard disk, can even boot grub4dos and Plop (http://www.plop.at/) boot manager from LILO. Can you use rootnoverify with grub1 (you must mean grub 0.97)? Yes, it is 0.97. You could also try grub2, which is in the ports under sysutils. Is your hard disk partitioned MBR or GPT? Its MBR. My hard disk is partitioned GPT, I still can't boot the hard disk directly, but using the System Rescue CD (http://sysresccd.org/), I go to the Super Grub Disk in the floppy images, hit c to get to command prompt, and set root=(hd0,3) kfreebsd /boot/loader boot You would use the actual FreeBSD partition which will probably be different from (hd0,3). Tom Tom, thanks for the reply. I managed to get both OpenSUSE 11.4 and FreeBSD 9 dual-boot on i386 desktop computer. Unga ___ 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 dual-boot FreeBSD 9 with Linux?
Hi all Is any one by now successfully dual-booting FreeBSD 9 with Linux? I have tried with OpenSuse 11.4 with FreeBSD 9. OpenSuse installs Grub1 to mbr. Grub1 doesn't seem to support FreeBSD 9. It cannot recognise the file system type. Any help in this regard is very much appreciated. Many thanks in advance. Unga ___ 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 dual-boot FreeBSD 9 with Linux? [ SOLVED]
- Original Message - From: Carl Johnson ca...@peak.org To: freebsd-questions@freebsd.org Cc: Sent: Saturday, October 29, 2011 4:12 AM Subject: Re: How to dual-boot FreeBSD 9 with Linux? Unga unga...@yahoo.com writes: Hi all Is any one by now successfully dual-booting FreeBSD 9 with Linux? I have tried with OpenSuse 11.4 with FreeBSD 9. OpenSuse installs Grub1 to mbr. Grub1 doesn't seem to support FreeBSD 9. It cannot recognise the file system type. Any help in this regard is very much appreciated. It isn't very difficult and there are at least two ways to do it. Grub1 actually does support ffs and ufs2 file systems, but the linux distributions don't seem to include the drivers. If you can get the source, that should have all of them. I think that I just got the grub package from the FreeBSD file system and copied the additional drivers directly into my linux grub directory, but I am not sure now. The other way is to use the 'chainloader' command. You just specify the disk and partition (slice) with the root command, and then add the commands 'chainloader +1' and 'boot'. The chainloader command just means to boot whatever is at the first sector of the previously specified disk and slice. I think the first sector of a ufs2 file system just jumps to the loader. The menu items from mine are just: title FreeBSD /boot/loader root (hd1,2,a) kernel /boot/loader boot title FreeBSD chainloader root (hd1,2) chainloader +1 boot In my case, those specifies that they use the third slice on the second disk. The first menu item requires that you already have the 'ufs2_stage1_5' file in your grub directory. Hi Carl Thank you very much for the reply. Your second method (ie. chainloader) worked, but the grub still say file system type is unknown. The ufs2_stage1_5 is available in /boot/grub/. Since now I can have a working dual boot with Linux, I conclude this is solved. Best regards Unga ___ 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
Segmentation fault, _malloc_prefork () - debugging help needed
Hi all I'm developing an multi-threaded application on FreeBSD. When it is running for sometime, it develops a Segmentation fault. The ddd debugger shows following: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 296c6580 (LWP 100137)] 0x28ee390e in _malloc_prefork () from /lib/libc.so.7 How could I know the exact line in source where this issue develops? Many thanks in advance. Best regards Unga ___ 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 sync a file on FreeBSD?
Hi all How to sync a file on FreeBSD (esp. on 8.1) to disk? I used fsync(2), but does not immediately flush to disk. I want my writing to a file (a log file) immediately available to other users to read. Best regards Unga ___ 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 sync a file on FreeBSD? [SOLVED]
--- On Fri, 7/22/11, Pieter de Goeje pie...@degoeje.nl wrote: From: Pieter de Goeje pie...@degoeje.nl Subject: Re: How to sync a file on FreeBSD? To: freebsd-questions@freebsd.org Cc: Unga unga...@yahoo.com Date: Friday, July 22, 2011, 7:37 PM On Friday, July 22, 2011 08:44:00 AM Unga wrote: How to sync a file on FreeBSD (esp. on 8.1) to disk? I used fsync(2), but does not immediately flush to disk. I want my writing to a file (a log file) immediately available to other users to read. A file doesn't need to be synced to disk for other users to read the latest data. The application just needs to call write(2) and the data is available. It will be written to and read from the operating system's file cache. If you're using stdio you can force a write(2) by calling fflush(3). - Pieter Hi all Thanks for the replies. fflush(3) after fputs seems to work. Best regards Unga ___ 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: Transparent load balancing
--- On Tue, 7/12/11, Damien Fleuriot m...@my.gd wrote: From: Damien Fleuriot m...@my.gd Subject: Re: Transparent load balancing To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Tuesday, July 12, 2011, 4:11 PM On 7/11/11 6:49 PM, Unga wrote: Hi all I need to implement a transparent load balancing daemon in C. That is, the daemon accept a TCP connection, get more info from the client, and forward the communication transparently to another server to handle it. How this could be implemented on FreeBSD? What basic primitives I should study more? Many thanks in advance. Best regards Unga Hey up, 2 questions come to mind: 1/ get more info from the client - what kind of info ? 2/ have you considered HAProxy ? It does offer a TCP mode. Hi Damien and Chuck Appreciate for replying on this. I want to ask from the client, eg. where do you want to go?, If north, I want to forward to the north server, if south, to the south server. I need to get developed something probably similar to the Proto Balance (http://www.protonet.co.za/whitepaper.html). It says connections are transparently forwarded to an instance chosen by Proto Balance. I want my daemon to make that choice. Unga ___ 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
Transparent load balancing
Hi all I need to implement a transparent load balancing daemon in C. That is, the daemon accept a TCP connection, get more info from the client, and forward the communication transparently to another server to handle it. How this could be implemented on FreeBSD? What basic primitives I should study more? Many thanks in advance. Best regards Unga ___ 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: ipfw: getsockopt(IP_FW_ADD): Invalid argument
--- On Tue, 7/5/11, Ian Smith smi...@nimnet.asn.au wrote: Does anybody successfully use the ipfw fwd? If so in which FreeBSD version? Not I, but many do. On the face of it the rule looks correct. Do you have a TCP service running on localhost:1234 ? Does wlan0 exist? You may do better posting to the freebsd-ipfw list, with more information. cheers, Ian Hi Ian I have added 'options IPFIREWALL' and rebuilt all, now 'ipfw fwd' works well. So the 'options IPFIREWALL_FORWARD' alone is insufficient, the 'options IPFIREWALL' is also required. Thank you and all others who helped me in this regard. Cheers Unga ___ 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: ipfw: getsockopt(IP_FW_ADD): Invalid argument
--- On Tue, 7/5/11, Ian Smith smi...@nimnet.asn.au wrote: From: Ian Smith smi...@nimnet.asn.au Subject: Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Tuesday, July 5, 2011, 5:14 PM In freebsd-questions Digest, Vol 370, Issue 2, Message: 14 On Mon, 4 Jul 2011 09:11:07 -0700 (PDT) Unga unga...@yahoo.com wrote: --- On Mon, 7/4/11, Unga unga...@yahoo.com wrote: From: Unga unga...@yahoo.com Subject: ipfw: getsockopt(IP_FW_ADD): Invalid argument To: freebsd-questions@freebsd.org Date: Monday, July 4, 2011, 11:48 AM Hi all Following ipfw rule develop error indicated in the subject line: ipfw add 100 fwd 127.0.0.1,1234 tcp from any to any 1234 out via wlan0 What I want to do is forward any packet going to port 1234 to 127.0.0.1:1234. I have built the kernel with options IPFIREWALL_FORWARD. What's the error here? Is the rule incorrect? This is FreeBSD 8.1. Many thanks in advance. Unga Does anybody successfully use the ipfw fwd? If so in which FreeBSD version? Not I, but many do. On the face of it the rule looks correct. Do you have a TCP service running on localhost:1234 ? Does wlan0 exist? You may do better posting to the freebsd-ipfw list, with more information. cheers, Ian Hi Ian Thanks for the reply. I do have a daemon listening to the port 1234 on the local machine. The wlan0 exists and ip number 192.168.1.3 assigned. I'll write the freebsd-ipfw. Thank you. Unga ___ 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
ipfw: getsockopt(IP_FW_ADD): Invalid argument
Hi all Following ipfw rule develop error indicated in the subject line: ipfw add 100 fwd 127.0.0.1,1234 tcp from any to any 1234 out via ath0 What I want to do is forward any packet going to port 1234 to 127.0.0.1:1234. I have built the kernel with options IPFIREWALL_FORWARD. What's the error here? Is the rule incorrect? Many thanks in advance. Unga ___ 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: ipfw: getsockopt(IP_FW_ADD): Invalid argument
--- On Mon, 7/4/11, Unga unga...@yahoo.com wrote: From: Unga unga...@yahoo.com Subject: ipfw: getsockopt(IP_FW_ADD): Invalid argument To: freebsd-questions@freebsd.org Date: Monday, July 4, 2011, 11:48 AM Hi all Following ipfw rule develop error indicated in the subject line: ipfw add 100 fwd 127.0.0.1,1234 tcp from any to any 1234 out via wlan0 What I want to do is forward any packet going to port 1234 to 127.0.0.1:1234. I have built the kernel with options IPFIREWALL_FORWARD. What's the error here? Is the rule incorrect? This is FreeBSD 8.1. Many thanks in advance. Unga Does anybody successfully use the ipfw fwd? If so in which FreeBSD version? Unga ___ 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
ipfw: getsockopt(IP_FW_ADD): Invalid argument
Hi all Following ipfw rule develop error indicated in the subject line: ipfw add 100 fwd 127.0.0.1,1234 tcp from any to any 1234 out via wlan0 What I want to do is forward any packet going to port 1234 to 127.0.0.1:1234. I have built the kernel with options IPFIREWALL_FORWARD. What's the error here? Is the rule incorrect? This is FreeBSD 8.1. Many thanks in advance. Unga ___ 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
Concurrent Server example?
Hi all Sadly the Concurrent Servers section under Interprocess Communication in FreeBSD Developers' Handbook ends without a example server code. Can somebody kindly provide an example code for a Concurrent Server preferably with pthreads in C? Appreciate very much if the above mentioned section also could be updated. Many thanks in advance. Unga ___ 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 connect a projector to a FreeBSD laptop?
Hi all I have a laptop running FreeBSD 8.1 with X server 1.7.5. I need to connect a projector to this laptop to show a presentation. After connect the projector to the laptop, I had rebooted the laptop, the projector's screen just blink only. Could somebody please highlight to me how to successfully connect a projector and what configurations needs to be done? Many thanks in advance. Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Thunderbird 3.1.10 Connection Refused
Hi all I need to access an IMAP server at mail.server.com:45000. And the server uses a self-signed certificate. Since it is not possible to add an exemption, I have imported the mail server pem file. But the Thunderbird still complain Could not connect to mail server Acct-Name; the connection was refused. It doesn't come to the stage to ask the password. Server logs doesn't show any drop packets from the firewall. How could I solve this problem? Many thanks in advance. Unga ___ 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: Where is firefox-devel?
--- On Wed, 8/18/10, Beat Gaetzi b...@freebsd.org wrote: From: Beat Gaetzi b...@freebsd.org Subject: Re: Where is firefox-devel? To: FreeBSD Questions freebsd-questions@FreeBSD.org Cc: jhell jh...@dataix.net, Unga unga...@yahoo.com Date: Wednesday, August 18, 2010, 3:35 PM On 18.08.2010 04:21, jhell wrote: On 08/17/2010 14:04, Unga wrote: Hi all Could I know what is the complete web path for branches/experimental/www/firefox-devel/? This is mentioned in following mail: http://lists.freebsd.org/pipermail/freebsd-gecko/2010-August/001054.html Looks to me that its a local svn development repo for the freebsd-gecko project. You could checkout the port like this: # svn co https://trillian.chruetertee.ch/svn/freebsd-gecko/branches/experimental/www/firefox-devel/ Please note you need at least version 3.12.6 of security/nss and revision 1.21 of Mk/bsd.gecko.mk to build Firefox 4. Also this port does not contain a CONFLICT with Firefox 3.* as the experimental branch in our repository has a newer layout then the portstree. If you like to install Firefox 4 please deinstall Firefox 3.* first. We've also dropped FreeBSD 6.x support for Firefox 4. Please be aware that ports from the experimental branch could be broken on purpose or do not work/build so use it at your own risk :) HTH, Beat Hi Beat Thank you very much for the link and the info. That's exactly what I was looking for. Best regards Unga ___ 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: Does Opera-10.61.6430 play VP8/webm?
--- On Mon, 8/16/10, Caleb Stein caleb.st...@me.com wrote: From: Caleb Stein caleb.st...@me.com Subject: Re: Does Opera-10.61.6430 play VP8/webm? To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org freebsd-questions@freebsd.org Date: Monday, August 16, 2010, 10:14 PM On Aug 16, 2010, at 6:21 AM, Unga unga...@yahoo.com wrote: --- On Sun, 8/15/10, Caleb Stein caleb.st...@me.com wrote: From: Caleb Stein caleb.st...@me.com Subject: Re: Does Opera-10.61.6430 play VP8/webm? To: Unga unga...@yahoo.com Date: Sunday, August 15, 2010, 10:29 PM On Aug 15, 2010, at 3:39 AM, Unga unga...@yahoo.com wrote: Hi all I have installed Opera-10.61.6430 port on FreeBSD 8.1 on i386. It doesn't play Theora or webm video. Any idea why? Best regards Unga ___ 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 Install the 10.70 dev build. Where is this port available? I see only opera-devel-10.20_2,1. Regards Unga ___ 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 There is no port; download it from the Opera Desktop Team's My Opera page and run install in terminal. Ok, I have removed my existing Opera port and installed opera-10.70-6428.i386.freebsd.tar.bz2, but it still the same and doesn't play either Theora or Webm. Are you theoretically saying it should work or can you really play Webm videos on Opera web browser on FreeBSD? Best regards Unga ___ 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
Where is firefox-devel?
Hi all Could I know what is the complete web path for branches/experimental/www/firefox-devel/? This is mentioned in following mail: http://lists.freebsd.org/pipermail/freebsd-gecko/2010-August/001054.html Best regards Unga ___ 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: Does Opera-10.61.6430 play VP8/webm?
--- On Sun, 8/15/10, Caleb Stein caleb.st...@me.com wrote: From: Caleb Stein caleb.st...@me.com Subject: Re: Does Opera-10.61.6430 play VP8/webm? To: Unga unga...@yahoo.com Date: Sunday, August 15, 2010, 10:29 PM On Aug 15, 2010, at 3:39 AM, Unga unga...@yahoo.com wrote: Hi all I have installed Opera-10.61.6430 port on FreeBSD 8.1 on i386. It doesn't play Theora or webm video. Any idea why? Best regards Unga ___ 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 Install the 10.70 dev build. Where is this port available? I see only opera-devel-10.20_2,1. Regards Unga ___ 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
Does Opera-10.61.6430 play VP8/webm?
Hi all I have installed Opera-10.61.6430 port on FreeBSD 8.1 on i386. It doesn't play Theora or webm video. Any idea why? Best regards Unga ___ 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
Is KDE 4.4.5 on FreeBSD 8.1 this bad?
Hi all I have installed KDE 4.4.5 from ports (ie. with full compilation) on FreeBSD 8.1 on i386. Once HAL and DBUS is enabled in /etc/rc.conf, behaviour of KDE is surprisingly poor: 1. None of the desktop icons works to launch programs. Eg. Click or double click on Firefox icon does not launch Firefox. I have to right click on the desktop and click on Run Command and type firefox to run. 2. Once type firefox on the Run Command it doesn't appear until I shake the mouse! Once press enter, it doesn't run firefox till I shake the mouse again. The firefox comes in stages and every stage I have to shake the mouse to continue. Do others experience the same with KDE 4.4.5? Do I have to do some configurations to overcome this issue? Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Is KDE 4.4.5 on FreeBSD 8.1 this bad?
--- On Sat, 7/31/10, Warren Block wbl...@wonkity.com wrote: From: Warren Block wbl...@wonkity.com Subject: Re: Is KDE 4.4.5 on FreeBSD 8.1 this bad? To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Saturday, July 31, 2010, 11:53 PM On Sat, 31 Jul 2010, Unga wrote: Hi all I have installed KDE 4.4.5 from ports (ie. with full compilation) on FreeBSD 8.1 on i386. Once HAL and DBUS is enabled in /etc/rc.conf, behaviour of KDE is surprisingly poor: 2. Once type firefox on the Run Command it doesn't appear until I shake the mouse! Once press enter, it doesn't run firefox till I shake the mouse again. The firefox comes in stages and every stage I have to shake the mouse to continue. Remove Option AllowEmptyInput from your xorg.conf. Wow, that made the trick. It works well now. Thank you thousand times :) Best regards Unga ___ 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, snd_uaudio(4) and external DAC
Hi all Does anybody use the FreeBSD (especially 8.1), snd_uaudio(4) to feed digital music into an external DAC? Does snd_uaudio(4) work well to playback music? I use Amarok and OSS (Open Sound System). Could you also share your configuration info for me to understand how to setup this. Many thanks in advance. Best regards Unga ___ 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 mass recompile broken packages?
--- On Thu, 7/29/10, Volodymyr Kostyrko c.kw...@gmail.com wrote: From: Volodymyr Kostyrko c.kw...@gmail.com Subject: Re: How to mass recompile broken packages? To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Thursday, July 29, 2010, 11:00 PM 29.07.2010 17:31, Unga wrote: I'm using FreeBSD 8.1 on i386 machine. I have upgraded a package using portmanager, but the upgrade seems not successful. The required package is upgraded but all packages depend on the upgraded package were not recompiled. I have two questions regarding this: 1. How to list all packages that are broken now? 2. How to mass recompile all broken packages? You will need to install libchk from ports. After that: libchk | grep '^Unresolvable' | sed 's|.* in: ||' | xargs -n1 pkg_info -W | sed 's|.*by package ||' | sort -u | grep -v '^[?]$' rebuild You'll get 'rebuild' file listing all packages with broken binaries. You can use portmaster or portupgrade on it. Hi Thank you very much for the reply. I have 63 packages effected. How do I sort the rebuild file in the dependency order because the first line itself the compilation fails. I used portupgrade -f pkg. You don't need that. portupgrade can handle it. Just give it the whole list: portupgrade -f `cat rebuild` Ok, the portupgrade process was not fully automated, I had to manually compile few. Two packages still get listed in the rebuild file, I removed them and recompiled, but still get listed. One of the packages is firefox, but the firefox works well. Therefore, I conclude my broken packages recompilation is satisfactory. Thank you for all those who helped me. Best regards Unga ___ 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 mass recompile broken packages?
Hi all I'm using FreeBSD 8.1 on i386 machine. I have upgraded a package using portmanager, but the upgrade seems not successful. The required package is upgraded but all packages depend on the upgraded package were not recompiled. I have two questions regarding this: 1. How to list all packages that are broken now? 2. How to mass recompile all broken packages? Best regards Unga ___ 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 mass recompile broken packages?
--- On Thu, 7/29/10, Volodymyr Kostyrko c.kw...@gmail.com wrote: From: Volodymyr Kostyrko c.kw...@gmail.com Subject: Re: How to mass recompile broken packages? To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Thursday, July 29, 2010, 7:34 PM 29.07.2010 11:25, Unga wrote: Hi all I'm using FreeBSD 8.1 on i386 machine. I have upgraded a package using portmanager, but the upgrade seems not successful. The required package is upgraded but all packages depend on the upgraded package were not recompiled. I have two questions regarding this: 1. How to list all packages that are broken now? 2. How to mass recompile all broken packages? You will need to install libchk from ports. After that: libchk | grep '^Unresolvable' | sed 's|.* in: ||' | xargs -n1 pkg_info -W | sed 's|.*by package ||' | sort -u | grep -v '^[?]$' rebuild You'll get 'rebuild' file listing all packages with broken binaries. You can use portmaster or portupgrade on it. Hi Thank you very much for the reply. I have 63 packages effected. How do I sort the rebuild file in the dependency order because the first line itself the compilation fails. I used portupgrade -f pkg. Best regards Unga ___ 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 mass recompile broken packages?
--- On Thu, 7/29/10, Volodymyr Kostyrko c.kw...@gmail.com wrote: From: Volodymyr Kostyrko c.kw...@gmail.com Subject: Re: How to mass recompile broken packages? To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Thursday, July 29, 2010, 11:00 PM 29.07.2010 17:31, Unga wrote: I'm using FreeBSD 8.1 on i386 machine. I have upgraded a package using portmanager, but the upgrade seems not successful. The required package is upgraded but all packages depend on the upgraded package were not recompiled. I have two questions regarding this: 1. How to list all packages that are broken now? 2. How to mass recompile all broken packages? You will need to install libchk from ports. After that: libchk | grep '^Unresolvable' | sed 's|.* in: ||' | xargs -n1 pkg_info -W | sed 's|.*by package ||' | sort -u | grep -v '^[?]$' rebuild You'll get 'rebuild' file listing all packages with broken binaries. You can use portmaster or portupgrade on it. Hi Thank you very much for the reply. I have 63 packages effected. How do I sort the rebuild file in the dependency order because the first line itself the compilation fails. I used portupgrade -f pkg. You don't need that. portupgrade can handle it. Just give it the whole list: portupgrade -f `cat rebuild` Thank you very much again. The compilation is now progressing, it may take a while to complete. I'll update the you and the list on the outcome. Best regards Unga ___ 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
Is Mobile Intel HM57 Express chipset compatible with FreeBSD?
Hi all I'm planing to buy a Dell Vostro laptop which comes with a Mobile Intel HM57 Express chipset. Could I know from the list, is FreeBSD either 7.2 or 7.3 compatible with the above chipset? Above laptop comes with Nvidia Geforce 310M graphics chipset and I plan to install KDE 4.4 too, could I get a graphical desktop running FreeBSD 7 series? Many thanks in advance. Unga ___ 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 print using cups on FreeBSD? [SOLVED]
--- On Fri, 11/27/09, Patrick Lamaiziere patf...@davenulle.org wrote: From: Patrick Lamaiziere patf...@davenulle.org Subject: Re: How to print using cups on FreeBSD? To: freebsd-questions@freebsd.org Cc: Unga unga...@yahoo.com Date: Friday, November 27, 2009, 8:19 PM Le Thu, 26 Nov 2009 20:50:31 -0800 (PST), Unga unga...@yahoo.com a écrit : The same printer prints very well on a older Linux system with a older Gutenprint driver! What am I still missing? Try to change the usb mode, there are two modes : one use ulpt and one use unlpt. You can change it under cups (http://localhost:631) If this does not do the trick I don't know. Regards. ___ 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 Thanks Patrick, you knew enough :) That was the problem. Best regards Unga ___ 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 print using cups on FreeBSD?
--- On Fri, 11/27/09, Patrick Lamaiziere patf...@davenulle.org wrote: From: Patrick Lamaiziere patf...@davenulle.org Subject: Re: How to print using cups on FreeBSD? To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Friday, November 27, 2009, 8:19 AM Le Wed, 25 Nov 2009 21:15:07 -0800 (PST), Unga unga...@yahoo.com a écrit : Hi I'm trying to print using cups 1.3.10 on FreeBSD 7.2 on a Epson Stylus Photo R800 printer. It prints garbage! That is, it print some series of characters. My first question is, does cups work on FreeBSD to print? Yes. ... pkg_info | grep foomatic foomatic-db-20090530 Foomatic database foomatic-db-engine-4.0.1,2 Foomatic database engine gutenprint-foomatic-5.1.7_2 GutenPrint Printer Driver Looks good, according to linuxprinting.org the Gutenprint driver should work for your printer. I have followed this for cups configuration: http://www.freebsd.org/doc/en/articles/cups/printing-cups-configuring-server.html ls -l /dev/unlpt0 crw-rw 1 root cups 0, 155 Nov 26 12:23 /dev/unlpt0 ls -l /dev/ulpt0 crw-rw 1 root cups 0, 154 Nov 26 12:23 /dev/ulpt0 I don't have /dev/lpt* . I'm a member of cups group. Ok. How did you configure the printer under cups? Did you try the option usb / usb no reset for the usb port used by cups? Also check the cups logs (/var/log/cups/*) HTH, regards. Hi Thank you very much for the reply. Here is what shows on error_log: Listening to ::1:631 on fd 1... Listening to 127.0.0.1:631 on fd 3... Listening to /var/run/cups.sock on fd 4... Resuming new connection processing... [Job ???] Request file type is application/postscript. [Job 14] Adding start banner page none. [Job 14] Adding end banner page none. [Job 14] File of type application/postscript queued by unga. [Job 14] Queued on EPSON-R800 by unga. [Job 14] Started filter /usr/local/libexec/cups/filter/pstops (PID 1467) [Job 14] Started filter /usr/local/libexec/cups/filter/pstoraster (PID 1468) [Job 14] Started filter /usr/local/libexec/cups/filter/rastertogutenprint.5.1 (PID 1469) [Job 14] Started backend /usr/local/libexec/cups/backend/usb (PID 1470) [Job 14] Canceled by unga. Only error is on access_log: POST /printers/ HTTP/1.1 200 112 CUPS-Get-Default client-error-not-found As for your question, the printer is connected to a USB port and configured using the KDE 3.5 printer configuration utility. The same printer prints very well on a older Linux system with a older Gutenprint driver! What am I still missing? Regards Unga ___ 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 print using cups on FreeBSD?
Hi I'm trying to print using cups 1.3.10 on FreeBSD 7.2 on a Epson Stylus Photo R800 printer. It prints garbage! That is, it print some series of characters. My first question is, does cups work on FreeBSD to print? Here is my side information: pkg_info | grep cups cups-base-1.3.10_4 Common UNIX Printing System: Server cups-client-1.3.10_4 Common UNIX Printing System: Library cups cups-image-1.3.10_4 Common UNIX Printing System: Library cupsimage cups-pstoraster-8.15.4_4 Postscript interpreter for CUPS printing to non-PS printers gutenprint-cups-5.1.7_4 GutenPrint Printer Driver pkg_info | grep foomatic foomatic-db-20090530 Foomatic database foomatic-db-engine-4.0.1,2 Foomatic database engine gutenprint-foomatic-5.1.7_2 GutenPrint Printer Driver I have followed this for cups configuration: http://www.freebsd.org/doc/en/articles/cups/printing-cups-configuring-server.html ls -l /dev/unlpt0 crw-rw 1 root cups0, 155 Nov 26 12:23 /dev/unlpt0 ls -l /dev/ulpt0 crw-rw 1 root cups0, 154 Nov 26 12:23 /dev/ulpt0 I don't have /dev/lpt* . I'm a member of cups group. I'm using KDE 3.5.10. I have used KDE printer manager to print a test page after setting up the printer. So what other configurations do I need to do on FreeBSD to get the printing working? Best regards Unga ___ 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 find real CPU temperature?
Hi all I'm running FreeBSD 7.2 on Intel P4 computer. The lmmon -i shows 21C and when go to BIOS shows 65C! BIOS reading seems to be correct as the CPU heat pipe is very hot to the extent cannot touch. How do I read the real BIOS temperature readings when FreeBSD is running to check whether the computer is over heating? Unga ___ 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 find real CPU temperature?
--- On Wed, 8/5/09, Erik Norgaard norga...@locolomo.org wrote: From: Erik Norgaard norga...@locolomo.org Subject: Re: How to find real CPU temperature? To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Wednesday, August 5, 2009, 7:03 PM Unga wrote: Hi all I'm running FreeBSD 7.2 on Intel P4 computer. The lmmon -i shows 21C and when go to BIOS shows 65C! BIOS reading seems to be correct as the CPU heat pipe is very hot to the extent cannot touch. How do I read the real BIOS temperature readings when FreeBSD is running to check whether the computer is over heating? $ sysctl hw.acpi.thermal.tz0.temperature on my computer shows 56C Here is what it show on my computer: sysctl -a | grep hw.acpi.thermal hw.acpi.thermal.min_runtime: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.user_override: 0 hw.acpi.thermal.tz0.temperature: 19.0C hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.passive_cooling: 1 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0._PSV: 90.0C hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._CRT: 90.0C hw.acpi.thermal.tz0._ACx: 90.0C -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz0._TC1: 4 hw.acpi.thermal.tz0._TC2: 3 hw.acpi.thermal.tz0._TSP: 60 so which is the CPU temperature, 19.0C or 90.0C? Where does it documented what hw.acpi.thermal.tz0.temperature means? Unga ___ 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 find what symlink points to?
Hi all I need to remove some unwanted symlinks on /dev using a C program. The struct dirent only shows the symlink name, how do I find what that symlink points to for verification purpose? Regards Unga ___ 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 find what symlink points to?
--- On Mon, 7/27/09, Erik Trulsson ertr1...@student.uu.se wrote: From: Erik Trulsson ertr1...@student.uu.se Subject: Re: How to find what symlink points to? To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Monday, July 27, 2009, 9:36 PM On Mon, Jul 27, 2009 at 05:44:59AM -0700, Unga wrote: Hi all I need to remove some unwanted symlinks on /dev using a C program. The struct dirent only shows the symlink name, how do I find what that symlink points to for verification purpose? By using the readlink(2) system call. But readlink(2) fails with errno set to 2. Can readlink(2) use with dev nodes? Unga ___ 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 find what symlink points to?
--- On Tue, 7/28/09, Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: From: Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net Subject: Re: How to find what symlink points to? To: freebsd-questions@freebsd.org Date: Tuesday, July 28, 2009, 1:25 AM On Monday 27 July 2009 05:45:13 Unga wrote: Hi all I need to remove some unwanted symlinks on /dev using a C program. The struct dirent only shows the symlink name, how do I find what that symlink points to for verification purpose? By using the readlink(2) system call. But readlink(2) fails with errno set to 2. Can readlink(2) use with dev nodes? Works for me. errno 2 is ENOENT (No such file or directory). I would inspect if your request path points to the right location. % ./rl /dev/stderr /dev/stderr = fd/2 % cat rl.c #include sys/types.h #include sys/param.h #include unistd.h #include stdio.h #include stdlib.h #include string.h #include err.h int main(int argc, char **argv) { char path[MAXPATHLEN], buf[MAXPATHLEN+1]; ssize_t res; if( argc != 2 ) exit(67); (void)strlcpy(path, argv[1], sizeof(path)); res = readlink(path, buf, sizeof(buf)); if( res 0 ) err(EXIT_FAILURE, readlink()); buf[MAXPATHLEN] = '\0'; printf(%s = %s\n, path, buf); return (0); } Thanks everybody for valuable replies. In fact, I also used readlink(2) but fed the symlink path directly from dirent, which was partial, readlink(2) requires full path. Unga ___ 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 modify the default unmount time of automounter (amd)?
Hi all I'm using the amd that comes with the FreeBSD 7.2 i386. I want to automatically mount and unmount an USB thumbdrive. Mounting part work well, but the unmounting part does work as specified. I have set utimeout=1 but amd still take 120 seconds to automatically unmount. cat /etc/rc.conf amd_flags=-a /.amd_mnt -l syslog -x all /media /etc/amd.map amd_enable=YES cat /etc/amd.conf [ global ] map_type = file [ /media ] map_name = /etc/amd.map cat /etc/amd.map /defaults type:=host;fs:=${autodir}/${rhost}/host;rhost:=${key} * opts:=rw,grpid,resvport,vers=3,proto=tcp,nosuid,nodev,utimeout=1 thumdrive type:=pcfs;opts:=longname;dev:=/dev/da0s1;fs:=${autodir}/thumdriv I want to automatically unmount of 1 second of inactivity. Have I specified the unmounting incorrectly? Thanks in advance. Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
firefox 3.5 exited on signal 12
Hi all I have installed firefox 3.5,1 port (make install clean) on FreeBSD 7.2 i386. Firefox crashes when it try to display Theora video (http://www-cs-faculty.stanford.edu/~nick/theora-soccer/) with following message on logs: kernel: pid 1106 (firefox-bin), uid 1001: exited on signal 12 (core dumped) Do others experience it? Is there a fix for this? Best regards Unga ___ 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: Cannot login as root, exited on signal 11
--- On Tue, 6/16/09, Ruben de Groot mai...@bzerk.org wrote: From: Ruben de Groot mai...@bzerk.org Subject: Re: Cannot login as root, exited on signal 11 To: Glen Barber glen.j.bar...@gmail.com Cc: Unga unga...@yahoo.com, freebsd-questions@freebsd.org Date: Tuesday, June 16, 2009, 4:06 PM On Mon, Jun 15, 2009 at 02:37:54PM -0400, Glen Barber typed: On Mon, Jun 15, 2009 at 9:27 AM, Ruben de Grootmai...@bzerk.org wrote: If so, reboot into single-user mode, and change it back. Why reboot? You can su -s /bin/tcsh How can you change the shell if you cannot log in? That's why I suggested single-user mode. He said he could log in as a normal user. Yes, normal users can log in. Its only root cannot. Normal user, after log in, can su to root but su -l develops the same problem, the child process die. All users use bash shell. What is su -l requires that su doesn't? Best regards Unga ___ 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: Cannot login as root, exited on signal 11
--- On Tue, 6/16/09, Tim Judd taj...@gmail.com wrote: From: Tim Judd taj...@gmail.com Subject: Re: Cannot login as root, exited on signal 11 To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org, mai...@bzerk.org Date: Tuesday, June 16, 2009, 10:10 PM su -l discards the previous environment and loads a new environment. It's as if you're logging in as root (-l) running su without -l will elevate your priveledges without this same problem, you keep the same shell. Fix your shell problems via this way (or single user as originally described), and be careful next time. Hi Tim, thanks for the reply. I have not identified yet the problem to be solved. If you refer that I use bash for root is the problem, there is no difference by switching root's shell to sh. With sh as the shell for root: 1. Still cannot login as root from the console. Child process died error. 2. su -l doesn't work, child process died error. 3. su works. But the prompt is [...@host name]# Why it doesn't print r...@host? whoami shows root. What is the problem you think that I should fix? any ideas? any thread related error as the child process die when in root? Best regards Unga ___ 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: Cannot login as root, exited on signal 11
--- On Wed, 6/17/09, Tim Judd taj...@gmail.com wrote: From: Tim Judd taj...@gmail.com Subject: Re: Cannot login as root, exited on signal 11 To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Wednesday, June 17, 2009, 2:51 AM On 6/16/09, Unga unga...@yahoo.com wrote: --- On Tue, 6/16/09, Tim Judd taj...@gmail.com wrote: From: Tim Judd taj...@gmail.com Subject: Re: Cannot login as root, exited on signal 11 To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org, mai...@bzerk.org Date: Tuesday, June 16, 2009, 10:10 PM su -l discards the previous environment and loads a new environment. It's as if you're logging in as root (-l) running su without -l will elevate your priveledges without this same problem, you keep the same shell. Fix your shell problems via this way (or single user as originally described), and be careful next time. Hi Tim, thanks for the reply. I have not identified yet the problem to be solved. If you refer that I use bash for root is the problem, there is no difference by switching root's shell to sh. With sh as the shell for root: 1. Still cannot login as root from the console. Child process died error. 2. su -l doesn't work, child process died error. 3. su works. But the prompt is [...@host name]# Why it doesn't print r...@host? whoami shows root. What is the problem you think that I should fix? any ideas? any thread related error as the child process die when in root? Best regards Unga Unga, This is the first time I've read from you that you were using the recommended shell. Given you're running the recommended shell and you're still having problems sporadically (users = ok, root = not), I'd start the invasive discovery why it's not working. First is system-wide: is your kernel version and userland in sync? Such as RELENG_7 userland with RELENG_7 kernel? Running non-synchronized kernel and userland (aka world) is not supported* and will cause problems. Back to the individualized problem -- if you backup your root's dotfiles, and then remove or rename them, does the problem remain? What if you set root's home directory to one of your user's home directory as a test to see if it's the dotfiles? These would be my next steps to diagnose what might be the problem. Good luck. * - Only supported is when you're upgrading and have a newer kernel just long enough to install world. Dear Tim I suspect this is a build error. Therefore, let me rebuild and see whether the problem go away. I'm going to do a careful rebuild more towards the end of the week. I'll let the list and you know the result. If the problem still persists, I really like to know what causes it. Best regards Unga ___ 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: Cannot login as root, exited on signal 11
--- On Mon, 6/15/09, Ruben de Groot mai...@bzerk.org wrote: From: Ruben de Groot mai...@bzerk.org Subject: Re: Cannot login as root, exited on signal 11 To: Glen Barber glen.j.bar...@gmail.com Cc: Unga unga...@yahoo.com, freebsd-questions@freebsd.org Date: Monday, June 15, 2009, 9:27 PM On Sun, Jun 14, 2009 at 04:11:12PM -0400, Glen Barber typed: On Sun, Jun 14, 2009 at 9:06 AM, Ungaunga...@yahoo.com wrote: Hi all This is FreeBSD 7.2 on i386. After a custom compiled from sources installation, root cannot log in but normal users can log in. Here are the messages in /var/log/messages: Jun 14 00:44:58 xxx login: ROOT LOGIN (root) ON ttyv0 Jun 14 00:44:58 xxx kernel: pid 757 (login), uid 0: exited on signal 11 Jun 14 00:45:00 xxx kernel: pid 760 (cron), uid 0: exited on signal 11 (core dumped) Note, cron also fails. When try to log in, it checks the password correctly, ie. if I type a wrong password for root, it says Incorrect ..., but when type the correct password, it simply come out and prompts the login prompt. It looks like something is missing required for the root to log in. I'm using bash shell. Any ideas? I'll make the (probably correct) assumption that you've changed root's default shell to bash. If so, reboot into single-user mode, and change it back. Why reboot? You can su -s /bin/tcsh This is one of the best reasons not to screw around with the root account. Agree. I should bookmark this thread for when (not if) this discussion comes up again. Thank you guys for replies. Now I have more info. I have put some print messages to login.c and libutil/login_class.c source files. Here what it shows: login: pam_session_established, going to fork. login: Master process ID: 763 login: We are now in the child process! kernel: pid 868 (login), uid 0: exited on signal 11 login: Child process ID: 868 login: export_pam_environment() done. login: We're done with PAM now login: username: root login: setlogin() done login: lc: root login: pw_uid: 0 login: We are now inside setusercontext() What happens is, after the child process is forked in login, it die due to some reason. But the child process continue up to setusercontext(). That We are now inside setusercontext() is the first statement in the setusercontext(). It doesn't execute up to LOGIN_SETGROUP after that. But the strange thing is whole thing get executed well for normal users. The cron also fail due to same reason. Btw, regarding bash for root, I'm using that on other FreeBSD machines for long time. Any ideas for whats going on? Regards Unga ___ 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
Cannot login as root, exited on signal 11
Hi all This is FreeBSD 7.2 on i386. After a custom compiled from sources installation, root cannot log in but normal users can log in. Here are the messages in /var/log/messages: Jun 14 00:44:58 xxx login: ROOT LOGIN (root) ON ttyv0 Jun 14 00:44:58 xxx kernel: pid 757 (login), uid 0: exited on signal 11 Jun 14 00:45:00 xxx kernel: pid 760 (cron), uid 0: exited on signal 11 (core dumped) Note, cron also fails. When try to log in, it checks the password correctly, ie. if I type a wrong password for root, it says Incorrect ..., but when type the correct password, it simply come out and prompts the login prompt. It looks like something is missing required for the root to log in. I'm using bash shell. Any ideas? Many thanks in advance. Best regards Unga ___ 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 remove redundant login in a FreeBSD live CD?
--- On Tue, 5/26/09, Manolis Kiagias son...@otenet.gr wrote: From: Manolis Kiagias son...@otenet.gr Subject: Re: How to remove redundant login in a FreeBSD live CD? To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Tuesday, May 26, 2009, 6:48 PM Unga wrote: Hi all I made a live CD based on FreeBSD 7.2. When the CD boots, it prompts for a login. Type root without password can log in. It seems this login is redundant. How to remove this redundant login? Best regards Unga I found this info in a text file of mine (copied from somewhere, but don't remember the source). I remember I used it once to create an autologin workstation for someone who really wouldn't want to know anything about usernames, password or this while unix type of thing. And as I recall it worked ;) 1. Add to the /etc/gettytab file the following strings: test:\ :al=test:ht:np:sp#115200: Explanation: test:\ - entry name, autologin will use this username; al=test - autologin username; ht - terminal has real tabs; np - 8-bit chars; (optional) sp#115200 - line speed; 2. Edit /etc/ttys file: ttyv0 /usr/libexec/getty test cons25 on secure Change 'Pc' with test. Thank you, Manolis. Your method worked. Best regards Unga ___ 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 remove redundant login in a FreeBSD live CD?
Hi all I made a live CD based on FreeBSD 7.2. When the CD boots, it prompts for a login. Type root without password can log in. It seems this login is redundant. How to remove this redundant login? Best regards Unga ___ 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 say this in Bash?
Dear all This may be slightly OT, but I'm using on a FreeBSD machine. How to convert following into bash style? echo ${X} ${Z} echo ${Y} ${Z} Best regards Unga ___ 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 say this in Bash?
--- On Mon, 5/25/09, Matthew Seaman m.sea...@infracaninophile.co.uk wrote: From: Matthew Seaman m.sea...@infracaninophile.co.uk Subject: Re: How to say this in Bash? To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Monday, May 25, 2009, 8:10 PM Unga wrote: Dear all This may be slightly OT, but I'm using on a FreeBSD machine. How to convert following into bash style? echo ${X} ${Z} echo ${Y} ${Z} Exactly the same in posix standard /bin/sh or in bash. bash(1) should be capable of running any compliant /bin/sh script directly. The converse is not generally true, so for maximum portability write according to sh(1) and avoid bash-isms. If you're asking about converting csh to bourne shell, then that's a whole other kettle of fish. The echo commands above just happen to be the same in either language, but that's one of the few points of confluence between the two. Typically you'ld have to know both languages and laboriously translate between them. Here is what happens in bash shell: $ echo ${X} ${Z} bash: ${Z}: ambiguous redirect Best regards Unga ___ 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 say this in Bash?
--- On Mon, 5/25/09, Jerry ges...@yahoo.com wrote: From: Jerry ges...@yahoo.com Subject: Re: How to say this in Bash? To: freebsd-questions@freebsd.org Date: Monday, May 25, 2009, 11:22 PM On Mon, 25 May 2009 07:36:45 -0700 (PDT) Unga unga...@yahoo.com wrote: Here is what happens in bash shell: $ echo ${X} ${Z} bash: ${Z}: ambiguous redirect Perhaps I am misinterpreting your question; however, if I define both ${X} and ${Z} in a script prior to running your snippet, I do not receive any error message. Could you show more info on how you are attempting to run this snippet? $ X=' XX1=YES XX2=YES ' $ echo $X XX1=YES XX2=YES $ $ Y=' YY1=YES YY2=YES ' $ echo $Y YY1=YES YY2=YES $ $ echo ${X} ${Z} bash: ${Z}: ambiguous redirect I want to append all variables in X and Y into Z so that echo $Z should be: XX1=YES XX2=YES YY1=YES YY2=YES I'm doing everything in command line not using any scripts. Regards Unga ___ 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 say this in Bash?
--- On Tue, 5/26/09, Matthew Seaman m.sea...@infracaninophile.co.uk wrote: From: Matthew Seaman m.sea...@infracaninophile.co.uk Subject: Re: How to say this in Bash? To: Unga unga...@yahoo.com Cc: freebsd-questions@freebsd.org Date: Tuesday, May 26, 2009, 1:20 AM Unga wrote: --- On Mon, 5/25/09, Jerry ges...@yahoo.com wrote: From: Jerry ges...@yahoo.com Subject: Re: How to say this in Bash? To: freebsd-questions@freebsd.org Date: Monday, May 25, 2009, 11:22 PM On Mon, 25 May 2009 07:36:45 -0700 (PDT) Unga unga...@yahoo.com wrote: Here is what happens in bash shell: $ echo ${X} ${Z} bash: ${Z}: ambiguous redirect Perhaps I am misinterpreting your question; however, if I define both ${X} and ${Z} in a script prior to running your snippet, I do not receive any error message. Could you show more info on how you are attempting to run this snippet? $ X=' XX1=YES XX2=YES ' $ echo $X XX1=YES XX2=YES $ $ Y=' YY1=YES YY2=YES ' $ echo $Y YY1=YES YY2=YES $ $ echo ${X} ${Z} bash: ${Z}: ambiguous redirect I want to append all variables in X and Y into Z so that echo $Z should be: XX1=YES XX2=YES YY1=YES YY2=YES I'm doing everything in command line not using any scripts. That's not how you set a variable. Do it like this: Z=${X} ${Y} You're mixing up variable initialisation with output to files. Ok, this solves the issue. Thanks all for helping me in this regard. Best regards Unga ___ 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
Graphviz port compilation error
Hi all This is FreeBSD 7.1 on i386. make install clean on /usr/ports/x11/kde3 develops a compilation error in /usr/ports/graphics/graphviz with following error message: *** [libgv_tcl_la-gv_tcl.lo] Error 1 I have refreshed the port tree and gave it a try, but its still develops the same error. The graphviz version is 2.20.3. What could I do now? Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: FreeBSD cannot power down
--- On Tue, 12/2/08, Unga [EMAIL PROTECTED] wrote: From: Unga [EMAIL PROTECTED] Subject: FreeBSD cannot power down To: freebsd-questions@freebsd.org Date: Tuesday, December 2, 2008, 11:22 PM Hi all After a kernel recompilation on i386 RELENG_7 (not the latest), I cannot power down the machine. kldstat shows acpi.ko is loaded. It used to switch off but now the shutdown -p now halts the system with following messages: The operating system has halted. Please press any key to reboot. What else could I check to identify the cause? Appreciate your ideas on this. I had a look at source code. The program flow seems to be is as follows: shutdown = (signals) init = reboot() = boot() = shutdown_final = shutdown_halt() = cpu_halt() I did not see which function is called to request a power down. The __asm__ (hlt) doesn't power down, isn't it? Could you guys help me to identify how shutdown request a power down. Many thanks in advance. Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD cannot power down
Hi all After a kernel recompilation on i386 RELENG_7 (not the latest), I cannot power down the machine. kldstat shows acpi.ko is loaded. It used to switch off but now the shutdown -p now halts the system with following messages: The operating system has halted. Please press any key to reboot. What else could I check to identify the cause? Appreciate your ideas on this. Kind regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
getpriority(2) and rtprio(2) implementation
Hi all I need to study the implementation of getpriority(2) and rtprio(2) system calls. Appreciate if somebody could point me to where these system calls are implemented in FreeBSD source tree, that is, in which file/s. Many thanks in advance. Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: getpriority(2) and rtprio(2) implementation
--- On Wed, 11/26/08, Polytropon [EMAIL PROTECTED] wrote: From: Polytropon [EMAIL PROTECTED] Subject: Re: getpriority(2) and rtprio(2) implementation To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Date: Wednesday, November 26, 2008, 2:41 PM On Tue, 25 Nov 2008 20:50:21 -0800 (PST), Unga [EMAIL PROTECTED] wrote: Hi all I need to study the implementation of getpriority(2) and rtprio(2) system calls. Appreciate if somebody could point me to where these system calls are implemented in FreeBSD source tree, that is, in which file/s. getpriority() in /usr/src/sys/kern/kern_resource.c lines 88 cont. rtprio() should be around there, too, /usr/src/sys/kern/syscalls.master I hope this is what you've been asking for. :-) Yes, it is. Thank you very much. Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: GRUB: Filesystem type unknown (ufs2)
--- On Thu, 11/13/08, Unga [EMAIL PROTECTED] wrote: From: Unga [EMAIL PROTECTED] Subject: GRUB: Filesystem type unknown (ufs2) To: freebsd-questions@FreeBSD.org Date: Thursday, November 13, 2008, 6:24 PM Hi all I have compiled and installed grub-0.97.tar.gz on FreeBSD 7.0 (i386). It shows the grub cannot recognize ufs2 file systems. grub root (hd1,0, Possible partitions are: Partition num: 0, [BSD sub-partitions immediately follow] BSD Partition num: 'a', Filesystem type unknown, partition type 0xa5 BSD Partition num: 'b', Filesystem type unknown, partition type 0xa5 BSD Partition num: 'd', Filesystem type unknown, partition type 0xa5 BSD Partition num: 'e', Filesystem type unknown, partition type 0xa5 BSD Partition num: 'f', Filesystem type unknown, partition type 0xa5 All stage1, stage2 and *_stage1_5 are in /boot/grub/. The fstype used for bsdlabel for b is swap and for others its 4.2BSD. Files systems were created as follows: newfs -U /dev/ad2s1a newfs /dev/ad2s1d newfs -U /dev/ad2s1e newfs -U /dev/ad2s1f Ok, found the problem. Its the newfs. The problem is GRUB cannot recognize ufs2 file systems created by newfs. The GRUB can recognize ufs2 file systems created by sysinstall. I have even tried newfs -O 2 -U /dev/ad2s1a, the GRUB still cannot recognize ufs2 file systems. Now the question is, how to properly create a ufs2 file system manually? Is it by newfs? Also appreciate if someone could let me know where does it create ufs2 file systems in sysinstall. Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: GRUB: Filesystem type unknown (ufs2)
--- On Thu, 11/13/08, Jeremy Chadwick [EMAIL PROTECTED] wrote: How about asking the GNU GRUB folks if GRUB 0.97 supports UFS2? It seems some old version of GRUB on a old version of FreeBSD has worked: http://lists.freebsd.org/pipermail/freebsd-hackers/2004-May/006944.html Also, GRUB is up to 1.96, and does work with amd64. The port is horribly outdated. I don't mind try GRUB 1.96. The problem is I have never used GRUB2 and I have no idea how to configure it. Is there a good notes/documentation on how to use GRUB2? What I need basically is where to put files (eg. stage1, stage2 and *_stage1_5 of GRUB1 in /boot/grub/.) and a sample configuration file. Anyway meanwhile I'll try to find some documentation. ftp://alpha.gnu.org/gnu/grub/ I got my file from above location. Regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: GRUB: Filesystem type unknown (ufs2)
--- On Thu, 11/13/08, Pieter de Goeje [EMAIL PROTECTED] wrote: I've used GRUB in the past to boot FreeBSD. The GRUB boot directory was located on the FreeBSD root partition, so it can work. I did use the port though. Now the issue is the root partition itself cannot access. Were your partitions ufs2? Which version of GRUB you used? Any possibility to give it a try again? Regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: GRUB: Filesystem type unknown (ufs2)
--- On Thu, 11/13/08, Jeremy Chadwick [EMAIL PROTECTED] wrote: From: Jeremy Chadwick [EMAIL PROTECTED] Subject: Re: GRUB: Filesystem type unknown (ufs2) To: Unga [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Date: Thursday, November 13, 2008, 7:21 PM On Thu, Nov 13, 2008 at 03:16:40AM -0800, Unga wrote: --- On Thu, 11/13/08, Jeremy Chadwick [EMAIL PROTECTED] wrote: How about asking the GNU GRUB folks if GRUB 0.97 supports UFS2? It seems some old version of GRUB on a old version of FreeBSD has worked: http://lists.freebsd.org/pipermail/freebsd-hackers/2004-May/006944.html Also, GRUB is up to 1.96, and does work with amd64. The port is horribly outdated. I don't mind try GRUB 1.96. The problem is I have never used GRUB2 and I have no idea how to configure it. Is there a good notes/documentation on how to use GRUB2? What I need basically is where to put files (eg. stage1, stage2 and *_stage1_5 of GRUB1 in /boot/grub/.) and a sample configuration file. Anyway meanwhile I'll try to find some documentation. ftp://alpha.gnu.org/gnu/grub/ I got my file from above location. I think these kinds of questions should probably go to the GNU GRUB folks though, don't you think? I don't mean to sound like I'm stepping on your efforts, but the sysutils/grub port has very little to it (meaning, issues/problems of this type should very likely be issues with GRUB itself and not with the port or FreeBSD). Well, I thought FreeBSD guys use GRUB. Its easy to communicate with those who use FreeBSD rather than those who use Linux and discuss mostly on a theoretical basis. I mostly wanted to know does GRUB works for other FreeBSD users. If so, I could investigate what went wrong on mine. Btw, I did not use the port, its straight away compiled from sources. That I mentioned as the first line in my original post. Regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
GRUB: Filesystem type unknown (ufs2)
Hi all I have compiled and installed grub-0.97.tar.gz on FreeBSD 7.0 (i386). It shows the grub cannot recognize ufs2 file systems. grub root (hd1,0, Possible partitions are: Partition num: 0, [BSD sub-partitions immediately follow] BSD Partition num: 'a', Filesystem type unknown, partition type 0xa5 BSD Partition num: 'b', Filesystem type unknown, partition type 0xa5 BSD Partition num: 'd', Filesystem type unknown, partition type 0xa5 BSD Partition num: 'e', Filesystem type unknown, partition type 0xa5 BSD Partition num: 'f', Filesystem type unknown, partition type 0xa5 All stage1, stage2 and *_stage1_5 are in /boot/grub/. The fstype used for bsdlabel for b is swap and for others its 4.2BSD. Files systems were created as follows: newfs -U /dev/ad2s1a newfs /dev/ad2s1d newfs -U /dev/ad2s1e newfs -U /dev/ad2s1f Do others experience this issue? Do I need to patch the Grub to recognize ufs2 file systems? Your reply is very much appreciated. Kind regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: No pam_module.so found
--- On Mon, 11/10/08, Dag-Erling Smørgrav [EMAIL PROTECTED] wrote: From: Dag-Erling Smørgrav [EMAIL PROTECTED] Subject: Re: No pam_module.so found To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Date: Monday, November 10, 2008, 2:30 AM Unga [EMAIL PROTECTED] writes: All my pam modules reside in /usr/lib/ and the version number of pam modules match the version number of the libpam (/usr/lib/libpam.so.2). Eg. pam_self.so.2 and pam_rootok.so.2 are available in /usr/lib/. In 7.0, this should be 4, not 2. Thank you. Appreciate your reply. Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
No pam_module.so found
Hi all I have built FreeBSD 7.0 with openpam (ver. 20071221) on (i386). Now I cannot login through the console, it gives following error message: login: in openpam_load_module(): no pam_self.so found login: pam_start(): system error But I can login remotely using ssh. In both cases I tried only root account. After ssh into the system, when I try to login as another user, it gives following error on the console: su -l test su: in openpam_load_module(): no pam_rootok.so found su: pam_start: system error All my pam modules reside in /usr/lib/ and the version number of pam modules match the version number of the libpam (/usr/lib/libpam.so.2). Eg. pam_self.so.2 and pam_rootok.so.2 are available in /usr/lib/. My first question is, is suffix 2 in this case, the Module Version number? Second question, what do you guys think, why pam cannot find pam modules? Kind regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
locore.s: suffix or operands invalid for mov
Hi all I get an error when compiling the RELENG_7 kernel on i386. cc -c -x assembler-with-cpp -DLOCORE -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror /usr/src/sys/i386/i386/locore.s /usr/src/sys/i386/i386/locore.s: Assembler messages: /usr/src/sys/i386/i386/locore.s:341: Error: suffix or operands invalid for `mov' /usr/src/sys/i386/i386/locore.s:358: Error: suffix or operands invalid for `mov' *** Error code 1 Btw, I'm using a gcc 4.2.1 patched by myself. This error doesn't happen using the gcc ship with FreeBSD. What could be the cause of this error? Appreciate your reply in this regard. Kind regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: An endian error [SOLVED]
--- On Tue, 10/14/08, Unga [EMAIL PROTECTED] wrote: From: Unga [EMAIL PROTECTED] Subject: An endian error To: freebsd-questions@freebsd.org Date: Tuesday, October 14, 2008, 8:00 PM Hi all I'm trying to compile RELENG_7 kernel on i386. The make buildkernel develops an endian related error: === xl (depend) @ - /usr/src/sys machine - /usr/src/sys/i386/include awk -f @/tools/makeobjops.awk @/kern/device_if.m -h awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h awk -f @/tools/makeobjops.awk @/dev/mii/miibus_if.m -h rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq /usr/src/sys/modules/xl/../../pci/if_xl.c === zfs (depend) @ - /usr/src/sys machine - /usr/src/sys/i386/include awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -p awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -q awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h rm -f .depend mkdep -f .depend -a -nostdinc -DFREEBSD_NAMECACHE -D_SOLARIS_C_SOURCE -D_KERNEL -DKLD_MODULE -I/usr/src/sys/modules/zfs/../../cddl/compat/opensolaris : : /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/rpc/xdr.c:63:2: error: #error Only one of _BIG_ENDIAN or _LITTLE_ENDIAN may be defined mkdep: compile failed *** Error code 1 Stop in /usr/src/sys/modules/zfs. *** Error code 1 This was due to a wrong CFLAGS given. Without any CFLAGS, the make buildkernel passes this point. Regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
An endian error
Hi all I'm trying to compile RELENG_7 kernel on i386. The make buildkernel develops an endian related error: === xl (depend) @ - /usr/src/sys machine - /usr/src/sys/i386/include awk -f @/tools/makeobjops.awk @/kern/device_if.m -h awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h awk -f @/tools/makeobjops.awk @/dev/mii/miibus_if.m -h rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq /usr/src/sys/modules/xl/../../pci/if_xl.c === zfs (depend) @ - /usr/src/sys machine - /usr/src/sys/i386/include awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -p awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -q awk -f @/tools/vnode_if.awk @/kern/vnode_if.src -h rm -f .depend mkdep -f .depend -a -nostdinc -DFREEBSD_NAMECACHE -D_SOLARIS_C_SOURCE -D_KERNEL -DKLD_MODULE -I/usr/src/sys/modules/zfs/../../cddl/compat/opensolaris : : /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/rpc/xdr.c:63:2: error: #error Only one of _BIG_ENDIAN or _LITTLE_ENDIAN may be defined mkdep: compile failed *** Error code 1 Stop in /usr/src/sys/modules/zfs. *** Error code 1 Where could possibly be wrong? Any ideas? Many thanks in advance. Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: An endian error
--- On Tue, 10/14/08, Jeremy Chadwick [EMAIL PROTECTED] wrote: From: Jeremy Chadwick [EMAIL PROTECTED] Subject: Re: An endian error To: Unga [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Date: Tuesday, October 14, 2008, 8:50 PM On Tue, Oct 14, 2008 at 05:00:26AM -0700, Unga wrote: Hi all I'm trying to compile RELENG_7 kernel on i386. The make buildkernel develops an endian related error: I cannot reproduce this error on any of our i386 boxes or our amd64 boxes. Is this kernel being built with the new gcc you've been messing around with in other threads? I have to ask that question, for obvious reasons. Yes :) The new gcc compiler was built with bootstraps. Sample programs compile fine. As per Alexander's patch, it doesn't meddle with endians except for arm. Regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: TRUE realtime priority
--- On Tue, 10/7/08, Wojciech Puchar [EMAIL PROTECTED] wrote: Hello Wojciech is it possible on FreeBSD Its soft RT. Try to use the latest ULE scheduler. i run asterisk with realtime priority. it works perfectly no matter how much CPU is loaded by other non-telephony tasks. but with lots of VM pressure it starts to so... like like tha..that... what causes it to behave like that and how to fix it. VM (interrupt priority) runs higher priority than RT in FreeBSD. The interrupt priority preempts RT. To fix it, don't have any VM activity. Increase your RAM. for example when lots of spam comes to server and lots of resource hungry spamassassin processes are spawned our calls starts to be crappy. CPU load for asterisk rarely exceed few percent! i think having separate computer just for this is stupid, i would do this having no other choice, but can it be done without this. When a postman deliver mail, do you check whether are they to you before accept or just blindly accept all and check later? :) Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make buildkernel error
--- On Sat, 10/4/08, Unga [EMAIL PROTECTED] wrote: I'm getting following compile error for /usr/src/sys/i386/i386/genassym.c : cc1: error: unrecognized command line option -mno-align-long-strings cc1: error: unrecognized command line option -fformat-extensions *** Error code 1 I found in /usr/src/gnu/usr.bin/cc/cc_tools/i386-freebsd.opt: mno-align-long-strings Target RejectNegative Report Mask(NO_ALIGN_LONG_STRINGS) Do not align long strings specially What does FreeBSD mean by Do not align long strings specially? Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
make buildkernel error
Hi all I'm getting following compile error for /usr/src/sys/i386/i386/genassym.c : cc1: error: unrecognized command line option -mno-align-long-strings cc1: error: unrecognized command line option -fformat-extensions *** Error code 1 I'm using gcc version 4.3.1. Does this means above options are not compatible with gcc version 4.3.1? Is it safe to remove above options from kernel sources and recompile or what am I suppose to do now? This is RELENG_7, cvsup a month ago. Appreciate your reply very much. Kind regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why not GNU cmp?
--- On Thu, 9/25/08, Kris Kennaway [EMAIL PROTECTED] wrote: From: Kris Kennaway [EMAIL PROTECTED] Subject: Re: Why not GNU cmp? To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Date: Thursday, September 25, 2008, 3:34 PM Unga wrote: In my past experience, the GNU ncurses and Flex (http://flex.sourceforge.net/) are simple not compatible with FreeBSD even though Flex is licensed under BSD. I wanted to know whether the GNU cmp is also the same fate other than the license because all these GNU tools comes in one package, Diffutils. Both simply are compatible with FreeBSD. Kris, thanks for confirming both GNU cmp and FreeBSD cmp are compatible with FreeBSD. I wish FreeBSD guys can finalize the Porting BSD-licensed text-processing tools from OpenBSD soon. I was wondering why FreeBSD wrote their own version of cmp. If it just the license, then that's fine. I prefer the BSD versions of diff, etc. when available. You are asking the wrong questions: why did GNU write their own version of cmp? FreeBSD's dates to 1987. Oops, I didn't know GNU restricted the **truely free** cmp and sugar-coated it as Free :) Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: A strange compiling issue [SOLVED]
--- On Wed, 9/24/08, Mel [EMAIL PROTECTED] wrote: From: Mel [EMAIL PROTECTED] Subject: Re: A strange compiling issue To: freebsd-questions@freebsd.org, [EMAIL PROTECTED] Date: Wednesday, September 24, 2008, 1:57 AM On Tuesday 23 September 2008 11:45:40 Unga wrote: Hi I'm trying to compile Perl on FreeBSD. It get cleanly compiled on FreeBSD 7.0. But on another test system running RELENG_7 where I do weired things, it develops errors. There must be something wrong with my test system, I would like to understand what cause this error. cc -c -DPERL_CORE -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -std=c89 -O -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat toke.c toke.c: In function 'Perl_yylex': toke.c:6633: error: lvalue required as unary '' operand toke.c:6633: error: lvalue required as unary '' operand Line 6633: if (memchr(tmpbuf, ':', len)) sv_setpvn(PL_subname, tmpbuf, len); else { sv_setsv(PL_subname,PL_curstname); sv_catpvs(PL_subname,::); sv_catpvn(PL_subname,tmpbuf,len); These line numbers are off. There's no '' anywhere here. Any chance this file wasn't passed through yacc/lex? Does an '' show up in raw cpp output (maybe memchr was defined as some macro)? Try: cpp -DPERL_CORE -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe \ -std=c89 -O -Wall -ansi -W -Wextra -Wdeclaration-after-statement \ -Wendif-labels -Wc++-compat -o toke.out Then inspect toke.out. Mel, thanks for the help. Inspection of toke.out finally lead to the point. The GNU grep was missing in my test system :) The Perl Configure shouldn't have proceeded without grep. Best Regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Why not GNU cmp?
Hi all I have noted FreeBSD uses GNU diff, GNU diff3 and GNU sdiff. Why FreeBSD uses its own version of cmp? why not use GNU cmp? Is the GNU cmp not compatible with FreeBSD? Kind regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Why not GNU cmp?
--- On Thu, 9/25/08, Chad Perrin [EMAIL PROTECTED] wrote: From: Chad Perrin [EMAIL PROTECTED] Subject: Re: Why not GNU cmp? To: freebsd-questions@freebsd.org Date: Thursday, September 25, 2008, 7:07 AM On Wed, Sep 24, 2008 at 11:05:19AM -0400, matt donovan wrote: On Wed, Sep 24, 2008 at 10:31 AM, Bill Moran [EMAIL PROTECTED]wrote: Unga [EMAIL PROTECTED] wrote: I have noted FreeBSD uses GNU diff, GNU diff3 and GNU sdiff. Why FreeBSD uses its own version of cmp? why not use GNU cmp? Is the GNU cmp not compatible with FreeBSD? The GNU version of cmp is not licensed under the BSD license. Given enough time/manpower, all the GNU tools in FreeBSD will eventually be replaced with BSD-licensed versions. and it's not GNU diff it's BSD diff Are you sure about that? I thought FreeBSD was using GNU diff as its standard diff, and that a BSD diff was only available through ports (thanks in part to the efforts of someone working on BSD-licensed text tools during this year's Google SOC). FreeBSD diff direcotry is /usr/src/gnu/usr.bin/diff . It refers to /usr/src/contrib/diff for diff sources. It seems FreeBSD apply a patch to GNU diff to get an option 'o' to get a old-style output. Applying a patch on a GNU app does not become BSD unless you write it from scratch. In my past experience, the GNU ncurses and Flex (http://flex.sourceforge.net/) are simple not compatible with FreeBSD even though Flex is licensed under BSD. I wanted to know whether the GNU cmp is also the same fate other than the license because all these GNU tools comes in one package, Diffutils. I was wondering why FreeBSD wrote their own version of cmp. If it just the license, then that's fine. I prefer the BSD versions of diff, etc. when available. Regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
A strange compiling issue
Hi I'm trying to compile Perl on FreeBSD. It get cleanly compiled on FreeBSD 7.0. But on another test system running RELENG_7 where I do weired things, it develops errors. There must be something wrong with my test system, I would like to understand what cause this error. cc -c -DPERL_CORE -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -std=c89 -O -Wall -ansi -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat toke.c toke.c: In function 'Perl_yylex': toke.c:6633: error: lvalue required as unary '' operand toke.c:6633: error: lvalue required as unary '' operand toke.c: In function 'S_pending_ident': toke.c:6923: error: lvalue required as unary '' operand toke.c:6923: error: lvalue required as unary '' operand toke.c: In function 'S_scan_heredoc': toke.c:11182: error: invalid operands to binary + (have 'char *' and 'char *') toke.c:11182: error: lvalue required as unary '' operand toke.c:11182: error: lvalue required as unary '' operand toke.c: In function 'S_scan_formline': toke.c:12321: error: invalid operands to binary + (have 'char *' and 'char *') toke.c:12321: error: lvalue required as unary '' operand toke.c:12321: error: lvalue required as unary '' operand Line 6633: if (memchr(tmpbuf, ':', len)) sv_setpvn(PL_subname, tmpbuf, len); else { sv_setsv(PL_subname,PL_curstname); sv_catpvs(PL_subname,::); sv_catpvn(PL_subname,tmpbuf,len); } Line 6923: const char *const has_colon = (const char*) memchr (PL_tokenbuf, ':', tokenbuf_len); Please note, on test programs memchr works correctly. Appreciate your reply. Kind regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: A strange compiling issue
--- On Tue, 9/23/08, v [EMAIL PROTECTED] wrote: From: v [EMAIL PROTECTED] Subject: Re: A strange compiling issue To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Date: Tuesday, September 23, 2008, 8:38 PM hi you may install perl from ports? Hi, thanks for the reply. What if I'm a port developer? :) Inability to compile shows an error somewhere else. It looks like a wrong header files symptom. I'm waiting for FreeBSD pros opinion on this to narrow down the problem and fix the real issue. I'm sure there is nothing wrong with the Perl itself. Regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Segmentation fault when free
--- On Sat, 9/20/08, Giorgos Keramidas [EMAIL PROTECTED] wrote: From: Giorgos Keramidas [EMAIL PROTECTED] Subject: Re: Segmentation fault when free To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], freebsd-questions@freebsd.org Date: Saturday, September 20, 2008, 2:23 PM On Fri, 19 Sep 2008 20:03:03 -0700 (PDT), Unga [EMAIL PROTECTED] wrote: Hi thank you very much for your reply and the test case. That is, in a trivial case like this, free() works well. Hopefully free() works well in all cases too. But my main program is 1900 lines, f1() and f2() are in a 2200 lines second file. The f1() and f2() calls some functions from a 500 lines third file. The main program call another function, f3(), from 2nd file, pass pointers to two functions f4(), f5() of main program. The while loop iterate more than one million times. Its quite a complex situation. You are probably calling free() multiple times for the same buffer. Try tracing the malloc and free calls, using the information from this message: http://lists.freebsd.org/pipermail/freebsd-questions/2008-July/179480.html There must be an error somewhere else. I noted free() causes lot of troubles. It is easy to write complex programs if you just let to leak memory. But in my case, since the program iterate millions of times, if I let to leak, I'm sure it will run out of RAM. Leaking memory is *never* a good choice. Especially if you are writing library code that others are supposed to use, or code that is supposed to run millions of times. While it's understandable as a 'quick hack' when you are first writing a program, I've seen far too many 'quick hacks' that lived years and years after the original 'experimental' period passed. Hence the knee-jerk reaction when I see leaks being used as a 'temporary' solution :) Hi Giorgos, thank you very much for your reply. ktrace.out shows: malloc_init() 0x8103400 = malloc(1024) malloc_init() malloc_init() 0x810b0b0 = malloc(400) : so many malloc : so many free : malloc/free combinations : free(0xbfbfc9c9) 1. This clearly shows my program is trying to free a memory that has not been allocated. How it could have happened? 2. Is it correct to have many malloc_init()? Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Segmentation fault when free
--- On Sat, 9/20/08, Giorgos Keramidas [EMAIL PROTECTED] wrote: 1. This clearly shows my program is trying to free a memory that has not been allocated. How it could have happened? Aha. This looks remarkably like an address in the runtime stack. It usually happens when you have a function that returns the address of a 'local' variable, instead of a newly allocated heap area, i.e.: char * function(void) { char buffer[100]; return buf; } This problem happens very early stage of my program. Its the very first free() develops a problem. I checked again, up to the this problematic free(), functions return newly allocated strings properly: char *f( ) { char *newstr = NULL; : newstr = (char *) malloc(p - sp + 1); if (newstr == NULL) return NULL; : return newstr; } Can a yet not executed wrong free() elsewhere cause a problem of this nature? Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Segmentation fault when free [SOLVED]
--- On Sat, 9/20/08, Giorgos Keramidas [EMAIL PROTECTED] wrote: ktrace.out shows: malloc_init() 0x8103400 = malloc(1024) malloc_init() malloc_init() 0x810b0b0 = malloc(400) : so many malloc : so many free : malloc/free combinations : free(0xbfbfc9c9) 1. This clearly shows my program is trying to free a memory that has not been allocated. How it could have happened? Aha. This looks remarkably like an address in the runtime stack. It usually happens when you have a function that returns the address of a 'local' variable, instead of a newly allocated heap area, i.e.: char * function(void) { char buffer[100]; return buf; } This was indeed the case, worst yet, I was trying to free a part of the buffer (as per your example above) by mistake which was not allocated by malloc. Thank you all who helped me. Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Segmentation fault when free
Hi all I'm running FreeBSD 7 on i386. I have a C program compiled with gcc 4.2.1 20070719. Logically my program is: char *a; char *b; char *c; while (cond) { a = f1(); /* malloc() and send a string */ b = f2(); /* malloc() and send a string */ c = (char *) malloc(strlen(a) + strlen(b) + 1); c[0] = '\0'; strcat(c, a); strcat(c, b); free(a); free(b); } When it executes free(b), my program exits with Segmentation fault: 11. The free(a) executes well. The problem is with free(b). Even swap free(b) first and free(a) next, it still crashes at free(b). If I comment out free() lines, further down the program, first few characters of one string get dropped when executes a completely unrelated line. How could I bit more narrow down the problem? Many thanks in advance. Kind regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Segmentation fault when free
--- On Sat, 9/20/08, Nash Nipples [EMAIL PROTECTED] wrote: From: Nash Nipples [EMAIL PROTECTED] Subject: Re: Segmentation fault when free To: freebsd-questions@freebsd.org Date: Saturday, September 20, 2008, 4:14 AM --- On Fri, 9/19/08, Unga [EMAIL PROTECTED] wrote: From: Unga [EMAIL PROTECTED] Subject: Segmentation fault when free To: freebsd-questions@freebsd.org Date: Friday, September 19, 2008, 9:17 AM Hi all I'm running FreeBSD 7 on i386. I have a C program compiled with gcc 4.2.1 20070719. Logically my program is: char *a; char *b; char *c; while (cond) { a = f1(); /* malloc() and send a string */ b = f2(); /* malloc() and send a string */ c = (char *) malloc(strlen(a) + strlen(b) + 1); c[0] = '\0'; strcat(c, a); strcat(c, b); free(a); free(b); } When it executes free(b), my program exits with Segmentation fault: 11. The free(a) executes well. The problem is with free(b). Even swap free(b) first and free(a) next, it still crashes at free(b). If I comment out free() lines, further down the program, first few characters of one string get dropped when executes a completely unrelated line. How could I bit more narrow down the problem? Many thanks in advance. Kind regards Unga im affraid i didnt implement your request correctly but the program below did not crash my server under root in 60 seconds #include stdio.h #include stdlib.h #include string.h char *a; char *b; char *c; char *abd = Hi, im a string 1\0; char *bbd = Hey, im a string 2\0; char *f1(void){ char *ab; ab = malloc(strlen (abd)); memcpy(ab, abd, strlen(abd)); printf(f1(): %s\n, ab); return ab; } char *f2(void){ char *bb; bb = malloc(strlen (bbd)); memcpy(bb, bbd, strlen(bbd)); printf(f1(): %s\n, bb); return bb; } int main(void) { while (1) { a = f1(); /* malloc() and send a string */ b = f2(); /* malloc() and send a string */ c = (char *) malloc(strlen(a) + strlen(b) + 1); c[0] = '\0'; strcat(c, a); strcat(c, b); free(a); free(b); } } Hi thank you very much for your reply and the test case. That is, in a trivial case like this, free() works well. Hopefully free() works well in all cases too. But my main program is 1900 lines, f1() and f2() are in a 2200 lines second file. The f1() and f2() calls some functions from a 500 lines third file. The main program call another function, f3(), from 2nd file, pass pointers to two functions f4(), f5() of main program. The while loop iterate more than one million times. Its quite a complex situation. There must be an error somewhere else. I noted free() causes lot of troubles. It is easy to write complex programs if you just let to leak memory. But in my case, since the program iterate millions of times, if I let to leak, I'm sure it will run out of RAM. So the question is, if you were to encounter this issue, how would you approach it and find the culprit? I'm using pretty basic tools to write complex programs. I use Kate to write programs, Makefiles to compile, use GCC, and use ddd in case of a trouble. Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to split a C string by a string?
Hi all I'm writing an C application on FreeBSD 7+. I need to split a string by another string (ie. the delimiter is xxx) similar to strtok split a string by a single char. Is there a standard function or is there a FreeBSD functions for this? Many thanks in advance. Kind regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to split a C string by a string?
--- On Wed, 9/17/08, Giorgos Keramidas [EMAIL PROTECTED] wrote: From: Giorgos Keramidas [EMAIL PROTECTED] Subject: Re: How to split a C string by a string? To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Date: Wednesday, September 17, 2008, 6:17 PM On Wed, 17 Sep 2008 00:45:46 -0700 (PDT), Unga [EMAIL PROTECTED] wrote: Hi all I'm writing an C application on FreeBSD 7+. I need to split a string by another string (ie. the delimiter is xxx) similar to strtok split a string by a single char. Is there a standard function or is there a FreeBSD functions for this? You can use strstr() to look for the xxx delimited and split that that point: % cat -n foo.c 1 #include stdio.h 2 #include string.h 3 4 int 5 main(void) 6 { 7 char text[] = Hello string world; 8 char delim[] = string ; 9 size_t dlen = sizeof(delim) / sizeof(delim[0]) - 1; 10 char *p; 11 12 p = strstr(text, delim); 13 if (p == NULL) 14 return 0; /* No match */ 15 16 printf(First part = \%.*s\\n, p - text, text); 17 printf(Second part = \%s\\n, p + dlen); 18 return 0; 19 } % cc -std=iso9899:1990 -O2 -Wall foo.c % ./a.out First part = Hello Second part = world % Thank you very much for the reply. That is, there is no existing split function. So I got to write to my own :) Best regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Segmentation fault: _pthread_mutex_init_calloc_cb()
Hi all When my C program executing exit(EX_OK); I get following error message in ddd: Program received signal SIGSEGV, Segmentation fault. 0x28102600 in _pthread_mutex_init_calloc_cb () from /lib/libc.so.7 I'm running FreeBSD 7.0 on i386. I noted I got this issue after I introduced a code section with strsep. I'm not sure whether there is anything to do with strsep, ddd shows strsep works well. Any idea what is wrong? Many thanks in advance. kind regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
string split, bash and IFS
Hi all How to use bash and IFS to split a string? eg. $string = Name:Surname:10 IFS=: echo $string | read name surname age This does not work for some reason. The read does not create name, surname and age variables. Any idea why? Appreciate your reply. Kind regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: string split, bash and IFS
--- On Mon, 8/25/08, Barry Byrne [EMAIL PROTECTED] wrote: From: Barry Byrne [EMAIL PROTECTED] Subject: RE: string split, bash and IFS To: [EMAIL PROTECTED], freebsd-questions@freebsd.org Date: Monday, August 25, 2008, 7:54 PM -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Unga Sent: 25 August 2008 10:40 To: freebsd-questions@freebsd.org Subject: string split, bash and IFS How to use bash and IFS to split a string? eg. $string = Name:Surname:10 IFS=: echo $string | read name surname age This does not work for some reason. The read does not create name, surname and age variables. Any idea why? Appreciate your reply. [EMAIL PROTECTED] Unga: I think your problem is that each element of the pipeline runs in a separate process, so has no access to the variables from other processes. You could try something like: echo Name:Surname:10 | ( IFS=: ; read name surname age ; echo $surname) Thanks for the reply. Your statement prints the Surname but the variable $surname disappear after that and not available for further processing. I'm referring to two sources for this: 1. Learning the bash shell, 2nd Edition. O'Reilly publishers Where on page 170, under read section The basic syntax is: read var1 var2... This statement takes a line from the standard input and breaks it down into words delimited by any of the characters in the value of the environment variable IFS. The words are assigned to variables var1, var2, etc. 2. http://www.unix.com/shell-programming-scripting/29202-perl-like-split-function-bash.html It looks like it works for others but here on FreeBSD 7.0, bash 3.2.33(0)-release, I find it difficult to get this syntax to work. Also, probably a typo - but you're assignment of string in the first line should omit the $ sign. Yes, sure is a typo. Regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Build ncurses from sources HOWTO?
Hi all I'm learning to build ncurses-5.6 from sources (ie. outside of ports) on i386 FreeBSD 7.0 (RELENG_7). As the first step, I want to make sure I patch the ncurses-5.6.tar.gz correctly. Here is what I do: 1. Download ncurses-5.6.tar.gz from http://ftp.gnu.org/pub/gnu/ncurses/ 2. Download patches from ftp://invisible-island.net/ncurses/5.6/ 3. Unpack tar xzf ncurses-5.6.tar.gz cd ncurses-5.6 4. Patch sh ../patch-5.6-20080621.sh patch -Np1 -i ../ncurses-5.6-20080628.patch patch -Np1 -i ../ncurses-5.6-20080705.patch patch -Np1 -i ../ncurses-5.6-20080712.patch patch -Np1 -i ../ncurses-5.6-20080713.patch patch -Np1 -i ../ncurses-5.6-20080726.patch patch -Np1 -i ../ncurses-5.6-20080804.patch 5. Post patch sed -i '' -e 's,$(INSTALL_PROG) ncurses-config,@INSTALL_SCRIPT@ ncurses-config,' misc/Makefile.in rm -rfv tack Ada95/src/terminal_interface-curses.adb mkinstalldirs Here are my questions: 1. Have I patched correctly? Are there anymore patches to apply or have I patch too much? 2. Are there anymore Post patch actions to be performed? Your help in this regard is very much appreciated and many thanks in advance. Kind regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pseudoterminals question
--- On Fri, 7/18/08, Unga [EMAIL PROTECTED] wrote: 2) As per FAQ, http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html: 10.19.1 Build and install a new kernel with the line in the configuration file: device pty N where N is the number of requested pseudoterminals. Ok, I tried to recompile the kernel. I have modified the GENERIC as follows: device pty 64 # Pseudo-ttys (telnet etc) Here is the compilation result: config: /usr/src/sys/i386/conf/GENERIC:268: syntax error *** Error code 1 So what is the correct syntax? Regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pseudoterminals question
Hi I'm experiencing The system has no more ptys. Ask your system administrator to create more.. Well, I'm the system administrator, don't know what to do :) I want to understand more about ptys in FreeBSD. I have following questions. ls -l /dev/ | grep pty crw-rw-rw- 1 root wheel 0, 169 Jul 18 10:34 ptyp0 crw-rw-rw- 1 root wheel 0, 171 Jul 18 11:21 ptyp1 crw-rw-rw- 1 root wheel 0, 178 Jul 18 11:13 ptyp2 crw-rw-rw- 1 root wheel 0, 180 Jul 18 10:34 ptyp3 crw-rw-rw- 1 root wheel 0, 182 Jul 18 11:19 ptyp4 1) That is, I have only 5 ptys, am I right? 2) As per FAQ, http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html: 10.19.1 Build and install a new kernel with the line in the configuration file: device pty N where N is the number of requested pseudoterminals. I'm using FreeBSD 7.0, its GENERIC file has only device pty, no N. What is the default for N, is it 5? 3) Is there a way to increase the number of ptys without rebuild the kernel? Appreciate your reply. Kind regards Unga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]