linuxpluginwrapper, how to install?

YONETANI Tomokazu qhwt+dfly at les.ath.cx
Fri Mar 18 21:18:22 PST 2005


On Fri, Mar 18, 2005 at 08:06:31PM -0600, Guillermo Garcia Rojas wrote:
> A new version of Linuxpluginwrapper is out, I did the procedure you
> described, it worked fine with the previous version, but with this new
> version it throws me an error:
> 
> ===>  Configuring for linuxpluginwrapper-20050319
> ===>  Building for linuxpluginwrapper-20050319
> cc -O -pipe -march=pentiumpro -fPIC  -Iinclude -c -o compat_glibc/linux_envion.o compat_glibc/linux_envion.c
> cc -O -pipe -march=pentiumpro -fPIC  -Iinclude -c -o compat_glibc/linux_errno.o compat_glibc/linux_errno.c
> cc -O -pipe -march=pentiumpro -fPIC  -Iinclude -c -o compat_glibc/linux_locale.o compat_glibc/linux_locale.c
> cc -O -pipe -march=pentiumpro -fPIC  -Iinclude -c -o compat_glibc/linux_misc.o compat_glibc/linux_misc.c
> compat_glibc/linux_misc.c: In function `__assert_fail':
> compat_glibc/linux_misc.c:80: warning: passing arg 2 of `__assert' makes integer from pointer without a cast
> compat_glibc/linux_misc.c:80: warning: passing arg 3 of `__assert' makes pointer from integer without a cast
> compat_glibc/linux_misc.c:80: too many arguments to function `__assert'
> *** Error code 1
> 
> Stop in /usr/ports/www/linuxpluginwrapper/work/linuxpluginwrapper-20050319.
> *** Error code 1
> 
> Stop in /usr/ports/www/linuxpluginwrapper.
> 
> It's the patch thing or is a port related issue?

Good catch, it's in the original linuxpluginwrapper code. __assert() in
DragonFly and FreeBSD 4.x takes 3 arguments while FreeBSD 5.x+ takes 4
arguments, the added first argument being the name of the function which
called assert(). Please throw in the attached patch into
/usr/ports/www/linuxpluginwrapper/files (after creating it) for now.

Thanks.
--- compat_glibc/linux_misc.c.orig	2005-03-19 03:15:37.000000000 +0900
+++ compat_glibc/linux_misc.c	2005-03-19 14:15:28.000000000 +0900
@@ -77,5 +77,10 @@
 __assert_fail(const char *assertion, const char *file,
 	unsigned int line, const char *function)
 {
+#if defined(__DragonFly__) || __FreeBSD_version < 500000
+	(void)function;
+	__assert(file, line, assertion);
+#else
 	__assert(function, file, line, assertion);
+#endif
 }




More information about the Users mailing list