[MPlayer-cygwin] Problem detecting pthread in several packages... (cannot find -lpthread)

Eugene Kovgar ken20001 at ukr.net
Wed Apr 22 18:34:00 CEST 2009


> 
> Maybe they want to make sure that you do not override any special compiler
> flags that they require.
> 
> > > 
> > Well, it helped, but only in x264 package. In some other packages I tried
> > to  use CFLAGS, CPPFLAGS and LDFLAGS after ./configure - command. But It
> > is hot  helped:
> 
> Set the environment variables *before* the configure command:
> CFLAGS=-I/home/Eugene/inlcude LDFLAGS=-L/home/Eugene/lib ./configure ...
> 
> You need to be concerned about overriding the default CFLAGS. Because
> libvorbis is a codec, you probably do not want to disable optimisations.
> If they do not provide an --extra-cflags or something similar, another
> way to achieve this would be:
> 
> CC='gcc -I/home/Eugene/include -L/home/Eugene/lib' ./configure ...
> 
> Regards,
> Alias John Brown.

First, I tried:
$ CFLAGS=-I/home/Eugene/include LDFLAGS=-L/home/Eugene/lib ./configure --
prefix=/home/Eugene --disable-shared --with-extralibdir=/home/Eugene/lib --with-
extraincdir=/home/Eugene/include

Second, I tried:
$ CC='gcc -I/home/Eugene/include -L/home/Eugene/lib' ./configure --prefix=/home/
Eugene --disable-shared --with-extralibdir=/home/Eugene/lib --with-extraincdir=/
home/Eugene/include
 
The result in libvorbis configure.log is the same:

configure:19627: checking for cos in -lm
configure:19662: gcc -I/home/Eugene/include -L/home/Eugene/lib -o conftest.exe -
O20 -D__NO_MATH_INLINES -fsigned-char  -DUSE_MEMORY_H  -I/home/Eugene/include  -
L/home/Eugene/lib conftest.c -lm   >&5
conftest.c:27: warning: conflicting types for built-in function 'cos'
configure:19668: $? = 0
configure:19686: result: yes
configure:19694: checking for pthread_create in -lpthread
configure:19729: gcc -I/home/Eugene/include -L/home/Eugene/lib -o conftest.exe -
O20 -D__NO_MATH_INLINES -fsigned-char  -DUSE_MEMORY_H  -I/home/Eugene/include  -
L/home/Eugene/lib conftest.c -lpthread   >&5
c:\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot 
find -lpthread
collect2: ld returned 1 exit status
configure:19735: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libvorbis"
| #define VERSION "1.2.0"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char pthread_create ();
| int
| main ()
| {
| return pthread_create ();
|   ;
|   return 0;
| }
configure:19753: result: no 

I'm not an programmer. So I don't have any idea what to do. In my environment 
variable CFLAGS and LDFLAGS are present. May be need to go somewhere else?



More information about the MPlayer-cygwin mailing list