Variable arg function question

2008-05-04 Thread Unga
Hi all I need to implement a variable argument function in C. The number of args are not known but the type is known, all are strings. Unfortunately va_arg() [stdarg(3)] does not return NULL or any other suitable value after processing the arg list, it just simply crashes once the arg list is exh

Re: Variable arg function question

2008-05-04 Thread Roland Smith
On Sun, May 04, 2008 at 12:40:43AM -0700, Unga wrote: > Hi all > > I need to implement a variable argument function in C. > The number of args are not known but the type is > known, all are strings. > > Unfortunately va_arg() [stdarg(3)] does not return > NULL or any other suitable value after pr

cvsup.uk.freebsd.org not updating?

2008-05-04 Thread Neil Darlow
Hi, It looks like cvsup.uk.freebsd.org hasn't updated in a few days. The latest updates to ImageMagick, php5 and samba3 haven't appeared yet. Regards, Neil Darlow ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

server (partly) fails: hardware?

2008-05-04 Thread Colin Brace
Hi all, I have FreeBSD installed on a ~6 year old IBM NetVista box; it serves a headless gateway/server/WAP for my home network. I upgraded it from v6 to v7 in mid January, building a custom kernel with altq and the new scheduler. It has been running fine since early December. However, three ti

Re: server (partly) fails: hardware?

2008-05-04 Thread Christian Zachariasen
On Sun, May 4, 2008 at 11:38 AM, Colin Brace <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have FreeBSD installed on a ~6 year old IBM NetVista box; it serves a > headless gateway/server/WAP for my home network. I upgraded it from v6 to > v7 in mid January, building a custom kernel with altq and th

Re: Variable arg function question

2008-05-04 Thread Unga
--- Roland Smith <[EMAIL PROTECTED]> wrote: > On Sun, May 04, 2008 at 12:40:43AM -0700, Unga > wrote: > > Hi all > > > > I need to implement a variable argument function > in C. > > The number of args are not known but the type is > > known, all are strings. > > > > Unfortunately va_arg() [stda

Re: Variable arg function question

2008-05-04 Thread Roland Smith
On Sun, May 04, 2008 at 04:01:39AM -0700, Unga wrote: > > > Unfortunately va_arg() [stdarg(3)] does not return > > > NULL or any other suitable value after processing > > the > > > arg list, it just simply crashes once the arg list > > is > > > exhausted. > > > > It is _your_ task to properly clos

Re: Variable arg function question

2008-05-04 Thread Peter Boosten
Unga wrote: Hi all I need to implement a variable argument function in C. The number of args are not known but the type is known, all are strings. Unfortunately va_arg() [stdarg(3)] does not return NULL or any other suitable value after processing the arg list, it just simply crashes once the a

Re: wine: notepad OK, others not

2008-05-04 Thread Tijl Coosemans
On Tuesday 29 April 2008 08:10:37 [EMAIL PROTECTED] wrote: >> Wine has its own simple version of Wordpad though. >> Just run "wine wordpad". > > This version has its own notepad, but it doesn't appear to have > wordpad. (There's no "wordpad.exe" that I can find, but there > are two identical copi

Re: wine: notepad OK, others not

2008-05-04 Thread Tijl Coosemans
On Thursday 01 May 2008 08:00:23 [EMAIL PROTECTED] wrote: >> You have to mount the floppy and then link a: to the mount point. >> So if you mount it under /mnt you'd need this: >> >> mount -t msdosfs /dev/fd0 /mnt >> ln -s /mnt ~/.wine/dosdevices/a: > > That got only a little bit farther. It did

MRTG registers zero throughput

2008-05-04 Thread Justin Jereza
Hello. I'm using net-snmp and mrtg. snmpwalk returns the counters with values but MRTG isn't registering anything. Does anybody have a clue why? LogDir: /usr/local/www/mrtg/log HtmlDir: /usr/local/www/mrtg/data ImageDir: /usr/local/www/mrtg/data/images Options[_]: growright, bits PageTop[^]:

Re: Variable arg function question

2008-05-04 Thread Patrick Clochesy
What about using a macro (...) in front of the function to csll it which passes __VARARGS__, NULL to ensure there is always a trailing NULL? I think this would at least work in GCC... Can' test on my phone though. -Patrick On May 4, 2008, at 4:42 AM, Peter Boosten <[EMAIL PROTECTED]> wrote

make buildworld

2008-05-04 Thread Aguiar Magalhaes
Hi list, How can i fix the error below ? Thanks, Aguiar # make buildworld - - - - - - - - - - - - - - - - - - - - - cc -O2 -fno-strict-aliasing -pipe -I/usr/src/lib/libc/include -I/usr/src/lib/li bc/../../include -I/usr/src/lib/libc/i386 -D__DBINTERFACE_PRIVATE -I/usr/src/lib /libc/../../con

Re: make buildworld

2008-05-04 Thread Josh Carroll
On Sun, May 4, 2008 at 10:03 AM, Aguiar Magalhaes <[EMAIL PROTECTED]> wrote: > Hi list, > > How can i fix the error below ? > > Thanks, > > Aguiar > > > # make buildworld > > - - - - - - - - - - - - - - - - - - - - - > cc -O2 -fno-strict-aliasing -pipe -I/usr/src/lib/libc/include > -I/usr/s

Re: Variable arg function question

2008-05-04 Thread Roland Smith
On Sun, May 04, 2008 at 07:02:36AM -0700, Patrick Clochesy wrote: > What about using a macro (...) in front of the function to csll it which > passes __VARARGS__, NULL to ensure there is always a trailing NULL? I think > this would at least work in GCC... Can' test on my phone though. That's a g

Re: Variable arg function question

2008-05-04 Thread Unga
--- Roland Smith <[EMAIL PROTECTED]> wrote: > On Sun, May 04, 2008 at 07:02:36AM -0700, Patrick > Clochesy wrote: > > What about using a macro (...) in front of the > function to csll it which > > passes __VARARGS__, NULL to ensure there is always > a trailing NULL? I think > > this would at le

Re: Variable arg function question

2008-05-04 Thread Roland Smith
On Sun, May 04, 2008 at 08:34:30AM -0700, Unga wrote: > > --- Roland Smith <[EMAIL PROTECTED]> wrote: > > > On Sun, May 04, 2008 at 07:02:36AM -0700, Patrick > > Clochesy wrote: > > > What about using a macro (...) in front of the > > function to csll it which > > > passes __VARARGS__, NULL to e

Re: Variable arg function question [SOLVED]

2008-05-04 Thread Unga
--- Roland Smith <[EMAIL PROTECTED]> wrote: > On Sun, May 04, 2008 at 08:34:30AM -0700, Unga > wrote: > > > > --- Roland Smith <[EMAIL PROTECTED]> wrote: > > > > > On Sun, May 04, 2008 at 07:02:36AM -0700, > Patrick > > > Clochesy wrote: > > > > What about using a macro (...) in front of the >

Re: MRTG registers zero throughput

2008-05-04 Thread Justin Jereza
Nevermind. I figured it out. net-snmp wasn't returning ifHC* counters. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Installing PERL modules from CPAN (instead of ports)

2008-05-04 Thread Andrew Pantyukhin
On Sat, May 03, 2008 at 07:21:57PM -0400, Sahil Tandon wrote: > In order to setup postfwd (http://postfwd.org), of which there is no FreeBSD > port, several PERL modules are required; one of them, Net::DNS::Async, also > does not exist as a FreeBSD port. If I install this via CPAN, postfwd works

Re: Installing PERL modules from CPAN (instead of ports)

2008-05-04 Thread Sahil Tandon
* Andrew Pantyukhin <[EMAIL PROTECTED]> [2008-05-04 20:23:09 +0400]: > Try to request help on [EMAIL PROTECTED] (cc'ed). Perl ports are > usually very easy to create and maintain, so if you don't want to > spend 30 minutes learning, someone with enough experience can > probably do it in a couple o

Re: server (partly) fails: hardware?

2008-05-04 Thread Wojciech Puchar
However, three times during the past few days, it has stop functioning. The WAN connection dies and I can no longer ssh into the box. However, I can still ping it, and I can still ssh from one LAN client to another via the FreeBSD box. disk I/O hangs while everything else works. check with smart

Re: server (partly) fails: hardware?

2008-05-04 Thread Wojciech Puchar
Can you predict at what point the server will crash? Is it after performing a specific action, or at a certain time of day? i think it's quite inpredictable, with probability proportional to disk load. If you can connect a monitor to the server and actually see what happens and also if it s

ervin23 wants to keep up with you on Twitter

2008-05-04 Thread ervin23
To find out more about Twitter, visit the link below: http://twitter.com/i/d39670c3f0bdd963baf947fd0a553d660785239e Thanks, -The Twitter Team About Twitter Twitter is a unique approach to communication and networking based on the simple concept of status. What are you doing? What are your frie

Trouble making a bootable CD

2008-05-04 Thread doug
I need to make a custom 4.X CD-ROM. I think my problem is finind a correct boot image. The only image I can find either on systems that need upgrading or via cvs /boot/cdboot is 1184 bytes. Shouldn't this be 1200 bytes? I have made a CD using the 4.X /boot/cdboot and one using a later version t

Re: [6.3] Keeping host up to date

2008-05-04 Thread Mel
On Saturday 03 May 2008 17:07:08 Manolis Kiagias wrote: > Gilles wrote: > > Hello > > > > I have some newbie questions: > > > > 1. Am I right in understanding that running "make ; make install" in > > /usr/ports/ turns the port into a package, so that when I run > > "pkg_info", it doesn't make any

Re: server (partly) fails: hardware?

2008-05-04 Thread Colin Brace
On Sun, 4 May 2008 20:14:45 +0200 (CEST), Wojciech Puchar <[EMAIL PROTECTED]> wrote: > disk I/O hangs while everything else works. > check with smartmontools if your disk report problems, if not - check > cables. Thanks for the tip. This sounds promising. > FreeBSD runs fine on pentium 90 with

hal port fails to build

2008-05-04 Thread Steven Friedrich
Why is hal failing to build on my machine? I checked pointyhat and it says it builds fine. I even tried pkg_deinstall -f and then went to sysutils/hal and invoked make. I recovered by portupgrade -PPN hal. Here's the tail of the build: cc -DHAVE_CONFIG_H -I. -I../.. -DPACKAGE_SYSCONF_DIR=\"/

k3b problem with DVD

2008-05-04 Thread Zsolt Kúti
Hello, For long I use k3b with great satisfaction. On a recent new system however it has serious problem with handling DVD-s. While it works with CD-s, as soon as DVD disc is placed into the drive it starts to emit error messages[1]. From this on (and even after stopping/killing it ) the system

Trying to start/stop nginx via rc.d/nginx

2008-05-04 Thread Michael Breen
I'm pretty new to FreeBSD and nginx. The problem I am having is that when I try to start or stop nginx from /usr/local/rc.d/nginx nothing happens. Here's the output from "uname -a" : FreeBSD wilco. 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 [EMAIL PROTECTED]:/usr/

Re: Trying to start/stop nginx via rc.d/nginx

2008-05-04 Thread Maxim Khitrov
On Sun, May 4, 2008 at 3:15 PM, Michael Breen <[EMAIL PROTECTED]> wrote: > I'm pretty new to FreeBSD and nginx. The problem I am having is that when I > try to start or stop nginx from /usr/local/rc.d/nginx nothing happens. You need to add nginx_enable="YES" to /etc/rc.conf. - Max ___

Re: Trying to start/stop nginx via rc.d/nginx

2008-05-04 Thread Michael Breen
I knew it had to be something simple! Thank you Max. On May 4, 2008, at 3:48 PM, Maxim Khitrov wrote: On Sun, May 4, 2008 at 3:15 PM, Michael Breen <[EMAIL PROTECTED]> wrote: I'm pretty new to FreeBSD and nginx. The problem I am having is that when I try to start or stop nginx from /usr/loca

Re: Compiling in Debugging Flags

2008-05-04 Thread Toomas Aas
L, 03 mai 2008 kirjutas Chris Maness <[EMAIL PROTECTED]>: Sorry about all of the e-mails. I remembered that I was having issues with apache and the php5 module. I have deinstalled php5 and apache runs fine. However, even with the latest ports tree with apache13 and php5 module rebuilt, apac

Re: Compiling in Debugging Flags

2008-05-04 Thread Chris Maness
Toomas Aas wrote: L, 03 mai 2008 kirjutas Chris Maness <[EMAIL PROTECTED]>: Sorry about all of the e-mails. I remembered that I was having issues with apache and the php5 module. I have deinstalled php5 and apache runs fine. However, even with the latest ports tree with apache13 and php5 m

Re: Compiling in Debugging Flags

2008-05-04 Thread Chris Maness
Patrick Clochesy wrote: Standard diagnostic rules apply. What does a coredump say? GDB? Did you remove all modules and readd 1-by-1 to isolate the problem if the modules are your suspicion? What is the frequency of the crashes? -Patrick I have posted all of the output. The whole thread can b

Re: Compiling in Debugging Flags

2008-05-04 Thread Patrick Clochesy
Standard diagnostic rules apply. What does a coredump say? GDB? Did you remove all modules and readd 1-by-1 to isolate the problem if the modules are your suspicion? What is the frequency of the crashes? -Patrick On May 4, 2008, at 5:01 PM, Chris Maness <[EMAIL PROTECTED]> wrote: Toomas Aa

Re: Compiling in Debugging Flags

2008-05-04 Thread Chris Maness
Chris Maness wrote: Patrick Clochesy wrote: Standard diagnostic rules apply. What does a coredump say? GDB? Did you remove all modules and readd 1-by-1 to isolate the problem if the modules are your suspicion? What is the frequency of the crashes? -Patrick I have posted all of the output. T

Re: Compiling in Debugging Flags

2008-05-04 Thread Chris Maness
Chris Maness wrote: Chris Maness wrote: Patrick Clochesy wrote: Standard diagnostic rules apply. What does a coredump say? GDB? Did you remove all modules and readd 1-by-1 to isolate the problem if the modules are your suspicion? What is the frequency of the crashes? -Patrick I have posted

Re: wine: notepad OK, others not

2008-05-04 Thread perryh
> > ... very shortly after starting the actual install I got an error > > box: > > > > > > VISIO Setup > > > >! Tried to create an invalid path using 'A:\' and 'clipart.vs_' > > > > > > and it locked up the display so that CtrlAltF1 would not switch > > to a te

Re: wine: notepad OK, others not

2008-05-04 Thread perryh
> >> Wine has its own simple version of Wordpad though. > >> Just run "wine wordpad". > > > > This version has its own notepad, but it doesn't appear to have > > wordpad. (There's no "wordpad.exe" that I can find, but there > > are two identical copies of "notepad.exe" -- one in .../windows > > a

Re: Installing PERL modules from CPAN (instead of ports)

2008-05-04 Thread Jeffrey Goldberg
On May 4, 2008, at 11:59 AM, Sahil Tandon wrote: Yes, making a new port is the easiest way to install something from CPAN. I do prefer to keep everything organized in ports, so I created my first port: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/123382 Let's hope I did

Re: [CRON] Recommended FTP client to download and upload files?

2008-05-04 Thread Gilles
On Sat, 03 May 2008 11:34:30 -0700, prad <[EMAIL PROTECTED]> wrote: >i like lftp the best. you can script it and everything has always >worked smoothly for me using it. Thanks guys, lftp did the job. I'll put those two lines in a script and add it to CRON: lftp -u joe,mypass -e "mirror -vn ./file

Re: KDE3 Error

2008-05-04 Thread Ruel Luchavez
have tried the "make fetch" and no Error it was succesful. But after the "make fetch" i go to the directory cd /usr/ports/x11/kde3/make install the installation still not successful, here it is the error: Stop in /usr/ports/audio/nas. Error code 1 Stop in /usr/ports/x1

Re: Compiling in Debugging Flags

2008-05-04 Thread Chris Maness
Toomas Aas wrote: L, 03 mai 2008 kirjutas Chris Maness <[EMAIL PROTECTED]>: Sorry about all of the e-mails. I remembered that I was having issues with apache and the php5 module. I have deinstalled php5 and apache runs fine. However, even with the latest ports tree with apache13 and php5 m

Re: Mystery Hardware Error

2008-05-04 Thread Al Plant
David M. Patronis wrote: When I burn a data cd using the burncd utility, I get this error at the end of the session: acd0: FAILURE-READ_BIG HARDWARE ERROR asc=0x3e ascq=0x2 When I burn a second disc, there is no error message, and I've yet to have a bad burn. In fact I'm getting quality super

Need help with apache22

2008-05-04 Thread Bob Falanga
I have installed apache22 on my computer which is operating with PCBSD. When a start is executed I get the following response and apache doesn't start, "Can't find libthr.so.3, needed by libthr.so.2". Can someone help? Bob Falanga ___ freebsd-questions

Re: Mystery Hardware Error

2008-05-04 Thread Pollywog
On Monday 05 May 2008 03:11:52 Al Plant wrote: > > Aloha list, > > I am getting the same error on FreeBSD 7 RELEASE and 8. Current as David > is. CD's work fine. > Anybody know what this is? I have been getting the errors too, whenever I reboot the machine, I find them in the logs. I don't bur

rsync as root for mail servers?

2008-05-04 Thread Chris Maness
I plan on cutting over a server to new hardware, and I was wondering if I can add cert based login for root (how do I do this)? This is so that I can use rsync as root to sync the mail spool and home directories. Will this work? I am using sendmail and wu-imapd. Thanks, Chris Maness ___

living with freebsd

2008-05-04 Thread prad
i'd like to know how people live with freebsd. do you use only ports or only packages or a mixture? do you upgrade from version to version using freebsd tools or do it manually? do you have a different approach regarding the above depending on whether it is for a server or a desktop? the handbook

RE: living with freebsd

2008-05-04 Thread Chris Haulmark
Hello! > > i'd like to know how people live with freebsd. > > do you use only ports or only packages or a mixture? Some uses just ports...while others use packages only if they exist in the first place or they cross compiled. Hell, a lot of people use both ports and packages. The reasons var

Re: living with freebsd

2008-05-04 Thread Manolis Kiagias
prad wrote: i'd like to know how people live with freebsd. do you use only ports or only packages or a mixture? do you upgrade from version to version using freebsd tools or do it manually? do you have a different approach regarding the above depending on whether it is for a server or a desktop?

Re: living with freebsd

2008-05-04 Thread Wojciech Puchar
do you use only ports or only packages or a mixture? ports do you upgrade from version to version using freebsd tools or do it manually? mixed, and don't upgrade frequently. it's not windows, if it works - don't touch. do you have a different approach regarding the above depending on wh