Re: what is from [sic (wrong)] with this picture? -- Answer: It's Ubuntu, not FreeBSD

2010-09-29 Thread Bas Smeelen

 You can't have a sending domain as thought.org if the @ record for 
 thought.org doesn't exist, IIRC.

 Look to your DNS for the solution, IMNSHO.
No MX for thought.org
It did have a SOA a minute ago, but this is gone also

 By default, postfix was installed on my ubuntu desktop.  I am not
 familiar with it.  I would =like= it to be sending mail to my server
 without the $HOST name instead of $HOST.$DOMAIN name.  I know there are
 a bunch of us who use this kind of setup: FreeBSD for server things and
 some version of linux as a desktop.

 Really, this looks like a postfix blunder.  How do I tell postfix to
 rewrite th e outgoing address without the hostname?
   
This is a postfix question.
Modify main.cf and set myorigin I guess?
http://www.postfix.org/documentation.html


DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, 
disclosure, copying,
distribution or reliance on any of it by anyone else is prohibited. If you have 
received it
by mistake please let us know by reply and then delete it from your system.

___
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: Cache Memory in top command

2010-09-29 Thread vyaaghrah-nix
Hi Adam

It gets me to this following explanation

Cache: number of pages used for VM-level disk caching

I am not sure what is VM-Level disk caching?
Further it does not answer how this value is calculated for a system.

 Regards
Abhijeet.C







From: Adam Vande More amvandem...@gmail.com
To: vyaaghrah-...@yahoo.com
Cc: freebsd-questions@freebsd.org
Sent: Wed, September 29, 2010 8:20:43 AM
Subject: Re: Cache Memory in top command


On Tue, Sep 28, 2010 at 9:40 PM, vyaaghrah-...@yahoo.com wrote:

Hi Everybody

How is Cache memory in the following output calculated, on Free BSD system.

man 1 top

-- 
Adam Vande More
___
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: Cache Memory in top command

2010-09-29 Thread Bas Smeelen
On 09/29/2010 08:50 AM, vyaaghrah-...@yahoo.com wrote:
 Hi Adam

 It gets me to this following explanation

 Cache: number of pages used for VM-level disk caching

 I am not sure what is VM-Level disk caching?
 Further it does not answer how this value is calculated for a system.

   
 How is Cache memory in the following output calculated, on Free BSD system.

 
 man 1 top

   

 *Cache:* number of clean pages caching data that are available for  immediate 
reallocation
http://www.freebsd.org/cgi/man.cgi?query=topsektion=1 
http://www.freebsd.org/cgi/man.cgi?query=topsektion=1



DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, 
disclosure, copying,
distribution or reliance on any of it by anyone else is prohibited. If you have 
received it
by mistake please let us know by reply and then delete it from your system.

___
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: Disappearing available space with ZFS...what am I missing?

2010-09-29 Thread Morgan Wesström

On 2010-09-29 07:56, Aaron wrote:

I've created a ZFS pool with zpool create tank raidz ada0 ada1 ada2
ada3, and then I add some additional mountpoints (I think they're
called) using zfs create tank/storage, etc. In zpool list, I see the
pool with 3.62T available. With df -h, I see 2.4T available for tank,
and tank/storage. When I first created tank, it had the 3.62T
available as I expected. What am I missing? I do have compression set
to gzip-9 on tank which gets inherited like I want, don't know if that
would affect anything.

--Aaron


There's nothing wrong here that I can see, you just have to make a 
distinction between the zfs pool and the filesystems within the pool and 
I agree it can be confusing at first.


The numbers suggest you are using 4 x 1TB (base 10 TB) drives? That 
equals 3.7TiB (base 2 TB) which is the unit zpool/zfs uses. This is the 
total amount of space available to the pool and includes all space on 
all drives in the pool. Nothing strange so far.


Now, since you've told zpool to create filesystems within the pool using 
raidz, the filesystems will have 25% less space available since this 
space is used for parity data. So a filesystem using the whole pool will 
report having 3.7 * 0.75 = 2.7TiB available which is in agreement with 
your numbers. A raidz filesystem will always lose 1 disk worth of space 
and will never report that space as available to you since it will 
always be occupied with parity data.


The pool on the other hand doesn't make a distinction, in this case 
anyway, between user data and parity data so zpool will always report 
what's actually unallocated on all your physical drives in the pool. For 
every GiB you allocate in the filesystem you will allocate 1.33GiB in 
the pool since that includes parity data. zfs list and df -h are 
your best friends to find out how much space is available for your 
files. Don't bother about zpool list.


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


Re: Disappearing available space with ZFS...what am I missing?

2010-09-29 Thread CyberLeo Kitsana
On 09/29/2010 12:56 AM, Aaron wrote:
 I've created a ZFS pool with zpool create tank raidz ada0 ada1 ada2
 ada3, and then I add some additional mountpoints (I think they're
 called) using zfs create tank/storage, etc. In zpool list, I see the
 pool with 3.62T available. With df -h, I see 2.4T available for tank,
 and tank/storage. When I first created tank, it had the 3.62T
 available as I expected. What am I missing? I do have compression set
 to gzip-9 on tank which gets inherited like I want, don't know if that
 would affect anything.

zpool list shows raw space, and zfs list (and, to a certain extent, df)
shows effective capacity. You've configured a raidz, which chews up
extra space to store the redundant parity information; thus, for a
4-disk raidz, 1GB of stored data will use up about 1.33GB of raw space.

Since effective capacity in ZFS is so variable, due to things like ditto
blocks, raidz, compression, and (soon to be added) dedup, the numbers
provided by df no longer make much sense.

This blog posting can provide further elaboration as to why df doesn't
work for advanced file storage:

http://www.c0t0d0s0.org/archives/6168-df-considered-problematic.html

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
cyber...@cyberleo.net

Furry Peace! - http://.fur.com/peace/
___
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: sed problem

2010-09-29 Thread lhmwzy
#%sed -e '/GROUP/{/Test/! d}' test
sed: 1: /GROUP/{/Test/! d}
: extra characters at the end of d command
also have error.
the system:
#uname -a
FreeBSD bxzxfreebsd.slof.com 7.2-RELEASE-p5 FreeBSD 7.2-RELEASE-p5 #1:
Fri Dec  4 17:58:13 CST 2009
l...@bxzxfreebsd.slof.com:/usr/obj/usr/src/sys/lhmwzy  amd64

2010/9/29 lhmwzy lhm...@gmail.com:
 I have a txt file named test:

 USER Added by ftpadmin
 GENERAL 0,0 120 204800 0
 LOGINS 1 0 -1 -1
 TIMEFRAME 0 0
 FLAGS 3
 TAGLINE lanshu4385
 DIR /
 ADDED 1284812614 ftpadmin
 EXPIRES 0
 CREDITS 15000
 RATIO 0
 ALLUP 0 0 0
 ALLDN 0 0 0
 WKUP 0 0 0
 WKDN 0 0 0
 DAYUP 0 0 0
 DAYDN 0 0 0
 MONTHUP 0 0 0
 MONTHDN 0 0 0
 NUKE 0 0 0
 TIME 0 1284812614 0 0
 GROUP Teest 0
 GROUP eest 0
 GROUP dTeest 0
 GROUP tTeest 0
 GROUP Test 0
 IP *...@*

 when I use the follow command:

 #sed -e '/GROUP/{/Test/}! d' test
 then output error:

 sed: 1: /GROUP/{/Test/}! d
 : command } expects up to 0 address(es), found 1

 But this command under linux is OK,how can I do?

___
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


sed problem

2010-09-29 Thread lhmwzy
I have a txt file named test:

USER Added by ftpadmin
GENERAL 0,0 120 204800 0
LOGINS 1 0 -1 -1
TIMEFRAME 0 0
FLAGS 3
TAGLINE lanshu4385
DIR /
ADDED 1284812614 ftpadmin
EXPIRES 0
CREDITS 15000
RATIO 0
ALLUP 0 0 0
ALLDN 0 0 0
WKUP 0 0 0
WKDN 0 0 0
DAYUP 0 0 0
DAYDN 0 0 0
MONTHUP 0 0 0
MONTHDN 0 0 0
NUKE 0 0 0
TIME 0 1284812614 0 0
GROUP Teest 0
GROUP eest 0
GROUP dTeest 0
GROUP tTeest 0
GROUP Test 0
IP *...@*

when I use the follow command:

#sed -e '/GROUP/{/Test/}! d' test
then output error:

sed: 1: /GROUP/{/Test/}! d
: command } expects up to 0 address(es), found 1

But this command under linux is OK,how can I do?
___
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: Disappearing available space with ZFS...what am I missing?

2010-09-29 Thread krad
On 29 September 2010 10:12, Morgan Wesström freebsd-questi...@pp.dyndns.biz
 wrote:

 On 2010-09-29 07:56, Aaron wrote:

 I've created a ZFS pool with zpool create tank raidz ada0 ada1 ada2
 ada3, and then I add some additional mountpoints (I think they're
 called) using zfs create tank/storage, etc. In zpool list, I see the
 pool with 3.62T available. With df -h, I see 2.4T available for tank,
 and tank/storage. When I first created tank, it had the 3.62T
 available as I expected. What am I missing? I do have compression set
 to gzip-9 on tank which gets inherited like I want, don't know if that
 would affect anything.

 --Aaron


 There's nothing wrong here that I can see, you just have to make a
 distinction between the zfs pool and the filesystems within the pool and I
 agree it can be confusing at first.

 The numbers suggest you are using 4 x 1TB (base 10 TB) drives? That equals
 3.7TiB (base 2 TB) which is the unit zpool/zfs uses. This is the total
 amount of space available to the pool and includes all space on all drives
 in the pool. Nothing strange so far.

 Now, since you've told zpool to create filesystems within the pool using
 raidz, the filesystems will have 25% less space available since this space
 is used for parity data. So a filesystem using the whole pool will report
 having 3.7 * 0.75 = 2.7TiB available which is in agreement with your
 numbers. A raidz filesystem will always lose 1 disk worth of space and will
 never report that space as available to you since it will always be occupied
 with parity data.

 The pool on the other hand doesn't make a distinction, in this case anyway,
 between user data and parity data so zpool will always report what's
 actually unallocated on all your physical drives in the pool. For every GiB
 you allocate in the filesystem you will allocate 1.33GiB in the pool since
 that includes parity data. zfs list and df -h are your best friends to
 find out how much space is available for your files. Don't bother about
 zpool list.

 Regards
 Morgan

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



It gets even more hairy when you start adding in reservsions, quotas, and
compression. Slap dedup on top of that and you get magically growing fs
according to df 8)
___
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


Kernel Trap 9 and freeze

2010-09-29 Thread Artem Kuchin

 Hello!

Just upgraded the world and kernel to the latest 8.1-stable via cvs 
yesterday.
Now, at 6 in the morning got kernel trap 9 (screenshot is attached). The 
worst

part is that it did not reboot. It just froze after stopping other cpus.
This is amd64 architecture.
Kernel config is attached too.

The question is how i can make the reboot in such case more reliable? 
Any kernel

options which would more reliable send the server into reboot?
Maybe some other comments on what happened and possible why?


Artem


cpu HAMMER
ident   FINIZDAT

makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols

options SCHED_ULE   # ULE scheduler
options PREEMPTION  # Enable kernel thread preemption
options INET# InterNETworking
options INET6   # IPv6 communications protocols
options SCTP# Stream Control Transmission Protocol
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options UFS_GJOURNAL# Enable gjournal-based UFS journaling
options MD_ROOT # MD is a potential root device
options NFSCLIENT   # Network Filesystem Client
options NFSSERVER   # Network Filesystem Server
options NFSLOCKD# Network Lock Manager
options NFS_ROOT# NFS usable as /, requires NFSCLIENT
options MSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options GEOM_PART_GPT   # GUID Partition Tables.
options GEOM_LABEL  # Provides labelization
options COMPAT_43TTY# BSD 4.3 TTY compat (sgtty)
options COMPAT_FREEBSD32# Compatible with i386 binaries
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE  # ktrace(1) support
options STACK   # stack(9) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options P1003_1B_SEMAPHORES # POSIX-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options PRINTF_BUFR_SIZE=128# Prevent printf output being 
interspersed.
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4)
options AUDIT   # Security event auditing
options MAC # TrustedBSD MAC Framework
options FLOWTABLE   # per-cpu routing cache
#optionsKDTRACE_FRAME   # Ensure frames are compiled in
#optionsKDTRACE_HOOKS   # Kernel DTrace hooks
options INCLUDE_CONFIG_FILE # Include this file in kernel

# Make an SMP-capable kernel by default
options SMP # Symmetric MultiProcessor Kernel

# CPU frequency control
device  cpufreq

# Bus support.
device  acpi
device  pci

# Floppy drives
device  fdc

# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
device  ataraid # ATA RAID drives
device  atapicd # ATAPI CDROM drives
device  atapifd # ATAPI floppy drives
device  atapist # ATAPI tape drives
options ATA_STATIC_ID   # Static device numbering

# SCSI Controllers
device  ahc # AHA2940 and onboard AIC7xxx devices
options AHC_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~128k to driver.
device  ahd # AHA39320/29320 and onboard AIC79xx devices
options AHD_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~215k to driver.
device  amd # AMD 53C974 (Tekram DC-390(T))
device  hptiop  # Highpoint RocketRaid 3xxx series
device  isp # Qlogic family
#device ispfw   # Firmware for QLogic HBAs- normally a module
device  mpt # LSI-Logic MPT-Fusion
#device ncr # NCR/Symbios Logic
device  sym # NCR/Symbios Logic (newer chipsets + those of 
`ncr')
device  trm 

Re: ld(1) cannot find entry symbol _start;

2010-09-29 Thread Anton Shterenlikht



On Tue, 28 Sep 2010, Michel Talon wrote:


Paul B Mahol said:
On 9/28/10, Anton Shterenlikht me...@bristol.ac.uk wrote:

I'm trying to learn the very basics of the
compile - assemble - link process on FreeBSD.
Please don't shoot me.



Then I try to link the object file into
an executable:

% ld tmp.o


You are missing something in above command.



More precisely, if you run gcc -v on a C file you get someting like:
/usr/bin/ld --eh-frame-hdr -V -dynamic-linker /libexec/ld-elf.so.1
/usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib
-L/usr/lib /var/tmp//cco5EINk.o -lgcc --as-needed -lgcc_s --no-as-needed
-lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o
/usr/lib/crtn.o


where the object file produced by compilation and assembling is
/var/tmp//cco5EINk.o

That is adds several other object files to your own in order to get
an executable.

In particular the start symbol, at which execution begins is in
/usr/lib/crt1.o

as you can see from
niobe% nm /usr/lib/crt1.o
w _DYNAMIC
 D __progname
U _fini
U _init
U _init_tls
 T _start
0020 t _start1
 r abitag
U atexit
0004 C environ
U exit
U main
which shows that _start is defined here, (but not e.g. _init). On the
other hand the function main() which is defined in your program is
referred to but undefined here.


thank you. Where can I read more on what each file is for:

% ls -al /usr/lib/crt*
-r--r--r--  1 root  wheel  2552 Sep 15 13:52 /usr/lib/crt1.o
-r--r--r--  1 root  wheel  4656 Sep 15 13:53 /usr/lib/crtbegin.o
-r--r--r--  1 root  wheel  4936 Sep 15 13:53 /usr/lib/crtbeginS.o
-r--r--r--  1 root  wheel  4656 Sep 15 13:53 /usr/lib/crtbeginT.o
-r--r--r--  1 root  wheel  3648 Sep 15 13:53 /usr/lib/crtend.o
-r--r--r--  1 root  wheel  3648 Sep 15 13:53 /usr/lib/crtendS.o
-r--r--r--  1 root  wheel  1928 Sep 15 13:52 /usr/lib/crti.o
-r--r--r--  1 root  wheel  1087 Sep 15 13:52 /usr/lib/crtn.o

The sources for these files are in asm, so would be good
to read a more accessible introduction.

Also, it seems only crt1, crti and crtn are provided
by FreeBSD itself (/usr/src/lib/csu/ia64), crtbegin and
crtend are under /usr/src/contrib/gcc/config/ia64/,
and sources for *S.o and *T.o I can't find at all.
So which of these are specific to GCC on FreeBSD, and
which aren't?

For example if I use g95 compiler instead of gfortran45,
will the linker still need all above object files?

many thanks
anton

___
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: Booting up FreeBSD 8.0

2010-09-29 Thread Wojciech Puchar

I have just installed FreeBSD 8.0 and after I login it stops at $ like its
waiting for me to put some type of information in or something. So what do I
put after the dollar sign???


it means you have to sent some dollars to FreeBSD fundation.

___
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: Booting up FreeBSD 8.0

2010-09-29 Thread Matthias Apitz
El día Wednesday, September 29, 2010 a las 01:07:26PM +0200, Wojciech Puchar 
escribió:

  I have just installed FreeBSD 8.0 and after I login it stops at $ like its
  waiting for me to put some type of information in or something. So what do I
  put after the dollar sign???
 
 it means you have to sent some dollars to FreeBSD fundation.

The OP could key in exactly this chars:

PS1=RTFM

and then press a few times Return to see the efect. He/She could also
read
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html
to see where to go now from here.

HIH

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
___
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: Cache Memory in top command

2010-09-29 Thread Bruce Cran
On Wed, 29 Sep 2010 08:57:09 +0200
Bas Smeelen b.smee...@ose.nl wrote:

  *Cache:* number of clean pages caching data that are available for
 immediate reallocation
 http://www.freebsd.org/cgi/man.cgi?query=topsektion=1
 http://www.freebsd.org/cgi/man.cgi?query=topsektion=1

I believe the Cache value is almost totally unrelated to the
amount of memory used for caching: FreeBSD has a unified buffer cache
so any memory is available for use as cache. Unlike Linux, you can't
look at the line in 'top' to see how much memory is being used for
buffers and cache.

You can find more information about the VM architecture at
http://www.freebsd.org/doc/en/books/arch-handbook/vm.html .

-- 
Bruce Cran
___
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 firewall and TCP ports

2010-09-29 Thread Carmel
While perusing my Apache httpd-error.log, I noticed a large number of
attempts to access my phpmyadmin directory, as well as a few less know
others. Most of these probes originated from China. Since I have no
legitimate business dealing with that region, I decided to create a
table in my IPFW firewall to block them. This is an example:


## IPFW Firewall Rules

# Set rules command prefix
cmd=ipfw -q add

# public interface name of NIC facing the public Internet
pif=nfe0  

# Lets start by listing known bad IP addresses and blocking them. We
# will put them into a table for easier handling.

ipfw -q table 1 add 60.0.0.0/8
ipfw -q table 1 add 61.0.0.0/8

$cmd set 1 deny log all from table\(1\) to any in via $pif

The above is the first entry in my rules file. I know that IPFW is
working since I have blocked other ports for other services and it has
worked correctly.

The problem is that these IPs are not being blocked. I continue to see
them listed in the httpd-error.log. I have rebooted my machine and
therefore am quite certain that these rules are being loaded.

The problem is that I probably do not understand how to properly block
an IP or range of IPs from accessing my web server correctly. I would
really appreciate any assistance.

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


Re: Cache Memory in top command

2010-09-29 Thread Bas Smeelen
On 09/29/2010 01:42 PM, Bruce Cran wrote:
 On Wed, 29 Sep 2010 08:57:09 +0200
 Bas Smeelen b.smee...@ose.nl wrote:

   
  *Cache:* number of clean pages caching data that are available for
 immediate reallocation
 http://www.freebsd.org/cgi/man.cgi?query=topsektion=1
 http://www.freebsd.org/cgi/man.cgi?query=topsektion=1
 
 I believe the Cache value is almost totally unrelated to the
 amount of memory used for caching: FreeBSD has a unified buffer cache
 so any memory is available for use as cache. Unlike Linux, you can't
 look at the line in 'top' to see how much memory is being used for
 buffers and cache.

 You can find more information about the VM architecture at
 http://www.freebsd.org/doc/en/books/arch-handbook/vm.html .

   
The way I understand it:
The amount of cached file data pages is included in the Wired value
The amount of free cache pages that can immediatly can be re-used for
caching is the Cache value
The Buf value is the numbder of pages used for BIO-level disk caching
I think that the value of Inactive also includes some kind of
application data cache
So as you also state, unlike linux there is no way of determining the
amount of memory used for *all caching* with top

For more info of basic design decisions I think this is a good resource
also:
http://docs.freebsd.org/44doc/


DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, 
disclosure, copying,
distribution or reliance on any of it by anyone else is prohibited. If you have 
received it
by mistake please let us know by reply and then delete it from your system.

___
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 firewall and TCP ports

2010-09-29 Thread Bas Smeelen
On 09/29/2010 02:16 PM, Carmel wrote:
 While perusing my Apache httpd-error.log, I noticed a large number of
 attempts to access my phpmyadmin directory, as well as a few less know
 others. Most of these probes originated from China. Since I have no
 legitimate business dealing with that region, I decided to create a
 table in my IPFW firewall to block them. This is an example:


 ## IPFW Firewall Rules

 # Set rules command prefix
 cmd=ipfw -q add

 # public interface name of NIC facing the public Internet
 pif=nfe0  

 # Lets start by listing known bad IP addresses and blocking them. We
 # will put them into a table for easier handling.

 ipfw -q table 1 add 60.0.0.0/8
 ipfw -q table 1 add 61.0.0.0/8

 $cmd set 1 deny log all from table\(1\) to any in via $pif

 The above is the first entry in my rules file. I know that IPFW is
 working since I have blocked other ports for other services and it has
 worked correctly.

 The problem is that these IPs are not being blocked. I continue to see
 them listed in the httpd-error.log. I have rebooted my machine and
 therefore am quite certain that these rules are being loaded.

 The problem is that I probably do not understand how to properly block
 an IP or range of IPs from accessing my web server correctly. I would
 really appreciate any assistance.

   
There is an archived thread on the freebsd forums
http://forums.freebsd.org/archive/index.php/t-10181.html
And a long list of ranges on http://www.parkansky.com/china.htm with
uses apaches features to block these address ranges
I see this also on our webservers, but it doesn't bother those servers or me
Maybe try blocken those ranges first with a rule for each to get the
right subnets and put them in a table afterwards?





DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, 
disclosure, copying,
distribution or reliance on any of it by anyone else is prohibited. If you have 
received it
by mistake please let us know by reply and then delete it from your system.

___
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


Recycling of volumes in Bacula

2010-09-29 Thread Albin Vega
Hello

I have now set up my first couple of backup jobs, both local and over
internet and it seems to bee working fine!! Quite happy about this since its
my first time using Bacula! However I have a couple of questions about
version control an recycling of volumes.
First a little info. I have 5 jobs running, each with its ovn fd/sd and pool
so they can run at the same time. I use incremental backup. Here is the
config of the pool and client for one of the jobs.

}
# File Pool definition
Pool {
  Name = buzzy-pool
  Pool Type = Backup
#  Accept Any Volume = yes # write on any volume in the pool
  LabelFormat = buzzy-
  Recycle = yes   # Bacula can automatically
recycle Volumes
  AutoPrune = yes   # Prune expired volumes
  Volume Retention = 1 year # 1 year
  Maximum Volume Bytes = 50G  # Limit Volume size to something
reasonable
  Maximum Volumes = 10# Limit number of Volumes in Pool
}

Question: When a volume gets recycled, are all the files on that volume just
deleted, or is it just files that has been deleted on the server being
backed up that is deleted?

client {
  Name = buzzy-fd
  Address = buzzy.client.net
  FDPort = 9102
  Catalog = MyCatalog
  Password = Password   # password for FileDaemon 2
  File Retention = 6 months   # 6 months
  Job Retention = 6 months# six months
  AutoPrune = yes# Prune expired Jobs/Files


What I would really like is this:
1. When a deleted file gets older than 6 months (a file that is deleted in
the original server beeing backed up) I would like it to be deleted in the
Bacula system. But I dont want files that in general is older than 6 months
(and not deleted from the original server beeing backed up) to be deleted
from the Bacula system.
2. When sombody changes a file, the file gets backed up again by Bacula, and
every time its chaned it get backed up. Is there a way to configure that
Bacula only keeps the 4 -5 last versions of this file, and delete the older
ones?

I have looked in the manual but not found any good explanations on this.
Google it didnt turn up anything either..

Hope someone could give me som feedback on this.

Best regards
Albin
___
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


ipsec with dynamic IP

2010-09-29 Thread claudiu vasadi
Hello fellas,

I have 2x 8.1-RELEASE machines and I need to create a vpn between them. I've
been reading the handbook on this subject and following the example there, I
was able to establish a link.

The only problem is that both my machines have dynamic (external) IP.

My way of solving this little issue would be to create a script that would
check each machine for a new external IP and if it finds it, replace it
wherever it is needed (gif interface, racoon conf. file)

My question to you is if there is another, cleaner, way of achieving this
and if any of you faced the same situation, how did you come to solve it ?

Also, is there a way to make the gif interface persistent over reboots ? I
couldn;t find any so again, a script comes to mind.

-- 
Best regards,
Claudiu Vasadi
___
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: sed problem

2010-09-29 Thread Wayne Sierke
On Wed, 2010-09-29 at 17:43 +0800, lhmwzy wrote:
 #%sed -e '/GROUP/{/Test/! d}' test
 sed: 1: /GROUP/{/Test/! d}
 : extra characters at the end of d command
 also have error.
 the system:
 #uname -a
 FreeBSD bxzxfreebsd.slof.com 7.2-RELEASE-p5 FreeBSD 7.2-RELEASE-p5 #1:
 Fri Dec  4 17:58:13 CST 2009
 l...@bxzxfreebsd.slof.com:/usr/obj/usr/src/sys/lhmwzy  amd64
 
 2010/9/29 lhmwzy lhm...@gmail.com:
  I have a txt file named test:
 
  USER Added by ftpadmin
  GENERAL 0,0 120 204800 0
  LOGINS 1 0 -1 -1
  TIMEFRAME 0 0
  FLAGS 3
  TAGLINE lanshu4385
  DIR /
  ADDED 1284812614 ftpadmin
  EXPIRES 0
  CREDITS 15000
  RATIO 0
  ALLUP 0 0 0
  ALLDN 0 0 0
  WKUP 0 0 0
  WKDN 0 0 0
  DAYUP 0 0 0
  DAYDN 0 0 0
  MONTHUP 0 0 0
  MONTHDN 0 0 0
  NUKE 0 0 0
  TIME 0 1284812614 0 0
  GROUP Teest 0
  GROUP eest 0
  GROUP dTeest 0
  GROUP tTeest 0
  GROUP Test 0
  IP *...@*
 
  when I use the follow command:
 
  #sed -e '/GROUP/{/Test/}! d' test
  then output error:
 
  sed: 1: /GROUP/{/Test/}! d
  : command } expects up to 0 address(es), found 1
 
  But this command under linux is OK,how can I do?
 

Try:

sed -e '/GROUP/{/Test/!d;}'

or:

sed -e '/GROUP/{' -e '/Test/!d' -e '}'


Wayne


___
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: [Bacula-users] Recycling of volumes in Bacula

2010-09-29 Thread John Drescher
2010/9/29 Albin Vega albinv4...@gmail.com:
 Hello

 I have now set up my first couple of backup jobs, both local and over
 internet and it seems to bee working fine!! Quite happy about this since its
 my first time using Bacula! However I have a couple of questions about
 version control an recycling of volumes.
 First a little info. I have 5 jobs running, each with its ovn fd/sd and pool
 so they can run at the same time. I use incremental backup. Here is the
 config of the pool and client for one of the jobs.

 }
 # File Pool definition
 Pool {
   Name = buzzy-pool
   Pool Type = Backup
 #  Accept Any Volume = yes # write on any volume in the pool
   LabelFormat = buzzy-
   Recycle = yes   # Bacula can automatically
 recycle Volumes
   AutoPrune = yes   # Prune expired volumes
   Volume Retention = 1 year # 1 year
   Maximum Volume Bytes = 50G  # Limit Volume size to something
 reasonable
   Maximum Volumes = 10    # Limit number of Volumes in Pool
 }

 Question: When a volume gets recycled, are all the files on that volume just
 deleted,

When a volume gets recycled the volume gets overwritten in the next
backup that uses it. I think now you can have it automatically
truncate if you want.

or is it just files that has been deleted on the server being
 backed up that is deleted?
No definitely not that.




 client {
   Name = buzzy-fd
   Address = buzzy.client.net
   FDPort = 9102
   Catalog = MyCatalog
   Password = Password   # password for FileDaemon 2
   File Retention = 6 months   # 6 months
   Job Retention = 6 months    # six months
   AutoPrune = yes    # Prune expired Jobs/Files


 What I would really like is this:
 1. When a deleted file gets older than 6 months (a file that is deleted in
 the original server beeing backed up) I would like it to be deleted in the
 Bacula system. But I dont want files that in general is older than 6 months
 (and not deleted from the original server beeing backed up) to be deleted
 from the Bacula system.

Bacula does not have that feature. Also remember that recycling is an
entire volume at once not parts of the volume get deleted over time.
Bacula volumes are append only then  delete the entire volume to
recycle. The reason for this is bacula supports tape and other formats
not just disk and all formats work the same way.

 2. When sombody changes a file, the file gets backed up again by Bacula, and
 every time its chaned it get backed up. Is there a way to configure that
 Bacula only keeps the 4 -5 last versions of this file, and delete the older
 ones?

Bacula does not work this way. And because of my answers above I am
not sure you could force it do do what you want.

John
___
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: ipsec with dynamic IP

2010-09-29 Thread Maciej Milewski
On Wednesday 29 September 2010 15:11:30, claudiu vasadi wrote:
 Hello fellas,
 
 I have 2x 8.1-RELEASE machines and I need to create a vpn between them.
 I've been reading the handbook on this subject and following the example
 there, I was able to establish a link.
 
 The only problem is that both my machines have dynamic (external) IP.
 
 My way of solving this little issue would be to create a script that
 would check each machine for a new external IP and if it finds it, replace
 it wherever it is needed (gif interface, racoon conf. file)
 
 My question to you is if there is another, cleaner, way of achieving this
 and if any of you faced the same situation, how did you come to solve it ?
If you are not bound to IPSEC I think you could use OpenVPN and some kind of 
dyndns service. I haven't set up this between two servers although I'm 
successfuly using it in client-server mode and it works fine. 

 Also, is there a way to make the gif interface persistent over reboots ? I
 couldn;t find any so again, a script comes to mind.
Maybe cloned_interfaces or gif_interfaces in rc.conf would help?
Regards,
Maciej Milewski
___
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-update]cannot open files/.gz: No such file or directory

2010-09-29 Thread Bastien Semene

 Hi,

I'm trying to upgrade a system from 8.0-RELEASE to 8.1-RELEASE, but I 
have the following (non critical) errors :

/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
This line appears hundred of times.
After that, freebsd-update claims that many files are non existent in 
the new version and ask to delete them :


/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
Attempting to automatically merge changes in files... done.

The following file will be removed, as it no longer exists in
FreeBSD 8.1-RELEASE: /boot/device.hints
Does this look reasonable (y/n)? n

I have updated other systems without any difficulty (from the same 8.0 
patch level to 8.1).


I tried to delete /var/db/freebsd-update folder, but it changes nothing. 
Same error.
I found older posts with people searching in the code which function did 
the error, but because everything was fine with the same context on 
other systems I think freebsd-update is mislead (it seems to miss the 
name of the file) at some point.


Does anyone have some hints or direction to follow ?

Thanks,

--
Bastien Semene
Administrateur Réseau  Système

Cyanide Studio - FRANCE

___
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


Location of sensors

2010-09-29 Thread David Demelier

Hello,

I just wonder how to know the location of the sensors, I got a lot of 
them on my HP Probook laptop :


hw.acpi.thermal.tz0.temperature: 87.0C
hw.acpi.thermal.tz1.temperature: 47.0C
hw.acpi.thermal.tz2.temperature: 72.0C
hw.acpi.thermal.tz3.temperature: 59.0C
hw.acpi.thermal.tz4.temperature: 26.4C
hw.acpi.thermal.tz5.temperature: 55.0C

acpi_tz0: Thermal Zone on acpi0
acpi_tz1: Thermal Zone on acpi0
acpi_tz2: Thermal Zone on acpi0
acpi_tz3: Thermal Zone on acpi0
acpi_tz4: Thermal Zone on acpi0
acpi_tz5: Thermal Zone on acpi0

For example I know that there is two sensors on the CPU unit, and one 
one on the Wireless chipset but which one?


If you have any ideas,

Kind 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


Re: sed problem

2010-09-29 Thread lhmwzy
Both are working.
Thk very much.

2010/9/29 Wayne Sierke w...@au.dyndns.ws:
 On Wed, 2010-09-29 at 17:43 +0800, lhmwzy wrote:
 #%sed -e '/GROUP/{/Test/! d}' test
 sed: 1: /GROUP/{/Test/! d}
 : extra characters at the end of d command
 also have error.
 the system:
 #uname -a
 FreeBSD bxzxfreebsd.slof.com 7.2-RELEASE-p5 FreeBSD 7.2-RELEASE-p5 #1:
 Fri Dec  4 17:58:13 CST 2009
 l...@bxzxfreebsd.slof.com:/usr/obj/usr/src/sys/lhmwzy  amd64

 2010/9/29 lhmwzy lhm...@gmail.com:
  I have a txt file named test:
 
  USER Added by ftpadmin
  GENERAL 0,0 120 204800 0
  LOGINS 1 0 -1 -1
  TIMEFRAME 0 0
  FLAGS 3
  TAGLINE lanshu4385
  DIR /
  ADDED 1284812614 ftpadmin
  EXPIRES 0
  CREDITS 15000
  RATIO 0
  ALLUP 0 0 0
  ALLDN 0 0 0
  WKUP 0 0 0
  WKDN 0 0 0
  DAYUP 0 0 0
  DAYDN 0 0 0
  MONTHUP 0 0 0
  MONTHDN 0 0 0
  NUKE 0 0 0
  TIME 0 1284812614 0 0
  GROUP Teest 0
  GROUP eest 0
  GROUP dTeest 0
  GROUP tTeest 0
  GROUP Test 0
  IP *...@*
 
  when I use the follow command:
 
  #sed -e '/GROUP/{/Test/}! d' test
  then output error:
 
  sed: 1: /GROUP/{/Test/}! d
  : command } expects up to 0 address(es), found 1
 
  But this command under linux is OK,how can I do?
 

 Try:

        sed -e '/GROUP/{/Test/!d;}'

 or:

        sed -e '/GROUP/{' -e '/Test/!d' -e '}'


 Wayne



___
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


mpt error

2010-09-29 Thread Robert Fitzpatrick
Just want to check here to see if anyone else has experienced the 
following errors showing up periodically in the logs on a FreeBSD 8.0 
VPS on vmware ESXi...


Sep 29 05:38:35 db1 kernel: mpt0: attempting to abort req 
0xff80002a48c0:60350 function 0
Sep 29 05:38:35 db1 kernel: mpt0: completing timedout/aborted req 
0xff80002a48c0:60350
Sep 29 05:38:35 db1 kernel: mpt0: abort of req 0xff80002a48c0:0 
completed


From what I googled, it appears this may be a disk I/O issue? I have 
another FreeBSD 8.1 install on an exact duplicate server, except it has 
a half the memory, with no errors. This ESXi server with the error has 
12GB RAM and these servers do not use RAID at all.


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


Not Sure Which Package has mssql_connect.

2010-09-29 Thread Martin McCormick
I just upgraded a system from FreeBSD6.3 to 8.1 and only have 2
loose ends so far.

One is that I discovered some of my C code needs a
little touching up to continue to work right and the other is
that we have an application on our system that uses freetds and
makes mysql queries and presently gives me the following error:

Fatal error: Call to undefined function mssql_connect() in 

Line number of script is given and that line reads:

$numero= mssql_connect(sql , natreg1 , PASSWD );

As soon as I find out what port or package contains
mysql_connect, we should be back in business.

I did install mysql50-client. It does not contain the
mysql_connect routine so I deleted it. I installed the port
called mysql-connector-odbc which looked like a good possibility
but it also does not have the connect routine.

I installed php5 to get the php interpreter so it is
possible that I have the wrong php and another php has the
mysql_connect routine so at this time, I am all ears.

Thanks for any suggestions.

Martin McCormick
___
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: Not Sure Which Package has mssql_connect.

2010-09-29 Thread Glen Barber
Hi Martin,

On 9/29/10 10:21 AM, Martin McCormick wrote:
 I just upgraded a system from FreeBSD6.3 to 8.1 and only have 2
 loose ends so far.
 
   One is that I discovered some of my C code needs a
 little touching up to continue to work right and the other is
 that we have an application on our system that uses freetds and
 makes mysql queries and presently gives me the following error:
 
 Fatal error: Call to undefined function mssql_connect() in 
 
 Line number of script is given and that line reads:
 
 $numero= mssql_connect(sql , natreg1 , PASSWD );
 

Are you sure mssql_connect() isn't a typo?  The rest of your email
states mysql_connect().

   As soon as I find out what port or package contains
 mysql_connect, we should be back in business.
 
   I did install mysql50-client. It does not contain the
 mysql_connect routine so I deleted it. I installed the port
 called mysql-connector-odbc which looked like a good possibility
 but it also does not have the connect routine.
 
   I installed php5 to get the php interpreter so it is
 possible that I have the wrong php and another php has the
 mysql_connect routine so at this time, I am all ears.
 

Cheers,

-- 
Glen Barber
___
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: Not Sure Which Package has mssql_connect.

2010-09-29 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martin McCormick wrote:
 I just upgraded a system from FreeBSD6.3 to 8.1 and only have 2
 loose ends so far.
 
   One is that I discovered some of my C code needs a
 little touching up to continue to work right and the other is
 that we have an application on our system that uses freetds and
 makes mysql queries and presently gives me the following error:
 
 Fatal error: Call to undefined function mssql_connect() in 
 
 Line number of script is given and that line reads:
 
 $numero= mssql_connect(sql , natreg1 , PASSWD );
 
   As soon as I find out what port or package contains
 mysql_connect, we should be back in business.
 
   I did install mysql50-client. It does not contain the
 mysql_connect routine so I deleted it. I installed the port
 called mysql-connector-odbc which looked like a good possibility
 but it also does not have the connect routine.
 
   I installed php5 to get the php interpreter so it is
 possible that I have the wrong php and another php has the
 mysql_connect routine so at this time, I am all ears.
 
 Thanks for any suggestions.
 
 Martin McCormick

Hi Martin,

You referred to C code at the top of your message, but are you actually
looking for a PHP extension that contains the mssql_connection function
so some PHP code runs correctly?  I also have a question whether you're
looking for a PHP extension that connections to a MS SQL server or one
that connects to a MySQL server.  I'm guessing you're trying to connect
to MS SQL.

If so, please install http://www.freshports.org/databases/php5-mssql/,
and you should be all set.  You shouldn't need to install
http://www.freshports.org/databases/php5-mysql/ unless you're trying to
connect to a MySQL server, too.

Hope that helps,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFMo0660sRouByUApARAoexAJ0XugUPZFEGysN/9V04ixR48hUQdgCgwyca
hqf9E5l6TdgR+VLanm3RZ60=
=yufJ
-END PGP SIGNATURE-

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


Re: [Freebsd-update]cannot open files/.gz: No such file or directory

2010-09-29 Thread Fernando Apesteguía
On Wed, Sep 29, 2010 at 3:37 PM, Bastien Semene
bsem...@cyanide-studio.com wrote:
  Hi,

 I'm trying to upgrade a system from 8.0-RELEASE to 8.1-RELEASE, but I have
 the following (non critical) errors :
 /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
 This line appears hundred of times.
 After that, freebsd-update claims that many files are non existent in the
 new version and ask to delete them :

 /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
 /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
 /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
 /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
 /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
 /usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
 Attempting to automatically merge changes in files... done.

 The following file will be removed, as it no longer exists in
 FreeBSD 8.1-RELEASE: /boot/device.hints
 Does this look reasonable (y/n)? n

 I have updated other systems without any difficulty (from the same 8.0 patch
 level to 8.1).

 I tried to delete /var/db/freebsd-update folder, but it changes nothing.
 Same error.
 I found older posts with people searching in the code which function did the
 error, but because everything was fine with the same context on other
 systems I think freebsd-update is mislead (it seems to miss the name of the
 file) at some point.

 Does anyone have some hints or direction to follow ?

I reported this a while ago and try to get in touch with Colin
Percival with no luck. I finally could afford a fresh install.


 Thanks,

 --
 Bastien Semene
 Administrateur Réseau  Système

 Cyanide Studio - FRANCE

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

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


Re: [Freebsd-update]cannot open files/.gz: No such file or directory

2010-09-29 Thread Jason

On Wed, Sep 29, 2010 at 04:23:32PM +0200, Fernando Apesteguía thus spake:

On Wed, Sep 29, 2010 at 3:37 PM, Bastien Semene
bsem...@cyanide-studio.com wrote:

 Hi,

I'm trying to upgrade a system from 8.0-RELEASE to 8.1-RELEASE, but I have
the following (non critical) errors :
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
This line appears hundred of times.
After that, freebsd-update claims that many files are non existent in the
new version and ask to delete them :

/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
Attempting to automatically merge changes in files... done.

The following file will be removed, as it no longer exists in
FreeBSD 8.1-RELEASE: /boot/device.hints
Does this look reasonable (y/n)? n

I have updated other systems without any difficulty (from the same 8.0 patch
level to 8.1).

I tried to delete /var/db/freebsd-update folder, but it changes nothing.
Same error.
I found older posts with people searching in the code which function did the
error, but because everything was fine with the same context on other
systems I think freebsd-update is mislead (it seems to miss the name of the
file) at some point.

Does anyone have some hints or direction to follow ?


I reported this a while ago and try to get in touch with Colin
Percival with no luck. I finally could afford a fresh install.



Thanks,

--
Bastien Semene
Administrateur Réseau  Système

Cyanide Studio - FRANCE



What is the exact command line you are running that gets this error?
___
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: Not Sure Which Package has mssql_connect.

2010-09-29 Thread Martin McCormick
Glen Barber writes:
Are you sure mssql_connect() isn't a typo?  The rest of your email
states mysql_connect().

Wow! I've been doing too much of this this week. It's
actually the other way around. The problem is with
mssql_connect and my references to mysql were based on a bit of
confusion.

We are connecting to a remote SQL server and pulling
information off of it. Sorry for the confusion and thanks.

Martin
___
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-update]cannot open files/.gz: No such file or directory

2010-09-29 Thread Bastien Semene

 Le 29/09/2010 17:08, Jason a écrit :

On Wed, Sep 29, 2010 at 04:23:32PM +0200, Fernando Apesteguía thus spake:

On Wed, Sep 29, 2010 at 3:37 PM, Bastien Semene
bsem...@cyanide-studio.com wrote:

 Hi,

I'm trying to upgrade a system from 8.0-RELEASE to 8.1-RELEASE, but 
I have

the following (non critical) errors :
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or 
directory

This line appears hundred of times.
After that, freebsd-update claims that many files are non existent 
in the

new version and ask to delete them :

/usr/sbin/freebsd-update: cannot open files/.gz: No such file or 
directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or 
directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or 
directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or 
directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or 
directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or 
directory

Attempting to automatically merge changes in files... done.

The following file will be removed, as it no longer exists in
FreeBSD 8.1-RELEASE: /boot/device.hints
Does this look reasonable (y/n)? n

I have updated other systems without any difficulty (from the same 
8.0 patch

level to 8.1).

I tried to delete /var/db/freebsd-update folder, but it changes 
nothing.

Same error.
I found older posts with people searching in the code which function 
did the

error, but because everything was fine with the same context on other
systems I think freebsd-update is mislead (it seems to miss the name 
of the

file) at some point.

Does anyone have some hints or direction to follow ?


I reported this a while ago and try to get in touch with Colin
Percival with no luck. I finally could afford a fresh install.



Thanks,

--
Bastien Semene
Administrateur Réseau  Système

Cyanide Studio - FRANCE



What is the exact command line you are running that gets this error?

I'm exactly using :

freebsd-update -r 8.1-RELEASE upgrade

I'm sticking the manual, but using a custom kernel. At this stage this 
should change nothing.


# uname 
-a 
[r...@backup]
FreeBSD backup.cyanide-studio.com 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 
#3: Mon Dec  7 14:44:37 CET 2009 
r...@backup.cyanide-studio.com:/usr/obj/usr/src/sys/GEOMKERNEL  amd64


I installed the 8.0-RELEASE from CDs, as you can see I updated to 
patchlevel 1 without trouble.


The only difference from other systems may be these geom drivers.

Here is the complete command output,
I said yes to the first question to show you how bad the question is :


Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 8.0-RELEASE from update4.FreeBSD.org... 
done.

Fetching metadata index... done.
Inspecting system... done.

WARNING: This system is running a geomkernel kernel, which is not a
kernel configuration distributed as part of FreeBSD 8.0-RELEASE.
This kernel will not be updated: you MUST update the kernel manually
before running /usr/sbin/freebsd-update install.

The following components of FreeBSD seem to be installed:
kernel/generic src/base src/bin src/cddl src/contrib src/crypto src/etc
src/games src/gnu src/include src/krb5 src/lib src/libexec src/release
src/rescue src/sbin src/secure src/share src/sys src/tools src/ubin
src/usbin world/base world/catpages world/dict world/doc world/info
world/lib32 world/manpages world/proflibs

The following components of FreeBSD do not seem to be installed:
world/games


Fetching metadata signature for 8.1-RELEASE from update4.FreeBSD.org... 
done.

Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 8.0-RELEASE for merging... done.
Preparing to download files... done.
Attempting to automatically merge changes in files... done.
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or director
[...CUT...]

The following file will be removed, as it no longer exists in
FreeBSD 8.1-RELEASE: /boot/device.hints
Does this look reasonable (y/n)? y

The following file will be removed, as it no longer exists in
FreeBSD 8.1-RELEASE: /etc/amd.map
Does this look reasonable (y/n)? n

--
Bastien Semene

Can not setting up a Jail Directory Tree

2010-09-29 Thread Phan Quoc Hien
Hi,
I'm using FreeBSD 8.1, I have followed
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-build.htmlto
create a jail.

When I create jail directory tree with command:

make installworld DESTDIR=$D

It run look good about 1 min..and output error below:




=== gnu/usr.bin/texinfo/texindex (install)
 install -s -o root -g wheel -m 555   texindex /jail/fulljail/usr/bin
 install -o root -g wheel -m 444 texindex.1.gz
  /jail/fulljail/usr/share/man/man1
 === gnu/usr.bin/texinfo/doc (install)
 install-info --quiet  --defsection=Miscellaneous  --defentry=  
 info.info/jail/fulljail/usr/share/info/dir
 install-info --quiet  --defsection=Miscellaneous  --defentry=
 info-stnd.info /jail/fulljail/usr/share/info/dir
 install-info --quiet  --defsection=Miscellaneous  --defentry=
 texinfo.info /jail/fulljail/usr/share/info/dir
 install -o root -g wheel -m 444  info.info.gz info-stnd.info.gz
 texinfo.info.gz /jail/fulljail/usr/share/info
 === include (install)
 creating osreldate.h from newvers.sh
 touch: not found
 *** Error code 127

 Stop in /usr/src/include.
 *** Error code 1

 Stop in /usr/src.
 *** Error code 1

 Stop in /usr/src.
 *** Error code 1

 Stop in /usr/src.
 *** Error code 1

 Stop in /usr/src.
 Error: The command 'make installworld' failed.
  Refer to the error report(s) above.




Why error?

--
Best regards,
Mr.Hien
E-mail: phanquoch...@gmail.com
Website: www.mrhien.info
___
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: Disappearing available space with ZFS...what am I missing?

2010-09-29 Thread Aaron
On Wed, Sep 29, 2010 at 03:14, krad kra...@gmail.com wrote:


 On 29 September 2010 10:12, Morgan Wesström
 freebsd-questi...@pp.dyndns.biz wrote:

 On 2010-09-29 07:56, Aaron wrote:

 I've created a ZFS pool with zpool create tank raidz ada0 ada1 ada2
 ada3, and then I add some additional mountpoints (I think they're
 called) using zfs create tank/storage, etc. In zpool list, I see the
 pool with 3.62T available. With df -h, I see 2.4T available for tank,
 and tank/storage. When I first created tank, it had the 3.62T
 available as I expected. What am I missing? I do have compression set
 to gzip-9 on tank which gets inherited like I want, don't know if that
 would affect anything.

 --Aaron

 There's nothing wrong here that I can see, you just have to make a
 distinction between the zfs pool and the filesystems within the pool and I
 agree it can be confusing at first.

 The numbers suggest you are using 4 x 1TB (base 10 TB) drives? That equals
 3.7TiB (base 2 TB) which is the unit zpool/zfs uses. This is the total
 amount of space available to the pool and includes all space on all drives
 in the pool. Nothing strange so far.

 Now, since you've told zpool to create filesystems within the pool using
 raidz, the filesystems will have 25% less space available since this space
 is used for parity data. So a filesystem using the whole pool will report
 having 3.7 * 0.75 = 2.7TiB available which is in agreement with your
 numbers. A raidz filesystem will always lose 1 disk worth of space and will
 never report that space as available to you since it will always be occupied
 with parity data.

 The pool on the other hand doesn't make a distinction, in this case
 anyway, between user data and parity data so zpool will always report what's
 actually unallocated on all your physical drives in the pool. For every GiB
 you allocate in the filesystem you will allocate 1.33GiB in the pool since
 that includes parity data. zfs list and df -h are your best friends to
 find out how much space is available for your files. Don't bother about
 zpool list.

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


 It gets even more hairy when you start adding in reservsions, quotas, and
 compression. Slap dedup on top of that and you get magically growing fs
 according to df 8)



Ahhh...yea. Thanks everyone! I didn't realize that zpool status would
show the raw space (so 4x1TB base10 is ~3.7TB base2), and not the
available space after the 4-1 RAIDZ usage consumes. So that all makes
sense, as well as with reservations, quotas and compression now
causing df to not really know what's going on. If I want to get the
actual values of available space vs used space, I should use zfs get
all filesystem and look at the properties there?

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


pondering my DNS config....

2010-09-29 Thread Gary Kline

I spent hours yesterday checking around my named/DNS files.  I thing the guy 
who rewrote how I _had_ things set up, messup.  pinging ns1.thought.org is void.
It is plato.thought.org that is my pfSense server that might better be my 
primary nameserver.

(Still testing mail; waiting for a response from freebsd-test to show up
on thought.org.)

-- 
Gary Kline  Seattle BSD Users' Group (seabug)  | kl...@magnesium.net
Thought Unlimited Org's Alternate Email Site
http://www.magnesium.net/~kline
   To live is not a necessity; but to live honorably...is a necessity. -Kant

___
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: Location of sensors

2010-09-29 Thread Chuck Swiger
Hi--

On Sep 29, 2010, at 7:12 AM, David Demelier wrote:
 I just wonder how to know the location of the sensors, I got a lot of them on 
 my HP Probook laptop :
 
 hw.acpi.thermal.tz0.temperature: 87.0C
 hw.acpi.thermal.tz1.temperature: 47.0C
 hw.acpi.thermal.tz2.temperature: 72.0C
 hw.acpi.thermal.tz3.temperature: 59.0C
 hw.acpi.thermal.tz4.temperature: 26.4C
 hw.acpi.thermal.tz5.temperature: 55.0C

On a good day, HP will have documented their ACPI zones well enough for you to 
tell what they are.  It's also possible that contacting HP's support might dig 
up more info.

Failing that, however, you might be able to look at the Hardware/Health Status 
page in the BIOS, note the relative temperatures being displayed and what they 
are with, and then compare the sysctl output after a boot.  You might also be 
able to boot into Windows and try running a vendor-supplied thermal monitoring 
utility, and either look for debugging info, perhaps in the logs if it produces 
any, or again try to figure out the correspondence.

Regards,
-- 
-Chuck

___
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: pondering my DNS config....

2010-09-29 Thread Ryan Coleman
Can you post the configuration file for thought.org?

I'm rusty at it but someone might be able to help out.

On Sep 29, 2010, at 12:23 PM, Gary Kline wrote:

 
 I spent hours yesterday checking around my named/DNS files.  I thing the guy 
 who rewrote how I _had_ things set up, messup.  pinging ns1.thought.org is 
 void.
 It is plato.thought.org that is my pfSense server that might better be my 
 primary nameserver.
 
 (Still testing mail; waiting for a response from freebsd-test to show up
 on thought.org.)
 
 -- 
 Gary Kline  Seattle BSD Users' Group (seabug)  | kl...@magnesium.net
Thought Unlimited Org's Alternate Email Site
   http://www.magnesium.net/~kline
   To live is not a necessity; but to live honorably...is a necessity. -Kant
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

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


Re: Cache Memory in top command

2010-09-29 Thread RW
On Wed, 29 Sep 2010 14:41:16 +0200
Bas Smeelen b.smee...@ose.nl wrote:

 On 09/29/2010 01:42 PM, Bruce Cran wrote:
  On Wed, 29 Sep 2010 08:57:09 +0200
  Bas Smeelen b.smee...@ose.nl wrote:
 

   *Cache:* number of clean pages caching data that are available for
  immediate reallocation
  http://www.freebsd.org/cgi/man.cgi?query=topsektion=1
  http://www.freebsd.org/cgi/man.cgi?query=topsektion=1
  
  I believe the Cache value is almost totally unrelated to the
  amount of memory used for caching: FreeBSD has a unified buffer
  cache so any memory is available for use as cache. Unlike Linux,
  you can't look at the line in 'top' to see how much memory is being
  used for buffers and cache.
 
  You can find more information about the VM architecture at
  http://www.freebsd.org/doc/en/books/arch-handbook/vm.html .
 

 The way I understand it:
 The amount of cached file data pages is included in the Wired value
 The amount of free cache pages that can immediatly can be re-used for
 caching is the Cache value

I don't see why it would be included in wired, and I'm pretty sure
that's wrong. 

The cache queue is a stock of clean pages, it's sort of an intermediate
state between inactive and free. Most memory allocations can be
performed directly from the cache queue, which allows memory to hold
useful data right up to the moment it's reallocated, and it allows
FreeBSD to run with very little free (i.e. wasted) memory.

Cache memory is topped-up with memory from the inactive queue in the
background. Likewise inactive memory is topped-up from active memory.
Since that's done on demand the values are virtually meaningless. 


 The Buf value is the numbder of pages used for BIO-level disk caching
 I think that the value of Inactive also includes some kind of
 application data cache

Pretty much anything that isn't permanently wired  can end-up in the
Inactive queue it's a general purpose queue for ageing-out memory.


 So as you also state, unlike linux there is no way of determining the
 amount of memory used for *all caching* with top

FreeBSD sees most memory as a cache of a disk backing-store. So when
you are running a program, it's executing inside a cache of the on-disk
binary and its variables are a cache of the swap backing-store.
___
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: Not Sure Which Package has mssql_connect.

2010-09-29 Thread Martin McCormick
Greg Larkin writes:
 You referred to C code at the top of your message,

That was actually incidental. I was thinking about what had
happened when I transplanted some home-grown C code in to 8.1
and had to clean up some of my lazy habits to make it work
again. So far, nothing I haven't been able to handle.

 but are you actually
 looking for a PHP extension that contains the mssql_connection function
 so some PHP code runs correctly?

Yes.

  I also have a question whether you're
 looking for a PHP extension that connections to a MS SQL server or one
 that connects to a MySQL server.  I'm guessing you're trying to connect
 to MS SQL.

In spite of my rather confused question, that is exactly what I
am doing. We talk to a remote mssql server and pull off new data
from a database.

 
 If so, please install http://www.freshports.org/databases/php5-mssql/,
 and you should be all set.  You shouldn't need to install
 http://www.freshports.org/databases/php5-mysql/ unless you're trying to
 connect to a MySQL server, too.

The first port is what I needed. Many thanks.
___
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


pkg_config Version Numbers

2010-09-29 Thread Martin McCormick
I built bind9.7.1 on a 64-bit FreeBSD system and then
did make package-recursive in order to produce a package that
can be installed on some other systems. After doing so, I get
the following warning on numerous other packages when I install
them.

pkg_add: warning: package pkg_name' requires 'pkg-config-0.23_1', but
 'pkg-config-0.25' is installed

This looks like it could be harmless enough as pkg-config-0.25
is newer but I thought I would ask before creating any more
possible monsters. Is this something to fix or can I forget it?

Thank you.

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


Re: what is from [sic (wrong)] with this picture? -- Answer: It's Ubuntu, not FreeBSD

2010-09-29 Thread Gary Kline
On Wed, Sep 29, 2010 at 08:13:53AM +0200, Bas Smeelen wrote:
 
  You can't have a sending domain as thought.org if the @ record for 
  thought.org doesn't exist, IIRC.
 
  Look to your DNS for the solution, IMNSHO.
 No MX for thought.org
 It did have a SOA a minute ago, but this is gone also
 
  By default, postfix was installed on my ubuntu desktop.  I am not
  familiar with it.  I would =like= it to be sending mail to my server
  without the $HOST name instead of $HOST.$DOMAIN name.  I know there are
  a bunch of us who use this kind of setup: FreeBSD for server things and
  some version of linux as a desktop.
 
  Really, this looks like a postfix blunder.  How do I tell postfix to
  rewrite th e outgoing address without the hostname?

 This is a postfix question.
 Modify main.cf and set myorigin I guess?
 http://www.postfix.org/documentation.html
 

Yes!  changing the line in main.cf lets things get thru to my
server cleanly, thanks for the tip.  I still don't understand
what's wrong with my DNS files.  Hopefully, other folk on-list
will see what's messed up.

-gary

 
 DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, 
 disclosure, copying,
 distribution or reliance on any of it by anyone else is prohibited. If you 
 have received it
 by mistake please let us know by reply and then delete it from your system.
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.90a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org

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


Re: Location of sensors

2010-09-29 Thread Chris Whitehouse

David Demelier wrote:

Hello,

I just wonder how to know the location of the sensors, I got a lot of 
them on my HP Probook laptop :




I looked at something related to this last year. 
http://lists.freebsd.org/pipermail/freebsd-acpi/2009-March/00.html 
has a set of sysctl commands to track the various thermal zones on my HP 
nc6320. You could try running them while doing various things to try to 
affect different areas, eg running sysutils/cpuburn.


I didn't try to define all the sensors because my problem was different 
and I solved it.


Chris
___
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: ld(1) cannot find entry symbol _start;

2010-09-29 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Wed Sep 29 05:50:13 2010
 Date: Wed, 29 Sep 2010 11:51:09 +0100 (BST)
 From: Anton Shterenlikht me...@bristol.ac.uk
 To: Michel Talon ta...@lpthe.jussieu.fr
 Cc: freebsd-questions@freebsd.org
 Subject: Re: ld(1) cannot find entry symbol _start;



 On Tue, 28 Sep 2010, Michel Talon wrote:

  Paul B Mahol said:
  On 9/28/10, Anton Shterenlikht me...@bristol.ac.uk wrote:
  I'm trying to learn the very basics of the
  compile - assemble - link process on FreeBSD.
  Please don't shoot me.
  
  Then I try to link the object file into
  an executable:
 
  % ld tmp.o
 
  You are missing something in above command.
 
 
  More precisely, if you run gcc -v on a C file you get someting like:
  /usr/bin/ld --eh-frame-hdr -V -dynamic-linker /libexec/ld-elf.so.1
  /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib
  -L/usr/lib /var/tmp//cco5EINk.o -lgcc --as-needed -lgcc_s --no-as-needed
  -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtend.o
  /usr/lib/crtn.o
 
 
  where the object file produced by compilation and assembling is
  /var/tmp//cco5EINk.o
 
  That is adds several other object files to your own in order to get
  an executable.
 
  In particular the start symbol, at which execution begins is in
  /usr/lib/crt1.o
 
  as you can see from
  niobe% nm /usr/lib/crt1.o
  w _DYNAMIC
   D __progname
  U _fini
  U _init
  U _init_tls
   T _start
  0020 t _start1
   r abitag
  U atexit
  0004 C environ
  U exit
  U main
  which shows that _start is defined here, (but not e.g. _init). On the
  other hand the function main() which is defined in your program is
  referred to but undefined here.

 thank you. Where can I read more on what each file is for:

 % ls -al /usr/lib/crt*
 -r--r--r--  1 root  wheel  2552 Sep 15 13:52 /usr/lib/crt1.o
 -r--r--r--  1 root  wheel  4656 Sep 15 13:53 /usr/lib/crtbegin.o
 -r--r--r--  1 root  wheel  4936 Sep 15 13:53 /usr/lib/crtbeginS.o
 -r--r--r--  1 root  wheel  4656 Sep 15 13:53 /usr/lib/crtbeginT.o
 -r--r--r--  1 root  wheel  3648 Sep 15 13:53 /usr/lib/crtend.o
 -r--r--r--  1 root  wheel  3648 Sep 15 13:53 /usr/lib/crtendS.o
 -r--r--r--  1 root  wheel  1928 Sep 15 13:52 /usr/lib/crti.o
 -r--r--r--  1 root  wheel  1087 Sep 15 13:52 /usr/lib/crtn.o

 The sources for these files are in asm, so would be good
 to read a more accessible introduction.

Those routines set up the run-time envrionment that any UNIX
c-language evironment expects.  that's that the name 'crt' prefix
means 'c-language run-time'  this involves a bunch of 'gory
mechanical details' that *DON'T* really matter how they get 
accomplished, jus that they _do_ get done.  This includes things
like setting up the 'stack', and the 'heap', initializing the tables
for the dynamic-memory management routines (malloc and friends),
setting up 'stdin/stdout/stderr', and getting the command-line arguments 
processed so that they can be passed as 'argc', and 'argv' (also the 
'environment', in 'envp') to your 'main()' program.


 Also, it seems only crt1, crti and crtn are provided
 by FreeBSD itself (/usr/src/lib/csu/ia64), crtbegin and
 crtend are under /usr/src/contrib/gcc/config/ia64/,
 and sources for *S.o and *T.o I can't find at all.
 So which of these are specific to GCC on FreeBSD, and
 which aren't?

who cares? applies.  it is all simmply required housekeeping
go bring the state of the current running process (i.e, the task/
address-space/etc) to what is defined as the 'initial state' for
a c-language 'main()' program.

 For example if I use g95 compiler instead of gfortran45,
 will the linker still need all above object files?

If you use 'the compiler' to manage the linking process  -- e.g.

  {compilername} -o {executable}  {one-or-more-'object' .o file}

the right files will be automatically included in the executable.

'crt0.o' is the classical program entry point -- it may or may not
rely on other routines to get 'the environment' set up -- especially
depending on what 'advanced' features the program uses.. If you use
light-weight-process 'threads' (-lpthread)  this may call for different
crt0 code.

Unless you are engaged in porting the compiler and O/S to a completely
new hardware architecture, or trying to generate 'stand-alone' code, e.g.
for an embedded processor tht runs witout _anuting called a 'cpu', you 
don't have any reason to worry about this housekeeping code.  Its there,
it works, and it does what it's supposed to. grin   Oh yeah, if you 
tamper with it, you make it incompatible with the use of _any_ existing 
object files.


___
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: pkg_config Version Numbers

2010-09-29 Thread Dan Nelson
In the last episode (Sep 29), Martin McCormick said:
   I built bind9.7.1 on a 64-bit FreeBSD system and then
 did make package-recursive in order to produce a package that
 can be installed on some other systems. After doing so, I get
 the following warning on numerous other packages when I install
 them.
 
 pkg_add: warning: package pkg_name' requires 'pkg-config-0.23_1', but
  'pkg-config-0.25' is installed
 
   This looks like it could be harmless enough as pkg-config-0.25
 is newer but I thought I would ask before creating any more
 possible monsters. Is this something to fix or can I forget it?

You can probably ignore it.  Your build system had some out-of-date
installed software, so your package has dependencies on software versions
that don't exist on newer systems.  Make sure that the binaries you're
installing weren't linked with any out-of-date shared library versions,
though.  That'll cause runtime linker errors when you try and run affected
commands.

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


Re: what is from [sic (wrong)] with this picture? -- Answer: It's Ubuntu, not FreeBSD

2010-09-29 Thread Jon Radel

 On 9/29/10 4:24 PM, Gary Kline wrote:

Yes!  changing the line in main.cf lets things get thru to my
server cleanly, thanks for the tip.  I still don't understand
what's wrong with my DNS files.  Hopefully, other folk on-list
will see what's messed up.


Your domain registrar is having your dns delegated to 3 nameservers:

thought.org.86400INNSns1.thought.org.
thought.org.86400INNSns1.silvertree.org.
thought.org.86400INNSns1.twisted4life.com.
;; Received 142 bytes from 2001:500:48::1#53(b2.org.afilias-nst.org) in 
32 ms


The last of the 3, ns1.twisted4life.com, is of the opinion that your 
domain doesn't exist, given that it has no authoritative data and 
refuses to do recursive lookups for the Internet at large.  I would 
suspect that this would result in the coming and going visibility that 
others have reported.  Basically, you don't exist a third of the time.


You need to make sure that all the nameservers you list with your 
registrar are actually admitting to your existence and are getting 
up-to-date data.  I recall having this conversation with you before.


--

--Jon Radel
j...@radel.com




Re: what is from [sic (wrong)] with this picture? -- Answer: It's Ubuntu, not FreeBSD

2010-09-29 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jon Radel wrote:
  On 9/29/10 4:24 PM, Gary Kline wrote:
 Yes!  changing the line in main.cf lets things get thru to my
 server cleanly, thanks for the tip.  I still don't understand
 what's wrong with my DNS files.  Hopefully, other folk on-list
 will see what's messed up.
 
 Your domain registrar is having your dns delegated to 3 nameservers:
 
 thought.org.86400INNSns1.thought.org.
 thought.org.86400INNSns1.silvertree.org.
 thought.org.86400INNSns1.twisted4life.com.
 ;; Received 142 bytes from 2001:500:48::1#53(b2.org.afilias-nst.org) in
 32 ms
 
 The last of the 3, ns1.twisted4life.com, is of the opinion that your
 domain doesn't exist, given that it has no authoritative data and
 refuses to do recursive lookups for the Internet at large.  I would
 suspect that this would result in the coming and going visibility that
 others have reported.  Basically, you don't exist a third of the time.
 
 You need to make sure that all the nameservers you list with your
 registrar are actually admitting to your existence and are getting
 up-to-date data.  I recall having this conversation with you before.
 

The first thing I would do is check the results of the DNS scan here
(http://www.dnscog.com/report/thought.org) and fix all of the listed
problems.  Keep iterating until the report is clean, or at least doesn't
have any red flags on it.  I've used this service successfully for a
while now to debug DNS problems.

Hope that helps,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFMo+uL0sRouByUApARAlrCAJ9wOlsjn3he03B+dOwrexWYxwm8aQCgvaLx
2Dcr9cD1dzW0PuOyOGIUFfQ=
=PM9u
-END PGP SIGNATURE-

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