Send freebsd-current mailing list submissions to
	freebsd-current@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
	freebsd-current-request@freebsd.org

You can reach the person managing the list at
	freebsd-current-owner@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."


Today's Topics:

   1. Re: panic from July 21 kernel (acpi related?) (Doug White)
   2. Re: Kernel build error (Willem Jan Withagen)
   3. system panic on boot - ATAPI_RESET (Sean McNeil)
   4. Re: Upgrading to net/openldap22-sasl-server giving fits
      (Doug White)
   5. Re: rip6_output WITNESS warning (Norikatsu Shigemura)
   6. newsyslog cannot find /var/run/syslog.pid after gcc3.4 built
      world (Jiawei Ye)
   7. Re: did gbde on swap destroy some boot sectors? (Eugene)
   8. Re: NEW TAR (Bill Vermillion)
   9. 5.2.1 with Linksys WPC54G & NDIS project evil... (freeman dyson)
  10. Re: 5.2.1 with Linksys WPC54G & NDIS project evil...
      (Maxim Konovalov)
  11. Re: 5.2.1 with Linksys WPC54G & NDIS project evil...
      (freeman dyson)
  12. another GCC bug (Mike Jakubik)
  13. Re: 5.2.1 with Linksys WPC54G & NDIS project evil...
      (Maxim Konovalov)
  14. Re: about the gcc 3.4.x problems (Paul Seniura)
  15. Re: Vinum status (Paul Mather)
  16. Re: about the gcc 3.4.x problems (Alexander Kabaev)
  17. Re: Upgrading to net/openldap22-sasl-server giving fits
      (Kirk Strauser)
  18. Re: Vinum status (Lukas Ertl)
  19. Re: Synaptics Touchpad xfree driver hack :) (Nate Lawson)
  20. Re: another GCC bug (Alexander Kabaev)
  21. re: gcc 3.5 (Re: about the gcc 3.4.x problems) (Paul Seniura)
  22. Re: another GCC bug (Mike Jakubik)
  23. Re: another GCC bug (Michael Nottebrock)
  24. Re: about the gcc 3.4.x problems (Dan Nelson)
  25. Re: panic from July 21 kernel (acpi related?) (Mike Hunter)
  26. Re: FreeBSD and wine mmap (John Birrell)
  27. Re: Vinum status (Pawel Jakub Dawidek)
  28. Re: Upgrading to net/openldap22-sasl-server giving fits
      (Dan Nelson)
  29. Re: ath driver and wg311t (Sam Leffler)
  30. Re: ath driver and wg311t (Sam Leffler)
  31. Latest CVS: disklabel broken? (Jeremy Chadwick)


----------------------------------------------------------------------

Message: 1
Date: Thu, 29 Jul 2004 10:49:33 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: panic from July 21 kernel (acpi related?)
To: Mike Hunter <mhunter@ack.Berkeley.EDU>
Cc: freebsd-current@freebsd.org
Message-ID: <20040729104621.J63843@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 29 Jul 2004, Mike Hunter wrote:

> > Is the mouse plugged into the keyboard or into the laptop directly?
> >
> > Sounds power related, like the USB ports can't handle the load and its
> > causing supply problems.
>
> Looks like you were right (nice catch)!  If I boot my laptop with my
> logitech USB mouse (ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.10,
> addr 2, iclass 3/1 ums0: 3 buttons and Z dir.) it seems to crash with or
> without AC power hooked up.  But I know for sure it's crashed with no
> mouse hooked up.  And I also know for sure that it doesn't crash if I have
> the mouse *and* a USB keyboard hooked up.
>
> Thanks again for the suggestion...anything I can do to fix this?

How many USB ports does your laptop have? If it has 2, try plugging each
into the machine directly.  If that still crashes, you may have to use a
powered USB hub to drive both devices.. or find more power efficient USB
devices :)

If your laptop can't provide full load to the USB port there isn't much
you can do directly since its a design problem with the board.  It doesn't
seem like an underperforming battery or p/s since it affects both modes.

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org

------------------------------

Message: 2
Date: Thu, 29 Jul 2004 20:09:11 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: Kernel build error
To: <current@FreeBSD.ORG>
Message-ID: <0a5001c47597$26dfd010$471b3dd4@digiware.nl>
Content-Type: text/plain;	charset="iso-8859-1"


----- Original Message ----- 
From: "Willem Jan Withagen" <wjw@withagen.nl>
To: <current@freebsd.org>
Sent: Thursday, July 29, 2004 1:20 PM
Subject: Re: Kernel build error


> One more on amd64, althoug it looks generic.
> I could delete the -Werror flag, but none the less it gives a full stop

And rebuilding world first did not help either

> --WjW
>
>
c -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -
W
>
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -
st
>
d=c99 -g -nostdinc -I-  -I. -I/home2/src/sys -I/home2/src/sys/contrib/dev/acpi
ca
>  -I/home2/src/sys/contrib/altq -I/home2/src/sys/contrib/ipfilter -I/home2/sr
c/
sy
>
s/contrib/pf -I/home2/src/sys/contrib/dev/ath -I/home2/src/sys/contrib/dev/ath
/f
> reebsd -I/home2/src/sys/contrib/ngatm -D_KERNEL -include
opt_global.h -fno-commo
> n -finline-limit=8000 --param inline-unit-growth=100 --param
large-function-grow
>
th=1000  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -
mn
>
o-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tab
le
> s -ffreestanding -Werror  /home2/src/sys/isa/pnp.c
> /home2/src/sys/isa/pnp.c: In function `pnp_set_config':
> ./machine/cpufunc.h:124: warning: inlining failed in call to 'ffs': function

not
>  considered for inlining
> /home2/src/sys/isa/pnp.c:430: warning: called from here
> *** Error code 1
>
> Stop in /usr/obj/home2/src/sys/OPTERON.amd64.
> *
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>
>


------------------------------

Message: 3
Date: Thu, 29 Jul 2004 11:13:38 -0700
From: Sean McNeil <sean@mcneil.com>
Subject: system panic on boot - ATAPI_RESET
To: freebsd-current@freebsd.org
Message-ID: <1091124817.10011.3.camel@server.mcneil.com>
Content-Type: text/plain

I have an amd64 system and I see the same thing that others have
reported about the ATAPI_RESET (ie. panics), but with a twist.

I get a panic the first few times I reboot from a working system, then
it finally doesn't panic but will sit there after printing

ATAPI_RESET time = 30us
ATAPI_RESET time = 10us

until I hit any key.  After that, it starts up just fine.

Cheers,
Sean



------------------------------

Message: 4
Date: Thu, 29 Jul 2004 11:21:41 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: Upgrading to net/openldap22-sasl-server giving fits
To: Kirk Strauser <kirk@strauser.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040729111516.U63843@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 29 Jul 2004, Kirk Strauser wrote:

> My 5.2-CURRENT server is happily chugging away using openldap21-sasl-server

> with the db41 backend, nss_ldap, and pam_ldap for user authentication.
> After reading in /usr/ports/UPDATING that openldap22-(sasl-)?server was
> becoming the default I thought I'd try upgrading to it.
>
> Unfortunately, upgrading to openldap22 with db41 results in:

[...]

It would not suprise me if you need to dump + reload your database to
update to a new bdb schema in openldap2.2.  Did you try backing up the old
db files, slapcatting them somewhere, move out of the way, do the upgrade,
then slapadd the data back into fresh db files?

Actually there's a mention of this in their FAQ-O-Matic:

http://www.openldap.org/faq/data/cache/842.html

Dump + reload on upgrade are well known to postgres folks :)

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org

------------------------------

Message: 5
Date: Fri, 30 Jul 2004 03:21:46 +0900
From: Norikatsu Shigemura <nork@FreeBSD.org>
Subject: Re: rip6_output WITNESS warning
To: Robert Watson <rwatson@FreeBSD.org>
Cc: freebsd-current@FreeBSD.org
Message-ID: <20040730032146.2f58c73c.nork@FreeBSD.org>
Content-Type: text/plain; charset=US-ASCII

On Thu, 29 Jul 2004 12:40:46 -0400 (EDT)
Robert Watson <rwatson@FreeBSD.org> wrote:
> > 	I contacted WITNESS warning on boot(newest current) in my
> > 	SMP machine(PentiumIII x2).
> Similar to a problem we saw on IPv4.  Could you try the following:
> - At or about line 379 of raw_ip6.c (raw6_output()), there's a call to
>   M_PREPEND with the argumetn M_TRYWAIT.  Could you make this M_DONTWAIT?
> - This code fails to properly check the return value.  After the
>   M_PREPEND() call, we should check if m is NULL, and if so, goto bad.

	Thanks for ume's suggestion.  I modified it like following
	lines:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	M_PREPEND(m, sizeof(*ip6), M_DONTWAIT);
	if (m == NULL) {
		error = ENOBUFS;
		goto bad;
	}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	I rebooted and, at least, I didn't contact WITNESS warning.
	I think it looks good...

------------------------------

Message: 6
Date: Fri, 30 Jul 2004 02:24:22 +0800
From: Jiawei Ye <leafy7382@gmail.com>
Subject: newsyslog cannot find /var/run/syslog.pid after gcc3.4 built
	world
To: freebsd-current@freebsd.org
Message-ID: <c21e92e204072911245a254a@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII

Hi,

I am getting mail from my newsyslog cron job 

newsyslog: can't open pid file: /var/run/syslog.pid: No such file or directory
  
newsyslog: log /var/log/maillog.0 not compressed because daemon(s) not notifie
d 

But /var/run/syslog.pid exists and syslogd is running

root@chihiro:/etc# /etc/rc.d/syslogd status
syslogd is running as pid 60267.
root@chihiro:/etc# ls -l /var/run/syslog.pid 
-rw-r--r--  1 root  wheel  6  7 30 02:19 /var/run/syslog.pid

This happened after I built my world after the gcc import. Any idea?

Jiawei Ye

------------------------------

Message: 7
Date: Thu, 29 Jul 2004 20:27:56 +0200
From: Eugene <eugene3@web.de>
Subject: Re: did gbde on swap destroy some boot sectors?
To: freebsd-current@freebsd.org
Message-ID: <410941AC.8010609@web.de>
Content-Type: text/plain; charset=us-ascii; format=flowed

 >> but now what happened? why couldnt it boot again?! the last thing i
 >> did was enabling gbde encryption on my swaps... and swap are the
 >> first label on each of the 3 drives...
 >>
 >> i suspect gbde on swap broke something...
 >>
 >> im i wrong or can someone check this please?
 >
 > It's definitely something to look at.. I can't imagine why this
 > should happen, except disklabel issue: where was the swap located
 > and what letter?  Did it happen the same on 3 drives?  If no, were
 > the disklabels the same?

my swap labels are the following ones...

/dev/da0s1b
/dev/da1s1b
/dev/da2s1b

and they are located at the very beginning of all hard drives for speed 
reasons...

of course should gbde or swap or any other unwanted code write to the 
boot sector, to some inodes or whatever...

but what happened was: i enabled gbde on swap... and after the next 
crash the machine disnt boot again...

i update world and kernel (synchronously) at a high rate to be able to 
support -current with bugreports and to enjoy some cutting enge 
adventures...

until the crash on jul-20 the system was as discussed on the mailinglist 
very unstable for about 2 weeks... crash/freeze/etc...

but after i reinstalled everything after that final crash and this time 
with -O instead of -O2 in the Makefile (and without gbde swap) no single 
crash occured, i was more than surprised... maybe the -O2 does break 
more than you may guess - on the other hand maybe someone finaly fixed 
the instabilities and i couldnt thank this hacker enough for that good 
work...

but maybe someone else experience[d|s] problems with gbde swap... and 
those one may add to this thread and help fixing an issue, wich may be 
here...

i cant sleep without knowing why it stopped booting...

oh and the other drives were ok it seems... only the first one...
/ could only be mounted my rescure with "mount -f"

/ is my 2nd label if u look at the harddrive from track 0 upwards ;-)

maybe the bootsectors were ok, but the kernel or / was trashed... but 
still that shouldnt happen...

it was: F1 FreeBSD... and nothing more... whatever keystroke i typed...

Eugene

------------------------------

Message: 8
Date: Thu, 29 Jul 2004 14:41:46 -0400
From: Bill Vermillion <bv@wjv.com>
Subject: Re: NEW TAR
To: freebsd-current@freebsd.org
Message-ID: <20040729184146.GA29218@wjv.com>
Content-Type: text/plain; charset=us-ascii

 In freebsd-current Digest, Vol 70, Issue 13

> Message: 1
> Date: Thu, 29 Jul 2004 13:59:20 +0200 (CEST)
> From: Barry Bouwsma
> 	<freebsd-misuser@remove-NOSPAM-to-reply.NOSPAM.dyndns.dk>
> Subject: Re: NEW TAR
> To: Tim Kientzle <kientzle@freebsd.org>
> Cc: stable@freebsd.org
> Message-ID: <200407291159.i6TBxKj01347@Mail.NOSPAM.DynDNS.dK>

> [introduced to freebsd-stable@ , don't bother replying directly to me]

> On Sat, 17 Jul 2004 10:37:28 -0700, Tim Kientzle proclaimed:
> 
> > By default, /usr/bin/tar is now a symlink pointing
> > to /usr/bin/bsdtar.
>   [in -current]
> 
> [...]
> 
> >   * Portability:  gtar is portable to many different Unix and non-Unix
> >     systems.  bsdtar supports standard file formats that are widely
> >     supported by other implementations.  There are efforts to port
> >     bsdtar to other platforms.

> Would it be possible to include patches similar to (or based
> upon) the following diffs, in order to get `bsdtar' to compile
> cleanly under my (older) 4.x -- based on checking out HEAD of
> libarchive and bsdtar from the CVS repository?  (I haven't looked
> for source otherwise, sorry; this is to make an future MFC more
> compatible with older 4.x)

The bsdtar in /usr/ports on my 4.10 compiles with nothing
more than typing 'make'.

Are your ports up to date, or is there something I'm missing here?

> End of freebsd-current Digest, Vol 70, Issue 13
> ***********************************************

-- 
Bill Vermillion - bv @ wjv . com

------------------------------

Message: 9
Date: Thu, 29 Jul 2004 11:57:05 -0700 (PDT)
From: freeman dyson <freemandyson2001@yahoo.com>
Subject: 5.2.1 with Linksys WPC54G & NDIS project evil...
To: freebsd-current@freebsd.org, freebsd-mobile@freebsd.org
Message-ID: <20040729185705.31943.qmail@web90108.mail.scd.yahoo.com>
Content-Type: text/plain; charset=us-ascii



Hi all,

I'm Running FreeBSD 5.2.1-RELEASE on a Dell Latitude. 
I have a Linksys WPC54G.  I've gotten the
sys/compat/ndis stuff and compiled and installed it
according to these instructions: 
http://www.freebsddiary.org/ibm-thinkpad-t41.php 

I'm currently at the O'Reilly open source conference,
which has a huge wireless network, and tons of users. 
 the card works fine on their network in my room. 
when I'm downstairs in the sessions ( where all the
other people are too ), I get an IP address from the
dhcp server ( on the right network ), but I can't ping
anything, or connect  to any machine.   I can see
traffic ( via tcpdump ).  also wicontrol behaves funny
( strange data output ).  should I also update
ifconfig & wicontrol to current?    also, it doesn't
let me switch channels using "ifconfig ndis0 channel
8"

My windows drive works fine ( slow, but it works )
with this card.

I've turned all the debugging on via sysctl, and when
I plug the card in, there doesn't appear to be any
errors.  and when I do a dhclient, I get "ndis0 link
up".

when I get back up to my room, I'll boot up to FreeBSD
and reply with more detailed info.

anyone have any sugesstions?

thanks,

-freeman




		
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail 

------------------------------

Message: 10
Date: Thu, 29 Jul 2004 23:05:35 +0400 (MSD)
From: Maxim Konovalov <maxim@macomnet.ru>
Subject: Re: 5.2.1 with Linksys WPC54G & NDIS project evil...
To: freeman dyson <freemandyson2001@yahoo.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040729230242.O5629@mp2.macomnet.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 29 Jul 2004, 11:57-0700, freeman dyson wrote:
>
> Hi all,
>
> I'm Running FreeBSD 5.2.1-RELEASE on a Dell Latitude.
> I have a Linksys WPC54G.  I've gotten the
> sys/compat/ndis stuff and compiled and installed it
> according to these instructions:
> http://www.freebsddiary.org/ibm-thinkpad-t41.php

[...]
> anyone have any sugesstions?

I see no problems with WPC64G and ath(4) on my sony v505bx.  Yes, it
is -CURRENT, not sure about 5.2.1-R.

-- 
Maxim Konovalov

------------------------------

Message: 11
Date: Thu, 29 Jul 2004 12:21:34 -0700 (PDT)
From: freeman dyson <freemandyson2001@yahoo.com>
Subject: Re: 5.2.1 with Linksys WPC54G & NDIS project evil...
To: Maxim Konovalov <maxim@macomnet.ru>
Cc: freebsd-current@freebsd.org
Message-ID: <20040729192134.95608.qmail@web90103.mail.scd.yahoo.com>
Content-Type: text/plain; charset=us-ascii


aah, well, I'd love to use the ath driver, but I can't
get it to recognize it...  I can't find the right
"magic" for pccardd.conf   .... did you have to tweak
it somehow?  or did it "just work" ?

thanks.

--- Maxim Konovalov <maxim@macomnet.ru> wrote:

> On Thu, 29 Jul 2004, 11:57-0700, freeman dyson
> wrote:
> >
> > Hi all,
> >
> > I'm Running FreeBSD 5.2.1-RELEASE on a Dell
> Latitude.
> > I have a Linksys WPC54G.  I've gotten the
> > sys/compat/ndis stuff and compiled and installed
> it
> > according to these instructions:
> > http://www.freebsddiary.org/ibm-thinkpad-t41.php
> 
> [...]
> > anyone have any sugesstions?
> 
> I see no problems with WPC64G and ath(4) on my sony
> v505bx.  Yes, it
> is -CURRENT, not sure about 5.2.1-R.
> 
> -- 
> Maxim Konovalov
> 



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

------------------------------

Message: 12
Date: Thu, 29 Jul 2004 15:22:01 -0400 (EDT)
From: "Mike Jakubik" <mikej@rogers.com>
Subject: another GCC bug
To: freebsd-current@freebsd.org
Message-ID: <1904.66.11.183.182.1091128921.squirrel@66.11.183.182>
Content-Type: text/plain;charset=iso-8859-1

This warning occurs when compiling php4-mbstrings.

---
cc -DHAVE_CONFIG_H -I.
-I/usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring
-DPHP_ATOM_INC
-I/usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring/include
-I/usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring/main
-I/usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring
-I/usr/local/include/php -I/usr/local/include/php/main
-I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM
-I/usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring/mbregex
-I/usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring/libmbfl
-I/usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring/libmbfl/mbfl

-DHAVE_CONFIG_H -O2 -pipe -march=pentium3 -prefer-pic -c
/usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring/mbregex/mbrege
x.c
 -fPIC -DPIC -o mbregex/.libs/mbregex.lo
cc: unrecognized option `-prefer-pic'
---

Thanks.


------------------------------

Message: 13
Date: Thu, 29 Jul 2004 23:36:20 +0400 (MSD)
From: Maxim Konovalov <maxim@macomnet.ru>
Subject: Re: 5.2.1 with Linksys WPC54G & NDIS project evil...
To: freeman dyson <freemandyson2001@yahoo.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040729233437.F5753@mp2.macomnet.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 29 Jul 2004, 12:21-0700, freeman dyson wrote:

>
> aah, well, I'd love to use the ath driver, but I can't
> get it to recognize it...  I can't find the right
> "magic" for pccardd.conf   .... did you have to tweak
> it somehow?  or did it "just work" ?

Just works.  The kernel config is almost generic.

-- 
Maxim Konovalov

------------------------------

Message: 14
Date: Thu, 29 Jul 2004 14:37:24 -0500 (CDT)
From: "Paul Seniura" <pdseniura@techie.com>
Subject: Re: about the gcc 3.4.x problems
To: Dan Nelson <dnelson@allantgroup.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040729193724.E8CC95C11@techpc04.okladot.state.ok.us>


Dan Nelson said:
>In the last episode (Jul 29), Paul Seniura said:
>> Scott Long wrote:
>> > -Os has never been a supported option for compiling the system on FreeBSD
..
>> > There is an effort to make -O2 work, but that is also not officially
>> > supported yet.  Many of the problems are due to FreeBSD code, of course,

>> > but this is a long standing issue and has little bearing on the success
>> > of the gcc 3.4 import.
>> 
>> Okay I am also on record here about the -Os being the DEFAULT SETTING on
>> Apple's XCode "deployment" environment.  It _needs_ to be supported.  (I'm

>> wondering just how much history y'all have

>And that's not a problem.  There there are just X thousand lines of code in
>/usr/src that have never been tested with -Os.  That's the only reason that
>-Os and -O2 are not "officially" supported.  I have built worlds using -O2
>with absolutely no problems for a few years.  That may just be that I'm not
>using the programs that have bugs uncovered by -O2 (a libalias bug only seen

>under -O2 was recently fixed, I believe).  Build with -Os, and if you find
>bugs, send-pr them.

I've been building kernel+world and most apps with -Os and the
-Current system gcc for many months and continuing even today
(if/when I can kick off another system build, too).

After backing off the tests with lang/gcc34, we discovered a
bug with system gcc -Os and XFree86 libs.  I have a CFLAGS+=-O2
override in that Makefile now.  ;)

I'd mentioned in April that lang/gcc34 had known problems with
-Os i.e. known by the GCC team themselves, and provided a URL to
that discussion on their website.  I won't file a PR on a known
bug like that.  I wait 'til we get the fix, and in that msg
thread I was asking for a new snapshot with the fix once it's
available and when time allowed.

Yesterday right here on this list someone said he hit a -Os bug
after he'd CVSup'd and used the new system gcc.  So my mind is
going "oh no here we go again... it should've been fixed."

That earlier point-release of lang/gcc34 went final, but we never
got a final version of it.  -Os was a hot item at the GCC site
such that it should've been fixed on that final point-release
(3.4.1 IIRC).

Instead our lang/gcc34 port today is _another_ later point-
release snaphot (3.4.2).  BTW I can't start building
kernel+world just yet to see what the new system gcc says.

Now today I am completely perplexed: did the GCC team actually
ever fix that known bug, do _we_ have that fix in any of the three
gcc (system & two ports), or did the "FreeBSD system gcc custom
patches" break it?

It's making me paranoid, not being able to trust our most basic
tools.  I'm so nervous this time 'round that I'm doing full
system backups before even starting the buildworld.  ;)  I've
sweated thru a lot of -Current changes since last October, but
this one really has me worried.  Not that it might break, but
that we had actively tried to test it way in advance, and be
seemingly ignored in our reports here, because yesterday's post
mentioned hitting a -Os bug again after CVSup'ing the new gcc. 
"Oh no here we go again..."


>> >> Here, then, is a point I need to make:
>> >>
>> >> Why is Apple seemingly skipping GCC 3.4.x altogether?
>> >
>> > So is there a conspiracy against gcc 3.4 that we don't know about?  Do
>> > you have information that could help us here?  Or maybe Apple is just
>> > being prudent and targeting XCode and GCC releases to somewhat coincide. 

>> > That seems to satisfy occums razor a whole lot easier.
>> 
>> I said "seemingly".
>> It makes sense to me.[tm]
>> It is something to think about.
>
>I also suspect it's just a timing thing.  Apple is intensly interested in
>precompiled headers and other compiler speedups because their system uses a
>lots of complex templates.  3.5 is supposed to be the "go-faster" release.

Yes Apple did say Tiger will be available in the first half of
next year.  They got 11 more months.  ;)

The speedups were felt everywhere when upgrading from Jaguar to
Panther.  I'm on record here surmizing part of the speedup could
be due to -Os, as that will tighten loops to fit inside L1/L2
caches (G4 Sawtooth at home). 
-Os definitely helps this puny pentium2, too, more than -O2.

For other apps esp. mplayer, I will make sure they get -O3 and
the -f tweaks.  Both here & at home.

Can't wait to try the new -Current system gcc.  ;)


>> Have you searched the mail archives here to find out what's
>> been said during the past few months?  Again I'm sure some
>> of us including myself have mentioned the -fformat-extensions
>> problem at several points.  Having most modules linked with
>> libstdc(++) in the i386-portbld-freebsd5.2 subdir is not too
>> kosher, too.  I mentioned all kinds of things like that. 
>
>In general, C++ object files are not portable across different gcc releases,

>since they fix ABI bugs in every release.  Code built with 3.4 may not link
>to an old 3.3 libstdc++, thus the dependency on the port's own libstdc++.  I

>don't see a problem here.

Might want to look again at my tests back then. 
I'd mentioned having to do something to make the loader find
those libs because e.g. i386-portbld-freebsd5.2 is not in the
regular search path.  Mind you I was building kernel & world
with those lang/gcc* ports, not just any ol' app.  ;)  IIRC many
things started by /etc/rc.d bombed until we got that subdir into
the ldconfig_paths.  Oh tcsh bombed as well as simple cmds like
'ls' IIRC, too.  Fortunately the kernel and modules are built
'standalone'.  As for ldconfig_paths, you should see the long
string in my rc.conf file now, paranoia will do that.  ;)


>-- 
>	Dan Nelson
>	dnelson@allantgroup.com

  --  thx, Paul Seniura.


------------------------------

Message: 15
Date: Thu, 29 Jul 2004 15:43:45 -0400
From: Paul Mather <paul@gromit.dlib.vt.edu>
Subject: Re: Vinum status
To: freebsd-current@freebsd.org
Message-ID: <1091130224.99074.55.camel@zappa.Chelsea-Ct.Org>
Content-Type: text/plain

On Mon, 26 Jul 2004 14:30:04 +0200 (CEST), Lukas Ertl <le@FreeBSD.org>
wrote:

> On Sun, 25 Jul 2004, Matthias Schuendehuette wrote:
[[...]]
> > Another problem occurs if geom_vinum.ko is loaded via loader.conf - it
> > does not panic any more (as it does about two weeks ago), but it does
> > not collect all subdisks of a RAID5-plex *at boottime*. If I start
> > gvinum if the system is up (multiuser), there are no problems any more
> > collecting *all* subdisks available...
> 
> That should be fixed by now.

Does this imply that root-on-gvinum is working now?  Last time I tried
it (shortly after gvinum was committed to the tree), it worked except
that only half of the drives, plexes, and volumes in my Vinum RAID 1
mirror were detected when the gvinum module read the configuration from
the drives during boot.

I think root-on-gvinum not working is the only definite show-stopper I
can see for Vinum support when upgrading to 5.3, as far as I'm
concerned.  Lack of root-on-gvinum would prevent me from upgrading my
5.2.1-RELEASE-p9 system to 5.3-RELEASE. :-(

I have two identical spare drives for my -CURRENT system I can (ab)use
for testing...

Cheers,

Paul.
-- 
e-mail: paul@gromit.dlib.vt.edu

"Without music to decorate it, time is just a bunch of boring production
 deadlines or dates by which bills must be paid."
        --- Frank Vincent Zappa


------------------------------

Message: 16
Date: Thu, 29 Jul 2004 19:43:59 +0000
From: Alexander Kabaev <kan@freebsd.org>
Subject: Re: about the gcc 3.4.x problems
To: Paul Seniura <pdseniura@techie.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040729194359.GA69301@freefall.freebsd.org>
Content-Type: text/plain; charset=us-ascii

On Thu, Jul 29, 2004 at 11:47:38AM -0500, Paul Seniura wrote:
> 
> Scott Long wrote:
> >On Thu, 29 Jul 2004, Paul Seniura wrote:
> >>
> >> In my neck of the woods 'round here, problems with GCC 3.4.x are
> >> not new.  For history's sake if nothing else, please take a look
> >> at a msg thread I started on this list back in April 2004:
> >> <http://docs.FreeBSD.org/cgi/mid.cgi?20040402210539.70E945C3B>
> >>
> >> We were _never_ able to compile kernels with 3.4.x -- there were
> >> too many options & other things that are no longer supported.
> >
> >Most of the problems that you site here and elsewhere have already been
> >resolved.  Alexander has spent an _INCREDIBLE_ amount of time on gcc 3.4.
> 
> I'm sure he has.  Not putting anyone down for the work being done. 
> Being able to DISCUSS things with these people is another matter. 
> And I'm saying here & now that I feel like I was left out in the cold,
> starting in April 2004.

What you posted then and what you tried to do was a demonstrable proof of
you not knowing what differences between GGC versions in ports and base
system are. That didn't change, and hardly invites DISCUSSION. With all
due respect, I am not obliged to respond to messages which have higher
than usual chance to result in wasted time.
 
> >What he imported is not the same as what you might have installed from the

> >ports tree back in April.
> 
> Of course it isn't the same. 
> I _know_ it isn't the same. 
> I am on record here saying I'm having to follow -Current via CTM. 
> I suppose I must constantly reiterate that little fact.  ;) 
> I wouldn't broadcast on the -current@ list if I wasn't running -Current.  ;)
 
> In fact I had to wait two days because the system gcc commits were not
> completed by the 16-hour deadlines when the CTM deltas are created & mailed 
out. 
> (Again I'm on record explaining the Political Firewall here won't let
> us do CVS/CVSup.)
> The patch for providing the -fformat-extensions option *just* showed up
> in the CTM delta that just got mailed out a few hours ago.
> That's why I am _only just today_ able to start genning a new kernel & world

> with _all_ of y'all's fixes _finally_ in place.
> I'm trying to explain that the -fformat-extensions problem was known
> even back in April 2004.

Sorry, I will shoot for 'fastest committer under Sun' title next time. If your

update cycle is so slow, it might be a good idea to wait little longer
before jumping to conclusions. Let alone airing them out on public mailing
lists.

> This puny pentium2 finally finished compiling the lang/gcc34 port last night
, too. 
> It is a snapshot that 'gcc34 -v' shows:
> >>>>
> Reading specs from /usr/local/lib/gcc/i386-portbld-freebsd5.2/3.4.2/specs
> Configured with: ./..//gcc-3.4-20040723/configure --disable-nls --with-syste
m-zlib --with-libiconv-prefix=/usr/local --program-suffix=34 --with-gxx-includ
e-dir=/usr/local/lib/gcc/i386-portbld-freebsd5.2/3.4.2/include/c++/ --enable-s
hared --prefix=/usr/local i386-portbld-freebsd5.2
> Thread model: posix
> gcc version 3.4.2 20040723 (prerelease) [FreeBSD]
> <<<<
> I'm also tracking gcc33:
> >>>>
> Reading specs from /usr/local/lib/gcc-lib/i386-portbld-freebsd5.2/3.3.5/spec
s
> Configured with: ./..//gcc-3.3-20040630/configure --disable-nls --with-syste
m-zlib --program-suffix=33 --with-gxx-include-dir=/usr/local/lib/gcc-lib/i386-
portbld-freebsd5.2/3.3.5/include/c++/ --enable-shared --prefix=/usr/local i386
-portbld-freebsd5.2
> Thread model: posix
> gcc version 3.3.5 20040630 (prerelease) [FreeBSD]
> <<<<
> 
> >He also spent quite a bit of effort to resolve
> >coding problems that trip up gcc 3.4.  So maybe you should actually update

> >your system to the post gcc-3.4 import and actually see if it works rather

> >than making assumptions that it doesn't.
> 
> Why do you always assume I DO NOT follow -Current???
> It also seems like you don't use maillist archives to read-up
> on the history of a discussion.
> See above.
> 
> 
> >There are a few problems that
> >are still being resolved, but that is quite normal after a major compiler
> >update.
> 
> Somewhere along the way I'm sure I mentioned having to remove the
> -fformat-extensions option in the makefiles during my tests with the
> newer GCCs.  Since gcc34 is a snapshot (even today as I just quoted),
> I didn't file a PR.  IIRC others stumbled onto it, too, and actually
> mentioned it here.  At any rate, _anyone_ would have stumbled on it
> if they'd used the lang/gcc34 port.

There was a reason why gcc34 port was kept free of local FreeBSD hacks.
The reliance of FreeBSD on a number of private extensions was a well
known fact to anyone who tried to understand the difference between
GCC tarballs as distibuted by FSF and base system version of the compiler
as shipped for FreeBSD. The number of such hach has gone down significantly
in recent years, but nonetheless they still do exist. I do not really
understand the need to act so shocked when you finally became aware of
this in April 2004.

> Go into the maillist archives and find out what else I've said in
> regards to GCC 3.3x and 3.4x being officially released but we do not
> have them, instead we have snapshots.  We have not recently had
> lang/gcc* ports that are in final form.  I definitely asked the
> question: How might we get and test the 'final' releases, please? 

I assume you know, that GCCs we use are coming from stable branches in
FSF CVS repository? Dreaded snapshots we are importing are generally more
bug free than the release they come after.

> No answers yet. 
> And so I ask it again now.

> >> I was attempting to notify y'all about various problems with the
> >> newer GCCs WAY IN ADVANCE to hopefully get someone here to help me
> >> fix these problems.  IMO there is no excuse for these bugs at the
> >> current time.  It just seems to me everyone ignored my original
> >> posts (and other people's) about these problems.  If someone had
> >> done "homework" right here on the -current@ maillist, that person
> >> would've known more testing was in order before committing this
> >> 3.4.x change.  I never got much useful feedback from that
> >> April 2004 thread.
> >>
> >> The problems with -Os and 3.4.x were known to the GCC team
> >> themselves, too.  Pointers to this bit of info should be in the
> >> mentioned April 2004 thread.  I also mentioned therein about how
> >> I could not feel right in logging a bug at the GCC website due to
> >> the FreeBSD patches being applied on top of their code.  I do not
> >> know where the culprit is -- in GCC's src or in FreeBSD's patches?

It should not be too hard to guess why port does not carry local patches
now. I would love to see more PRs from FreeBSD people coming to GCC
Bugzilla database and fully expect to see couple of yours now, as ports
vs. system compiler mystery is not a mystery anymore. There is always an
option to build a compiler directly from FSF release source is one were
so inclined. Contraty  to popular belief, this daring procedure works most
of the time.

You keep waving your April posts as if they are supposed to contain
something actually useful. Problems with -Os and 3.4.x that 'were known to
the GCC team' have absolutelty nothing to do with -Os build breakages
people have been reporting when using -O2 or higher optimization levels.
Incidentally, I just committed some fixes to address them, so I am not
guessing like you, I know for sure. And of course the problems were in
FreeBSD code, not in compiler itself. Perfectly good example of GCC 3.4.2
not being ready for prime time, I guess :)

> >
> >-Os has never been a supported option for compiling the system on FreeBSD.

> >There is an effort to make -O2 work, but that is also not officially
> >supported yet.  Many of the problems are due to FreeBSD code, of course,
> >but this is a long standing issue and has little bearing on the success of

> >the gcc 3.4 import.
> 
> Okay I am also on record here about the -Os being the DEFAULT SETTING
> on Apple's XCode "deployment" environment.  It _needs_ to be
> supported.  (I'm wondering just how much history y'all have
> read in regards to what I've specifically mentioned over the
> past few months even when I stick a URL here to go read that
> history.  I am constantly having to repeat these items.)

And FreeBSD is related to Apple's XCODE requirements how exactly?
Constanly repeating content-free URL does not provide answers, really.
> 
> >> Now... I have another bit of New Info to add to this discussion.
> >>
> >> Apple is planning on using GCC 3.5 for the next big overhaul in
> >> OSX called 'Tiger'.  This has been massively publicly reported in
> >> the usual circles, so I'm not "spilling beans" about anything
> >> covered in the NDA.  BTW I'm not sure if the Tiger pre-release at
> >> the WWDC includes GCC 3.5 in its version of XCode (TPTB here
> >> won't pay for such trips, nor will they pay for a higher ADC
> >> account, so I'm not privvy to the new preview software), but at
> >> any rate GCC 3.5 _is_ slated to be in XCode 2.0 when Tiger goes
> >> final.
> >>
> >> Currently we are still using GCC 3.3 in Panther XCode 1.2.
> >>
> >> Here, then, is a point I need to make:
> >>
> >> Why is Apple seemingly skipping GCC 3.4.x altogether?
> >>
> >
> >So is there a conspiracy against gcc 3.4 that we don't know about?  Do you

> >have information that could help us here?  Or maybe Apple is just being
> >prudent and targeting XCode and GCC releases to somewhat coincide.  That
> >seems to satisfy occums razor a whole lot easier.
> 
> I said "seemingly".
> It makes sense to me.[tm]
> It is something to think about.
> 
> Would you provide me the money & time-off so I can go to the WWDC and
> maybe find out their official reasons? 

You spread the rumors, it is your responsibility to prove them. This
makes sense to me too. Until then there is nothing of substance to
substantiate your gut feelings.

> 
> These state govmt tightwads sure won't. 
> Even when I've submitted a cost analysis. 
> Your tax dollars hard at work.
> (don't get me started -- I'm really p'v'd at TPTB here)
> 
> At any rate, GCC 3.5 has been available for some time. 
> I wish I had Alexander's smarts to do a port of it. 
> The way I test things is to use the official srcs without layering
> a bunch of custom patches on top of it. 
> If your srcs don't compile right, must be something wrong with
> your srcs, AFAIK me being the gcc-portmeister if I were to be.
> ;)

I wish you knew where GCC folks keep their release plans. Hint: they do
not hide them from public so they CAN be read and facts can be checked
before being posted.
 
> 
> >> To me this really looks like 3.4.x was having problems for them,
> >> too.  3.4.x plain ain't ready for prime time PERIOD.
> >
> >Are there documented facts to back this up?  Again, your tests from April
> >aren't terribly relevant anymore since everything has changed quite a bit
> >from then.
> 
> Have you searched the mail archives here to find out what's
> been said during the past few months?  Again I'm sure some
> of us including myself have mentioned the -fformat-extensions
> problem at several points.  Having most modules linked with
> libstdc(++) in the i386-portbld-freebsd5.2 subdir is not too
> kosher, too.  I mentioned all kinds of things like that. 

Why on Earth do you believe that building world and kernel using
GCC from ports is supported?
 
> When I get no useful feedback and say I must drop the
> testing, "that's a clue" to y'all meaning I give up and I
> need help.  Go read the archives if you need the proof.
> 
>
> >> I never got much useful feedback from my April 2004 thread.
> >> So I had to drop our tests of GCC 3.4.x.
> >>
> >> I'm *extremely disappointed* of many things going on in the past
> >> few months (yanking MIDI support was #1 before this).  I'm trying
> >> to be involved in as much of -current as I can.  And many of my
> >> own-initiated discussions seem to go no-where real fast.
> >>
> >> And then *BOOM* we are forced to use GCC 3.4.x with known bugs & all.
> >> This surpasses yanking MIDI in my #1 Gripe List.
> >
> >FreeBSD is not like other well-known open source operating systems.  The
> >compiler is integrated into the OS, not an optional component that can be
> >switched at will.  This has good sides and bad sides.  However, the gcc
> >import wasn't done on a whim.  It wasn't like Alexander got off a weekend
> >bender and decided to do it because he was bored.  It was heavily
> >discussed and coorinated in just about every way that it could be.  For
> >you to suggest otherwise is incredibly rude.
> 
> I follow these maillists like a glove on my hand. 
> I have said and will say again I didn't receive any useful feedback as to
> how to proceed with the tests on lang/gcc34 -- starting in April 2004. 
> Again I'm on record saying many other maillist sites are blocked by our
> firewall (and don't say "it is broken") -- I only have access to _these_
> lists _here_, and I honestly have not seen those highly detailed discussions

> going on about GCC here.
> 
> But now we are crying over spilled milk. 
> 
> What I should get started on RSN is GCC 3.5. 
> Where & how can I help with it?
> 
> >As for Midi, I'm sure that the maintainer would be interested in whatever
> >constructive conversation you have, and might even be interested in code
> >that you might have developed to help resolve the situation.
> >
> >Scott
> 
> Again my discussions about this are in the maillist archives,
> public for all to see.  Including yourself.  ;)
> 
> And yes I'm still waiting for some useful feedback...

I think you got one now. And look, it even matches the tone you started
with.

--
Alexander Kabaev

------------------------------

Message: 17
Date: Thu, 29 Jul 2004 14:50:46 -0500
From: Kirk Strauser <kirk@strauser.com>
Subject: Re: Upgrading to net/openldap22-sasl-server giving fits
To: freebsd-current@freebsd.org
Message-ID: <200407291450.49400.kirk@strauser.com>
Content-Type: text/plain; charset="iso-8859-1"

On Thursday 29 July 2004 13:21, Doug White wrote:

> It would not suprise me if you need to dump + reload your database to
> update to a new bdb schema in openldap2.2.

<whine>But I don't WANT to reload my database!</whine>

Is there a generalized way to upgrade Berkeley databases?  I tried to 
RTFDocs, but they seem to be aimed at BDB programmers ("Simply call the 
DB->transmogrify method...") instead of command-line users.
-- 
Kirk Strauser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040729/
77a72027/attachment-0001.bin

------------------------------

Message: 18
Date: Thu, 29 Jul 2004 21:57:54 +0200 (CEST)
From: Lukas Ertl <le@FreeBSD.org>
Subject: Re: Vinum status
To: Paul Mather <paul@gromit.dlib.vt.edu>
Cc: freebsd-current@FreeBSD.org
Message-ID: <20040729215647.F625@korben.in.tern>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Thu, 29 Jul 2004, Paul Mather wrote:

> Does this imply that root-on-gvinum is working now?  Last time I tried
> it (shortly after gvinum was committed to the tree), it worked except
> that only half of the drives, plexes, and volumes in my Vinum RAID 1
> mirror were detected when the gvinum module read the configuration from
> the drives during boot.

I still didn't have a chance to build a root-on-gvinum setup, but I'd be 
happy if you could test it.  It's quite likely that the errors were 
related.

thanks,
le

-- 
Lukas Ertl                         http://homepage.univie.ac.at/l.ertl/
le@FreeBSD.org                     http://people.freebsd.org/~le/

------------------------------

Message: 19
Date: Thu, 29 Jul 2004 13:08:52 -0700
From: Nate Lawson <nate@root.org>
Subject: Re: Synaptics Touchpad xfree driver hack :)
To: Norikatsu Shigemura <nork@FreeBSD.org>
Cc: freebsd-current@FreeBSD.org
Message-ID: <41095954.9050806@root.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Norikatsu Shigemura wrote:
> 	Anyone, would you please commit attached patch?
> 
> On Wed, 28 Jul 2004 16:19:45 +0200
> Arne Schwabe <arne@rfc2549.org> wrote:
> 
>>>I have a compaq 2519eu with a synaptics touchpad.
>>>I was tried your driver, but I can not patch may kernel.
>>>I am using a freeBSD 4.10 CURRENT.
>>>Have you got any solutions ?
>>
>>I have written the Driver  for 5-Current, but at the Moment I have no
>>time for 4.10, but it should not be too difficult if you can do it
>>yourself, the touchpad should work without the driver but without the
>>advanced features.
> 
> 	I have the driver modified arne's patch to clean up.  I am
> 	testing from before half a year -- the result is good.

I am in the process of cleaning it up a little and will commit it.

-Nate

------------------------------

Message: 20
Date: Thu, 29 Jul 2004 20:14:40 +0000
From: Alexander Kabaev <kan@freebsd.org>
Subject: Re: another GCC bug
To: Mike Jakubik <mikej@rogers.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040729201440.GA83893@freefall.freebsd.org>
Content-Type: text/plain; charset=us-ascii

On Thu, Jul 29, 2004 at 03:22:01PM -0400, Mike Jakubik wrote:
> This warning occurs when compiling php4-mbstrings.
> 
> ---
> cc -DHAVE_CONFIG_H -I.
> -I/usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring
> -DPHP_ATOM_INC
> -I/usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring/include
> -I/usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring/main
> -I/usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring
> -I/usr/local/include/php -I/usr/local/include/php/main
> -I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM
> -I/usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring/mbregex
> -I/usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring/libmbfl
> -I/usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring/libmbfl/mb
fl
> -DHAVE_CONFIG_H -O2 -pipe -march=pentium3 -prefer-pic -c
> /usr/ports/converters/php4-mbstring/work/php-4.3.8/ext/mbstring/mbregex/mbre
gex.c
>  -fPIC -DPIC -o mbregex/.libs/mbregex.lo
> cc: unrecognized option `-prefer-pic'
> ---
 
GCC bug you say? Well, explain this then: 

% gcc -prefer-pic t.c
gcc: unrecognized option `-prefer-pic'
gcc: No input files specified

% gcc --version    
gcc (GCC) 3.3.3 [FreeBSD] 20031106
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Pay attention to the GCC version number. Still looks like GCC bug for you?

--
Alexander Kabaev

------------------------------

Message: 21
Date: Thu, 29 Jul 2004 15:14:39 -0500 (CDT)
From: "Paul Seniura" <pdseniura@techie.com>
Subject: re: gcc 3.5 (Re: about the gcc 3.4.x problems)
To: Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc: freebsd-current@freebsd.org
Message-ID: <20040729201439.BFB685C11@techpc04.okladot.state.ok.us>


Steve Kargl said:
>On Thu, Jul 29, 2004 at 11:47:38AM -0500, Paul Seniura wrote:
>> 
>> At any rate, GCC 3.5 has been available for some time. 
>
>3.5 won't be released for at least another year.  You can
>get the GCC cvs branch that is used for 3.5 development,
>but it is certainly not ready for prime time.  I build the
>3.5 branch several times a week and there are some severe
>problems with it (e.g., excessive compile times and excessive
>use of memory).

I might try a (quasi-)weekly tarball sometime (it's on a
mirror I can reach; can't do CVS here). 
Where might your builds be at, if I may ask?


>For those that do not know, the entire middle-end and much
>of the back-end of GCC has been re-written in 3.5.

This is interesting.  I do know Apple & IBM are coordinating
work on GCC -- they *really* want the G5 chip to be the best
supported fastest system going.

FWIW at home I just got started using IBM's XL C/++ and FORTRAN
for OSX compilers, yeah the US$3,000.- ones.  ;)  No I can't
afford to buy them: they let you try 'em out for 60 days. 
Don't tell IBM there's a way to get their July 2004 updates
applied on top of the trial pkgs.  ;) 
They will support both G4 & G5.  Flavors for AIX, Linux, and
bigiron.  Intending to support OpenMP, too. 
The massive speedups are with a G5 of course, but my G4 is
showing a bit of muscle also. 
And true to IBM (I've been a mainframe programmer here for
27+ years), XL has its own vernacular, but they do provide
wrappers (set CC=gxlc & CXX=gxlc++) that are suppose to
translate GNUisms to its own parms (not too well IMO tho). 
XL can be interwoven with XCode, too. 
Some people/projects are patching apps makefiles to let XL
compile them cleanly.  I'm hoping their work here will show
up in GCC sometime, who knows maybe in 3.5?
<http://www-306.ibm.com/software/awdtools/vacpp/features/xlcpp-mac.html>
(I'm not a sales rep nor own stock yadda yadda yadda ;)


Not much pickin's if I use my G4 to help on FreeBSD/PPC, tho...


>-- 
>Steve

  --  thx, Paul Seniura.


------------------------------

Message: 22
Date: Thu, 29 Jul 2004 16:23:13 -0400 (EDT)
From: "Mike Jakubik" <mikej@rogers.com>
Subject: Re: another GCC bug
To: "Alexander Kabaev" <kan@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <1988.66.11.183.182.1091132593.squirrel@66.11.183.182>
Content-Type: text/plain;charset=iso-8859-1

Alexander Kabaev said:

> On Thu, Jul 29, 2004 at 03:22:01PM -0400, Mike Jakubik wrote:
>> This warning occurs when compiling php4-mbstrings.
>>
>> cc: unrecognized option `-prefer-pic'
>
> GCC bug you say? Well, explain this then:
>
> % gcc -prefer-pic t.c
> gcc: unrecognized option `-prefer-pic'
> gcc: No input files specified
>
> % gcc --version
> gcc (GCC) 3.3.3 [FreeBSD] 20031106
> Copyright (C) 2003 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
> Pay attention to the GCC version number. Still looks like GCC bug for you?
>

Sorry, I dont know if its a gcc bug, im not the expert. But since GCC was
recenty imported, it made sense that it might be the cause. I will let the
port mainter know.

Thanks.


------------------------------

Message: 23
Date: Thu, 29 Jul 2004 22:33:43 +0200
From: Michael Nottebrock <michaelnottebrock@gmx.net>
Subject: Re: another GCC bug
To: freebsd-current@FreeBSD.org
Cc: Alexander Kabaev <kan@FreeBSD.org>
Message-ID: <200407292233.46562.michaelnottebrock@gmx.net>
Content-Type: text/plain; charset="iso-8859-1"

On Thursday 29 July 2004 22:23, Mike Jakubik wrote:

> Sorry, I dont know if its a gcc bug, im not the expert. But since GCC was
> recenty imported, it made sense that it might be the cause. I will let the
> port mainter know.

It's just an option that's enabled in certain Linux distros' system compilers.
 
The warning is harmless, ignore it.

-- 
   ,_,   | Michael Nottebrock               | lofi@freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040729/
e69a0e81/attachment-0001.bin

------------------------------

Message: 24
Date: Thu, 29 Jul 2004 15:44:14 -0500
From: Dan Nelson <dnelson@allantgroup.com>
Subject: Re: about the gcc 3.4.x problems
To: Paul Seniura <pdseniura@techie.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040729204413.GA5313@dan.emsphone.com>
Content-Type: text/plain; charset=us-ascii

In the last episode (Jul 29), Paul Seniura said:
> I've been building kernel+world and most apps with -Os and the
> -Current system gcc for many months and continuing even today (if/when I
> can kick off another system build, too).
> 
> After backing off the tests with lang/gcc34, we discovered a bug with
> system gcc -Os and XFree86 libs.  I have a CFLAGS+=-O2 override in that
> Makefile now.  ;)

Filed a PR?  Developers can't fix bugs they don't know about.  PRs are also
a lot easier to find later on than a mailinglist post.
 
> Yesterday right here on this list someone said he hit a -Os bug after he'd
> CVSup'd and used the new system gcc.  So my mind is going "oh no here we
> go again... it should've been fixed."

That one is caused by gcc 3.4 optimizing out the weak pthread symbol
references.  It had no idea they were there because they were inside an
asm() block.  The gcc 3.4 release notes explicitly mention this and provide
__attribute__((used)) to force symbols to be kept even if unreferenced from
C code.  It doesn't happen with -O because 3.4 doesn't eliminate unused
symbols at that optimization level, so it's not a high-prority problem.

> That earlier point-release of lang/gcc34 went final, but we never got a
> final version of it.  -Os was a hot item at the GCC site such that it
> should've been fixed on that final point-release (3.4.1 IIRC).
> 
> Instead our lang/gcc34 port today is _another_ later point-release snaphot
> (3.4.2).  BTW I can't start building kernel+world just yet to see what the
> new system gcc says.
> 
> Now today I am completely perplexed: did the GCC team actually ever fix
> that known bug, do _we_ have that fix in any of the three gcc (system &
> two ports), or did the "FreeBSD system gcc custom patches" break it?

If it's a known gcc bug, chances are it's in gcc's bugzilla database and you
can just look it up and find out.

> It's making me paranoid, not being able to trust our most basic tools. 
> I'm so nervous this time 'round that I'm doing full system backups before
> even starting the buildworld.  ;) I've sweated thru a lot of -Current
> changes since last October, but this one really has me worried.  Not that
> it might break, but that we had actively tried to test it way in advance,
> and be seemingly ignored in our reports here, because yesterday's post
> mentioned hitting a -Os bug again after CVSup'ing the new gcc.  "Oh no
> here we go again..."

If you mean "here we go again, people reporting problems with unsupported
compiler options", then yes :)  Stick with -O unless you want to submit
patches to fix the places in our code that need to be cleaned up for higher
-O levels.

> >I also suspect it's just a timing thing.  Apple is intensly interested in
> > precompiled headers and other compiler speedups because their system
> > uses a lots of complex templates.  3.5 is supposed to be the "go-faster"
> > release.
> 
> Yes Apple did say Tiger will be available in the first half of next year. 
> They got 11 more months.  ;)
> 
> The speedups were felt everywhere when upgrading from Jaguar to Panther.
> I'm on record here surmizing part of the speedup could be due to -Os, as
> that will tighten loops to fit inside L1/L2 caches (G4 Sawtooth at home).
> -Os definitely helps this puny pentium2, too, more than -O2.
> 
> For other apps esp. mplayer, I will make sure they get -O3 and the -f
> tweaks.  Both here & at home.

I'm talking about speedups to the compiler itself.  If you compare the
compile time of gcc vs icc (or the native compiler on most other platforms),
it's a lot slower.  Things like precompiled headers do absolutely nothing to
the speed of the resulting executable, but when a source tree has a thousand
C++ files, all of them using the same set of C++ templates, it's a big win. 
If you want fast executables, use icc :)
 
-- 
	Dan Nelson
	dnelson@allantgroup.com

------------------------------

Message: 25
Date: Thu, 29 Jul 2004 14:01:43 -0700
From: Mike Hunter <mhunter@ack.Berkeley.EDU>
Subject: Re: panic from July 21 kernel (acpi related?)
To: Doug White <dwhite@gumbysoft.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040729210143.GA5830@ack.Berkeley.EDU>
Content-Type: text/plain; charset=us-ascii

On Jul 29, "Doug White" wrote:

> On Thu, 29 Jul 2004, Mike Hunter wrote:
> 
> > > Is the mouse plugged into the keyboard or into the laptop directly?
> > >
> > > Sounds power related, like the USB ports can't handle the load and its
> > > causing supply problems.
> >
> > Looks like you were right (nice catch)!  If I boot my laptop with my
> > logitech USB mouse (ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.10,

> > addr 2, iclass 3/1 ums0: 3 buttons and Z dir.) it seems to crash with or
> > without AC power hooked up.  But I know for sure it's crashed with no
> > mouse hooked up.  And I also know for sure that it doesn't crash if I have

> > the mouse *and* a USB keyboard hooked up.
> >
> > Thanks again for the suggestion...anything I can do to fix this?
> 
> How many USB ports does your laptop have?

It has three USB 2.0-compliant connectors and one D/Bay external media bay
connector.

> If it has 2, try plugging each into the machine directly.

I don't know what you mean by this.  When I've run with the external
keyboard and mouse, I do plug in directly (I don't have a docking
station.)

> If that still crashes, you may have to use a
> powered USB hub to drive both devices.. or find more power efficient USB
> devices :)
> 
> If your laptop can't provide full load to the USB port there isn't much
> you can do directly since its a design problem with the board.  It doesn't
> seem like an underperforming battery or p/s since it affects both modes.

I don't believe it's truly a power problem, because it works fine under
windows XP and knoppix linux.  I've never had it crash when plugging in a
USB device, and this crash seems to happen right before it wants to give
me the login prompt, so it seems like if it were truly a power issue I'd
have problems in these circumstances.

Let me know if there's any more info I can provide.

Thanks,

Mike

------------------------------

Message: 26
Date: Fri, 30 Jul 2004 07:12:10 +1000
From: John Birrell <jb@cimlogic.com.au>
Subject: Re: FreeBSD and wine mmap
To: Anish Mistry <mistry.7@osu.edu>
Cc: freebsd-current@freebsd.org
Message-ID: <20040729211209.GH34260@freebsd3.cimlogic.com.au>
Content-Type: text/plain; charset=us-ascii

On Thu, Jul 29, 2004 at 10:04:12AM -0400, Anish Mistry wrote:
> I should have a bit of time, once I get the acpi_fuji driver cleaned up and 

> Nate or Mark can import it.  Which direction capitan? :)

Look in /usr/src/sys/vm/vm_mmap.c:mmap() for the comment:

    /*
     * XXX for non-fixed mappings where no hint is provided or
     * the hint would fall in the potential heap space,
     * place it after the end of the largest possible heap.
     *
     * There should really be a pmap call to determine a reasonable
     * location.
     */

The code currently maps memory without a fixed address above the highest
address that the process has used.

The problem with Wine is that it needs to reserve the top half of the
process address space for use like older versions of Windows. When Wine
starts up, it goes through and grabs that memory as soon as it can, then
it proceeds to dynamically load it's libraries (the Unix shared libraries
that implement the functions in the DLLs). The first load fails because
the library can't be mapped above the highest address used.

What you need to do is take the hint from the comment above and write a
pmap function to determine a reasonable location. You could say that
a reasonable location is above the highest address used, if there is
space up there. Otherwise find a hole in the address space.

-- 
John Birrell

------------------------------

Message: 27
Date: Thu, 29 Jul 2004 23:14:12 +0200
From: Pawel Jakub Dawidek <pjd@FreeBSD.org>
Subject: Re: Vinum status
To: Lukas Ertl <le@FreeBSD.org>
Cc: Paul Mather <paul@gromit.dlib.vt.edu>
Message-ID: <20040729211412.GB57678@darkness.comp.waw.pl>
Content-Type: text/plain; charset="iso-8859-2"

On Thu, Jul 29, 2004 at 09:57:54PM +0200, Lukas Ertl wrote:
+> On Thu, 29 Jul 2004, Paul Mather wrote:
+> 
+> >Does this imply that root-on-gvinum is working now?  Last time I tried
+> >it (shortly after gvinum was committed to the tree), it worked except
+> >that only half of the drives, plexes, and volumes in my Vinum RAID 1
+> >mirror were detected when the gvinum module read the configuration from
+> >the drives during boot.
+> 
+> I still didn't have a chance to build a root-on-gvinum setup, but I'd be 
+> happy if you could test it.  It's quite likely that the errors were 
+> related.

Our boot-loader is looking for /boot/ directory on <disk>s<X>a, right?
If so, you have to teach geom_mbr, that it should create slices for
providers from you class. I've such a patch ready for GEOM_MIRROR:

--- geom_mbr.c  12 Feb 2004 22:42:11 -0000      1.56
+++ geom_mbr.c  25 Jul 2004 14:26:05 -0000
@@ -244,8 +244,10 @@ g_mbr_taste(struct g_class *mp, struct g
	gp->dumpconf = g_mbr_dumpconf;
	gp->ioctl = g_mbr_ioctl;
	do {
-		if (gp->rank != 2 && insist == 0)
+		if (gp->rank != 2 &&
+		    strcmp(pp->geom->class->name, "MIRROR") != 0) {
			break;
+		}
		error = g_getattr("GEOM::fwsectors", cp, &fwsectors);
		if (error)
			fwsectors = 17;

The only thing which is missing here is a big /* XXX */, but this way
was suggested by phk.
I need to add GEOM_LABEL here as well...

-- 
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd@FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040729/
2e884cd2/attachment-0001.bin

------------------------------

Message: 28
Date: Thu, 29 Jul 2004 16:14:26 -0500
From: Dan Nelson <dnelson@allantgroup.com>
Subject: Re: Upgrading to net/openldap22-sasl-server giving fits
To: Kirk Strauser <kirk@strauser.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040729211426.GC9911@dan.emsphone.com>
Content-Type: text/plain; charset=us-ascii

In the last episode (Jul 29), Kirk Strauser said:
> On Thursday 29 July 2004 13:21, Doug White wrote:
> 
> > It would not suprise me if you need to dump + reload your database to
> > update to a new bdb schema in openldap2.2.
> 
> <whine>But I don't WANT to reload my database!</whine>
> 
> Is there a generalized way to upgrade Berkeley databases?  I tried to 
> RTFDocs, but they seem to be aimed at BDB programmers ("Simply call the 
> DB->transmogrify method...") instead of command-line users.

db_dump / db_load  is the standard way, I think.  This only applies if the
change was strictly a db3 -> db4 change.  If openldap changed its database
layout, etc, they would need to provide a conversion script.

-- 
	Dan Nelson
	dnelson@allantgroup.com

------------------------------

Message: 29
Date: Thu, 29 Jul 2004 14:59:21 -0700
From: Sam Leffler <sam@errno.com>
Subject: Re: ath driver and wg311t
To: freebsd-current@freebsd.org, robertsg@westnet.com.au
Message-ID: <200407291459.21219.sam@errno.com>
Content-Type: text/plain;  charset="iso-8859-1"

On Wednesday 28 July 2004 09:53 am, Geoff Roberts wrote:
> > On Monday 26 July 2004 07:35 am, Geoff Roberts wrote:
> > > Hi,
> > >
> > > I've got a Netgear WG311T (Atheros chip) card in my FreeBSD current
> > > machine. I'm trying to set it up as an access point.
> > >
> > > The card at the other end is a netgear WG111 (USB) on windows XP.
> > >
> > > It is very, very hard to get the two to connect (takes hours). Most of
> > > the time they don't. Once connected though they stay connected pretty
> > > well.
> > >
> > > I've turned on debug.ieee80211 and get the error message:
> > > unsupported auth 1.
> >
> > snip
> >
> > Your problem is likely due to use of 11g. �The existing net80211 code in
> > FreeBSD is missing proper 11g support. �Try forcing the ap to use only
> > 11b and see if things work.
> >
> > ��������Sam
>
> The answer is yes and no. The first time I forced the AP to llb the WG111
> connected OK. I've since been rebooting both the W2K machine and FreeBSD
> machine over the last day or so and there is still a lot of unsupported
> auth 1 messages. Sometimes they eventually connect and sometimes not.

"unsupported auth 1" is likely a complaint that a client is trying to use 
shared key authentication when that is not supported.   Windows likes to do 
this (try shared key first then fall back to open auth).

>
> Again, once connected they stay connected.
>
> Would a tcpdump reveal any more or should I be looking somewhere else for
> the problem? Also, do the parameters for the WG311T on FreeBSD need to be
> set in any particular order?

More what?  You said things work in 11b.  For 11g to work properly we need to 

update the net80211 code to do the 11g protocol correctly and the ath driver 

needs to be updated too.  I offered up unfinshed work to do this many weeks 
ago but have gotten nothing back and have no idea when I'll have the free 
time to complete the work myself.

	Sam

------------------------------

Message: 30
Date: Thu, 29 Jul 2004 15:02:02 -0700
From: Sam Leffler <sam@errno.com>
Subject: Re: ath driver and wg311t
To: freebsd-current@freebsd.org
Cc: John Kennedy <jk@jk.homeunix.net>
Message-ID: <200407291502.02771.sam@errno.com>
Content-Type: text/plain;  charset="iso-8859-1"

On Wednesday 28 July 2004 08:51 pm, John Kennedy wrote:
> On Thu, Jul 29, 2004 at 02:53:45AM +1000, Geoff Roberts wrote:
> > > On Monday 26 July 2004 07:35 am, Geoff Roberts wrote:
> > > > I've got a Netgear WG311T (Atheros chip) card in my FreeBSD current
> > > > machine. I'm trying to set it up as an access point. ...
> > > > The card at the other end is a netgear WG111 (USB) on windows XP.
> > >
> > > Your problem is likely due to use of 11g. ?The existing net80211 code
> > > in FreeBSD is missing proper 11g support. ?Try forcing the ap to use
> > > only 11b and see if things work.
> >
> > The answer is yes and no. The first time I forced the AP to llb the WG111

> > connected OK. I've since been rebooting both the W2K machine and FreeBSD
> > machine over the last day or so and there is still a lot of unsupported
> > auth 1 messages. Sometimes they eventually connect and sometimes not.
>
>   As a client, at least, I don't seem to be having any trouble with 11g.

Things may work ok in an 11g-only BSS but I'm not sure if the slot time and 
preamble settings are even done right with the code presently in the system.  

Things will certainly fail completely if the BSS changes operational 
parameters; e.g. when an 11b station joins.

>
> 	ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> 	        inet6 fe80::209:5bff:fee8:14e1%ath0 prefixlen 64 scopeid 0x5
> 	        inet 192.168.0.201 netmask 0xffffff00 broadcast 192.168.0.255
> 	        ether zzzz
> 	        media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/54Mbps)
> 	        status: associated
> 	        ssid xxxx 1:yyyy
> 	        channel 11 authmode OPEN powersavemode OFF powersavesleep 100
> 	        wepmode MIXED weptxkey 1
> 	        wepkey 1:104-bit
>
>     [ifconfig -m ath0  | grep '11g$']
> 	media OFDM/54Mbps mode 11g
> 	media OFDM/48Mbps mode 11g
> 	media OFDM/36Mbps mode 11g
> 	media OFDM/24Mbps mode 11g
> 	media OFDM/18Mbps mode 11g
> 	media OFDM/12Mbps mode 11g
> 	media OFDM/9Mbps mode 11g
> 	media OFDM/6Mbps mode 11g
> 	media DS/11Mbps mode 11g
> 	media DS/5.5Mbps mode 11g
> 	media DS/2Mbps mode 11g
> 	media DS/1Mbps mode 11g
> 	media autoselect mode 11g
>
>   I'm not seeing a 108Mbps mode available, but haven't got an AP to sync
> with yet anyway.
>
>   Note that I'm a client, not an AP.  FreeBSD 5.2.1-RELEASE-p9 #18.

There is only support for "static turbo" mode and that is 11a only.  Your 
dmesg output only show b/g rates.

	Sam

------------------------------

Message: 31
Date: Thu, 29 Jul 2004 16:59:49 -0700
From: Jeremy Chadwick <freebsd@jdc.parodius.com>
Subject: Latest CVS: disklabel broken?
To: freebsd-current@freebsd.org
Message-ID: <20040729235949.GA2185@parodius.com>
Content-Type: text/plain; charset=us-ascii

Greetings.

I've managed to confirm a "problem" (note quotes) with disklabel on
the latest cvs.

After upgrading the machine (buildworld/buildkernel/installkernel,
reboot in single user, installworld) and doing `disklabel -B ad0s1',
the transition between boot0 and boot1 causes an exception error,
panics, and then reboots.

I've got two completely different -CURRENT systems which both do this
with the latest cvs.  Is this related to the gcc 3.4 import?  Am I
doing something wrong with disklabel?

I'm in somewhat of a major fix with this issue, as I now have a pseudo-
production server that's dead (yes yes, I know, don't run -CURRENT on
servers... someone backport SATA support to -STABLE then :P), and a
home workstation that's constantly rebooting as well.

To clarify what's happening:

<booted machine>

F1 FreeBSD
F5 Drive 1

Default: F1

<hitting F1, or hitting enter>
<bunch of x86 register dumps, and a reboot -- sorry, can't provide the
 register dump since I have no way of saving/stalling the output :(>

Can anyone else confirm this?

Thanks.

-- 
| Jeremy Chadwick                                 jdc at parodius.com |
| Parodius Networking                        http://www.parodius.com/ |
| UNIX Systems Administrator                   Mountain View, CA, USA |
| Making life hard for others since 1977.                             |


------------------------------

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

End of freebsd-current Digest, Vol 70, Issue 14
***********************************************


--
Evariste Galois:
    �����呛��樱������蔷������,����直前......


�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234]