Log in

View Full Version : GPAC and PTHREADS update


bob0r
11th June 2008, 09:39
Because i am too lazy and hate it when i can't simple IRC some author, this is what i get for gpac:
1: cvs -z3 -d:pserver:anonymous@gpac.cvs.sourceforge.net:/cvsroot/gpac co -P gpac
2: cd gpac
3: configure
4: make lib

Output in mingw:
$ make lib
make -C src all
make[1]: Entering directory `/home/xuser/gpac/src'
gcc -O3 -fno-strict-aliasing -Wall -I/home/xuser/gpac/include -I../ -DGPAC_HAVE_CONFIG_H -c -o utils/os_divers.o utils/os_divers.c
In file included from F:/msys/1.0/home/xuser/gpac/include/gpac/tools.h:32,
from utils/os_divers.c:25:
F:/msys/1.0/home/xuser/gpac/include/gpac/setup.h:39:34: gpac/internal/config.h: No such file or directory
make[1]: *** [utils/os_divers.o] Error 1
make[1]: Leaving directory `/home/xuser/gpac/src'
make: *** [lib] Error 2

Probably easy fix, but this should be tested.

----------

Pthreads has updated:
1: cvs -d :pserver:anoncvs@sources.redhat.com:/cvs/pthreads-win32 checkout pthreads
2: cd pthreads
3: make clean GC-static
4: copy pthread.h, sched.h and semaphore.h to include dir and libpthreadGC2.a to lib dir.

from the file NEWS:

RELEASE 2.9.0
-------------
(2008-??-??)

General
-------
New bug fixes in this release since 2.8.0 have NOT been applied to the
1.x.x series.

Version 1 no longer maintained
------------------------------
The 1.x.x series is no longer maintained. However, if you really need a
version 1, the differences between 1.11.0 and 2.7.0 are very small, mainly
revolving around the pthread_once_t_ struct. Those differences applied
as a patch to the current 2.x.x should work. Don't forget to change
the version numbering in pthread.h before building. If you distribute
such a version 1.x.x please bear in mind that your numbers may clash
with those of others doing the same thing. Please consider also making
identifying changes in version.rc to differentiate your build.

Testing and verification
------------------------
This release has been tested on UP and SMP architectures. Thanks to Tim
Theisen for running the Win32 SMP tests.

Bug fixes
---------
Various modifications and fixes to build and test for WinCE.
- Marcel Ruff, Sinan Kaya

Fix pthread_cond_destroy() - should not be a cancellation point. Other
minor build problems fixed.
- Romano Paolo Tenca

Remove potential deadlock condition from pthread_cond_destroy().
- Eric Berge

Various modifications to build and test for Win64.
- Kip Streithorst

Various fixes to the QueueUserAPCEx async cancellation helper DLL
and pthreads code cleanups.
- Sebastian Gottschalk

Removed potential NULL pointer reference.
- Robert Kindred


from the file CHANGELOG:

2008-06-06 Robert Kindred <RKindred at SwRI dot edu>

* ptw32_throw.c (ptw32_throw): Remove possible reference to NULL
pointer. (At the same time made the switch block conditionally
included only if exitCode is needed - RPJ.)
* pthread_testcancel.c (pthread_testcancel): Remove duplicate and
misplaced pthread_mutex_unlock().

2008-02-21 Sebastian Gottschalk <seppig_relay at gmx dot de>

* pthread_attr_getdetachstate.c (pthread_attr_getdetachstate):
Remove potential and superfluous null pointer assignment.

2007-11-22 Ivan Pizhenko <ivanp4 at ua dot fm>

* pthread.h (gmtime_r): gmtime returns 0 if tm represents a time
prior to 1/1/1970. Notice this to prevent raising an exception.
* pthread.h (localtime_r): Likewise for localtime.

....

Kurtnoise
12th June 2008, 21:15
Dunno why you've posted this in the avc forum but...

Because i am too lazy and hate it when i can't simple IRC some author, this is what i get for gpac:
1: cvs -z3 -d:pserver:anonymous@gpac.cvs.sourceforge.net:/cvsroot/gpac co -P gpac
2: cd gpac
3: configure
4: make lib

Output in mingw:
$ make lib
make -C src all
make[1]: Entering directory `/home/xuser/gpac/src'
gcc -O3 -fno-strict-aliasing -Wall -I/home/xuser/gpac/include -I../ -DGPAC_HAVE_CONFIG_H -c -o utils/os_divers.o utils/os_divers.c
In file included from F:/msys/1.0/home/xuser/gpac/include/gpac/tools.h:32,
from utils/os_divers.c:25:
F:/msys/1.0/home/xuser/gpac/include/gpac/setup.h:39:34: gpac/internal/config.h: No such file or directory
make[1]: *** [utils/os_divers.o] Error 1
make[1]: Leaving directory `/home/xuser/gpac/src'
make: *** [lib] Error 2

Probably easy fix, but this should be tested.


here is a patch :

Index: include/gpac/setup.h
===================================================================
RCS file: /cvsroot/gpac/gpac/include/gpac/setup.h,v
retrieving revision 1.27
diff -u -r1.27 setup.h
--- include/gpac/setup.h 29 May 2008 11:40:19 -0000 1.27
+++ include/gpac/setup.h 12 Jun 2008 19:34:24 -0000
@@ -36,7 +36,7 @@
#ifdef GPAC_HAVE_CONFIG_H

#if defined(__GNUC__)
-#include <gpac/internal/config.h>
+#include <gpac/internal/config_static.h>
#else
#include <gpac/internal/config_static.h>
#endif

bob0r
26th July 2008, 12:26
Okay, thanks, i have added a bug report:
gpac make lib fails in mingw/msys (http://sourceforge.net/tracker/index.php?func=detail&aid=2028653&group_id=84101&atid=571738)

gigah72
30th July 2008, 14:51
i want to add mp4 support to my x264 build. i grabbed gpac 0.4.4, then ./configure, make lib, make install-lib. no errors sofar, but x264 configure doesn't give me mp4 support.
any idea where i made mistakes?

Sharktooth
30th July 2008, 15:02
you should add mp4 support to x264 with a commanline switch
try looking at ./configure --help

bob0r
30th July 2008, 15:54
copy: gpac\include\gpac to your incklude dir (yes those whole gpac dir)

copy: gpac\build\gcc\libgpac_static.a to your lib dir.
(Not 100% sure about this dir, search for libgpac_static.a)

Too lazy to apply patch.

bob0r
10th November 2008, 08:00
http://sourceforge.net/tracker/index.php?func=detail&aid=2028653&group_id=84101&atid=571738

Status: (?)
Closed

But not fixed... useless tracker system ftw!

Drachir
10th November 2008, 10:30
If there is still a problem simply open the bug report again.

kemuri-_9
10th November 2008, 15:09
yeah i usually have to copy the config.h after calling configure to include/gpac/internal dir to have it compile.
small workaround, but works.