Re: pppoe configuration and dns name resolution

2012-10-17 Thread Jack
On Tue, Oct 16, 2012 at 9:19 PM, Mark Blackman m...@exonetric.com wrote:

 On 16 Oct 2012, at 16:38, Jack jacks.1...@gmail.com wrote:

 I 'll try mpd5. Thanks.

 Actually, I was concerned with userland ppp, becoz of the
 scenarios where we have a FreeBSD machine and the only
 way to connect to internet is an adsl modem in bridge mode
 (assuming the mode in modem, can't be  changed).
 In such case the only utilty is ppp, which can be of help.

 Ok, usually bridge mode implies PPPoE and mpd5 does PPPoE. Maybe
 I'm missing your point.

 - Mark

Mark,  what I meant is when we have, say a fresh FreeBSD install, then
the only service we have at expose is ppp. To be able to use mpd5, or
other ports/packages we first need to connect to internet then only
we can install/use mpd5. So, by default we are stuck at using ppp builtin
with FreeBSD.

And yes by bridge mode I meant that username and password
are to be provided to OS, rather than storing them inside adsl modem.

The bridge mode works fine in my Windows XP setup. Nothing special
to configure, just need to go to network connections and create a new
connection, using username and password.
In XP, I'm using DHCP too, so that I don't need to manually
confgure interface IP address.

That's why I'm sure that my network setup is not a issue. The issue lies
somewhere in FreeBSD configuration or somewhere else.


Regards
-- 
Jack
___
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: Fetched Ports index falling out of date

2012-10-17 Thread Erwin Lansing
On Tue, Oct 16, 2012 at 11:10:08PM +0100, Paul Macdonald wrote:
 Hi,

Hi Paul,
 
 For the past 4 days or so, i have noticed an issue where the ports INDEX 
 is out of date.
 
 e.g
 portupgrade-2.4.10,2   succeeds index (index has 2.4.9.9,2)
 sqlite3-3.7.14.1   succeeds index (index has 3.7.14)
 
 This is on both 8.3 REL and 9.0 REL (amd64)
 
 Ports index update performed by make fetch index in /usr/ports
 and also tried portsdb -Fu
 
 Building with Uu fixes issue but i don't fancy doing that locally every day.
 
 Anyone else seeing this?
 
There was some major work on the FreeBSD cluster machines this weekend
and as always with such a large change, some things will be overlooked.
I've talked to the people with the right access and hope it will be
fixed later today.

Best,
Erwin

-- 
Erwin Lansinghttp://droso.dk
er...@freebsd.orghttp:// www.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: MFS root filesystem and static binaries size

2012-10-17 Thread Steve O'Hara-Smith
On Tue, 16 Oct 2012 13:13:41 -0700
Devin Teske devin.te...@fisglobal.com wrote:

 When two files have the same inode, they are hard links to each other.
 Unlike a soft link (or symbolic link as they are more appropriately
 called), which stores a destination-path of the target, a hard link
 instead looks and acts no different than the original in every way.

A better way of thinking about it (ie. closer to reality) is that
the inode entry is the file. When two directory entries both have the same
inode number in them they refer to the same file. Crunchgen produces a
file  with a lot of names.

-- 
Steve O'Hara-Smith at...@sohara.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: clang options question

2012-10-17 Thread Scott Bennett
 On Wed, 17 Oct 2012 04:25:14 +1100 andrew clarke m...@ozzmosis.com
wrote:
On Tue 2012-10-16 10:52:36 UTC-0500, Scott Bennett (benn...@cs.niu.edu) wrote:

 From looking at the clang(1) man page, it is not clear to me what the
 difference is between the -arch option and the -march= option.  Would
 someone please summarize the difference(s) for me?  Thanks much!

From the users POV, clang is supposed to be a drop-in replacement for
gcc, where -arch is also an option. Looking online though, it would
appear it's an Apple Darwin (OS X) only feature of gcc for generating
universal binaries.

 Oh.  Okay.  Thanks for the Darwin info, too.  I hadn't known that
OS X had carried on NEXTSTEP's support for fat binaries.

The question is a bit academic as it doesn't actually do anything in
FreeBSD, at least not for me:

$ clang -o hello -arch x86_64 hello.c
clang: warning: argument unused during compilation: '-arch x86_64'

$ clang -v
clang version 3.1 (branches/release_31)
Target: amd64-portbld-freebsd8.3
Thread model: posix

Nor in Linux (an old version, admittedly):

$ clang -o hello -arch i386 hello.c
clang: warning: argument unused during compilation: '-arch i386'

$ clang -v
clang version 1.1 (branches/release_27)
Target: x86_64-pc-linux-gnu
Thread model: posix

 I see.  So it's just decoration for compatibility with gcc and
something to worry about.  Thanks very much for the response.


  Scott Bennett, Comm. ASMELG, CFIAG
**
* Internet:   bennett at cs.niu.edu  *
**
* A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army.   *
*-- Gov. John Hancock, New York Journal, 28 January 1790 *
**
___
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


Problem upgrading

2012-10-17 Thread Jim Trigg
Any suggestions on how to fix this?

---
argent(1) /usr/ports/ports-mgmt/portmaster# freebsd-update -r 9.0-RELEASE 
upgrade
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 8.2-RELEASE from update5.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 1 metadata files... done.
Inspecting system... done.

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/dict world/doc world/games world/info
world/manpages world/proflibs

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

Does this look reasonable (y/n)? y

Fetching metadata signature for 9.0-RELEASE from update5.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.

The update metadata is correctly signed, but
failed an integrity check.
Cowardly refusing to proceed any further.
---

Thanks,
Jim
___
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: FreeBSD9 - Fresh install (2)

2012-10-17 Thread Jos Chrispijn

Thanks for this very informative suggestion.
I think I need to study it thouroughly, but will certainly head for that 
solution.


kind regards,
Jos Chrispijn

Polytropon:

That would work, and could be performed easily even using
the slice editor of the sysinstall program.

Of course, make sure that all partition references work
properly for _each_ slice. Using labels is a comfortable
way to achieve this. But it would be no problem to use
the device names (as long as the disk won't be moved).

For example:

Slice 1: Installation OS 8.2
- boots to /dev/ad0s1a (kernel is in ad0s1a:/boot/kernel)
- performs root mount of /dev/ad0s1a
- mounts OS partitions /dev/ad0s1[defg]
- mounts data partition /dev/ad0s3

Slice 2: Installation OS 9.0
- boots to /dev/ad0s2a (kernel is in ad0s2a:/boot/kernel)
- performs root mount of /dev/ad0s2a
- mounts OS partitions /dev/ad0s2[defg]
- mounts data partition /dev/ad0s3

Slice 3: Users' home directories

You also use the fdisk command to set the active partition manually,
or write a short skript that flips the switch to boot from the
other slice the next time (comparable to the nextboot command in
relation to kernels); see man fdisk for details.

That won't work in Windows mode, as you cannot click on the slice. :-)




___
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: a metric for number of users

2012-10-17 Thread C. P. Ghost
On Mon, Oct 15, 2012 at 7:34 PM, Chad Perrin per...@apotheon.com wrote:
 Is there some way I could get the number of unique IPs hitting FreeBSD
 servers for software updates?  I'm curious about the direct comparison of
 numbers between FreeBSD, Ubuntu, Fedora, and SUSE for this metric.

You could ask for this, but beware of drawing wrong conclusions. Where I'm
currently working, we're fetching sources, ports and distfiles only
once, rebuild,
test, and then mirror internally to a couple of 10k machines. And I'm sure
we're not alone doing this: it's certainly not such an uncommon scenario out
there.

 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
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: Problem upgrading

2012-10-17 Thread Timothy Snowberger

On 10/17/2012 7:27 AM, Jim Trigg wrote:

Any suggestions on how to fix this?

---
argent(1) /usr/ports/ports-mgmt/portmaster# freebsd-update -r 9.0-RELEASE 
upgrade
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 8.2-RELEASE from update5.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 1 metadata files... done.
Inspecting system... done.

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/dict world/doc world/games world/info
world/manpages world/proflibs

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

Does this look reasonable (y/n)? y

Fetching metadata signature for 9.0-RELEASE from update5.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.

The update metadata is correctly signed, but
failed an integrity check.
Cowardly refusing to proceed any further.
---

Thanks,
Jim
___
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 -i '' -e 's/=_/=%@_/' /usr/sbin/freebsd-update

See http://lists.freebsd.org/pipermail/freebsd-stable/2011-October/064321.html

First, a minor change must be made to the freebsd-update code in order
for it to accept file names appearing in FreeBSD 9.0 which contain the '%'
and '@' characters; without this change, freebsd-update will error out
with the message The update metadata is correctly signed, but failed an
integrity check. 

___
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: MFS root filesystem and static binaries size

2012-10-17 Thread Devin Teske

On Oct 17, 2012, at 1:30 AM, Steve O'Hara-Smith wrote:

 On Tue, 16 Oct 2012 13:13:41 -0700
 Devin Teske devin.te...@fisglobal.com wrote:
 
 When two files have the same inode, they are hard links to each other.
 Unlike a soft link (or symbolic link as they are more appropriately
 called), which stores a destination-path of the target, a hard link
 instead looks and acts no different than the original in every way.
 
   A better way of thinking about it (ie. closer to reality) is that
 the inode entry is the file. When two directory entries both have the same
 inode number in them they refer to the same file. Crunchgen produces a
 file  with a lot of names.
 

For clarity/record, crunchgen(1) itself does not generate the links.

You technically don't have to link to boot_crunch at all, for example:

/stand/boot_crunch ls

Another example:

/rescue/rescue vi

HINT: /rescue/rescue is also a crunchgen(1)-produced binary, just like 
/stand/boot_crunch in the mfsroot.
-- 
Devin

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
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: pppoe configuration and dns name resolution

2012-10-17 Thread Jack
Hi,

 Thank you guys for your suggestions, and sharing your
 experiences with me.

 This time I deleted old /var/log/ppp.log file, and
 I did modify /etc/ppp/ppp.conf - just the location
 of ifaddr line is changed and some more logging
 options set -nothing else is changed.
 .

 The file is this now:

 /etc/ppp/ppp.conf :

 default:

 adsl:
 set log Phase chat lcp ipcp ccp tun command lqm

 set ifaddr 10.0.0.1/0  10.0.0.2/0  255.255.255.0  0.0.0.0

  set device PPPoE:fxp0
  set mru 1492
  set mtu 1492
  set ctsrts off
  set speed sync
  set dial

  enable lqr

  set login
  set authname myusername
  set authkey mypassword
  set timeout 120
  set redial 0 0

# set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 # now this interface is set up at 2nd line in adsl profile

 add default HISADDR
  enable dns

  nat enable no



 -

Then I rebooted FreeBSD, in verbose mode enabled.

 After it booted,  I started ppp like this:

 #ppp -ddial adsl

 Here is the shell o/p along with verbose lines

 /usr/sbin/ppp -ddial adsl

 Working in ddial mode
 Using interface: tun0

  ;verbose lines
 tun0: buf attached
 WARNING: attempt to domain_add(netgraph) after domainfinalize()

 
-

 The output of ifconfig is:

 fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
 options=2009RXCSUM,VLAN_MTU,WOL_MAGIC
 ether 00:16:d3:0c:42:22
 inet 192.168.1.2 netmask 0xff00 broadcast 192.168.1.255
 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 fwe0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500
 options=8VLAN_MTU
 ether 06:e4:0a:1b:50:36
 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL
 ch 1 dma -1
 fwip0: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500
 lladdr 6.e4.a.0.28.1b.50.36.a.2.ff.fe.0.0.0.0
 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
 options=63RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6
 inet6 ::1 prefixlen 128
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9
 inet 127.0.0.1 netmask 0xff00
 nd6 options=21PERFORMNUD,AUTO_LINKLOCAL
 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST metric 0 mtu 1500
 options=8LINKSTATE
nd6 options=21PERFORMNUD,AUTO_LINKLOCAL
 Opened by PID 1731

 
-

 The   /var/log/ppp.log   file contents:

 http://justpaste.it/1fcw



  Is there some standard sequence for the contents of /etc/ppp/ppp.conf ?
  I guess that may be the problem.



  The bridge mode works fine in my Windows XP setup. Nothing special
  to configure, just need to go to network connections and create a new
  connection, using username and password.
  In XP, I'm using DHCP too, so that I don't need to manually
  confgure interface IP address.

  That's why I'm sure that my network setup is not a issue. The issue lies
  somewhere in FreeBSD configuration or somewhere else.




  On Tue, Oct 16, 2012 at 9:19 PM, Mark Blackman m...@exonetric.com wrote:
  
   On 16 Oct 2012, at 16:38, Jack jacks.1...@gmail.com wrote:
  
   I 'll try mpd5. Thanks.
  
   Actually, I was concerned with userland ppp, becoz of the
   scenarios where we have a FreeBSD machine and the only
   way to connect to internet is an adsl modem in bridge mode
   (assuming the mode in modem, can't be  changed).
   In such case the only utilty is ppp, which can be of help.
  
   Ok, usually bridge mode implies PPPoE and mpd5 does PPPoE. Maybe
   I'm missing your point.
  


  Mark,
  what I meant to say is when we have, say a fresh FreeBSD install, then
  the only service we have at expose is ppp. To be able to use mpd5, or
  other ports/packages we first need to connect to internet then only
  we can install/use mpd5. So, by default we are stuck at using ppp builtin
  with FreeBSD. :(

  By bridge mode I meant that username and password
  are to be provided to OS, rather than storing them inside adsl modem.

PS:  I sent this mail with /var/log/ppp.log contents yesterday but
   it seems that list moderator rejected the post due to its large
   size.
   So, I'm pasting the link for contents of /var/log/ppp.log



 Regards
-- 
Jack
___
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


ERROR: vxgehal-mgmtaux.c: sou vxge_hal_mrpcim_reg_t has too many members: 1911 1023

2012-10-17 Thread Dennis Glatting
While building a kernel, this error was emitted on several compiles:


clang -O -pipe -DVXGE_HAL_RX_MULTI_POST -DVXGE_HAL_TX_MULTI_POST
-D_KERNEL -DKLD_MODULE -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS
-include /disk-2/obj/disk-1/src/sys/DTRACE/opt_global.h -I. -I@
-I@/contrib/altq -fno-common -g -fno-omit-frame-pointer
-I/disk-2/obj/disk-1/src/sys/DTRACE  -mno-aes -mno-avx -mcmodel=kernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float
-fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
-std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs
-fdiagnostics-show-option  -Wno-error-tautological-compare
-Wno-error-empty-body  -Wno-error-parentheses-equality
-c /disk-1/src/sys/modules/vxge/../../dev/vxge/vxgehal/vxgehal-mgmtaux.c
ctfconvert -L VERSION -g vxgehal-mgmtaux.o
ERROR: vxgehal-mgmtaux.c: sou vxge_hal_mrpcim_reg_t has too many
members: 1911  1023


mc# uname -a
FreeBSD mc 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r241306M: Sat Oct  6
20:41:22 PDT 2012 root@mc:/usr/obj/disk-1/src/sys/DTRACE  amd64





___
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