Re: OpenLDAP 2.4.31 on FreeBSD 10.0-CURRENT/amd64 broken!

2012-05-05 Thread Dimitry Andric
On 2012-05-05 17:54, Hartmann, O. wrote:
 Since Friday, I have on all of our FreeBSD 10.0-CURRENT/amd64 boxes
 massive trouble with net/openldap24-server (SASL enabled, so it is
 openldap-sasl-server).
 
 Last time OpenLDAP worked was Thursday last week, when obviously a
 problematic update to the OS was made

I managed to reproduce the segfault you are seeing in slapd, which is
caused by a problem in libthr.so, introduced in r234947.

Please apply the attached diff, rebuild lib/libthr and install it, and
then try your slapd tests again.  Let us know. :)

@David, can you please review this diff?  It looks like there was a
mistake merging from Perforce, where you also moved the line:

sc = SC_LOOKUP(wchan);

to the top of the _sleepq_add() function, just before the call to
_sleepq_lookup().  If this isn't done, sc may be uninitialized when it
is dereferenced later on in the function.
Index: lib/libthr/thread/thr_sleepq.c
===
--- lib/libthr/thread/thr_sleepq.c	(revision 234994)
+++ lib/libthr/thread/thr_sleepq.c	(working copy)
@@ -113,11 +113,11 @@ _sleepq_add(void *wchan, struct pthread *td)
 	struct sleepqueue_chain *sc;
 	struct sleepqueue *sq;
 
+	sc = SC_LOOKUP(wchan);
 	sq = _sleepq_lookup(wchan);
 	if (sq != NULL) {
 		SLIST_INSERT_HEAD(sq-sq_freeq, td-sleepqueue, sq_flink);
 	} else {
-		sc = SC_LOOKUP(wchan);
 		sq = td-sleepqueue;
 		LIST_INSERT_HEAD(sc-sc_queues, sq, sq_hash);
 		sq-sq_wchan = wchan;
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: FreeBSD 10.0-CURRENT/AMD64 (CLANG): lang/gcc46 fails to build

2011-12-07 Thread Dimitry Andric

On 2011-12-07 05:56, O. Hartmann wrote:

On FreeBSD 10.0-CURRENT/amd64 I run into the error shown below when
updating the installation of the gcc46 compiler suite.


If you report port compilation errors, always use DISABLE_MAKE_JOBS,
otherwise the actual error message will drown in multithreaded spam. :)

(And even if you would save and post the full build log, it is sometimes
still impossible to see which exact command failed and why.)

That said, you are most likely running into an issue with the fix for
FreeBSD 10-CURRENT in bsd.port.mk, causing the lto-plugin stage
configure script to fail.

This is because the gcc ports unpack their source code into
${WRKDIR}/gcc-${VERSIONSTRING}, and then override WRKSRC to
${WRKDIR}/build.  Since bsd.port.mk only applies the run-autotools-fixup
to ${WRKSRC}, the gcc source itself is not properly fixed up.

You can try the attached patch, which fixes this (and fixes it for all
other ports that override WKRSRC).
Index: Mk/bsd.port.mk
===
RCS file: /home/mirror/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.699
diff -u -r1.699 bsd.port.mk
--- Mk/bsd.port.mk	9 Nov 2011 08:53:12 -	1.699
+++ Mk/bsd.port.mk	7 Dec 2011 08:16:56 -
@@ -3663,7 +3663,7 @@
 run-autotools-fixup:
 # Work around an issue where FreeBSD 10.0 is detected as FreeBSD 1.x.
 .if ${OSVERSION} = 100  !defined(WITHOUT_FBSD10_FIX)
-	-@for f in `${FIND} ${WRKSRC} -type f \( -name config.libpath -o \
+	-@for f in `${FIND} ${WRKDIR} -type f \( -name config.libpath -o \
 		-name config.rpath -o -name configure -o -name libtool.m4 -o \
 		-name ltconfig -o -name libtool -o -name aclocal.m4 -o \
 		-name acinclude.m4 \)` ; do \
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: kernel: install: mps.ko.symbols: No such file or directory

2011-05-23 Thread Dimitry Andric

On 2011-05-23 10:03, O. Hartmann wrote:
...

But make installkernel still fails installing mps.ko.symbols (which is
not found).


Is it only mps.ko that suffers from this problem?  Or are other kernel
modules also resulting in the same message?
___
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: kernel: install: mps.ko.symbols: No such file or directory

2011-05-23 Thread Dimitry Andric

On 2011-05-23 14:49, Dimitry Andric wrote:

On 2011-05-23 10:03, O. Hartmann wrote:
...

But make installkernel still fails installing mps.ko.symbols (which is
not found).


Is it only mps.ko that suffers from this problem?  Or are other kernel
modules also resulting in the same message?


Ok, I guess it must be just mps.ko, since its Makefile is different.
Can you please try the attached patch, which hopefully works around the
problem?
Index: sys/modules/mps/Makefile
===
--- sys/modules/mps/Makefile(revision 221502)
+++ sys/modules/mps/Makefile(working copy)
@@ -8,6 +8,6 @@
 SRCS+= device_if.h bus_if.h pci_if.h
 
 #CFLAGS += -DMPS_DEBUG
-DEBUG += -g
+#DEBUG += -g
 
 .include bsd.kmod.mk
___
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: vmware-tools-freebsd No drivers for x.org version: 7.6.5.

2011-04-08 Thread Dimitry Andric

On 2011-04-08 10:42, Matthias Apitz wrote:

I have FreeBSD 9-CURRENT up and running in a VMware Workstation 7.x and
I tried to install the vmware-tools-freebsd of VMware to get the driver
for Xorg, but it seems that X.org 7.6.5. is not supported. My other VM
runs a 8-CURRENT with X.org 7.4_1 which works fine.

Any idea how to solve this? Should I go back to X.org 7.4_1 in
9-CURRENT? Or should I fake the vmware-tools installer to see X.org as
/.4 while it is 7.6.5?


X.org 7.5 already has VMware drivers, so you can just install the
x11-drivers/xf86-input-vmmouse and x11-drivers/xf86-video-vmware ports.

Alternatively, run make config in x11-drivers/xorg-drivers, check the
VMMOUSE and VMWARE entries, and rebuild this meta-port.

Btw, I have no idea why these drivers are not enabled by default.  They
would seem very useful in a default X.org installation.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: booting off GPT partitions

2010-01-28 Thread Dimitry Andric

On 2010-01-28 13:06, Robert Noland wrote:

John or Marcel can correct me, but I don't think that this is an issue.
The bootstrap is located in the pmbr in sector 0 and the GPT headers and
tables are in sectors 1 - 34.  The bootstrap code knows how to read the
GPT tables and can deal with  2 tb lba's.


Ah yes, I see it now.  It uses EDD packets with the BIOS int 13
interface, which apparently have a 64-bit LBA.  This should support up
to 8 ZiB with 512-byte sectors...

OTOH, I have no idea how well most BIOSes actually implement this.
Since many OSes simply don't support anything over 2^32 sectors, I would
not be amazed to find much BIOSes out there that behave the same.  Or am
I too paranoid now? :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: booting off GPT partitions

2010-01-27 Thread Dimitry Andric

On 2010-01-27 22:27, John Baldwin wrote:

GPT was defined along with EFI, so many folks assume that you have to use EFI
to boot a GPT-labelled disk.  However, FreeBSD has its own BIOS-based
bootstrap that can handle GPT-labelled disks.  I doubt the SuperMicro tech is
familiar with that case.  I thought I heard that some folks had added GPT
support to grub as well.


However, this won't boot disks larger than 2TiB, right?  At least not
without BIOS support...
___
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: ET.UTF-8.out: Inappropriate ioctl for device (buildworld RELENG8)

2009-12-19 Thread Dimitry Andric
On 2009-12-19 15:42, Jeronimo Calvo wrote:
 Hi folks, Im getting the following error when building world for
 RELENG_8 using GENERIC.
 Any ideas on how to skip that?
 
 === share/mklocale (all)
 mklocale -o UTF-8.out /usr/src/share/mklocale/UTF-8.src
 mklocale -o am_ET.UTF-8.out /usr/src/share/mklocale/am_ET.UTF-8.src
 am_ET.UTF-8.out: Inappropriate ioctl for device
 *** Error code 1

This problem should only hit you if you have a mklocale binary from
after 8.0-BETA1, and before 8.0-BETA2.

See these threads from some time ago:

http://lists.freebsd.org/pipermail/freebsd-current/2009-July/thread.html#9871
http://lists.freebsd.org/pipermail/freebsd-current/2009-July/thread.html#9406

In short, rebuild mklocale before buildworld:

cd /usr/src/usr.bin/mklocale
make
make install clean
___
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: How can convert user expired days in human readable ?

2003-06-20 Thread Dimitry Andric
On 2003-06-20 at 14:36:06 Murat USTUNTAS wrote:

 How can I conver the number like 1064005200 to human readable date
 format ?

Try:

  date -r 1064005200

And read the date(1) manpage for more information.


pgp0.pgp
Description: PGP signature


Re: FreeBSD Stability

2003-01-02 Thread Dimitry Andric
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2003-01-03 at 02:29:49 Chris Doherty wrote:

 Additionally HP-UX, Linux, Solaris and recent releases of FreeBSD cycle
 back to zero after 497 days

 wacky. how/why is this the case?

2^32/100/24/60/60 ~= 497.1

Cheers,
- --
Dimitry Andric [EMAIL PROTECTED]
PGP Key: http://www.xs4all.nl/~dim/dim.asc
Fingerprint: 7AB462D2CE35FC6D42394FCDB05EA30A2E2096A3
Lbh whfg ivbyngrq gur QZPN naq jvyy or cebfrphgrq

-BEGIN PGP SIGNATURE-
Version: 6.5.8ckt http://www.ipgpp.com/
Comment: http://duncan.gn.apc.org/stoa_cover.htm

iQA/AwUBPhTbRrBeowouIJajEQLebgCgsdkqK0snRfj6FrvvtyTq1dnk4isAoJGa
pBa/JXM/r8kCISHOkfyMTRlT
=Rnwg
-END PGP SIGNATURE-


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message