regardinf Virtual File system VOP_RENAME_APV function.
___ 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"
regardinf Virtual File system VOP_RENAME_APV function.
Hi FreeBSD Team, I am implementing a stackable file system similar to NULLFS and I have question on VOP_RENAME_APV function. In VOP_RENAME_APV function: VOP_RENAME_APV(struct vop_vector *vop, struct vop_rename_args *a) { int rc; if (vop->vop_rename != NULL) rc = vop->vop_rename(a); else rc = vop->vop_bypass(&a->a_gen); vop_rename_post(a, rc); return (rc); } I want to know that what is the importance of vop_rename_post function. Actually I returned "EXDEV" from my file system, but still vop_rename_post function is doing rename operation. I want to know whether it is having default implementation of rename functionality, can I use this function for rename operation directly because I do not have anything new to do in rename functionality. Please let me know, Is there any document which will talk how to write filesystem in FreeBSD environment? Thanks in advance, BalajiC ___ 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"
socket bind failure - errno 49
Hi, I have tried searching the archives and in vain. Hence i am posting to this group. If this not the right one, pls direct me. I am using FreeBSD 6.1. Initially i was able to create socket, bind it and do all sorts of things. But when i tried now, it isn't working. I am trying after a long gap. The errno is 49 - invalid address. I used gethostbyname and it returns whatever is there in /etc/hosts. I have checked the /etc/resolv.conf. My config details are /etc/rc.conf hostname="Balaji" /etc/hosts 192.168.1.1 Balaji 127.0.0.1 localhost ::1 localhost /etc/resolv.conf nameserver 192.168.1.1 I tried setting Balaji to 0.0.0.0, still it doesn't work. Pls help me. Also, when my system boots, couple of eye-catchy messages syslogd: can't bind address sm_mta[root]:syserror : can't assign address // i hope this is wrt mail/smtp My suspect is that, the error happens after my system was shutdown improperly(sudden power off and my laptop battery isn't working, and ofcourse i am freebsd on my toshiba tera laptop - P4). I have done fdisk to ensure my disk is clean. Thanks, Balaji. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
FreeBSD 7.0
Hi, I am using FreeBSD 6.1 on my laptop. I understand that FreeBSD 7.0 will have ZFS file system. I did go through the sun website to understand the advantages of ZFS. Given that, will FreeBSD have a BTree/B+Tree(replicating c++ multimaps, but file based) by default on ZFS which i guess should be very useful for persons like me who do not want a full fledged database with all SQL features. I am aware of the existence of dbm/ndbm/gdbm, but i guess all support hash. If my thoughts are wrong, pls correct me. I also hope that i have sent to the correct mailing list. Thanks, Balaji. Get easy, one-click access to your favorites. Make Yahoo! your homepage. http://www.yahoo.com/r/hs ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
cvsup problem
Hi, I am not able to use cvsup (I have tried other cvsup*) # cvsup -g -L 2 /root/ports-supfile Parsing supfile "/root/ports-supfile" Connecting to cvsup1.FreeBSD.org Cannot connect to cvsup1.FreeBSD.org: Connection refused Will retry at 17:47:15 I looked at the CVSup home page and so did the following: bash-2.05b$ netstat -na |grep 5999 tcp4 0 0 *.5999 *.*LISTEN Two bits of information: * I am accessing via a firewall. I able to browse the web, send/get mail etc. * I can ping to hosts in the internal network, but not external hosts. Thanks, Balaji - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
MATLAB R13
Hi, I installed MATLAB as per the FreeBSD Handbook. I am able to run MATLAB except that I get the following error messages: --- When starting license manager: $/usr/local/etc/rc.d/flexlm.sh start usage: expr [-e] expression /usr/local/etc/lmboot_TMW: [: -ne: unary operator expected etc... usage: expr [-e] expression /usr/local/etc/lmboot_TMW: [: -ne: unary operator expected MATLAB_lmgrd When starting MATLAB: $matlab -nojvm expr: illegal option -- r usage: expr [-e] expression /compat/linux/usr/local/matlab/bin/matlab: [: -ne: unary operator expected After this, I am able to run MATLAB. However, I have MAPLE installed and due to this error (I think), I am unable to call MATLAB from it. Any help would be greatly appreciated! Thanks, BB PS: Two minor comments on Sec. 22.5: * The license manager cannot be started as root. Perhaps it would be helpful if the prompt in 22.5.2, item 3 were changed to %. * I am able to run MATLAB with jvm. For that I linked the jre to jre1.1.8, instead of jre1.3.1. I have problems shutting it down though; need to use kill -9. But it is possible to run the full MATLAB under NetBSD using Sun's latest JDK (version 1.4.2).(http://www.netbsd.org/gallery/in-Action/). I could not make it to work in FreeBSD. - This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Number of mbuf clusters (NMBCLUSTERS)
Oops. Sorry. I didn't know that we had an option to do this in the conf file. I couldn't find it there though. Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove > -Original Message- > From: Jeff Jirsa [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 24, 2002 2:32 PM > To: Balaji, Pavan > Cc: 'James Snow'; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: Number of mbuf clusters (NMBCLUSTERS) > > > On Wed, 24 Jul 2002, Balaji, Pavan wrote: > > > > > You can increase the maximum number of clusters in > /usr/src/sys/sys/sysctl.h > > and recompile the kernel. But make sure that you have a > stable kernel image > > ready, just in case you increase this value so much that > your kernel doesn't > > boot ;) > > > > I guess the default value is around 9, while for 256MB mem, > you can go upto > > maybe 1 clusters. > > That's questionable advice. Reading the tuning(7) man page: > > > NMBCLUSTERS may be adjusted to increase the number of > network mbufs the > system is willing to allocate. Each cluster represents > approximately 2K > of memory, so a value of 1024 represents 2M of kernel > memory reserved for > network buffers. You can do a simple calculation to > figure out how many > you need. If you have a web server which maxes out at > 1000 simultaneous > connections, and each connection eats a 16K receive and > 16K send buffer, > you need approximate 32MB worth of network buffers to > deal with it. A > good rule of thumb is to multiply by 2, so 32MBx2 = > 64MB/2K = 32768. So > for this case you would want to se NMBCLUSTERS to 32768. > We recommend > values between 1024 and 4096 for machines with moderates > amount of mem- > ory, and between 4096 and 32768 for machines with greater > amounts of mem- > ory. Under no circumstances should you specify an > arbitrarily high value > for this parameter, it could lead to a boot-time crash. > The -m option to > netstat(1) may be used to observe network cluster use. > > Figure out how many connections you'll deal with, and then > increase the > value accordingly, rather than simply guessing and possibly wasting > memory you may want to use elsewhere. I'd also recommend > modifying your > kernel config file rather than sysctl.h, and then rebuilding. > > - Jeff > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Number of mbuf clusters (NMBCLUSTERS)
You can increase the maximum number of clusters in /usr/src/sys/sys/sysctl.h and recompile the kernel. But make sure that you have a stable kernel image ready, just in case you increase this value so much that your kernel doesn't boot ;) I guess the default value is around 9, while for 256MB mem, you can go upto maybe 1 clusters. Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove > -Original Message- > From: James Snow [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 24, 2002 2:05 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: Number of mbuf clusters (NMBCLUSTERS) > > > Funny that you should post this at exactly the same time > that I was beginning to look for other instances of the > 'mbuf clusters exhausted' message. > > On Sat, Jul 13, 2002 at 11:56:18PM -0400, [EMAIL PROTECTED] wrote: > > > > I'm seeing a bit of problem with my FreeBSD 4.6 stable server. > > Me: > > FreeBSD 4.6-STABLE. > > > My server: FreeBSD 4.6 Stable, Intel P3 933 / 256M Memory / > a pair of > > 60G IDE drives (Seagate ATA IV). NIC: Intel EtherExpress 100+ > > NFS export. > > Me: > > dc0: <82c169 PNIC 10/100BaseTX> > > > Jul 12 09:28:54 nile /kernel: All mbuf clusters exhausted, > > please see tuning(7). > > I got a bunch of these yesterday, while scp'ing files to > this machine. > > > The drive is hooked up to a Promise PCI ATA/UDMA 100 > > controller card. > > The drive I was writing to is controlled by: > > atapci1: > > Curious > > > -Snow > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Sockets function list
Richard Stevens -- UNIX Network Programming Richard Stevens & Gary Wright -- TCP Illustrated Vol II Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove -Original Message-From: Sulaiman Khan [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 24, 2002 3:03 AMTo: [EMAIL PROTECTED]Subject: Sockets function list Hello, The sockets for my software are based on the BSD Sockets API. I want to make it fully compatiable with the BSD Sockets. For that I require a complete listing of the BSD Sockets function prototypes. where can i find that. Thanks a lot. Best Regards, Sulaiman Khan
RE: If a disk is mounted read only is it possible to corrupt it?
Corruption need not necessarily be s/w based. If your reader/writer is screwed up, it might still corrupt it. Guess, I'm too paranoid ;-) Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove > -Original Message- > From: Brian T. Schellenberger [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 22, 2002 8:17 AM > To: Jens Rehsack; Philip Hallstrom > Cc: [EMAIL PROTECTED] > Subject: Re: If a disk is mounted read only is it possible to corrupt > it? > > > On Monday 22 July 2002 06:23 am, Jens Rehsack wrote: > | Philip Hallstrom wrote: > | > Hi all - > | > This seems like an obvious answer, but I didn't > see anything in > | > the man pages or the FQ so... > | > > | > If I mount *all* of my partitions as read only (ignoring > the problems of > | > needing to write log files, etc. for now) and then cut > the power to the > | > server, is there any chance of corrupting the disk? It seems that > | > FreeBSD wouldn't do it, but would the disk itself do it? > | > | That depends on the disk you're using. If you have problem with your > | power supply, you should better think 'bout an uninterruptable power > | supply. > > Unless there is a power surge or physical trauma, a disk most > certainly should > not be capable of "self-corrupting" unless a write has been > issued, and if > they are mounted r/o then FreeBSD will never issue a write. > > > > -- > Brian, the man from Babble-On . . . . [EMAIL PROTECTED] (personal) > http://www.babbleon.org > > http://www.eff.org > http://www.programming-freedom.org > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Boot -s doesn't work any other ideas
Did you make some modifications to the kernel? Probably it's become unstable. Did you try to boot it in some other kernel? Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove > -Original Message- > From: george rousson [mailto:[EMAIL PROTECTED]] > Sent: Saturday, July 20, 2002 8:29 AM > To: [EMAIL PROTECTED] > Subject: Boot -s doesn't work any other ideas > > > > > Hi > > I'm trying to recover a root password however when > doing boot -s in the beggining it doesn't work at all > . > > I can mount this disk from another OS (openbsd) and see > the files on this hard disk. > > Is there any other way i can break the password so i > can make this work., > > > thanks > > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: make buildworld error
libpam -- the 'cause of the error is not installed by the standard installation settings in FreeBSD 4.6. You need to either use completer installation from the CD or remove libpam from the Makefile in /usr/src/lib -- I used the second one, and it hasn't given any problems so far. Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove > -Original Message- > From: Jesse Geddis [mailto:[EMAIL PROTECTED]] > Sent: Saturday, July 20, 2002 10:05 PM > To: [EMAIL PROTECTED] > Subject: make buildworld error > > > This is what i get during a make build world on a > freshly installed system > with all the source after just doing a CVS off > cvs2.freebsd.org of all but > the docs: > > pointers? > > cc -fpic -DPIC -O -pipe > -I/usr/src/lib/libpam/modules/pam_ssh/../../../../crypt > o/openssh -c /usr/src/lib/libpam/modules/pam_ssh/pam_ssh.c > -o pam_ssh.So > building shared library pam_ssh.so > /usr/obj/usr/src/i386/usr/libexec/elf/ld: cannot find -lssh > *** Error code 1 > > Stop in /usr/src/lib/libpam/modules/pam_ssh. > *** Error code 1 > > Stop in /usr/src/lib/libpam/modules. > *** Error code 1 > > Stop in /usr/src/lib/libpam. > *** Error code 1 > > Stop in /usr/src/lib. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: giving priority to udp over tcp?
TCP traffic as such does not get any priority over UDP traffic, but the way in which the TCP messages are sent (Data Streaming) is different from the way UDP messages are sent (Datagram). In essense, UDP messages wait till there's enough space for the entire message before the message is added to the output queue. Whereas, if there isn't enough space for the entire message, a part of the message is sent and the rest buffered. So, it might appear to be getting higher priority for some applications. Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove > -Original Message- > From: Benjamin Franks [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 19, 2002 12:13 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: giving priority to udp over tcp? > > > > I'm using FreeBSD 4.5 and have custom applications that send receive > network packets over both tcp and udp sockets. For the sake of an > example, assume that the udp traffic is always constant, but the tcp > traffic density changes. During times of heavy tcp traffic > density, will > udp messages which have been sent to the out queue typically > wait in the > queue longer before being sent out? Does tcp traffic get some sort of > priority? If so, is there a way I can de-prioritize tcp > traffic and up > the priority of the udp traffic to make certain all the queued udp > messages get out as soon as possible...? sysctl variables? does it > depend on the network card driver, or perhaps i'm imagining > something that > isn't there and the two traffic types are totally isolated! ;) > > Thanks! > --Ben > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Error mounting cdrom
http://lantech.geekvenue.net/chucktips/jason/chuck/987270955/index_html Maybe that would help. Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove -Original Message-From: Joseph Maxwell [mailto:[EMAIL PROTECTED]]Sent: Thursday, July 18, 2002 9:23 AMTo: Balaji, PavanSubject: RE: Error mounting cdromHi, In a not too recent posting you said > Date: Tue., 9 Jul 2002 21:20:03 -0700 > From: "Balaji, Pavan" <[EMAIL PROTECTED]> > Subject: RE: Error mounting cdrom. > > By default, only "root" can mount the cdrom in FreeBSD. You can change this > by changing the /etc/fstab entry to "users, ro, noauto", instead of the > default "ro,noauto" In response to [EMAIL PROTECTED] > > I never had to use a cdrom yet. But id like to get some data > > off of the > > FreeBSD 4.6 cd so i dont have to download it all. > > > > [labs] /# mount /cdrom > > cd9660: /dev/acd0c: Input/output error > > [labs] /# > > > > Im sure you know what im doing wrong. The cdrom is in the > > drive, and there > > is an fstab entry. I've tried your suggestions on FreeBSD vers 4.2 output ==> cd9660: -o users: option not supported Comments ??? Thanks -Joe-
RE: help !!!
Is this printer on the network, or a local setup? If it is on the network -- check if your/it's IP address, etc are configured correctly. Are you able to access other machines from your machine? Are other machines able to access the printer? If it's a local setup == check dmesg for peripheral devices. If it's a standard printer, FreeBSD might have (hopefully) detected it. Just guesses. None of these might work out. Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove > -Original Message- > From: mehmet emin [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 18, 2002 4:01 AM > To: [EMAIL PROTECTED] > Subject: help !!! > > > hi, > i am a student at Fatih University in Turkey. > i have an important problem with freeBSD. > these days , i am doing my summer internship, > and using freeBSD. i am learning freeBSD these days. > i have to setup our printer in freeBSD. > we are not able to use the printer. > i have to setup it. > i have read your handbook, and tried to do what is written, > but didn't work. > i logged in as root. > then looked at the ports (lpt0, lpt1, lpt2). used this > command: " ./MAKEDEV lpt0 " (also tried for lpt1 and lpt2) > whiile i was in the directory /dev. > then i tried some other things written in the page, but > nothing worked. > (XEROX DocuPrint P8e) > please help me to setup the printer, > thanks > Mehmet Emin ISIK > > 07010006 mehmet emin ýþýk > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: /cdrom for normal users?
By default, cdrom is /dev/acd0c is only mountable by root in FreeBSD. You can make it mountable by normal users by changing the /etc/fstab entry to users,ro,noauto /dev/acd0c /cdrom cd9660 users,ro,noauto 0 0 Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove > -Original Message- > From: Steve Mazerski [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 17, 2002 5:14 PM > To: [EMAIL PROTECTED] > Subject: /cdrom for normal users? > > > > Is it the "done thing" in FreeBSD for normal users to mount CD-ROMs > in a local directory rather than /cdrom? > > As a normal user all I get is this: > > localuser > mount /cdrom > cd9660: /dev/acd0c: Operation not permitted > > despite changing the permissions on both the CD-ROM device and /cdrom > to 660 and ensuring the local user is in the relevant groups > > I can mount CD-ROMs in a directory owned by the normal user. > > I ask because in Linux, /cdrom is generally useable as a mount point > by all users. It's not a problem, just wondering. > > For reference: > > the relevant line in /etc/fstab: > > /dev/acd0c /cdrom cd9660 ro,noauto > 0 0 > > vfs.usermount is set to 1, and yes, I have read this page: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.htm l#USER-FLOPPYMOUNT S.Mazerski To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: ssh problem
The reason why this output would have come up is that you might have initialized the system to use the S/Key one time passwords -- probably using keyinit. I don't know exactly how to get rid of the problem (I myself have it too), but you can set the password to your login password using keyinit (again!). Sorry! Not too much of a help. Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove > -Original Message- > From: Ryan Masse [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 17, 2002 1:44 PM > To: [EMAIL PROTECTED] > Subject: ssh problem > > > I have several FreeBSD machines in production all running > sshd as the sole > method of terminal services. I have one machine in particular that is > producing rather strange results when trying to ssh into the > machine. I have > c/p a snipet of the output from the console below: > > login as: USER > otp-md5 368 we8402 ext > S/Key Password: > Access denied > USER@DOMAIN password: > Last login: Wed Jul 17 14:40:05 2002 from ptr-207-54-105-9 > Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 > The Regents of the University of California. All > rights reserved. > FreeBSD 4.5-RELEASE-p1 (web2) #0: Thu Feb 28 10:36:19 EST 2002 > > What is the ouput "otp-md5 368 we8402 ext"? This does not > appear on any of > the other machines. Can someone please advise? > > Thanks, > Ryan > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Question on order and targets of kernel and world builds
Nope. buildworld != builkernel. But buildworld does link the libraries. For example if you have a system call and a corresponding library, buildkernel will not be sufficient for you to allow the library call to invoke the corresponding system call -- however a buildworld would do that. Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove > -Original Message- > From: Kevin Kinsey, DaleCo, S.P. [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 17, 2002 10:51 AM > To: Brian T.Schellenberger; parv; John Mills > Cc: Balaji, Pavan; FreeBSD-questions > Subject: Re: Question on order and targets of kernel and world builds > > > He's either quite wrong, or he meant to say > that buildworld builds "kernel source", meaning > ~'files needed to build kernel' ?? If you interpret > "libraries" as I did, that's what he meant > > "make buildworld" != "make buildkernel" > > KDK > > From: "Brian T.Schellenberger" <[EMAIL PROTECTED]> > To: "parv" <[EMAIL PROTECTED]>; "John Mills" <[EMAIL PROTECTED]> > Cc: "Balaji, Pavan" <[EMAIL PROTECTED]>; "FreeBSD-questions" > <[EMAIL PROTECTED]> > Sent: Wednesday, July 17, 2002 9:59 AM > Subject: Re: Question on order and targets of kernel and world builds > > > > > > I'm pretty sure that that buildworld does *not* build kernels. > > > > If anybody has definitive information (like, proof) to the > contrary I'd be > > interested in knowing. > > > > On Wednesday 17 July 2002 10:28 am, parv wrote: > > | in message > <[EMAIL PROTECTED]>, > > | wrote John Mills thusly... > > | > > | > Pavan - > > | > > > | > On Tue, 16 Jul 2002, Balaji, Pavan wrote: > > | > > "make buildworld" -- builds the kernel and the libraries (both > kernel > > | > > and user level) > > | > > > > | > > "make buildkernel" -- builds only the kernel > > | > > > | > Thanks - I didn't realize 'buildkernel' was redundant > to 'buildworld'. > > | > > | since when buildworld target starts building actual > kernels? or, is > > | there a communication problem either on my part or pavan's? > > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Question on order and targets of kernel and world builds
"make buildworld" -- builds the kernel and the libraries (both kernel and user level) "make buildkernel" -- builds only the kernel You can build kernels with different configuration files using "make buildkernel KERNCONF=". Once you do the 'build', the kernel image is stored as /kernel More information in the FreeBSD Handbook. http://www.freebsd.org Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove > -Original Message- > From: John Mills [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 16, 2002 10:04 PM > To: FreeBSD-questions > Subject: Question on order and targets of kernel and world builds > > > Hello - > > I would appreciate a bit more information on the 'world' and 'kernel' > building process. Please point me at the right section of the > Handbook or > Greg's book if there is a succinct description. > > I have been doing 'CVSUP' followed by: > > # make buildworld > # make installworld > # make buildkernel > # make installkernel > > without really knowing if this was a useful order or exactly > what I was > accomplishing with each target. My question is: > > 1) Can I 'make buildworld' to create my tools and supporting > files, then > 2) Use the newly made "world" to 'make buildkernel', and then > 3) 'make installworld; make installkernel' to install these > new filesets > for general use? > > I would like to know if this is an acceptable and > conservative way to do a > rebuild, and to better understand what I get at each step. > > TIA for any guidance. > > - John Mills > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: tcsh: list of all files when pressing tab
What's the bash equivalent for "bindkey"? Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove > -Original Message- > From: Balaji, Pavan [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 16, 2002 3:26 PM > To: 'Roger P. Johnson' > Cc: [EMAIL PROTECTED] > Subject: RE: tcsh: list of all files when pressing tab > > > > Is there somewhere I can get the key names to use with bindkey? > > > Pavan Balaji, > Intel Corporation > > "Only the Paranoid Survive" -- Andy Grove > > > > -Original Message- > > From: Roger P. Johnson [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 16, 2002 3:00 PM > > Cc: [EMAIL PROTECTED] > > Subject: Re: tcsh: list of all files when pressing tab > > > > > > Try this in your .tcshrc file: > > > > set autolist > > bindkey -v > > bindkey ^F complete-word-fwd > > bindkey ^b complete-word-back > > > > This allows you to: > > You can do the auto-complete via tab. > > You can get a list of the matching files. > > You can cycle through the list forward by doing ctl-f > > You can cycle through the list backards by doing ctl-b > > > > This sets your command line editing to vi style. You can also > > set it to > > emacs style. > > > > -Roger > > > > Pascal Giannakakis wrote: > > > > > Hi, > > > > > > in tcsh i can type "/u" and press tab to autocomplete the > > path to "/usr/". > > > However, > > > if there is more than one match, i would like to have a > > list of all possible > > > path's. > > > I know this from linux. What is this feature called and how > > do i enable it? > > > thx! > > > > > > > > > > > > > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > > with "unsubscribe freebsd-questions" in the body of the message > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: tcsh: list of all files when pressing tab
Is there somewhere I can get the key names to use with bindkey? Pavan Balaji, Intel Corporation "Only the Paranoid Survive" -- Andy Grove > -Original Message- > From: Roger P. Johnson [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 16, 2002 3:00 PM > Cc: [EMAIL PROTECTED] > Subject: Re: tcsh: list of all files when pressing tab > > > Try this in your .tcshrc file: > > set autolist > bindkey -v > bindkey ^F complete-word-fwd > bindkey ^b complete-word-back > > This allows you to: > You can do the auto-complete via tab. > You can get a list of the matching files. > You can cycle through the list forward by doing ctl-f > You can cycle through the list backards by doing ctl-b > > This sets your command line editing to vi style. You can also > set it to > emacs style. > > -Roger > > Pascal Giannakakis wrote: > > > Hi, > > > > in tcsh i can type "/u" and press tab to autocomplete the > path to "/usr/". > > However, > > if there is more than one match, i would like to have a > list of all possible > > path's. > > I know this from linux. What is this feature called and how > do i enable it? > > thx! > > > > > > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: su to root
If you read the 'su' manpage, it says that IF the group '0', which usually corresponds to the 'wheel' group is missing, any user can use 'su'. I don't want to try removing group '0' on my machine, 'cause I'm pretty sure my 'root' account (and all the other accounts in the wheel group will be useless after that). I wonder what exactly this means. I don't remember seeing any option for creating/not-creating the wheel group while installation. Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Roman Neuhauser [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 16, 2002 9:55 AM > To: Gavin > Cc: [EMAIL PROTECTED] > Subject: Re: su to root > > > > From: Gavin <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > > Subject: su to root > > Date: Tue, 16 Jul 2002 18:10:09 +0900 > > > > I've just installed FreeBSD 4.5, and using some of my linux > knowledge, > > I've tried to "su" to root from my user account, I've checked the > > online book and I cant seem to find anything about > su-ing... I'm also > > using "Unix hints and HACKS" as my first reference book.. Page 92 > > (Security) says I should type the complete path eg. /bin/su > > /bin/su root > > > > when I type $ /bin/su I get not found > > $ /bin/su root not found > > first, you can check whether a command is in your path by using > the which command, which is in available in all shells i have > installed: > > /usr/local/bin/zsh > roman@freepuppy ~ 107:0 > sh > $ which su > /usr/bin/su > $ which which > /usr/bin/which > $ exit > roman@freepuppy ~ 108:0 > tcsh > > which su > /usr/bin/su > > which which > which: shell built-in command. > > exit > exit > roman@freepuppy ~ 109:0 > bash > zsh: correct 'bash' to 'hash' [nyae]? n > zsh: command not found: bash > roman@freepuppy ~ 110:1 > :) > zsh: parse error near `)' > roman@freepuppy ~ 111:1 > which su > /usr/bin/su > roman@freepuppy ~ 112:0 > echo $SHELL > roman@freepuppy ~ 113:0 > which which > which: shell built-in command > roman@freepuppy ~ 114:0 > > > of course, if you're paranoid, you have to assume that the which > command has been replaced as well. > > > Another question, what group do I need to be in to su to root (if I > > need to be in a special group that is..) > > wheel > > -- > FreeBSD 4.6-STABLE > 4:46PM up 3:05, 6 users, load averages: 0.01, 0.02, 0.00 > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Unable to compile the kernel
Oops. I got hold of the bug. It was my BIOS settings which were wrong, which was causing the problem. Sorry, should have posted it on the group. Thanx anyway. Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Brian T.Schellenberger [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 15, 2002 11:23 PM > To: Balaji, Pavan; '[EMAIL PROTECTED]'; > [EMAIL PROTECTED] > Subject: Re: Unable to compile the kernel > > > On Monday 15 July 2002 01:55 pm, Balaji, Pavan wrote: > | > > I added a system call to the FreeBSD-4.6 kernel and > | > > | > compiled the kernel, > | > > | > > it compiled properly. Now, in my new kernel, if I try > to make some > | > > changes in the system call (very minor changes) and > recompile the > | > > kernel, it gives a compilation error and stops. > | > > | > Which error? > | > | No fixed error. I just core dumps at random places. It > sounds weird, since > | it's only a compilation and not a runtime library, but it's > been happening > | since last night. > > This really doesn't make any sense (at least as a software > problem). If the > *compilation* was going to dump core it would surely be based > on the system > running, not the code it's compiling. > > Indeed, your explanations sound inconsistent. > > We'd stand a much better job of guessing what's going on if you could > possibly type in some actually error messages, or ideally the > atually log of > the section of the make where it fails. > > > -- > Brian, the man from Babble-On . . . . [EMAIL PROTECTED] (personal) > http://www.babbleon.org > > http://www.eff.org > http://www.programming-freedom.org > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Unable to compile the kernel
Oh! I was just trying to think of reasons to present to my manager :-) Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Warren Block [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 15, 2002 6:45 PM > To: Balaji, Pavan > Cc: [EMAIL PROTECTED] > Subject: RE: Unable to compile the kernel > > > On Mon, 15 Jul 2002, Balaji, Pavan wrote: > > > I suspect some dumb a** must have hardcoded the number of > system calls > > somewhere in the kernel and that's what is giving the problem. > > That sounds a lot like someone saying "it must be a bug in the > compiler." > > -Warren Block * Rapid City, South Dakota USA > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Unable to compile the kernel
> 1. faulty memory > 2. faulty cache > 3. cooling problems > 4. overclocking > 5. Bad timing settings in the BIOS Can I do something about these? > How did you add the syscall? Is it a KLD or is it built into > the kernel? > Did you modify syscalls.master. How did you get the syscall > #?. Could you > post your syscall code and *any other modifications to the > kernel* you made? I built it into the kernel -- changed the syscalls.master file. The system calls are empty functions. No problem with the functions , am able to use them from user-level programs. It's just when I modify it for the second time (whatever the modification be), that this problem comes up. How do I use kld to add syscalls dynamically? Can you send me some link or a brief how-to. Thanx! Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Fernando Gleiser [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 15, 2002 1:36 PM > To: Balaji, Pavan > Cc: [EMAIL PROTECTED] > Subject: RE: Unable to compile the kernel > > > On Mon, 15 Jul 2002, Balaji, Pavan wrote: > > > > > > > Which error? > > > > No fixed error. I just core dumps at random places. It > sounds weird, since > > it's only a compilation and not a runtime library, but it's > been happening > > since last night. > > gcc dying and dumping core at random places is an indication > of harware > problems. The most common are: > > 1. faulty memory > 2. faulty cache > 3. cooling problems > 4. overclocking > 5. Bad timing settings in the BIOS > > > If it were related to your new kernel, it would be more deterministic. > > > > > > > > > > > Which system call? > > > > My own system call. It's an empty function right now. > > > > How did you add the syscall? Is it a KLD or is it built into > the kernel? > Did you modify syscalls.master. How did you get the syscall > #?. Could you > post your syscall code and *any other modifications to the > kernel* you made? > > > > > > > > > Did anyone else have such a problem? Any suggestions? Tips? > > > > > > Could you post more details? > > > > I suspect some dumb a** must have hardcoded the number of > system calls > > somewhere in the kernel and that's what is giving the problem. > > No, it is not. You can even add syscalls dynamically via a KLD. > It is easier to develop the syscall as a KLD and then add it > statically > to the kernel. > > > > Fer > > > > > > Pavan Balaji, > > CIS Graduate Student, > > Ohio State University > > > > "Being happy doesn't mean that everything is perfect... It > just means that > > you have decided to see beyond the imperfections" -- Rash > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > > with "unsubscribe freebsd-questions" in the body of the message > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Unable to compile the kernel
> > I added a system call to the FreeBSD-4.6 kernel and > compiled the kernel, > > it compiled properly. Now, in my new kernel, if I try to make some > > changes in the system call (very minor changes) and recompile the > > kernel, it gives a compilation error and stops. > > Which error? No fixed error. I just core dumps at random places. It sounds weird, since it's only a compilation and not a runtime library, but it's been happening since last night. > > Essentially, I'm not able to make changes and re-compile > from my kernel, > > but am able to do the same from the generic kernel. The > only difference > > between my kernel and the generic kernel is an additional > system call. > > Which system call? My own system call. It's an empty function right now. > > Did anyone else have such a problem? Any suggestions? Tips? > > Could you post more details? I suspect some dumb a** must have hardcoded the number of system calls somewhere in the kernel and that's what is giving the problem. Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Unable to compile the kernel
I added a system call to the FreeBSD-4.6 kernel and compiled the kernel, it compiled properly. Now, in my new kernel, if I try to make some changes in the system call (very minor changes) and recompile the kernel, it gives a compilation error and stops. I removed all the changes I had made and tried to compile the kernel again, but it didn;t help. Essentially, I'm not able to make changes and re-compile from my kernel, but am able to do the same from the generic kernel. The only difference between my kernel and the generic kernel is an additional system call. Did anyone else have such a problem? Any suggestions? Tips? Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: argc/argv in bash!
Thanx! Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Giorgos Keramidas [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 14, 2002 3:05 PM > To: Balaji, Pavan > Cc: '[EMAIL PROTECTED]' > Subject: Re: argc/argv in bash! > > > On 2002-07-14 12:53 +, Balaji, Pavan wrote: > > > > How do we use argc and argv (C like) in bash scripts? > > The number of command line arguments is $#. For example: > > % cat foo.sh > #!/bin/sh > echo $# > > % sh foo.sh > 0 > > % sh foo.sh hello world > 2 > > % sh foo.sh "hello world" > 1 > > The argv[] equivalent is $@. > > % cat foo2.sh > #!/bin/sh > > for argument in $@ ;do > echo $argument > done > > % sh foo2.sh > % > > % sh foo2.sh hello world > hello > world > % > > % sh foo2.sh "hello world" > hello world > % > > For more details about the "special variables" of sh, read the sh(1) > manpage. > > % man 1 sh > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: rsh not working
I tried that, but it didn't work. However, I did figure out the way to do it (thanx to simon!) -- we need to uncomment even the login and exec commands. Probably there are better ways of doing it. Still experimenting. Thanx anyways, Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Jonathan Chen [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 14, 2002 2:39 PM > To: Balaji, Pavan > Cc: '[EMAIL PROTECTED]' > Subject: Re: rsh not working > > > On Sun, Jul 14, 2002 at 12:12:28PM -0700, Balaji, Pavan wrote: > > > > /etc/inetd.conf just gives an option for telnet, but not > for 'rsh'. I'm not > > able to get 'rsh' working yet. Any other suggestions? > > It's these lines in /etc/inetd.conf: > > #shell stream tcpnowait root/usr/libexec/rshd rshd > #shell stream tcp6 nowait root/usr/libexec/rshd rshd > > Uncomment them, signal inetd, and thazzit. > -- > Jonathan Chen <[EMAIL PROTECTED]>Once is dumb luck. > Twice is coincidence. > Three times and Somebody Is Trying To Tell You Something. > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
argc/argv in bash!
How do we use argc and argv (C like) in bash scripts? Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: rsh not working
/etc/inetd.conf just gives an option for telnet, but not for 'rsh'. I'm not able to get 'rsh' working yet. Any other suggestions? Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Simon Dick [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 14, 2002 1:56 PM > To: Balaji, Pavan > Cc: '[EMAIL PROTECTED]' > Subject: Re: rsh not working > > > On Sun, Jul 14, 2002 at 11:53:40AM -0700, Balaji, Pavan wrote: > > > > I'm not able to get rsh or telnet to work on my FreeBSD box > (however ssh > > works fine). Is there some file I need to edit to get this to work? > > /etc/inetd.conf > > -- > Simon Dick[EMAIL PROTECTED] > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
rsh not working
I'm not able to get rsh or telnet to work on my FreeBSD box (however ssh works fine). Is there some file I need to edit to get this to work? Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: as(1) make error on make buildworld
I had a similar problem with libpam where the compiler wasn't able to recognise the inline command. I removed it's entry from my makefile for the time being. If you do figure out what the problem is, please post it on the group. Thanx! Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Kyle J. McFarlane [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 14, 2002 12:36 AM > To: [EMAIL PROTECTED] > Subject: as(1) make error on make buildworld > > > Hullo all, > > I've got a 4.5 machine, and am trying to upgrade to 4.6. > I've downloaded > all the sources with cvsup, and have the following problem with as > compilation when i make buildworld: > > -- start output -- > In file included from > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/as.h:636, > from > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c:31: > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/tc.h:68: warning: redundant redeclaration > of `number_to_chars_littleendian' in same scope > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/write.h:188: warning: previous > declaration of `number_to_chars_littleendian' > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c: In function `dwarf2_directive_file': > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c:348: warning: comparison > between signed and unsigned > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c: At top level: > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c:438: syntax error before `void' > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c:447: syntax error before `void' > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c:456: syntax error before `void' > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c:465: syntax error before `void' > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c:483: syntax error before `void' > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c: In function `out_set_addr': > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c:542: warning: declaration of > `expr' shadows global declaration > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c: In function `relax_inc_line_addr': > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c:745: warning: declaration of > `expr' shadows global declaration > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c: In function `out_debug_line': > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c:959: warning: declaration of > `expr' shadows global declaration > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c: In function `out_debug_aranges': > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c:1027: warning: declaration of > `expr' shadows global declaration > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c: In function `out_debug_info': > /usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../c > ontrib/binutils/gas/dwarf2dbg.c:1133: warning: declaration of > `expr' shadows global declaration > *** Error code 1 > > Stop in /usr/src/gnu/usr.bin/binutils/as/i386-freebsd. > *** Error code 1 > > Stop in /usr/src/gnu/usr.bin/binutils/as. > *** Error code 1 > > Stop in /usr/src/gnu/usr.bin/binutils. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > # exit > > -- stop output -- > > The syntax error seems to come from the compiler not recognising the > 'inline' part of the function prototypes for out_byte(), out_opcode(), > out_two() and out_four() functions. > > uname -a gives:
RE: Library functions
I did installworld after that. But, the problem is I want to have the same name for my library call as the system call. Something similar to fork(). The system call is "fork", and I can call fork() in my user program -- I don't have to use syscall(2). How do I do this? Any suggestions? Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Roman Neuhauser [mailto:[EMAIL PROTECTED]] > Sent: Saturday, July 13, 2002 3:35 AM > To: Balaji, Pavan > Cc: '[EMAIL PROTECTED]' > Subject: Re: Library functions > > > > From: "Balaji, Pavan" <[EMAIL PROTECTED]> > > To: "'[EMAIL PROTECTED]'" > <[EMAIL PROTECTED]> > > Subject: Library functions > > Date: Fri, 12 Jul 2002 23:32:26 -0700 > > > > > > I was having some problem adding a new library call in > FreeBSD. I added a > > simple library function in /usr/src/lib/libc/net and did a > "make buildworld" > > on /usr/src. It compiled properly, but I'm not able to use > the library call > > in my programs. Am I doing something wrong? > > Yes. You didn't *install* the new world. > > -- > FreeBSD 4.6-STABLE > 10:34AM up 48 mins, 6 users, load averages: 0.01, 0.02, 0.00 > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Library functions
I was having some problem adding a new library call in FreeBSD. I added a simple library function in /usr/src/lib/libc/net and did a "make buildworld" on /usr/src. It compiled properly, but I'm not able to use the library call in my programs. Am I doing something wrong? Here's the file added to /usr/src/lib/libc/net: -- mycall.c: #include #include int mycall (a) { return (a); } --- mycall.h (Added to /usr/include/net/) #ifndef _NET_MYCALL_H_ #define _NET_MYCALL_H_ int mycall __P((int)); #endif On compilation the user program says: undefined reference to 'mycall' Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: need help configuring X
There was a similar question posted this morning. The solution turned out that FreeBSD wasn't able to detect the Monitor Horizontal and Vertical syncs. Try setting them manually, maybe yours might work too. :-) Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Neil Bliss [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 4:42 PM > To: [EMAIL PROTECTED] > Cc: Neil Bliss > Subject: need help configuring X > > > Hey folks, > > I'm having some troubles getting X set up correctly. I'm > using FreeBSD > 4.5-RELEASE, and running Xfree86 4.2.0. I have a Matrox > Millenium G400 video > card, and a ViewSonic G810 monitor. The only mode that I'm > able to get X to > run in is 800x600, and the desktop is all "shaky" (for lack > of a better word). > Has anyone successfully used the g400 under X? Any pointers? > > thanks, > > Neil > -- > Neil Bliss -- MontaVista Technical Support > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
One more question on System Calls
I have now been able to add my own system call, but right now, I'm able to access it only through the system(param) command. How do I let my program directly call the function? For example if my system call is: mycall (void) with a syscall number as 300. Right now I'm able to call this from my "C" program using syscall (300), but I wan't to call it directly as mycall() from the program. Hope I made sense... :-( Any suggestions? Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Problem adding new system call!!
Damn! Damn! Damn! No wonder it wasn't working. Thanx a lot.. :-) Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Adam Weinberger [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 1:41 PM > To: Balaji, Pavan > Cc: 'Adam Weinberger'; [EMAIL PROTECTED] > Subject: Re: Problem adding new system call!! > > > >> (07.12.2002 @ 1134 PST): Balaji, Pavan said, in 3.4K: << > > smuck.h: > > > > #ifndef _NETINET_SMUCK_H_ > > #define _NETINET_SMUCK_H_ > > > > > > #ifndef _KERNEL > > > > #define > > did you mean #include ? > > -Adam > > > -- > "Oh good, my dog found the chainsaw." > -Lilo > Adam Weinberger > [EMAIL PROTECTED] > http://www.crackula.com > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Problem adding new system call!!
Oops sorry.. - $ make server gcc -I/usr/include -O0 -g -pipe smuck.c -o smuck In file included from smuck.c:8: /usr/include/netinet/smuck.h:15: invalid macro name *** Error code 1 Stop in /usr/home/pavan/Smuck - smuck.c: #include int main() { return 0; } - smuck.h: #ifndef _NETINET_SMUCK_H_ #define _NETINET_SMUCK_H_ #ifndef _KERNEL #define __BEGIN_DECLS int smucker __P((int, void*, int)); int smuckew __P((int, void*, int)); __END_DECLS #endif /* _KERNEL */ #endif /* _NETINET_SMUCK_H_ */ - Any ideas? Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Adam Weinberger [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 1:24 PM > To: Balaji, Pavan > Cc: [EMAIL PROTECTED] > Subject: Re: Problem adding new system call!! > > > ok, this still doesn't show me the code itself that is causing the > problem, and the error message stating what the problem is. don't > describe to me what you did, SHOW me what you did. > > -Adam > > > >> (07.12.2002 @ 1121 PST): Balaji, Pavan said, in 1.7K: << > > > > I added a header file which prototypes the system call. > > > > Btw, I forgot to mention that I changed the > libc/sys/Makefile.inc file to > > add the system call stub too. But, no good!! :-( > > > > > > Pavan Balaji, > > CIS Graduate Student, > > Ohio State University > > > > "Being happy doesn't mean that everything is perfect... It > just means that > > you have decided to see beyond the imperfections" -- Rash > > > > > > > -Original Message- > > > From: Adam Weinberger [mailto:[EMAIL PROTECTED]] > > > Sent: Friday, July 12, 2002 1:19 PM > > > To: [EMAIL PROTECTED] > > > Cc: [EMAIL PROTECTED] > > > Subject: Re: Problem adding new system call!! > > > > > > > > > ok, what is the exact error message, and what is the > exact macro that > > > it's complaining about? > > > > > > you're asking us to debug code we can't see. > > > > > > -Adam > > > > > > > > > >> (07.12.2002 @ 1057 PST): Pavan Balaji said, in 1.0K: << > > > > It doesn't seem to work. The kernel compiles and loads > > > > without any problem, but the user application says > > > > that the header file definition is an invalid macro. > > > > I'm not following any manual, but just using my Linux > > > > experience with FreeBSD (It's not good enough I guess > > > > :-(). > > > > > > > > Any suggestions? > > > > > > > > Pavan Balaji, > > > > CIS Graduate Student, > > > > Ohio State University > > > > > > > > __ > > > > Do You Yahoo!? > > > > Sign up for SBC Yahoo! Dial - First Month Free > > > > http://sbc.yahoo.com > > > > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > >> end of "Problem adding new system call!!" from Pavan Balaji << > > > > > > > > > -- > > > "Oh good, my dog found the chainsaw." > > > -Lilo > > > Adam Weinberger > > > [EMAIL PROTECTED] > > > http://www.crackula.com > > > > > > >> end of "RE: Problem adding new system call!!" from Balaji, Pavan << > > > -- > "Oh good, my dog found the chainsaw." > -Lilo > Adam Weinberger > [EMAIL PROTECTED] > http://www.crackula.com > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: Problem adding new system call!!
I added a header file which prototypes the system call. Btw, I forgot to mention that I changed the libc/sys/Makefile.inc file to add the system call stub too. But, no good!! :-( Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Adam Weinberger [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 1:19 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: Problem adding new system call!! > > > ok, what is the exact error message, and what is the exact macro that > it's complaining about? > > you're asking us to debug code we can't see. > > -Adam > > > >> (07.12.2002 @ 1057 PST): Pavan Balaji said, in 1.0K: << > > It doesn't seem to work. The kernel compiles and loads > > without any problem, but the user application says > > that the header file definition is an invalid macro. > > I'm not following any manual, but just using my Linux > > experience with FreeBSD (It's not good enough I guess > > :-(). > > > > Any suggestions? > > > > Pavan Balaji, > > CIS Graduate Student, > > Ohio State University > > > > __ > > Do You Yahoo!? > > Sign up for SBC Yahoo! Dial - First Month Free > > http://sbc.yahoo.com > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > > with "unsubscribe freebsd-questions" in the body of the message > > > >> end of "Problem adding new system call!!" from Pavan Balaji << > > > -- > "Oh good, my dog found the chainsaw." > -Lilo > Adam Weinberger > [EMAIL PROTECTED] > http://www.crackula.com > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: XFree86 4.2 screen resolutions
Also, where are you copying the newly created XF86Config files? FreeBSD used to let me copy them to a number of locations, but the current version works only if I copy it to /etc/X11 (don't know if the case is the same with the others too). Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Jason Barnes [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 1:12 PM > To: [EMAIL PROTECTED] > Subject: XFree86 4.2 screen resolutions > > > > Hi! I am running FreeBSD 4.6-RELEASE and am just biting the > bullet to upgrade to XFree86 4.2 for purposes of KDE3. Everything is > working -- except that I can't seem to get the screen to go > into any mode > but 640x480 (any color depth). I want to get to 1024x768 > (24bit), and I > know this should be possible because it was running that way > under XFree86 > 3.3. I would greatly apreciate any insight you might have into this > matter. Here is my XF86Config: > > Section "ServerLayout" > Identifier "XFree86 Configured" > Screen 0 "Screen0" 0 0 > InputDevice"Mouse0" "CorePointer" > InputDevice"Keyboard0" "CoreKeyboard" > EndSection > > Section "Files" > RgbPath "/usr/X11R6/lib/X11/rgb" > ModulePath "/usr/X11R6/lib/modules" > FontPath "/usr/X11R6/lib/X11/fonts/misc/" > FontPath "/usr/X11R6/lib/X11/fonts/Speedo/" > FontPath "/usr/X11R6/lib/X11/fonts/Type1/" > FontPath "/usr/X11R6/lib/X11/fonts/75dpi/" > FontPath "/usr/X11R6/lib/X11/fonts/100dpi/" > EndSection > > Section "Module" > Load "extmod" > Load "xie" > Load "pex5" > Load "glx" > Load "dri" > Load "dbe" > Load "record" > Load "xtrap" > Load "speedo" > Load "type1" > EndSection > > Section "InputDevice" > Identifier "Keyboard0" > Driver "keyboard" > EndSection > > Section "InputDevice" > Identifier "Mouse0" > Driver "mouse" > Option "Protocol" "MouseSystems" > Option "Device" "/dev/sysmouse" > EndSection > > Section "Monitor" > #DisplaySize 280 210 # mm > Identifier "Monitor0" > VendorName "JEN" > ModelName"1055" > Option "DPMS" > EndSection > > Section "Device" > ### Available Driver options are:- > ### Values: : integer, : float, : "True"/"False", > ### : "String", : " Hz/kHz/MHz" > ### [arg]: arg optional > #Option "slow_edodram"# [] > #Option "slow_dram" # [] > #Option "fast_dram" # [] > #Option "fpm_vram"# [] > #Option "pci_burst" # [] > #Option "fifo_conservative" # [] > #Option "fifo_moderate" # [] > #Option "fifo_aggressive" # [] > #Option "pci_retry" # [] > #Option "NoAccel" # [] > #Option "early_ras_precharge" # [] > #Option "late_ras_precharge" # [] > #Option "lcd_center" # [] > #Option "set_lcdclk" # > #Option "set_mclk"# > #Option "set_refclk" # > #Option "show_cache" # [] > #Option "HWCursor"# [] > #Option "SWCursor"# [] > #Option "ShadowFB"# [] > #Option "Rotate" # [] > #Option "UseFB" # [] > #Option "mxcr3afix" # [] > #Option "XVideo" # [] > Identifier "Card
RE: XFree86 4.2 screen resolutions
Not too sure, but try this: Section "Screen" Identifier "Screen0" Device "Card0" Monitor"Monitor0" DefaultDepth 24 DefaultModes"1024x768" <--- Added this SubSection "Display" Depth 24 Modes "1024x768" "800x600" "640x480" EndSubSection EndSection Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Jason Barnes [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 1:12 PM > To: [EMAIL PROTECTED] > Subject: XFree86 4.2 screen resolutions > > > > Hi! I am running FreeBSD 4.6-RELEASE and am just biting the > bullet to upgrade to XFree86 4.2 for purposes of KDE3. Everything is > working -- except that I can't seem to get the screen to go > into any mode > but 640x480 (any color depth). I want to get to 1024x768 > (24bit), and I > know this should be possible because it was running that way > under XFree86 > 3.3. I would greatly apreciate any insight you might have into this > matter. Here is my XF86Config: > > Section "ServerLayout" > Identifier "XFree86 Configured" > Screen 0 "Screen0" 0 0 > InputDevice"Mouse0" "CorePointer" > InputDevice"Keyboard0" "CoreKeyboard" > EndSection > > Section "Files" > RgbPath "/usr/X11R6/lib/X11/rgb" > ModulePath "/usr/X11R6/lib/modules" > FontPath "/usr/X11R6/lib/X11/fonts/misc/" > FontPath "/usr/X11R6/lib/X11/fonts/Speedo/" > FontPath "/usr/X11R6/lib/X11/fonts/Type1/" > FontPath "/usr/X11R6/lib/X11/fonts/75dpi/" > FontPath "/usr/X11R6/lib/X11/fonts/100dpi/" > EndSection > > Section "Module" > Load "extmod" > Load "xie" > Load "pex5" > Load "glx" > Load "dri" > Load "dbe" > Load "record" > Load "xtrap" > Load "speedo" > Load "type1" > EndSection > > Section "InputDevice" > Identifier "Keyboard0" > Driver "keyboard" > EndSection > > Section "InputDevice" > Identifier "Mouse0" > Driver "mouse" > Option "Protocol" "MouseSystems" > Option "Device" "/dev/sysmouse" > EndSection > > Section "Monitor" > #DisplaySize 280 210 # mm > Identifier "Monitor0" > VendorName "JEN" > ModelName"1055" > Option "DPMS" > EndSection > > Section "Device" > ### Available Driver options are:- > ### Values: : integer, : float, : "True"/"False", > ### : "String", : " Hz/kHz/MHz" > ### [arg]: arg optional > #Option "slow_edodram"# [] > #Option "slow_dram" # [] > #Option "fast_dram" # [] > #Option "fpm_vram"# [] > #Option "pci_burst" # [] > #Option "fifo_conservative" # [] > #Option "fifo_moderate" # [] > #Option "fifo_aggressive" # [] > #Option "pci_retry" # [] > #Option "NoAccel" # [] > #Option "early_ras_precharge" # [] > #Option "late_ras_precharge" # [] > #Option "lcd_center" # [] > #Option "set_lcdclk" # > #Option "set_mclk"# > #Option "set_refclk" # > #Option "show_cache" # [] > #Option "HWCursor"# [] > #Option "SWCursor"# [] > #Option "ShadowFB"# [] > #Option "Rotate" # [] >
Problem adding new system call!!
I was trying to add a system call to my kernel. I did the following steps: 1. Added my ".c" file in the list of files to be compiled at /usr/src/sys/conf/files 2. Added the system call entry to /usr/src/sys/kern/inet_sysent.c and /usr/src/sys/kern/syscall.master 3. Added the argument structure and prototype to /usr/src/sys/sys/sysproto.h 4. Added a user accessible header file to /usr/include/netinet/ It doesn't seem to work. The kernel compiles and loads without any problem, but the user application says that the header file definition is an invalid macro. I'm not following any manual, but just using my Linux experience with FreeBSD (It's not good enough I guess :-(). Any suggestions? Pavan Balaji, CIS Graduate Student, Ohio State University __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: http site
No. http//www.freebsd.org has no http mirrors to download FreeBSD. You have only ftp mirrors out there. Why do you need a http mirror anyway? Something you can't do with a ftp mirror? Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Adam Weinberger [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 11, 2002 11:34 PM > To: ephraim tan > Cc: [EMAIL PROTECTED] > Subject: Re: http site > > > go to http://www.freebsd.org and click on the "Getting > FreeBSD" link on > the left, under "Software." you can download ftp pieces > through your web > browser. besides, you only need 3 files total to begin the FreeBSD > installation process. > > -Adam > > > >> (07.10.2002 @ 2259 PST): ephraim tan said, in 0.4K: << > > > > Dear Sirs, > > Is there a http site i can download freeBSD? > > if so, can u pls give me the address. > > thanks a bunch. > > > > ephraim tan > > > > > > > > _ > > Chat with friends online, try MSN Messenger: > http://messenger.msn.com > > > > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > > with "unsubscribe freebsd-questions" in the body of the message > > > >> end of "http site" from ephraim tan << > > > -- > "Oh good, my dog found the chainsaw." > -Lilo > Adam Weinberger > [EMAIL PROTECTED] > http://www.crackula.com > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: bootloader
I'm not too sure about this. My impression was that all bootloaders (including grub) load themselves into the primary disk -- do you have an option to specify which harddisk you want to load to. Infact that's the reason why most (if not all) Operating Systems need the primary partition to be on the primary harddisk. Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash > -Original Message- > From: Jud [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 11, 2002 1:05 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: bootloader > > > > > -Original Message- > From: Rap Sucks <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Date: Thu, 11 Jul 2002 10:39:11 -0700 (PDT) > Subject: bootloader > > I recently took FreeBSD off my system (350 PII, 2 HDs, bsd > on partition of second disk) but the bsd bootloader still > shows up on boot and doesnt let Grub (or lilo) show up (from > Linux that I installed over the partition) how do i get rid > of the bootloader? > > > - > > Sounds like you're trying to install GRUB on the disk > that your system does *not* actually boot from. What > happens if you try to install GRUB on the first disk? > > Jud > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
RE: bootloader
The bootloader is always installed on the primary harddisk! Infact the primary partition of FreeBSD also is installed on the primary harddisk. This is my guess, maybe I'm wrong -- Run cfdisk on linux as root -- you might find some FreeBSD partition. Delete it! (or convert to linux native). Pavan Balaji, CIS Graduate Student, Ohio State University "Being happy doesn't mean that everything is perfect... It just means that you have decided to see beyond the imperfections" -- Rash -Original Message-From: Rap Sucks [mailto:[EMAIL PROTECTED]]Sent: Thursday, July 11, 2002 12:39 PMTo: [EMAIL PROTECTED]Subject: bootloaderI recently took FreeBSD off my system (350 PII, 2 HDs, bsd on partition of second disk) but the bsd bootloader still shows up on boot and doesnt let Grub (or lilo) show up (from Linux that I installed over the partition) how do i get rid of the bootloader? Do You Yahoo!?New! SBC Yahoo! Dial - 1st Month Free & unlimited access