On Thu, Feb 15, 2001 at 02:51:51PM +0200, Maxim Sobolev wrote:

>> CONFIGURE_ARGS= "LIBS=-pthread"
>> to kdesupport2/Makefile would help.
>>
>> There are some way to ``fix'' this problem:
>> c) Use -lc_r instead of -pthread.
>>    As -pthread will be depreciated, we should use -lc_r for FreeBSD
>>    5.0 and later, shouldn't we?
>
>Yes, it looks like a most appropriate solution to me. If you read -ports,
>recently I proposed to add a small patch for the bsd.port.mk to help with
>transition process, but have not heard anything back from PW yet.

Either I do it the wrong way, or you are not paying attention to my
first message thoroughly. I HAVE applied your patch to my
/usr/ports/Mk/bsd.port.mk! But still, I failed to build kdesupport2

So, here's the summary of what I have done:
1. Reformat hard drive (cause I have a broken -CURRENT caused by FILE struct
changes)
2. Install from current.freebsd.org a -CURRENT snapshot of 20000210
3. cvsup the latest ports tree
4. Applied Maxim Sobolev patch against my /usr/ports/Mk/bsd.port.mk
The patch is:

--- bsd.port.mk 2001/02/08 19:09:54     1.2
+++ bsd.port.mk 2001/02/08 19:15:50
@@ -948,6 +948,14 @@
 MAKEFILE?=             Makefile
 MAKE_ENV+=             PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} 
MOTIFLIB="${MOTIFLIB}" LIBDIR="${LIBDIR}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
 
+.if ${OSVERSION} < 500000
+PTHREAD_CFLAGS=        -D_THREAD_SAFE
+PTHREAD_LIBS=          "-pthread"
+.else
+PTHREAD_CFLAGS=        ""
+PTHREAD_LIBS=          "-lc_r"
+.endif
+
 .if exists(/usr/bin/fetch)
 # avoid -A for 2.2 -- it's not ported to that branch
 .if ${OSVERSION} < 300000

Correct isn't it?

5. Start building my ports
6. Everything from XFree86-4.0.2_6 to qt-2.2.4 build and installed just fine
7. kdesupport2 started bombing error messages

So, if after all of this I SHOULD have not undergone any errors, then the
mistakes is on me, please forgive me for wasting your time and bandwith.

I am only seeking for some enlightenment.

>-Maxim

/john



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

Reply via email to