Re: pthread usage

2007-03-19 Thread Chuck Swiger

On Mar 19, 2007, at 11:30 AM, Jules Gilbert wrote:
I need help making pthread work, as I need to enqueue and dequeue  
logical resource names, so that I can lock and unlock events and  
physical resources.


Does anyone have examples of pthread code that is known to work  
under FreeBSD 6.1?


There are hundreds of ports which use POSIX threads:

  find /usr/ports -name Makefile -print0 | xargs -0 grep -l PTHREAD

I have several different problems, but most can be stated as having  
to defer execution of one job until one or more other jobs have  
concluded.


I have tried using "clusterit".  The key component doesn't work,  
sigh...  I don't know whether the problem is the ClusterIt code or  
FreeBSD, either.


Are you using the port, /usr/ports/net/clusterit...?
Talk to the maintainer, perhaps, who is <[EMAIL PROTECTED]>.

--
-Chuck



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


pthread usage

2007-03-19 Thread Jules Gilbert

Dear :

I have blades, all running FreeBSD, (version 6.1)  And these machines  
have to communicate, one with another.


I need help making pthread work, as I need to enqueue and dequeue  
logical resource names, so that I can lock and unlock events and  
physical resources.


Does anyone have examples of pthread code that is known to work under  
FreeBSD 6.1?


I have several different problems, but most can be stated as having  
to defer execution of one job until one or more other jobs have  
concluded.


I have tried using "clusterit".  The key component doesn't work,  
sigh...  I don't know whether the problem is the ClusterIt code or  
FreeBSD, either.


So, please help...  Otherwise, I shall have to take a month and  
migrate away -- not something I want to do at all!


--jg



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


Re: Trying to join an already exited pthread

2007-02-09 Thread youshi10

On Fri, 9 Feb 2007 [EMAIL PROTECTED] wrote:


On Fri, 9 Feb 2007, Daniel Eischen wrote:


On Thu, 8 Feb 2007, Garrett Cooper wrote:


Actually, now that I think about it the calls I made with ps in the 
program are valid for Linux but not for FreeBSD (they're for getting 
thread listings). Hence error code 2.


From intro(2):

2 ENOENT No such file or directory.  A component of a specified 
pathname did not exist, or

  the pathname was an empty
  string.

Didn't think that a bad command would return errno=2 though..


And hopefully you've realized that your code is totally bogus
since pthread_foo() don't set errno.  All the pthread_foo()
functions _return_ the error.  If your code is not checking
the return values from those functions, it is wrong on every
platform, not just FreeBSD.

--
DE


Well, right. I was just being lazy by checking errno, instead of checking the 
return value of pthread_*. It wasn't meant to be anything more than a simple 
set of tests. I thought that errno was set on errors though, but after reading 
the manpage more carefully it turns out that this is not the case.


I'll see if I can fix my checks.

Thanks for bringing this to my attention!

-Garrett


Damn habit of always typing in freebsd-questions when using webmail ~_~..

-Garrett


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


Re: Trying to join an already exited pthread

2007-02-09 Thread youshi10

On Fri, 9 Feb 2007, Daniel Eischen wrote:


On Thu, 8 Feb 2007, Garrett Cooper wrote:


Actually, now that I think about it the calls I made with ps in the program 
are valid for Linux but not for FreeBSD (they're for getting thread 
listings). Hence error code 2.


From intro(2):

2 ENOENT No such file or directory.  A component of a specified pathname 
did not exist, or

  the pathname was an empty
  string.

Didn't think that a bad command would return errno=2 though..


And hopefully you've realized that your code is totally bogus
since pthread_foo() don't set errno.  All the pthread_foo()
functions _return_ the error.  If your code is not checking
the return values from those functions, it is wrong on every
platform, not just FreeBSD.

--
DE


Well, right. I was just being lazy by checking errno, instead of checking the 
return value of pthread_*. It wasn't meant to be anything more than a simple 
set of tests. I thought that errno was set on errors though, but after reading 
the manpage more carefully it turns out that this is not the case.

I'll see if I can fix my checks.

Thanks for bringing this to my attention!

-Garrett

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


Re: Trying to join an already exited pthread

2007-02-08 Thread Garrett Cooper

Garrett Cooper wrote:

Garrett Cooper wrote:

Garrett Cooper wrote:

On Feb 7, 2007, at 1:51 PM, Steve Watt wrote:


In <[EMAIL PROTECTED]>,
 <[EMAIL PROTECTED]> wrote:

Just wondering:

If I was to try and join a pthread that already exited, would there 
be an error
message output and/or errno set to an error value, or would a 
system hang?


Was the thread created with detach state set PTHREAD_CREATE_DETACHED or
PTHREAD_CREATE_JOINABLE?  If it was PTHREAD_CREATE_JOINABLE, has the
thread already been joined?

You should be able to join a thread that was created joinable, only 
once.

If you join it again, or join a thread that was created detached, the
results are unspecified in POSIX.  There is an error status that may
be returned, but it may do other bad things to your system.

Note that pthread_join doesn't set errno; it returns an error value
directly.  I would never expect the system to hang, though the 
application
might.  If your application is hanging, make sure that you're not 
trying

to call pthread_join from within a signal handler.


It this variable on Unix OSes?


That the results are unspecified?  No.  What "unspecified" means?
Absolutely.
--Steve Watt KD6GGD  PP-ASEL-IA  ICBM: 121W 56' 57.5" / 37N 
20' 15.3"

 Internet: steve @ Watt.COM  Whois: SW32-ARIN
   Free time?  There's no such thing.  It just comes in varying 
prices...


I asked this because I was short on time and so was the person 
who asked me earlier. I'm going to try giving the pthread exit and 
join a shot just to see whether or not this is true or not and then 
I'll report my results to the list.
Thanks for the insight though--hopefully my results will yield a 
solid positive or negative to this being a problem.

-Garrett


Under Suse Linux there were absolutely no errors when I tried to do 
this. I'll post a code snippet later.

-Garrett


Ok, here's a link to my code:

http://students.washington.edu/youshi10/posted/thread_test.c

My results (FreeBSD):

[EMAIL PROTECTED] /home/gcooper]# ./tt
Thread join detached
Thread kill detached
Joined thread yielded error code: 2
Trying to join the already joined thread yields error code: 0

My results (Suse Linux):

# ./tt
Thread join detached
Thread kill detached
Joined thread yielded error code: 0
Trying to join the already joined thread yields error code: 0

That was sure interesting.. is it supposed to error out or was it the 
remnant of an old error call?


Probably the latter, but I was just curious..

-Garrett


Sorry--wrong list.

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


Re: Trying to join an already exited pthread

2007-02-08 Thread Garrett Cooper

Garrett Cooper wrote:

Garrett Cooper wrote:

On Feb 7, 2007, at 1:51 PM, Steve Watt wrote:


In <[EMAIL PROTECTED]>,
 <[EMAIL PROTECTED]> wrote:

Just wondering:

If I was to try and join a pthread that already exited, would there 
be an error
message output and/or errno set to an error value, or would a system 
hang?


Was the thread created with detach state set PTHREAD_CREATE_DETACHED or
PTHREAD_CREATE_JOINABLE?  If it was PTHREAD_CREATE_JOINABLE, has the
thread already been joined?

You should be able to join a thread that was created joinable, only 
once.

If you join it again, or join a thread that was created detached, the
results are unspecified in POSIX.  There is an error status that may
be returned, but it may do other bad things to your system.

Note that pthread_join doesn't set errno; it returns an error value
directly.  I would never expect the system to hang, though the 
application

might.  If your application is hanging, make sure that you're not trying
to call pthread_join from within a signal handler.


It this variable on Unix OSes?


That the results are unspecified?  No.  What "unspecified" means?
Absolutely.
--Steve Watt KD6GGD  PP-ASEL-IA  ICBM: 121W 56' 57.5" / 37N 
20' 15.3"

 Internet: steve @ Watt.COM  Whois: SW32-ARIN
   Free time?  There's no such thing.  It just comes in varying 
prices...


I asked this because I was short on time and so was the person who 
asked me earlier. I'm going to try giving the pthread exit and join a 
shot just to see whether or not this is true or not and then I'll 
report my results to the list.
Thanks for the insight though--hopefully my results will yield a 
solid positive or negative to this being a problem.

-Garrett


Under Suse Linux there were absolutely no errors when I tried to do 
this. I'll post a code snippet later.

-Garrett


Ok, here's a link to my code:

http://students.washington.edu/youshi10/posted/thread_test.c

My results (FreeBSD):

[EMAIL PROTECTED] /home/gcooper]# ./tt
Thread join detached
Thread kill detached
Joined thread yielded error code: 2
Trying to join the already joined thread yields error code: 0

My results (Suse Linux):

# ./tt
Thread join detached
Thread kill detached
Joined thread yielded error code: 0
Trying to join the already joined thread yields error code: 0

That was sure interesting.. is it supposed to error out or was it the 
remnant of an old error call?


Probably the latter, but I was just curious..

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


Spontaneous reboot involving 6-stable, gdb, and -pthread

2006-06-07 Thread Jeremy Nelson

I am trying to collect enough information to file a bug report about a 
problem I am running into.  

I have two separate machines:
Machine 1 is running 6.1-RC/amd64
Machine 2 first was running 5.4-RELEASE/amd64
Machine 2 then it ran 5-STABLE/amd64
Machine 2 now it runs 6-STABLE/amd64 from monday.

If I build ftp://ftp.epicsol.org/pub/epic/EPIC5/epic5-0.2.0.tar.gz,
(the update for the irc/epic5 port hasn't been comitted yet) and manually
add -pthread to LDFLAGS, and run the binary under /usr/bin/gdb, the machine 
spontaneously reboots.  It doesn't appear to be a panic, because I've 
compiled a debugging kernel with DDB and KDB, etc, and it does not trap 
to the kernel debugger, just a reboot, as though I had hit the reset switch.

I've successfully reproduced this 100% of the time I've tried it on multiple
machines, on multiple branches of freebsd.  I have not (yet) been able to
test it on i386, so I don't (yet) know if it's amd64-related.

The last thing I see before the reboot is:
[New Thread 0x (LWP )]

I've found I can avoid the panic by doing any one of:
1) Don't run under /usr/bin/gdb
2) Use /usr/ports/devel/gdb6 instead of /usr/bin/gdb
3) Remove the need to have -pthread in LDFLAGS

I don't have an /etc/libmap.conf on either machine.

Before I file a bug report, are there any other hints anyone can give me
for what I might be running across here?

(I am trying to fix this, because linking against ruby1.8 requires -pthread,
 so this is something new that I'm getting bug reports for.)

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


Re: pthread problems and ports on fresh 6.0 install

2005-12-26 Thread Micah

Lowell Gilbert wrote:

Micah <[EMAIL PROTECTED]> writes:



I wrote in a few days ago about gpgme not compiling.  It had an error
about several pthread_* functions.  I got around it by installing from
packages.  Now I can't compile multimedia/gstreamer from ports for the
same reason. (Error below).  I'm not sure what to do, or even what the
problem is...  Any help in tracking the problem down is appreciated.

I'm running FreeBSD 6.0-RELEASE i386 with the generic kernel installed
off CD.

Thanks,
Micah




How did you install the ports?  Are they up-to-date?  Are there maybe
some stale files in that particular port directory?


The ports tree was installed by copying the ports tree from a working 
5.4 install then cvsupping against cvsup5.FreeBSD.org.  There shouldn't 
have been any stale files left behind.  After getting the error i tried 
make clean && make build Several time in fact (yes, I know the 
definition of insanity :)


I did manage to fix it, but the solution was a little drastic  I 
updated my ports tree again (by now it was a day or two old), tried the 
broken ports again (still didn't work), upgraded the two ports that were 
out of date (one was a libtool15).  I then did a portupgrade -Rrf 
glib-2\* because one of the error messages made me think something was 
wrong with glib.  That ended up rebuilding practically everything. 
After that gstreamer and gpgme built and installed properly.  Just 
looked at http://www.freshports.org/devel/libtool15/ - seems it was a 
ports bug.  The rebuild-everything step probably wasn't necessary. :(


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


Re: pthread problems and ports on fresh 6.0 install

2005-12-26 Thread Lowell Gilbert
Micah <[EMAIL PROTECTED]> writes:

> I wrote in a few days ago about gpgme not compiling.  It had an error
> about several pthread_* functions.  I got around it by installing from
> packages.  Now I can't compile multimedia/gstreamer from ports for the
> same reason. (Error below).  I'm not sure what to do, or even what the
> problem is...  Any help in tracking the problem down is appreciated.
> 
> I'm running FreeBSD 6.0-RELEASE i386 with the generic kernel installed
> off CD.
> 
> Thanks,
> Micah
> 
> *** For GPGME error message see: ***
> http://lists.freebsd.org/pipermail/freebsd-questions/2005-December/108171.html
> 
> ***Error Message***
> cc -shared  .libs/libgstspider_la-gstspider.o
> .libs/libgstspider_la-gstspideridentity.o
> .libs/libgstspider_la-gstsearchfuncs.o  -Wl,--rpath
> -Wl,/usr/ports/multimedia/gstreamer/work/gstreamer-0.8.11/gst/.libs
> -Wl,--rpath -Wl,/usr/X11R6/lib -L/usr/local/lib
> ../../gst/.libs/libgstreamer-0.8.so  -march=athlon -Wl,-soname
> -Wl,libgstspider.so -Wl,-retain-symbols-file
> -Wl,.libs/libgstspider.exp -o .libs/libgstspider.so
> creating libgstspider.la
> (cd .libs && rm -f libgstspider.la && ln -s ../libgstspider.la
> libgstspider.la)
> if cc -DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/local/include
> -D_REENTRANT -I/usr/local/include/glib-2.0
> -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2
> -I/usr/local/include   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
> -fno-common -g -Wall -DGST_DISABLE_DEPRECATED -I../../libs -I../.. -O2
> -fno-strict-aliasing -pipe -O2 -pipe -march=athlon -MT
> spidertest-spidertest.o -MD -MP -MF ".deps/spidertest-spidertest.Tpo"
> -c
> -o spidertest-spidertest.o `test -f 'spidertest.c' || echo
> './'`spidertest.c; \
> then mv -f ".deps/spidertest-spidertest.Tpo"
> ".deps/spidertest-spidertest.Po"; else rm -f
> ".deps/spidertest-spidertest.Tpo"; exit 1; fi
> /bin/sh /usr/local/bin/libtool15 --tag=CC --mode=link cc  -O2
> -fno-strict-aliasing -pipe -O2 -pipe -march=athlon  -L/usr/local/lib
> -o
> spidertest  spidertest-spidertest.o ../../gst/libgstreamer-0.8.la
> cc -O2 -fno-strict-aliasing -pipe -O2 -pipe -march=athlon -o
> .libs/spidertest spidertest-spidertest.o  -L/usr/local/lib
> ../../gst/.libs/libgstreamer-0.8.so -lxml2 -lz -lgobject-2.0
> -lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -liconv -lpopt -lintl -lm
> -Wl,--rpath -Wl,/usr/X11R6/lib
> /usr/local/lib/libgthread-2.0.so: undefined reference to
> `pthread_attr_destroy'
> /usr/local/lib/libgthread-2.0.so: undefined reference to `pthread_create'
> /usr/local/lib/libgthread-2.0.so: undefined reference to `pthread_attr_init'
> /usr/local/lib/libgthread-2.0.so: undefined reference to `pthread_exit'
> /usr/local/lib/libgthread-2.0.so: undefined reference to `pthread_equal'
> /usr/local/lib/libgthread-2.0.so: undefined reference to
> `pthread_getschedparam'
> /usr/local/lib/libgthread-2.0.so: undefined reference to
> `pthread_attr_setscope'
> /usr/local/lib/libgthread-2.0.so: undefined reference to
> `pthread_setschedparam'
> /usr/local/lib/libgthread-2.0.so: undefined reference to
> `pthread_attr_setstacksize'
> /usr/local/lib/libgthread-2.0.so: undefined reference to
> `pthread_attr_setschedparam'
> /usr/local/lib/libgthread-2.0.so: undefined reference to
> `pthread_attr_setdetachstate'
> /usr/local/lib/libgthread-2.0.so: undefined reference to `pthread_join'
> /usr/local/lib/libgthread-2.0.so: undefined reference to
> `pthread_cond_timedwait'
> /usr/local/lib/libgthread-2.0.so: undefined reference to
> `pthread_attr_getschedparam'
> gmake[4]: *** [spidertest] Error 1
> gmake[4]: Leaving directory
> `/usr/ports/multimedia/gstreamer/work/gstreamer-0.8.11/gst/autoplug'
> gmake[3]: *** [all-recursive] Error 1
> gmake[3]: Leaving directory
> `/usr/ports/multimedia/gstreamer/work/gstreamer-0.8.11/gst'
> gmake[2]: *** [all] Error 2
> gmake[2]: Leaving directory
> `/usr/ports/multimedia/gstreamer/work/gstreamer-0.8.11/gst'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/usr/ports/multimedia/gstreamer/work/gstreamer-0.8.11'
> gmake: *** [all] Error 2
> *** Error code 2
> 
> Stop in /usr/ports/multimedia/gstreamer.
> #
> 

How did you install the ports?  Are they up-to-date?  Are there maybe
some stale files in that particular port directory?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pthread problems and ports on fresh 6.0 install

2005-12-24 Thread Micah


I wrote in a few days ago about gpgme not compiling.  It had an error 
about several pthread_* functions.  I got around it by installing from 
packages.  Now I can't compile multimedia/gstreamer from ports for the 
same reason. (Error below).  I'm not sure what to do, or even what the 
problem is...  Any help in tracking the problem down is appreciated.


I'm running FreeBSD 6.0-RELEASE i386 with the generic kernel installed 
off CD.


Thanks,
Micah

*** For GPGME error message see: *** 
http://lists.freebsd.org/pipermail/freebsd-questions/2005-December/108171.html


***Error Message***
cc -shared  .libs/libgstspider_la-gstspider.o 
.libs/libgstspider_la-gstspideridentity.o 
.libs/libgstspider_la-gstsearchfuncs.o  -Wl,--rpath 
-Wl,/usr/ports/multimedia/gstreamer/work/gstreamer-0.8.11/gst/.libs 
-Wl,--rpath -Wl,/usr/X11R6/lib -L/usr/local/lib 
../../gst/.libs/libgstreamer-0.8.so  -march=athlon -Wl,-soname 
-Wl,libgstspider.so -Wl,-retain-symbols-file -Wl,.libs/libgstspider.exp 
-o .libs/libgstspider.so

creating libgstspider.la
(cd .libs && rm -f libgstspider.la && ln -s ../libgstspider.la 
libgstspider.la)
if cc -DHAVE_CONFIG_H -I. -I. -I../..   -I/usr/local/include 
-D_REENTRANT -I/usr/local/include/glib-2.0 
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2 
-I/usr/local/include   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-fno-common -g -Wall -DGST_DISABLE_DEPRECATED -I../../libs -I../.. -O2 
-fno-strict-aliasing -pipe -O2 -pipe -march=athlon -MT 
spidertest-spidertest.o -MD -MP -MF ".deps/spidertest-spidertest.Tpo" -c 
-o spidertest-spidertest.o `test -f 'spidertest.c' || echo 
'./'`spidertest.c; \
then mv -f ".deps/spidertest-spidertest.Tpo" 
".deps/spidertest-spidertest.Po"; else rm -f 
".deps/spidertest-spidertest.Tpo"; exit 1; fi
/bin/sh /usr/local/bin/libtool15 --tag=CC --mode=link cc  -O2 
-fno-strict-aliasing -pipe -O2 -pipe -march=athlon  -L/usr/local/lib -o 
spidertest  spidertest-spidertest.o ../../gst/libgstreamer-0.8.la
cc -O2 -fno-strict-aliasing -pipe -O2 -pipe -march=athlon -o 
.libs/spidertest spidertest-spidertest.o  -L/usr/local/lib 
../../gst/.libs/libgstreamer-0.8.so -lxml2 -lz -lgobject-2.0 
-lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -liconv -lpopt -lintl -lm 
-Wl,--rpath -Wl,/usr/X11R6/lib
/usr/local/lib/libgthread-2.0.so: undefined reference to 
`pthread_attr_destroy'

/usr/local/lib/libgthread-2.0.so: undefined reference to `pthread_create'
/usr/local/lib/libgthread-2.0.so: undefined reference to `pthread_attr_init'
/usr/local/lib/libgthread-2.0.so: undefined reference to `pthread_exit'
/usr/local/lib/libgthread-2.0.so: undefined reference to `pthread_equal'
/usr/local/lib/libgthread-2.0.so: undefined reference to 
`pthread_getschedparam'
/usr/local/lib/libgthread-2.0.so: undefined reference to 
`pthread_attr_setscope'
/usr/local/lib/libgthread-2.0.so: undefined reference to 
`pthread_setschedparam'
/usr/local/lib/libgthread-2.0.so: undefined reference to 
`pthread_attr_setstacksize'
/usr/local/lib/libgthread-2.0.so: undefined reference to 
`pthread_attr_setschedparam'
/usr/local/lib/libgthread-2.0.so: undefined reference to 
`pthread_attr_setdetachstate'

/usr/local/lib/libgthread-2.0.so: undefined reference to `pthread_join'
/usr/local/lib/libgthread-2.0.so: undefined reference to 
`pthread_cond_timedwait'
/usr/local/lib/libgthread-2.0.so: undefined reference to 
`pthread_attr_getschedparam'

gmake[4]: *** [spidertest] Error 1
gmake[4]: Leaving directory 
`/usr/ports/multimedia/gstreamer/work/gstreamer-0.8.11/gst/autoplug'

gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory 
`/usr/ports/multimedia/gstreamer/work/gstreamer-0.8.11/gst'

gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory 
`/usr/ports/multimedia/gstreamer/work/gstreamer-0.8.11/gst'

gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/usr/ports/multimedia/gstreamer/work/gstreamer-0.8.11'

gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/multimedia/gstreamer.
#

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


Re: Pthread Problem building clamav-0.86.1

2005-06-27 Thread bsd

Nope,

The simple answer is to compile clamav with the "disable-pthreads"  
option. Modify the configure args of the Makefile using these  
attributes :


CONFIGURE_ARGS= --with-dbdir=${DBDIR} \
--with-zlib=/usr \
--disable-zlib-vcheck \
--disable-clamuko \
--disable-clamav \
--enable-bigstack \
--disable-gethostbyname_r \
--enable-readdir_r \
--disable-dependency-tracking \
--disable-pthreads


It'll compile smoothly.

Thanks to Matt Fretwell from clamav Mailing List //


Le 26 juin 05 à 21:43, Craig Kleski a écrit :


On Sunday 26 June 2005 09:45 pm, bsd wrote:


Hello,

I have built on my test machine the latest version of clamav and I am
facing a pthread build problem.

My system is FreeBSD 5.2.1 //

I ain't no C programmer (unfortunately) so any help will be welcome.

Another question is how can I get back to the previous version that
was installed (and working) on the system ?


Sincerly yours;



===>  Building for clamav-0.86.1
make  all-recursive
Making all in libclamav
Making all in clamscan
/bin/sh /usr/local/bin/libtool15 --mode=link cc  -O -pipe -
mcpu=pentiumpro   -L/usr/local/lib  -lc_r -lldap -o clamscan
output.o getopt.o  memory.o cfgparser.o misc.o  clamscan.o options.o
others.o  manager.o treewalk.o  ../libclamav/libclamav.la
cc -O -pipe -mcpu=pentiumpro -o .libs/clamscan output.o getopt.o
memory.o cfgparser.o misc.o clamscan.o options.o others.o manager.o
treewalk.o  -L/usr/local/lib ../libclamav/.libs/libclamav.so -lldap -
lbz2 -lgmp -lcurl -lssl -lcrypto -lz -Wl,--rpath -Wl,/usr/local/lib
../libclamav/.libs/libclamav.so: undefined reference to
`pthread_cleanup_pop'
../libclamav/.libs/libclamav.so: undefined reference to
`pthread_create' ../libclamav/.libs/libclamav.so: undefined reference
to
`pthread_cleanup_push'
../libclamav/.libs/libclamav.so: undefined reference to
`pthread_join' *** Error code 1

Stop in /usr/ports/security/clamav/work/clamav-0.86.1/clamscan.
*** Error code 1

Stop in /usr/ports/security/clamav/work/clamav-0.86.1.
*** Error code 1

Stop in /usr/ports/security/clamav/work/clamav-0.86.1.
*** Error code 1

Stop in /usr/ports/security/clamav.
*** Error code 1

Stop in /usr/ports/security/clamav.



«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

Gregober ---> PGP ID --> 0x1BA3C2FD
bsd @at@ todoo.biz

«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§




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



Possible solution: alter the Makefile LDFLAGS by adding "-lpthread"
Then try the build again.

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





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


Re: Pthread Problem building clamav-0.86.1

2005-06-26 Thread Craig Kleski
On Sunday 26 June 2005 09:45 pm, bsd wrote:
> Hello,
>
> I have built on my test machine the latest version of clamav and I am
> facing a pthread build problem.
>
> My system is FreeBSD 5.2.1 //
>
> I ain't no C programmer (unfortunately) so any help will be welcome.
>
> Another question is how can I get back to the previous version that
> was installed (and working) on the system ?
>
>
> Sincerly yours;
>
>
>
> ===>  Building for clamav-0.86.1
> make  all-recursive
> Making all in libclamav
> Making all in clamscan
> /bin/sh /usr/local/bin/libtool15 --mode=link cc  -O -pipe -
> mcpu=pentiumpro   -L/usr/local/lib  -lc_r -lldap -o clamscan
> output.o getopt.o  memory.o cfgparser.o misc.o  clamscan.o options.o
> others.o  manager.o treewalk.o  ../libclamav/libclamav.la
> cc -O -pipe -mcpu=pentiumpro -o .libs/clamscan output.o getopt.o
> memory.o cfgparser.o misc.o clamscan.o options.o others.o manager.o
> treewalk.o  -L/usr/local/lib ../libclamav/.libs/libclamav.so -lldap -
> lbz2 -lgmp -lcurl -lssl -lcrypto -lz -Wl,--rpath -Wl,/usr/local/lib
> ../libclamav/.libs/libclamav.so: undefined reference to
> `pthread_cleanup_pop'
> ../libclamav/.libs/libclamav.so: undefined reference to
> `pthread_create' ../libclamav/.libs/libclamav.so: undefined reference
> to
> `pthread_cleanup_push'
> ../libclamav/.libs/libclamav.so: undefined reference to
> `pthread_join' *** Error code 1
>
> Stop in /usr/ports/security/clamav/work/clamav-0.86.1/clamscan.
> *** Error code 1
>
> Stop in /usr/ports/security/clamav/work/clamav-0.86.1.
> *** Error code 1
>
> Stop in /usr/ports/security/clamav/work/clamav-0.86.1.
> *** Error code 1
>
> Stop in /usr/ports/security/clamav.
> *** Error code 1
>
> Stop in /usr/ports/security/clamav.
>
>
> 
> «?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§
> 
> Gregober ---> PGP ID --> 0x1BA3C2FD
> bsd @at@ todoo.biz
> 
> «?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§
> 
>
>
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

Possible solution: alter the Makefile LDFLAGS by adding "-lpthread"  
Then try the build again.

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


Pthread Problem building clamav-0.86.1

2005-06-26 Thread bsd

Hello,

I have built on my test machine the latest version of clamav and I am  
facing a pthread build problem.


My system is FreeBSD 5.2.1 //

I ain't no C programmer (unfortunately) so any help will be welcome.

Another question is how can I get back to the previous version that  
was installed (and working) on the system ?



Sincerly yours;



===>  Building for clamav-0.86.1
make  all-recursive
Making all in libclamav
Making all in clamscan
/bin/sh /usr/local/bin/libtool15 --mode=link cc  -O -pipe - 
mcpu=pentiumpro   -L/usr/local/lib  -lc_r -lldap -o clamscan   
output.o getopt.o  memory.o cfgparser.o misc.o  clamscan.o options.o  
others.o  manager.o treewalk.o  ../libclamav/libclamav.la
cc -O -pipe -mcpu=pentiumpro -o .libs/clamscan output.o getopt.o  
memory.o cfgparser.o misc.o clamscan.o options.o others.o manager.o  
treewalk.o  -L/usr/local/lib ../libclamav/.libs/libclamav.so -lldap - 
lbz2 -lgmp -lcurl -lssl -lcrypto -lz -Wl,--rpath -Wl,/usr/local/lib
../libclamav/.libs/libclamav.so: undefined reference to  
`pthread_cleanup_pop'

../libclamav/.libs/libclamav.so: undefined reference to `pthread_create'
../libclamav/.libs/libclamav.so: undefined reference to  
`pthread_cleanup_push'

../libclamav/.libs/libclamav.so: undefined reference to `pthread_join'
*** Error code 1

Stop in /usr/ports/security/clamav/work/clamav-0.86.1/clamscan.
*** Error code 1

Stop in /usr/ports/security/clamav/work/clamav-0.86.1.
*** Error code 1

Stop in /usr/ports/security/clamav/work/clamav-0.86.1.
*** Error code 1

Stop in /usr/ports/security/clamav.
*** Error code 1

Stop in /usr/ports/security/clamav.



«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

Gregober ---> PGP ID --> 0x1BA3C2FD
bsd @at@ todoo.biz

«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§




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


Re: pthread compiler issues

2005-05-11 Thread Kris Kennaway
On Wed, May 11, 2005 at 09:33:12AM -0700, [EMAIL PROTECTED] wrote:
> 
> Twas said by " Kris Kennaway" and my ignorance encourages me to join the
> dialogue
> > On Tue, May 10, 2005 at 07:06:43PM -0700, [EMAIL PROTECTED] wrote:
> >
> >> > Somehow you installed xorg without it installing the dri port
> >> > (hardware graphics acceleration).  You should go back and install it,
> Hi
> After installing dri I got the following from portupgrade -a in firefox
> (but also see remarks below:
> 
> 
> -lcrypt -lXinerama -L/usr/X11R6/lib  -lutil -Wl,-rpath,/usr/X11R6/lib
> 
> -Wl,-rpath-link,/usr/ports/x11/xorg-clients/work/xc/exports/lib
> 
> genauth.o(.text+0xa62): In function 'InitXdmcpWrapper' : undefined
> reference to
> 
> '_XdmcpWrapperToOddParity'
> 
> genauth.o(.text+0xac5): In function 'InitXdmcpWrapper' : undefined
> reference to
> 
> '_XdmcpWrapperToOddParity'
> 
> genauth.o(.text+0xb3b): In function 'GenerateAuthData' : undefined
> reference to '_XdmcpAuthSetup'
> 
> genauth.o(.text+0xb6c): In function 'GenerateAuthData' : undefined
> reference to '_XdmcpAuthDoIt'
> 
> xdmauth.o(.text+0x35d): In function 'GetXdmcpAuth' : undefined reference
> to '_XdmcpWrap'
> 
> xdmauth.o(.text+0x6cb): In function 'XdmCheckAuthentication' : undefined
> reference to
> 
> '_XdmcpUnWrap'
> 
> xdmauth.o(.text+0x70e): In function 'XdmCheckAuthentication' : undefined
> reference to
> 
> '_XdmcpWrap'
> 
> *** Error code 1
> 
> Stop in /usr/ports/x11/xorg-clients/work/xc/programs/xdm.
> *** Error code 1
> 
> Stop in /usr/ports/x11/xorg-clients/work/xc/programs.
> *** Error code 1
> 
> Stop in /usr/ports/x11/xorg-clients.
> Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade91178.47
> make
> ** Fix the problem and try again
> 
> ---> Skipping 'x11-fonts/p5-type1inst' (p5-type1inst-0.6.1_2) because a
> requisite package
> 
> 'xorg-clients-6.7.0_4' (x11/xorg-clients) failed (specify -k to force)
> 
> ---> Skipping 'x11/xorg' (xorg-6.8.2) because a requisite package
> 'xorg-vfbserver-6.7.0'
> 
> (x11-servers/xorg-vbfserver) failed (specify -k to force)
> 
> ** Listing the failed packages (*:skipped /!:failed)
>   !x11-servers/xorg-vfbserver (xorg-vfbserver-6.7.0)  (linker error)
>   !x11-servers/xorg-nestserver (xorg-nestserver-6.7.0)(linker error)
>   !x11-servers/xorg-server (xorg-server-6.7.0_9)  (new compiler error)
>   !x11-servers/xorg-printserver (xorg-printserver-6.7.0)  (new compiler 
> error)
>   !x11-servers/xorg-clients (xorg-clients-6.7.0_4)(linker error)
>   * x11-fonts/p5-type1inst (p5-type1inst-0.6.1_2)
>   *x11/xorg (xorg-6.8.2)
> ---> Packages processed: 0 done, 213 ignored, 2 skipped and 5 failed
> # pwd
> /usr/ports/www/firefox
> -
> Remarks:
> As a further check I got:
> 
> 
> /* same errors in portupgrade -a on:
> 
> /usr/ports/emulators/linux_base
> /usr/ports/archivers/xdms
> /usr/ports/x11/xorg-clients
> -
> */
> 
> What's next?

Try reinstalling xorg-libraries first, since something seems to be
wrong with it too.  You can use precompiled packages (portupgrade -P)
if you like, which will avoid the need to compile locally.

Kris


pgpHTdGaAdGZG.pgp
Description: PGP signature


Re: pthread compiler issues

2005-05-11 Thread vizion

Twas said by " Kent Stewart" and my ignorance encourages me to join the
dialogue
>
>
>
> You have a messed up installation. I don't have 5.3 but I am running
> 5.4-stable. You are trying to update things in a hap hazard manner.
> Stop what you are doing and develop a consistant environment.
Humph -- I built this machine with 5.3 about 2/3 weeks ago but I am
beginning to think that my first cvsup was not properly configured and I
messed up that way.
>
> First of all, you need a current xorg installed. Don't bother with
> anything else until you can do a "portupgrade -fR xorg".
That is underway right now.

>
> You pthread problem is very similar.

That one seems to have been solved with my upgrade of dri

> You have ports installed from
> different vintages. They changed the pthread technology around 5.2.1.
> When they did that, you could add a /etc/libmap.conf, or do it properly
> and recompile everything that uses threads. It is pay me now or pay me
> later.
How would I know what uses threads?
BTW
I am a fully paid up member of the "Do it properly" club but I have had to
make many contributions to the fine box when I have been caught out
breaking the rules!!

M0TAU is a UK call equivalent to US extra -- speak to you later

Thanks again

David

Thanks for your help




>
> If you want to use mozilla, foxfire and etc, you need the
> linuxpluginwrapper port installed. It comes with a libmap.conf.They all
> work but are on the touchy side  :) .
>
> What is a m0 call sign? I am ka7gkw.
>
> I have ICQ and Yahoo messenger if you want to talk real time.
>
> Kent
>
>
>>>
>>> David
>>>
>>>
>>> David Southwell  Ham call sign M0TAU
>>>Remove  nospamme_ from reply to **
>>>40 yrs navigating and computing in blue
>>> waters. English Owner & Captain of British Registered 60' bluewater
>
>
> David Southwell  Ham call sign M0TAU
>Remove  nospamme_ from reply to **
>40 yrs navigating and computing in blue waters.
> English Owner & Captain of British Registered 60' bluewater Ke
> tch S/V
> Taurus. Currently in San Diego, CA. Sailing May bound for Europe via
> Panama Canal.


David Southwell  Ham call sign M0TAU
   Remove  nospamme_ from reply to ** 
   40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V
Taurus. Currently in San Diego, CA. Sailing May bound for Europe via
Panama Canal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pthread compiler issues

2005-05-11 Thread vizion

I am getting problems with my ISP'S webmail interface...
Please excuse mail difficulties...
The following is missing

Stop in /usr/ports/x11/xorg-clients/work/xc/programs.
*** Error code 1

Stop in /usr/ports/x11/xorg-clients.
Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade91178.47
make
** Fix the problem and try again

---> Skipping 'x11-fonts/p5-type1inst' (p5-type1inst-0.6.1_2) because a
requisite package

'xorg-clients-6.7.0_4' (x11/xorg-clients) failed (specify -k to force)

---> Skipping 'x11/xorg' (xorg-6.8.2) because a requisite package
'xorg-vfbserver-6.7.0'

(x11-servers/xorg-vbfserver) failed (specify -k to force)

** Listing the failed packages (*:skipped /!:failed)
!x11-servers/xorg-vfbserver (xorg-vfbserver-6.7.0)  (linker error)
!x11-servers/xorg-nestserver (xorg-nestserver-6.7.0)(linker error)
!x11-servers/xorg-server (xorg-server-6.7.0_9)  (new compiler error)
!x11-servers/xorg-printserver (xorg-printserver-6.7.0)  (new compiler 
error)
!x11-servers/xorg-clients (xorg-clients-6.7.0_4)(linker error)
* x11-fonts/p5-type1inst (p5-type1inst-0.6.1_2)
*x11/xorg (xorg-6.8.2)
---> Packages processed: 0 done, 213 ignored, 2 skipped and 5 failed
# pwd
/usr/ports/www/firefox
-
As a further check I got:


/* same errors in portupgrade -a on:

/usr/ports/emulators/linux_base
/usr/ports/archivers/xdms
/usr/ports/x11/xorg-clients
-
*/

What's next?

David


David Southwell  Ham call sign M0TAU
   Remove  nospamme_ from reply to ** 
   40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V
Taurus. Currently in San Diego, CA. Sailing May bound for Europe via
Panama Canal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pthread compiler issues

2005-05-11 Thread vizion

Twas said by " Kris Kennaway" and my ignorance encourages me to join the
dialogue
> On Tue, May 10, 2005 at 07:06:43PM -0700, [EMAIL PROTECTED] wrote:
>
>> > Somehow you installed xorg without it installing the dri port
>> > (hardware graphics acceleration).  You should go back and install it,
Hi
After installing dri I got the following from portupgrade -a in firefox
(but also see remarks below:


-lcrypt -lXinerama -L/usr/X11R6/lib  -lutil -Wl,-rpath,/usr/X11R6/lib

-Wl,-rpath-link,/usr/ports/x11/xorg-clients/work/xc/exports/lib

genauth.o(.text+0xa62): In function 'InitXdmcpWrapper' : undefined
reference to

'_XdmcpWrapperToOddParity'

genauth.o(.text+0xac5): In function 'InitXdmcpWrapper' : undefined
reference to

'_XdmcpWrapperToOddParity'

genauth.o(.text+0xb3b): In function 'GenerateAuthData' : undefined
reference to '_XdmcpAuthSetup'

genauth.o(.text+0xb6c): In function 'GenerateAuthData' : undefined
reference to '_XdmcpAuthDoIt'

xdmauth.o(.text+0x35d): In function 'GetXdmcpAuth' : undefined reference
to '_XdmcpWrap'

xdmauth.o(.text+0x6cb): In function 'XdmCheckAuthentication' : undefined
reference to

'_XdmcpUnWrap'

xdmauth.o(.text+0x70e): In function 'XdmCheckAuthentication' : undefined
reference to

'_XdmcpWrap'

*** Error code 1

Stop in /usr/ports/x11/xorg-clients/work/xc/programs/xdm.
*** Error code 1

Stop in /usr/ports/x11/xorg-clients/work/xc/programs.
*** Error code 1

Stop in /usr/ports/x11/xorg-clients.
Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade91178.47
make
** Fix the problem and try again

---> Skipping 'x11-fonts/p5-type1inst' (p5-type1inst-0.6.1_2) because a
requisite package

'xorg-clients-6.7.0_4' (x11/xorg-clients) failed (specify -k to force)

---> Skipping 'x11/xorg' (xorg-6.8.2) because a requisite package
'xorg-vfbserver-6.7.0'

(x11-servers/xorg-vbfserver) failed (specify -k to force)

** Listing the failed packages (*:skipped /!:failed)
!x11-servers/xorg-vfbserver (xorg-vfbserver-6.7.0)  (linker error)
!x11-servers/xorg-nestserver (xorg-nestserver-6.7.0)(linker error)
!x11-servers/xorg-server (xorg-server-6.7.0_9)  (new compiler error)
!x11-servers/xorg-printserver (xorg-printserver-6.7.0)  (new compiler 
error)
!x11-servers/xorg-clients (xorg-clients-6.7.0_4)(linker error)
* x11-fonts/p5-type1inst (p5-type1inst-0.6.1_2)
*x11/xorg (xorg-6.8.2)
---> Packages processed: 0 done, 213 ignored, 2 skipped and 5 failed
# pwd
/usr/ports/www/firefox
-
Remarks:
As a further check I got:


/* same errors in portupgrade -a on:

/usr/ports/emulators/linux_base
/usr/ports/archivers/xdms
/usr/ports/x11/xorg-clients
-
*/

What's next?

David




David Southwell  Ham call sign M0TAU
   Remove  nospamme_ from reply to ** 
   40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V
Taurus. Currently in San Diego, CA. Sailing May bound for Europe via
Panama Canal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pthread compiler issues

2005-05-10 Thread Kris Kennaway
On Tue, May 10, 2005 at 07:06:43PM -0700, [EMAIL PROTECTED] wrote:

> > Somehow you installed xorg without it installing the dri port
> > (hardware graphics acceleration).  You should go back and install it,
> > or if you know you don't want it f
> > or some reason, then delete the
> > dependency.
> >
> > Kris
> >
> Does this have anything todo with the pthread issue?

No, except that you need to resolve it before you can successfully
apply my previous suggestion.

Kris


pgpXpEuAdav2E.pgp
Description: PGP signature


Re: pthread compiler issues

2005-05-10 Thread vizion

Twas said by " Kris Kennaway" and my ignorance encourages me to join the
dialogue
> On Tue, May 10, 2005 at 06:19:18PM -0700, [EMAIL PROTECTED] wrote:
>>
>> Twas said by " Kris Kennaway" and my ignorance encourages me to join the
>> dialogue
>> > On Tue, May 10, 2005 at 05:12:42PM -0700, Kris Kennaway wrote:
>>
>> >>
>> >> Yes..it indicates it's not linking to the thread library at all.
>> Also
>> >> note that this is ORBit, not firefox.
>> >
>> > Also double-check that all supporting packages are up-to-date, e.g. by
>> > using portupgrade -a.
>> >
>> > Kris
>> >
>> OK -
>> I did portupgrade -a in both /usr/ports/firefox and ORBit.
>> It got a bit complicated in the ORBit directory. I ran
>> #portupgrade -a
>> Stale dependency: xorg-6.8.2 --> dri-6.2.1,2 -- manually run 'pkgdb -F'
>> to
>> fix, orspecify -O to force.
>> #pkgdb -F
>> ---> Checking the package registry database
>> [Updting the pkgdb  in /var/db/pkg ... -215 packages
>> found (-0 +0) done]
>> Stale dependency: xorg-6.8.2 -> dri-6.2.1,2 9graphics/dri):
>> New dependency? ((? to help): ?
>> [Enter] toskip,[ctl] + [D] to delete, [.][enter] to abort,  [tab] to
>> complete
>> At this point I am out of my depth!!
>> tab produces a keyboard beep
>> enter produces skip this ([y] [n] [a]) [yes]y
>> skipped
>> #
>> OK what should I be doing here (215 dependencies!)
>
> Somehow you installed xorg without it installing the dri port
> (hardware graphics acceleration).  You should go back and install it,
> or if you know you don't want it f
> or some reason, then delete the
> dependency.
>
> Kris
>
Does this have anything todo with the pthread issue?
D

David Southwell  Ham call sign M0TAU
   Remove  nospamme_ from reply to ** 
   40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V
Taurus. Currently in San Diego, CA. Sailing May bound for Europe via
Panama Canal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pthread compiler issues

2005-05-10 Thread Kris Kennaway
On Tue, May 10, 2005 at 06:19:18PM -0700, [EMAIL PROTECTED] wrote:
> 
> Twas said by " Kris Kennaway" and my ignorance encourages me to join the
> dialogue
> > On Tue, May 10, 2005 at 05:12:42PM -0700, Kris Kennaway wrote:
> 
> >>
> >> Yes..it indicates it's not linking to the thread library at all.  Also
> >> note that this is ORBit, not firefox.
> >
> > Also double-check that all supporting packages are up-to-date, e.g. by
> > using portupgrade -a.
> >
> > Kris
> >
> OK -
> I did portupgrade -a in both /usr/ports/firefox and ORBit.
> It got a bit complicated in the ORBit directory. I ran
> #portupgrade -a
> Stale dependency: xorg-6.8.2 --> dri-6.2.1,2 -- manually run 'pkgdb -F' to
> fix, orspecify -O to force.
> #pkgdb -F
> ---> Checking the package registry database
> [Updting the pkgdb  in /var/db/pkg ... -215 packages
> found (-0 +0) done]
> Stale dependency: xorg-6.8.2 -> dri-6.2.1,2 9graphics/dri):
> New dependency? ((? to help): ?
> [Enter] toskip,[ctl] + [D] to delete, [.][enter] to abort,  [tab] to complete
> At this point I am out of my depth!!
> tab produces a keyboard beep
> enter produces skip this ([y] [n] [a]) [yes]y
> skipped
> #
> OK what should I be doing here (215 dependencies!)

Somehow you installed xorg without it installing the dri port
(hardware graphics acceleration).  You should go back and install it,
or if you know you don't want it for some reason, then delete the
dependency.

Kris



pgpJt6hShg6gR.pgp
Description: PGP signature


Re: pthread compile

2005-05-10 Thread vizion

Twas said by " [EMAIL PROTECTED]" and my ignorance encourages me to join
the dialogue
>
> Twas said by " Kris Kennaway" and my ignorance encourages me to join the
> dialogue
>> On Tue, May 10, 2005 at 05:12:42PM -0700, Kris Kennaway wrote:
>
>>>
>>> Yes..it indicates it's not linking to the thread library at all.  Also
>>> note that this is ORBit, not firefox.
>>
>> Also double-check that all supporting packages are up-to-date, e.g. by
>> using portupgrade -a.
>>
>> Kris
>>
> OK -
> I did portupgrade -a in both /usr/ports/firefox and ORBit.
> It got a bit complicated in the ORBit directory. I ran
> #portupgrade -a
> Stale dependency: xorg-6.8.2 --> dri-6.2.1,2 -- manually run 'pkgdb -F' to
> fix, orspecify -O to force.
> #pkgdb -F
> ---> Checking the package registry database
> [Updting the pkgdb  in /var/db/pkg ... -215 packages
> found (-0 +0) done]
> Stale dependency: xorg-6.8.2 -> dri-6.2.1,2 9graphics/dri):
> New dependency? ((? to help): ?
> [Enter] toskip,[ctl] + [D] to delete, [.][enter] to abort,  [tab] to
> complete
> At this point I am out of my depth!!
> tab produces a keyboard beep
> enter produces skip this ([y] [n] [a]) [yes]y
> skipped
> #
> OK what should I be doing here (215 dependencies!)
>
> David
ps I should have said that I got the same result running makeafter
portsupgrade -a
D

David Southwell  Ham call sign M0TAU
   Remove  nospamme_ from reply to ** 
   40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V
Taurus. Currently in San Diego, CA. Sailing May bound for Europe via
Panama Canal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pthread compiler issues

2005-05-10 Thread vizion

Twas said by " Kris Kennaway" and my ignorance encourages me to join the
dialogue
> On Tue, May 10, 2005 at 05:12:42PM -0700, Kris Kennaway wrote:

>>
>> Yes..it indicates it's not linking to the thread library at all.  Also
>> note that this is ORBit, not firefox.
>
> Also double-check that all supporting packages are up-to-date, e.g. by
> using portupgrade -a.
>
> Kris
>
OK -
I did portupgrade -a in both /usr/ports/firefox and ORBit.
It got a bit complicated in the ORBit directory. I ran
#portupgrade -a
Stale dependency: xorg-6.8.2 --> dri-6.2.1,2 -- manually run 'pkgdb -F' to
fix, orspecify -O to force.
#pkgdb -F
---> Checking the package registry database
[Updting the pkgdb  in /var/db/pkg ... -215 packages
found (-0 +0) done]
Stale dependency: xorg-6.8.2 -> dri-6.2.1,2 9graphics/dri):
New dependency? ((? to help): ?
[Enter] toskip,[ctl] + [D] to delete, [.][enter] to abort,  [tab] to complete
At this point I am out of my depth!!
tab produces a keyboard beep
enter produces skip this ([y] [n] [a]) [yes]y
skipped
#
OK what should I be doing here (215 dependencies!)

David

David Southwell  Ham call sign M0TAU
   Remove  nospamme_ from reply to ** 
   40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V
Taurus. Currently in San Diego, CA. Sailing May bound for Europe via
Panama Canal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pthread compiler issues

2005-05-10 Thread Kris Kennaway
On Tue, May 10, 2005 at 05:20:08PM -0700, [EMAIL PROTECTED] wrote:
> 
> Twas said by " [EMAIL PROTECTED]" and my ignorance encourages me to join
> the dialogue
> >
> > Twas said by " Kris Kennaway" and my ignorance encourages me to join the
> > dialogue
> >> On Tue, May 10, 2005 at 04:29:00PM -0700, [EMAIL PROTECTED] wrote:
> >>>
> These lines weremissing off the end of the output:
> 
> 
> *** Error code 2
> Stop in /usr/ports/devel/ORBit2.
> *** Error code 1
> Stop in /usr/ports/devel/gconf2.
> *** Error code 1
> Stop in /usr/ports/www.firefox

I saw and responded to that; it means that ORBit2 was the port with
the problem, not firefox.

Kris



pgpfzrfW7vhk6.pgp
Description: PGP signature


Re: pthread compiler issues

2005-05-10 Thread Clifton Royston
On Tue, May 10, 2005 at 05:11:59PM -0700, [EMAIL PROTECTED] wrote:
> Twas said by " Kris Kennaway" and my ignorance encourages me to join the
> dialogue
> > On Tue, May 10, 2005 at 04:29:00PM -0700, [EMAIL PROTECTED] wrote:
> >> I have had problems compiling packages generating pthread error
> >> messages.
> >> I am running FreeBSD 5.3. with linux support. This time it was firefox
> >> based with tar balls -1.0.1 & 1.0.2.
...
> >
> > You've given us nothing to comment on.  Show exactly what you're doing
> > and what problems you encountered.
> Here is the terminating output -- let meknow if you need any earlier output :
> ---
> 
> /usr/local/lib/libgthread-2.0.so: undefined reference to
> 'pthread_attr_destroy'
> /usr/local/lib/libgthread-2.0.so: undefined reference to 'pthread_create'
> /usr/local/lib/libgthread-2.0.so: undefined reference to 'pthread_attr_init'
> /usr/local/lib/libgthread-2.0.so: undefined reference to 'pthread_exit'
> /usr/local/lib/libgthread-2.0.so: undefined reference to 'pthread_equal'
> /usr/local/lib/libgthread-2.0.so: undefined reference to
> 'pthread_getschedparam'

  Well, this seems rather like the same problem I was having several
weeks back trying to build MySQL from ports on a 4.10 system (with or
without enabling Linuxthreads.) That's what induced me to subscribe to
-questions, since I would have felt too dumb posting the question to
-hackers.  It seemed as though the build process was just plain failing
to link certain libraries which I could see were there on the command
line to cc.

  At the moment I have no helpful suggestions to offer you.  I never
got any suggestions other than to try rebuilding libtool 1.5, which I
did, and which didn't seem to help.

  I did confirm that it was not a problem with the port, as I was able
to build it just fine on a different 4.x system.  The system is not
broken or crippled, as I've been able to install the binary package on
the system which couldn't build it, and have been running it just fine. 
I still have not figured out why I can't build this specific app from
ports on this one machine.

  I will be very interested if you get anywhere with this, and if I get
anywhere on going back to the problem - which I need to do eventually -
I will post a followup.

  -- Clifton

-- 
  Clifton Royston  --  [EMAIL PROTECTED] 
 Tiki Technologies Lead Programmer/Software Architect
"I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide..."
-- 'Whip-Smart', Liz Phair
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pthread compiler issues

2005-05-10 Thread vizion

Twas said by " [EMAIL PROTECTED]" and my ignorance encourages me to join
the dialogue
>
> Twas said by " Kris Kennaway" and my ignorance encourages me to join the
> dialogue
>> On Tue, May 10, 2005 at 04:29:00PM -0700, [EMAIL PROTECTED] wrote:
>>>
These lines weremissing off the end of the output:


*** Error code 2
Stop in /usr/ports/devel/ORBit2.
*** Error code 1
Stop in /usr/ports/devel/gconf2.
*** Error code 1
Stop in /usr/ports/www.firefox

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


Re: pthread compiler issues

2005-05-10 Thread Kris Kennaway
On Tue, May 10, 2005 at 05:12:42PM -0700, Kris Kennaway wrote:
> On Tue, May 10, 2005 at 05:11:59PM -0700, [EMAIL PROTECTED] wrote:
> > 
> > Twas said by " Kris Kennaway" and my ignorance encourages me to join the
> > dialogue
> > > On Tue, May 10, 2005 at 04:29:00PM -0700, [EMAIL PROTECTED] wrote:
> > >>
> > >> Hi
> > >>
> > >> I have had problems compiling packages generating pthread error
> > >> messages.
> > >> I am running FreeBSD 5.3. with linux support. This time it was firefox
> > >> based with tar balls -1.0.1 & 1.0.2.
> > >>
> > >> Comments please
> > >
> > > You've given us nothing to comment on.  Show exactly what you're doing
> > > and what problems you encountered.
> > Here is the terminating output -- let meknow if you need any earlier output 
> > :
> > ---
> > 
> > /usr/local/lib/libgthread-2.0.so: undefined reference to
> > 'pthread_attr_destroy'
> 
> Yes..it indicates it's not linking to the thread library at all.  Also
> note that this is ORBit, not firefox.

Also double-check that all supporting packages are up-to-date, e.g. by
using portupgrade -a.

Kris


pgpehzzdAHV93.pgp
Description: PGP signature


Re: pthread compiler issues

2005-05-10 Thread Kris Kennaway
On Tue, May 10, 2005 at 05:11:59PM -0700, [EMAIL PROTECTED] wrote:
> 
> Twas said by " Kris Kennaway" and my ignorance encourages me to join the
> dialogue
> > On Tue, May 10, 2005 at 04:29:00PM -0700, [EMAIL PROTECTED] wrote:
> >>
> >> Hi
> >>
> >> I have had problems compiling packages generating pthread error
> >> messages.
> >> I am running FreeBSD 5.3. with linux support. This time it was firefox
> >> based with tar balls -1.0.1 & 1.0.2.
> >>
> >> Comments please
> >
> > You've given us nothing to comment on.  Show exactly what you're doing
> > and what problems you encountered.
> Here is the terminating output -- let meknow if you need any earlier output :
> ---
> 
> /usr/local/lib/libgthread-2.0.so: undefined reference to
> 'pthread_attr_destroy'

Yes..it indicates it's not linking to the thread library at all.  Also
note that this is ORBit, not firefox.

> Stop in /usr/ports/devel/ORBit2.

Kris

pgpJF42ctF70d.pgp
Description: PGP signature


Re: pthread compiler issues

2005-05-10 Thread vizion

Twas said by " Kris Kennaway" and my ignorance encourages me to join the
dialogue
> On Tue, May 10, 2005 at 04:29:00PM -0700, [EMAIL PROTECTED] wrote:
>>
>> Hi
>>
>> I have had problems compiling packages generating pthread error
>> messages.
>> I am running FreeBSD 5.3. with linux support. This time it was firefox
>> based with tar balls -1.0.1 & 1.0.2.
>>
>> Comments please
>
> You've given us nothing to comment on.  Show exactly what you're doing
> and what problems you encountered.
Here is the terminating output -- let meknow if you need any earlier output :
---

/usr/local/lib/libgthread-2.0.so: undefined reference to
'pthread_attr_destroy'
/usr/local/lib/libgthread-2.0.so: undefined reference to 'pthread_create'
/usr/local/lib/libgthread-2.0.so: undefined reference to 'pthread_attr_init'
/usr/local/lib/libgthread-2.0.so: undefined reference to 'pthread_exit'
/usr/local/lib/libgthread-2.0.so: undefined reference to 'pthread_equal'
/usr/local/lib/libgthread-2.0.so: undefined reference to
'pthread_getschedparam'
/usr/local/lib/libgthread-2.0.so: undefined reference to
'pthread_attr_setscope'
/usr/local/lib/libgthread-2.0.so: undefined reference to
'pthread_setschedparam'
/usr/local/lib/libgthread-2.0.so: undefined reference to
'pthread_attr_setstacksize'
/usr/local/lib/libgthread-2.0.so: undefined reference to
'pthread_attr_setschedparam'
/usr/local/lib/libgthread-2.0.so: undefined reference to
'pthread_attr_setdetachstate'
/usr/local/lib/libgthread-2.0.so: undefined reference to 'pthread_join'
/usr/local/lib/libgthread-2.0.so: undefined reference to
'pthread_cond_timedwait'
/usr/local/lib/libgthread-2.0.so: undefined reference to
'pthread_attr_getschedparam'
gmake[5]: *** [name-client-2] Error 1
gmake[5]: Leaving directory
'/usr/ports/devel/ORBit2/work/ORBit2-2.12.2/src/services/name'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory
'/usr/ports/devel/ORBit2/work/ORBit2-2.12.2/src/services/name'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
'/usr/ports/devel/ORBit2/work/ORBit2-2.12.2/src/services'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory '/usr/ports/devel/ORBit2/work/ORBit2-2.12.2/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/usr/ports/devel/ORBit2/work/ORBit2-2.12.2'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/devel/ORBit2.
*** Error code 1
Stop in /usr/ports/devel/gconf2.
*** Error code 1
Stop in /usr/ports/www/firefox.
---

>
> Kris
>


David Southwell  Ham call sign M0TAU
   Remove  nospamme_ from reply to ** 
   40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V
Taurus. Currently in San Diego, CA. Sailing May bound for Europe via
Panama Canal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pthread compiler issues

2005-05-10 Thread Kris Kennaway
On Tue, May 10, 2005 at 04:29:00PM -0700, [EMAIL PROTECTED] wrote:
> 
> Hi
> 
> I have had problems compiling packages generating pthread error messages.
> I am running FreeBSD 5.3. with linux support. This time it was firefox
> based with tar balls -1.0.1 & 1.0.2.
> 
> Comments please

You've given us nothing to comment on.  Show exactly what you're doing
and what problems you encountered.

Kris


pgpRJER6T7oas.pgp
Description: PGP signature


pthread compiler issues

2005-05-10 Thread vizion

Hi

I have had problems compiling packages generating pthread error messages.
I am running FreeBSD 5.3. with linux support. This time it was firefox
based with tar balls -1.0.1 & 1.0.2.

Comments please

David

David Southwell  Ham call sign M0TAU
   Remove  nospamme_ from reply to ** 
   40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V
Taurus. Currently in San Diego, CA. Sailing May bound for Europe via
Panama Canal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Installing print/pips-sc85_86s - Error with PThread

2005-01-04 Thread Hanno Becker
work/pips-sc85_86s-2.6.2/ekpd'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/print/pips-sc85_86s/work/pips-sc85_86s-2.6.2'
gmake: *** [all-recursive-am] Error 2
*** Error code 2

Stop in /usr/ports/print/pips-sc85_86s.
It looks like as if I have to change or add some options about PThread 
to the makefile, but I don't know where and what.
I've had a look at google, the handbook/manual but couldn't find 
anything helpful.

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


Re: vim 6.3 pthread errors?

2004-08-08 Thread Andreas Ntaflos
On Sun, Aug 08, 2004 at 03:21:23PM +0200, Herbert J. Skuhra wrote:
> Uwe Laverenz <[EMAIL PROTECTED]> wrote:
> > On Sun, Aug 08, 2004 at 12:58:34PM +0200, Andreas Ntaflos wrote:
> >
> >> objects/os_unix.o: In function `get_stack_limit':
> >> objects/os_unix.o(.text+0x3d2): undefined reference to `pthread_attr_init'
> >> objects/os_unix.o(.text+0x3e6): undefined reference to `pthread_attr_get_np'
> >> objects/os_unix.o(.text+0x3fc): undefined reference to `pthread_attr_getstacksize'
> >> objects/os_unix.o(.text+0x40f): undefined reference to `pthread_attr_destroy'
> >> *** Error code 1
> >
> > Yes, same error here on several 5.2.1p9-machines. The build works fine
> > without GTK2.

It does indeed, but I don't like gvim+GTK1 very much (looks ugly if
you ask me).

> The build works fine here if I run:
> portinstall -m 'WITH_GTK2=yes WITH_PYTHON=yes' vim
> 
> This adds the missing "-pthread".

Great, WITH_PYTHON did the trick, now it built fine and uses
GTK2.

Very nice, thanks!
-- 
Andreas "daff" Ntaflos | "A cynic is a man who knows the price of
daff AT dword DOT org  | everything, and the value of nothing."
Vienna, AUSTRIA|  Oscar Wilde
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: vim 6.3 pthread errors?

2004-08-08 Thread Herbert J. Skuhra
Uwe Laverenz <[EMAIL PROTECTED]> wrote:
> On Sun, Aug 08, 2004 at 12:58:34PM +0200, Andreas Ntaflos wrote:
>
>> objects/os_unix.o: In function `get_stack_limit':
>> objects/os_unix.o(.text+0x3d2): undefined reference to `pthread_attr_init'
>> objects/os_unix.o(.text+0x3e6): undefined reference to `pthread_attr_get_np'
>> objects/os_unix.o(.text+0x3fc): undefined reference to `pthread_attr_getstacksize'
>> objects/os_unix.o(.text+0x40f): undefined reference to `pthread_attr_destroy'
>> *** Error code 1
>
> Yes, same error here on several 5.2.1p9-machines. The build works fine
> without GTK2.
>
> cu,
> Uwe

The build works fine here if I run:
portinstall -m 'WITH_GTK2=yes WITH_PYTHON=yes' vim

This adds the missing "-pthread".

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


Re: vim 6.3 pthread errors?

2004-08-08 Thread Uwe Laverenz
On Sun, Aug 08, 2004 at 12:58:34PM +0200, Andreas Ntaflos wrote:

> objects/os_unix.o: In function `get_stack_limit':
> objects/os_unix.o(.text+0x3d2): undefined reference to `pthread_attr_init'
> objects/os_unix.o(.text+0x3e6): undefined reference to `pthread_attr_get_np'
> objects/os_unix.o(.text+0x3fc): undefined reference to `pthread_attr_getstacksize'
> objects/os_unix.o(.text+0x40f): undefined reference to `pthread_attr_destroy'
> *** Error code 1

Yes, same error here on several 5.2.1p9-machines. The build works fine
without GTK2.

cu,
Uwe

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


vim 6.3 pthread errors?

2004-08-08 Thread Andreas Ntaflos
Hello, 

quick question: trying to install vim 6.3.15 from the ports with 
support for GTK2 on a FreeBSD 5.2.1-p9 machine by doing a 
portinstall -m WITH_GTK2=YES vim.

Somewhere in the compilation process it borks with these error 
messages (last few lines of output):

 cc  -lXt -L/usr/X11R6/lib -L/usr/local/lib  -o vim objects/buffer.o  
objects/charset.o  objects/diff.o  objects/digraph.o  objects/edit.o  objects/eval.o  
objects/ex_cmds.o  objects/ex_cmds2.o  objects/ex_docmd.o  objects/ex_eval.o  
objects/ex_getln.o  objects/fileio.o  objects/fold.o  objects/getchar.o
objects/if_cscope.o  objects/if_xcmdsrv.o  objects/main.o  objects/mark.o  
objects/memfile.o  objects/memline.o  objects/menu.o  objects/message.o  
objects/misc1.o  objects/misc2.o  objects/move.o  objects/mbyte.o  objects/normal.o  
objects/ops.o  objects/option.o  objects/os_unix.o  objects/pathdef.o  
objects/quickfix.o  objects/regexp.o  objects/screen.o  objects/search.o  
objects/syntax.oobjects/tag.o  objects/term.o  objects/ui.o  objects/undo.o  
objects/window.o  objects/gui.o objects/gui_gtk.o objects/gui_gtk_x11.o  objects/pty.o 
objects/gui_gtk_f.o  objects/gui_beval.o  objects/netbeans.o   
objects/version.o   -Wl,--export-dynamic -L/usr/local/lib -L/usr/X11R6/lib 
-lgtk-x11-2.0 -lgdk-x11-2.0 -lXrandr -lXi -lXinerama -lXcursor -latk-1.0 
-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lXft -lfreetype -lz -lXrender -lXext -lfontconfig 
-lpangox-1.0 -lX11 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -liconv -lSM 
-lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -ltermlib -liconv
objects/os_unix.o: In function `get_stack_limit':
objects/os_unix.o(.text+0x3d2): undefined reference to `pthread_attr_init'
objects/os_unix.o(.text+0x3e6): undefined reference to `pthread_attr_get_np'
objects/os_unix.o(.text+0x3fc): undefined reference to `pthread_attr_getstacksize'
objects/os_unix.o(.text+0x40f): undefined reference to `pthread_attr_destroy'
*** Error code 1

What's that? What's missing? Why with all the pthread_ problems? 
What should I do? :-)

I know it worked under 4.10-STABLE with GTK2, why would it break under 5.2?

TIA
-- 
Andreas "daff" Ntaflos | "A cynic is a man who knows the price of
daff AT dword DOT org  | everything, and the value of nothing."
Vienna, AUSTRIA|  Oscar Wilde
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pthread

2004-07-17 Thread Kris Kennaway
On Fri, Jul 16, 2004 at 02:28:03PM -0400, aaron wrote:
> If I compile a program with -pthread should the program show links to 
> both libc and libc_r in the output of ldd? In 5.x shows link for both. 
> In 4.x only shows a link for libc_r.

That's correct.  In 4.x libc_r is a replacement for libc, in 5.x it is
an adjunct that only provides the pthread interface.

Kris


pgp5RKUYantV4.pgp
Description: PGP signature


pthread

2004-07-16 Thread aaron
If I compile a program with -pthread should the program show links to 
both libc and libc_r in the output of ldd? In 5.x shows link for both. 
In 4.x only shows a link for libc_r.
-Aaron Myles Landwehr
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pthread on freebsd 5.2...?

2004-02-13 Thread Jason
Thomas Graham wrote:

does anyone could paste the working /etc/libmap.conf to me please ? some
program is working but some program don't because pthread lib problem,
I am running freebsd 5.2
Thanks.
 

What program does not work?  I did a recent upgrade to current and ran 
into this problem with bit torrent.  It was solved by doing portupgrade 
-Rr on python, the language bit torrent is written in.  I also read 
someone suggested -afr on a portupgrade, but it did not work for me, or 
it did not rebuild python.  Try it on your program.
Jason
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pthread on freebsd 5.2...?

2004-02-13 Thread Thomas Graham
does anyone could paste the working /etc/libmap.conf to me please ? some
program is working but some program don't because pthread lib problem,
I am running freebsd 5.2
Thanks.


-- 
HK Celtic Orchestra leader and coordanator: Thomas Graham Lau
Phone number: 852-93239670(24hours a day, 7days a week non-stop phone)
Web site: http://sml.dyndns.org
Email: [EMAIL PROTECTED]
Celtic Newage radiostation: http://sml.dyndns.org:8000
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Compiling with -pthread

2003-03-16 Thread George Glynn

I'm attempting to compile mod_php4 with support for Verisign's PayFlow Pro
credit card payment system. Verisign distributes a PayFlow Pro "SDK" (I
use the term loosely, and only because that's what they call it) for
FreeBSD 4.x that contains a precompiled shared library called libpfpro.so
and an associated header file pfpro.h. One of the problems that I'm having
using the library is that it is threaded with POSIX threads, while my
current installation of Apache 1.3 + mod_ssl + mod_php4 is built without
pthread support. I'm not up on programming and compiling threaded
applications, so my questions are:

1) Can I just go ahead and recompile all three components with
   CFLAGS+= -pthread without doing anything unexpected to Apache and
   mod_ssl?

2) Do I have to recompile Apache and mod_ssl with -pthread, or can I
   get away with just recompiling mod_php4?

Thanks in advance,
George



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