Re: Pleading for commit

2006-10-27 Thread Steve Hodgson

Bruce M. Simpson wrote:

The patch is evil, of that there is no doubt. However a wide cross 
section of the user base will want to run a recent version of Flash 
whilst 9 is not available.


Can't we work around the dlsym issue in the port with some linker magic?

Could you use "objcopy --redefine-sym" to rename the symbol in the flash 
library? I've not tried it of course.


Steve


Regards,
BMS
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"



___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mount_smbfs trouble after cvsup

2006-02-22 Thread Steve Hodgson

Gavin Atkinson wrote:


On Tue, 2006-02-21 at 19:29 +0800, Tai-hwa Liang wrote:
 


On Tue, 21 Feb 2006, Bachilo Dmitry wrote:
   


I've cvsuped from 6.0 to 6.1-PRERELEASE and now I can't mount NT's shares with
password. It worked fine before, but after cvsup i get
mount_smbfs: unable to open connection: syserr = Authentication error
and in /var/log/messages I get
Feb 21 14:51:24 notebook kernel: netsmb_dev: loaded
Feb 21 14:51:27 notebook kernel: smb_encrypt: password encryption is not
available
Feb 21 14:51:27 notebook kernel: smb_ntencrypt: password encryption is not
available

As far as I see, there is no option in mount_smbfs to disable password
 


  "options NETSMBCRYPTO" in kernel configuartion file.

   


encryption, so I'm just stuck, what should I do?
Thanks in advance.
 


http://lists.freebsd.org/pipermail/freebsd-current/2006-January/059823.html
   



Is there a reason this change was made?  And is there a reason why
NETSMBCRYPTO is not in GENERIC?  To me, it seems that breaking smbfs
between releases within 6.x violates POLA... I suspect a large number of
people (myself included) have always used smbfs for passworded shares
and it's "just worked".

Moved to stable, where it belongs.
 

I agree. I recently tried to port some fixes for the "smb unmapped error 
1:157" bug from NetBSD and was bitten by this change. Putting 
NETSMBCRYPTO in GENERIC and in /usr/src/UPDATING is one option, or 
changing the default to on, moving it NO_NETSMBCRYTPO and a note in 
/usr/src/UPDATING is another.


Steve

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: smb_maperror: Unmapped error 1:158

2006-02-13 Thread Steve Hodgson

Mike Jakubik wrote:

Steve Hodgson wrote:

Mike Jakubik wrote:


Jan 26 17:01:47 desktop kernel: smb_maperror: Unmapped error 1:158
Jan 26 17:02:18 desktop last message repeated 52 times
Jan 26 17:04:19 desktop last message repeated 646 times
Jan 26 17:14:20 desktop last message repeated 6342 times



The fix for this out of the NetBSD source tree is (apply in /usr/src):

--- sys/netsmb/smb_subr.old Mon Feb 13 20:21:09 2006
+++ sys/netsmb/smb_subr.c   Mon Feb 13 20:23:49 2006
@@ -273,6 +273,9 @@
   return EEXIST;
   case ERRquota:
   return EDQUOT;
+   case ERRnotlocked:
+   /* it's okay to try to unlock already unlocked 
file */

+   return 0;
   }
   break;
   case ERRSRV:

When I tried this I got couldn't logon to the server, and I got 
"smb_encrypt: password encryption is not available" messages in syslog. 
The following patch just is essentially a noop, but removes the 
(original) "unmapped 1:158" error:


--- sys/netsmb/smb_subr.old Mon Feb 13 20:21:09 2006
+++ sys/netsmb/smb_subr.c   Mon Feb 13 20:23:49 2006
@@ -273,6 +273,9 @@
   return EEXIST;
   case ERRquota:
   return EDQUOT;
+   case ERRnotlocked:
+   return EBADRPC;
   }
   break;
   case ERRSRV:

I've not tried this though.

Steve
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: smb_maperror: Unmapped error 1:158

2006-01-29 Thread Steve Hodgson

Mike Jakubik wrote:

Anyone know what the problem is? I've searched around, and people have 
reported this as far as the 4.x days, however no one ever replied to 
any of these reports. In some cases, people report lockups of machines 
and slow downs accessing the share. In my case, i am experiencing a 
slow down.


I pointed rhythmbox to my media library, which is mounted from a 
samba3 server on another fbsd box and this is what i see in the logs:


Jan 26 17:01:47 desktop kernel: smb_maperror: Unmapped error 1:158
Jan 26 17:02:18 desktop last message repeated 52 times
Jan 26 17:04:19 desktop last message repeated 646 times
Jan 26 17:14:20 desktop last message repeated 6342 times


I get this message frequently, almost every time I access my media 
library over samba. I have always put it down to a character encoding 
issue, but I have never investigated it properly since it's been there 
since I started using freebsd. I've certainly never had a crash or hang 
associated with these messages.


Steve
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make buildworld for RELENG_5 failing on RELENG_5_3 in /usr/src/usr.sbin/syslogd, _PATH_LOG_PRIV not defined

2005-02-15 Thread Steve Hodgson
On Tuesday 15 February 2005 14:02, Tuure Laurinolli wrote:
> Steve Hodgson wrote:
> > On Sunday 16 January 2005 17:37, Kris Kennaway wrote:
> >>On Sun, Jan 16, 2005 at 02:22:05PM +0000, Steve Hodgson wrote:
> >>>I'm getting the following error on a RELENG_5_3 box when trying to
> >>>compile the RELENG_5 sources. I've been cvsupping now for about a week
> >>>and continuing to get the same error when we get to syslogd.
>
> I get the same error updating RELENG_5_3 to RELENG_5. It's strange
> because the constant most certainly is defined in
> /usr/src/sys/sys/syslog.h. However, when I straced the make, it seemed
> that this file was never used. Instead it used syslog.h from my already
> installed system!
>
On Tuesday 15 February 2005 14:02, Tuure Laurinolli wrote:
> Steve Hodgson wrote:
> > On Sunday 16 January 2005 17:37, Kris Kennaway wrote:
> >>On Sun, Jan 16, 2005 at 02:22:05PM +, Steve Hodgson wrote:
> >>>I'm getting the following error on a RELENG_5_3 box when trying to
> >>>compile the RELENG_5 sources. I've been cvsupping now for about a week
> >>>and continuing to get the same error when we get to syslogd.
>
> I get the same error updating RELENG_5_3 to RELENG_5. It's strange
> because the constant most certainly is defined in
> /usr/src/sys/sys/syslog.h. However, when I straced the make, it seemed
> that this file was never used. Instead it used syslog.h from my already
> installed system!
>
In the end I traced this down to devel/ccache which I was using at the time. I 
had copied the lines from /usr/local/share/doc/ccache/make.conf into my own 
make.conf:

.if !defined(NOCCACHE)
.if ${.CURDIR:M/usr/src*}
CC=/usr/local/libexec/ccache/cc
CXX=/usr/local/libexec/ccache/c++
.else
CC=cc
CXX=c++
.endif
.else
CC=/usr/bin/cc
CXX=/usr/bin/c++
.endif

However the check on line 2 didn't appear to have the desired effect, so 
instead of CC staying equal to "cc" and pulling in the buildworld cc and 
headers, it used the system cc and headers. Of course I then tried NOCCACHE=1 
without reading the code, which by definition will do the same thing (system 
compiler and headers). In the end I commented all these lines out and 
buildworld completed.

Can't recall why i didn't send-pr this one - probably because no one else has 
complained till now.

Steve
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make buildworld for RELENG_5 failing on RELENG_5_3 in /usr/src/usr.sbin/syslogd, _PATH_LOG_PRIV not defined

2005-01-17 Thread Steve Hodgson
On Sunday 16 January 2005 17:37, Kris Kennaway wrote:
> On Sun, Jan 16, 2005 at 02:22:05PM +0000, Steve Hodgson wrote:
> > I'm getting the following error on a RELENG_5_3 box when trying to
> > compile the RELENG_5 sources. I've been cvsupping now for about a week
> > and continuing to get the same error when we get to syslogd.
> >
> > /usr/src/usr.sbin/syslogd/syslogd.c:141: error: `_PATH_LOG_PRIV'
> > undeclared here (not in a function)
> > /usr/src/usr.sbin/syslogd/syslogd.c:141: error: initializer element is
> > not constant
> > /usr/src/usr.sbin/syslogd/syslogd.c:141: error: (near initialization for
> > `funix_secure.name')
> > /usr/src/usr.sbin/syslogd/syslogd.c:142: error: initializer element is
> > not constant
> > /usr/src/usr.sbin/syslogd/syslogd.c:142: error: (near initialization for
> > `funix_secure.next')
> >
> > If I apply the following patch then buildworld continues to completion.
> > Note the same error appears in libc and the patch fixes that as well.
> > Judging by the build logs and lack of others complaining I'm the only one
> > with this problem, so clearly this isn't the correct solution, but it
> > works for me.
> >
> > --- /usr/src/usr.sbin/syslogd/syslogd.c.old   Sun Jan 16 12:16:25
> > 2005 +++ /usr/src/usr.sbin/syslogd/syslogd.c   Sun Jan 16 12:17:53 2005
> > @@ -74,6 +74,7 @@
> >  #define DEFSPRI(LOG_KERN|LOG_CRIT)
> >  #define TIMERINTVL 30  /* interval for checking flush,
> > mark */
> >  #define TTYMSGTIME 1   /* timeout passed to ttymsg */
> > +#define   _PATH_LOG_PRIV  "/var/run/logpriv"
> >
> >  #include 
> >  #include 
> > --- /usr/src/lib/libc/gen/syslog.c.oldSun Jan 16 14:12:49 2005
> > +++ /usr/src/lib/libc/gen/syslog.cSun Jan 16 13:03:41 2005
> > @@ -60,6 +60,8 @@
> >
> >  #include "libc_private.h"
> >
> > +#define   _PATH_LOG_PRIV  "/var/run/logpriv"
> > +
> >  static int LogFile = -1;   /* fd for log */
> >  static int status; /* connection status */
> >  static int opened; /* have done openlog() */
> >
> > Any ideas on what could be wrong with my system? FYI In general I use
> > ccache but i've disabled it for this run, by editing out the commands
> > in /etc/make.conf.
>
> Try
>
> make cleandir
> make cleandir
> make buildworld
>
> Kris

This fixed the first error in usr.sbin/syslogd/syslogd.c, but the error in 
lib/libc/gen/syslog.c still occured, same (half) patch fixes it. Unless 
anyone has any other ideas I guess I'll continue reattempting this. Are there 
any objections to doing a make installworld/installkernel on the results 
after applying my patches - will that bork my system, could it help in 
anyway?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


make buildworld for RELENG_5 failing on RELENG_5_3 in /usr/src/usr.sbin/syslogd, _PATH_LOG_PRIV not defined

2005-01-16 Thread Steve Hodgson
I'm getting the following error on a RELENG_5_3 box when trying to compile the 
RELENG_5 sources. I've been cvsupping now for about a week and continuing to 
get the same error when we get to syslogd.

/usr/src/usr.sbin/syslogd/syslogd.c:141: error: `_PATH_LOG_PRIV' undeclared 
here (not in a function)
/usr/src/usr.sbin/syslogd/syslogd.c:141: error: initializer element is not 
constant
/usr/src/usr.sbin/syslogd/syslogd.c:141: error: (near initialization for 
`funix_secure.name')
/usr/src/usr.sbin/syslogd/syslogd.c:142: error: initializer element is not 
constant
/usr/src/usr.sbin/syslogd/syslogd.c:142: error: (near initialization for 
`funix_secure.next')

If I apply the following patch then buildworld continues to completion. Note 
the same error appears in libc and the patch fixes that as well. Judging by 
the build logs and lack of others complaining I'm the only one with this 
problem, so clearly this isn't the correct solution, but it works for me.

--- /usr/src/usr.sbin/syslogd/syslogd.c.old   Sun Jan 16 12:16:25 2005
+++ /usr/src/usr.sbin/syslogd/syslogd.c   Sun Jan 16 12:17:53 2005
@@ -74,6 +74,7 @@
 #define DEFSPRI(LOG_KERN|LOG_CRIT)
 #define TIMERINTVL 30  /* interval for checking flush, mark 
*/
 #define TTYMSGTIME 1   /* timeout passed to ttymsg */
+#define   _PATH_LOG_PRIV  "/var/run/logpriv"

 #include 
 #include 
--- /usr/src/lib/libc/gen/syslog.c.oldSun Jan 16 14:12:49 2005
+++ /usr/src/lib/libc/gen/syslog.cSun Jan 16 13:03:41 2005
@@ -60,6 +60,8 @@

 #include "libc_private.h"

+#define   _PATH_LOG_PRIV  "/var/run/logpriv"
+
 static int LogFile = -1;   /* fd for log */
 static int status; /* connection status */
 static int opened; /* have done openlog() */

Any ideas on what could be wrong with my system? FYI In general I use ccache 
but i've disabled it for this run, by editing out the commands 
in /etc/make.conf.

Steve
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"