[x264-devel] Re: sun4u Bus error
Tuukka Toivonen
tuukkat at ee.oulu.fi
Tue Aug 9 12:27:43 CEST 2005
On Tue, 9 Aug 2005, Mauricio Briceno wrote:
> It segs fault at x264:162, that's the help function.
I'm unable to reproduce the problem (i.e. works for me), on this system:
SunOS stekt3 5.9 Generic_118558-09 sun4u sparc SUNW,Sun-Fire-V440
I tried both statically and dynamically linked version.
I had the same problem with the static version as you, the attached
PATCH fixes the problem. After applying it, both dynamic
and static versions seem to work fine.
-------------- next part --------------
diff -PruN x264-virgin/extras/getopt.c /research/videoteam/personal/tuukkat/x264-virgin/extras/getopt.c
--- x264-virgin/extras/getopt.c 2005-07-08 12:33:32.000000000 +0300
+++ /research/videoteam/personal/tuukkat/x264-virgin/extras/getopt.c 2005-08-09 13:11:10.000000000 +0300
@@ -44,7 +44,7 @@
#include <stdarg.h>
#include <stdio.h>
-#define REPLACE_GETOPT
+#undef REPLACE_GETOPT
#define _DIAGASSERT(x) do {} while (0)
@@ -55,10 +55,11 @@
int opterr = 1; /* if error message should be printed */
int optind = 1; /* index into parent argv vector */
int optopt = '?'; /* character checked for validity */
-int optreset; /* reset getopt */
char *optarg; /* argument associated with option */
#endif
+int optreset; /* reset getopt */
+
#ifdef __weak_alias
__weak_alias(getopt_long,_getopt_long)
#endif
More information about the x264-devel
mailing list