pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: openoffice build problem


it would have build if I didn't disable the xulrunner option:

 In function 'const char* NPP_GetMIMEDescription()':
 error: declaration of C function 'const char* NPP_GetMIMEDescription()' 
conflicts with
 error: previous declaration 'char* NPP_GetMIMEDescription()' here
dmake:  Error code 1, while making '../../../'

patch-ae was patched to work with newer firefox version but due too
the way how the include files for a newer firefox are integrated into
the build system this will fail, because that file is still build
using use the old xulrunner headers.

I hacked patch-ae with the attached version which works for me
but I do not know if that works if the xulrunner option is enabled.

After that the package finally build but it does not work :(
The soffice command opens a window and then quits.


--- extensions/source/nsplugin/source/npshell.cxx.orig  2008-07-16 
22:13:01.000000000 +0200
+++ extensions/source/nsplugin/source/npshell.cxx       2012-08-02 
23:19:06.000000000 +0200
@@ -79,7 +79,7 @@
-#ifdef UNIX
+#if 0 /* def UNIX */   /* types provided by nptypes.h */
 #  ifndef _UINT32
 #    if defined(__alpha) || defined(__LP64__)
        typedef unsigned int uint32;
@@ -402,7 +402,11 @@
Presentation Template;"
+const char*
     debug_fprintf(NSP_LOG_APPEND, "print by Netscape Plugin,  
NPP_GetMIMEDescription:%s.\n", pMimeTypes);
--- extensions/source/nsplugin/source/  2012-08-03 
02:26:29.000000000 +0200
+++ extensions/source/nsplugin/source/       2012-08-03 
02:24:28.000000000 +0200
@@ -42,6 +42,10 @@
+.IF "$(WITH_MOZILLA)" == "NO"
 .IF "$(GUI)"=="UNX"
 # not sure about -DMOZ_X11 but otheriwse some struct member don't exist...

Home | Main Index | Thread Index | Old Index