Apache OpenOffice (AOO) Bugzilla – Issue 39961
extensions : lot of problems building nsplugin on Mac OSX SRC680 m67 build
Last modified: 2005-07-21 22:26:11 UTC
extensions : a lot of prooblems building nsplugins ( WITH_MOZILLA=YES) *3* patches build stoppers (2 or more here) a) Conflict between MacOSX socket.h located in /usr/include and the correct one coming from sal/osl/inc Error message : Making: ../../../unxmacxp.pro/slo/npshell.obj ccache g++ -fsigned-char -fmessage-length=0 -malign-natural -c -I. -I. -I../inc -I../../../inc -I../../../unx/inc -I../../../unxmacxp.pro/inc -I. -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/stl -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/external -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc -I/Users/ericb/Desktop/OpenOffice.org680/solenv/unxmacxp/inc -I/Users/ericb/Desktop/OpenOffice.org680/solenv/inc -I/Users/ericb/Desktop/OpenOffice.org680/res -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/stl -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -I/System/Library/Frameworks/JavaVM.framework/Headers -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I. -I../../../res -I. -O2 -fno-strict-aliasing -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include -I/sw/include/atk-1.0 -I/sw/include/pango-1.0 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -pipe -malign-natural -fsigned-char -Wno-long-double -Wno-ctor-dtor-privacy -fexceptions -fno-enforce-eh-specs -fPIC -fno-common -DMACOSX -DUNX -DVCL -DGCC -DC300 -DPOWERPC -DGXX_INCLUDE_PATH=/usr/include/gcc/darwin/3.3/c++ -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -D_PTHREADS -D_REENTRANT -DNO_PTHREAD_PRIORITY -DPOWERPC -DPPC -DSTLPORT_VERSION=400 -D_USE_NAMESPACE=1 -DX_LOCALE -DNO_AUDIO -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRC680 -DBUILD_OS_APPLEOSX -DBUILD_OS_MAJOR=10 -DBUILD_OS_MINOR=3 -DBUILD_OS_REV=4 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../../unxmacxp.pro/slo/npshell.o /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/npshell.cxx In file included from /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/npshell.cxx:67: /usr/include/sys/socket.h:77: error: syntax error before `;' token /usr/include/sys/socket.h:79: error: syntax error before `;' token /usr/include/sys/socket.h:213: error: 'u_char' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:214: error: 'u_char' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:224: error: 'u_short' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:225: error: 'u_short' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:238: error: 'u_char' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:239: error: 'sa_family_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:240: error: `int64_t' was not declared in this scope /usr/include/sys/socket.h:240: error: `u_char' was not declared in this scope /usr/include/sys/socket.h:240: error: `sa_family_t' was not declared in this scope /usr/include/sys/socket.h:241: error: 'int64_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:242: error: `u_char' was not declared in this scope /usr/include/sys/socket.h:242: error: `sa_family_t' was not declared in this scope /usr/include/sys/socket.h:242: error: `int64_t' was not declared in this scope /usr/include/sys/socket.h:242: error: `u_char' was not declared in this scope /usr/include/sys/socket.h:242: error: `sa_family_t' was not declared in this scope /usr/include/sys/socket.h:242: error: `int64_t' was not declared in this scope /usr/include/sys/socket.h:373: error: 'caddr_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:374: error: 'socklen_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:376: error: 'u_int' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:377: error: 'caddr_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:378: error: 'socklen_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:408: error: 'socklen_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:471: error: 'u_short' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:479: error: 'caddr_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:483: error: 'caddr_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:511: error: type specifier omitted for parameter `socklen_t' /usr/include/sys/socket.h:511: error: parse error before `*' token /usr/include/sys/socket.h:512: error: type specifier omitted for parameter `socklen_t' /usr/include/sys/socket.h:513: error: type specifier omitted for parameter `socklen_t' /usr/include/sys/socket.h:514: error: type specifier omitted for parameter `socklen_t' /usr/include/sys/socket.h:514: error: parse error before `*' token /usr/include/sys/socket.h:515: error: type specifier omitted for parameter `socklen_t' /usr/include/sys/socket.h:515: error: parse error before `*' token /usr/include/sys/socket.h:518: error: parse error before `,' token /usr/include/sys/socket.h:519: error: parse error before `,' token /usr/include/sys/socket.h:520: error: parse error before `,' token /usr/include/sys/socket.h:521: error: parse error before `,' token /usr/include/sys/socket.h:522: error: parse error before `,' token /usr/include/sys/socket.h:524: error: parse error before `,' token /usr/include/sys/socket.h:528: error: type specifier omitted for parameter `socklen_t' dmake: Error code 1, while making '../../../unxmacxp.pro/slo/npshell.obj' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source b) renaming /usr/include/sys/socket.h in /usr/include/sys/socket_apple.h, the build continues, but breaks just sometime after : Making: ../../../unxmacxp.pro/slo/so_env.obj ccache g++ -fsigned-char -fmessage-length=0 -malign-natural -c -I. -I. -I../inc -I../../../inc -I../../../unx/inc -I../../../unxmacxp.pro/inc -I. -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/stl -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/external -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc -I/Users/ericb/Desktop/OpenOffice.org680/solenv/unxmacxp/inc -I/Users/ericb/Desktop/OpenOffice.org680/solenv/inc -I/Users/ericb/Desktop/OpenOffice.org680/res -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/stl -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -I/System/Library/Frameworks/JavaVM.framework/Headers -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I. -I../../../res -I. -O2 -fno-strict-aliasing -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include -I/sw/include/atk-1.0 -I/sw/include/pango-1.0 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -pipe -malign-natural -fsigned-char -Wno-long-double -Wno-ctor-dtor-privacy -fexceptions -fno-enforce-eh-specs -fPIC -fno-common -DMACOSX -DUNX -DVCL -DGCC -DC300 -DPOWERPC -DGXX_INCLUDE_PATH=/usr/include/gcc/darwin/3.3/c++ -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -D_PTHREADS -D_REENTRANT -DNO_PTHREAD_PRIORITY -DPOWERPC -DPPC -DSTLPORT_VERSION=400 -D_USE_NAMESPACE=1 -DX_LOCALE -DNO_AUDIO -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRC680 -DBUILD_OS_APPLEOSX -DBUILD_OS_MAJOR=10 -DBUILD_OS_MINOR=3 -DBUILD_OS_REV=4 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../../unxmacxp.pro/slo/so_env.o /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/so_env.cxx /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/so_env.cxx:68:25: sys/varargs.h: No such file or directory dmake: Error code 1, while making '../../../unxmacxp.pro/slo/so_env.obj' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source <Humour> Content of varargs.h : #ifdef __MWERKS__ #include "mw_varargs.h" #else /* APPLE LOCAL end MW compatibility */ #ifndef _VARARGS_H #define _VARARGS_H #error "GCC no longer implements <varargs.h>." #error "Revise your code to use <stdarg.h>." #endif /* APPLE LOCAL MW compatibility */ #endif /* __MWERKS__ */ ...so changing for "#include <stdarg.h>" in extensions/source/nsplugin/source/so_env.cxx </humour> Making: ../../../unxmacxp.pro/lib/libnpsoplugin.dylib gcc -Wl,-multiply_defined,suppress -dynamiclib -single_module -install_name @executable_path/libnpsoplugin.dylib -L../../../unxmacxp.pro/lib -L/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/lib -L/usr/lib -L/usr/X11R6/lib -o ../../../unxmacxp.pro/lib/libnpsoplugin.dylib -ldl -lnsl -lpthread -lm -lstlport_gcc -lstdc++ -filelist ../../../unxmacxp.pro/misc/libnpsoplugin.list /usr/bin/libtool: can't locate file for: -lnsl /usr/bin/libtool: file: -lnsl is not an object file (not allowed in a library) dmake: Error code 1, while making '../../../unxmacxp.pro/lib/libnpsoplugin.dylib' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source 3rd breakage : missing #include <un.h> in extensions/source/plugin/base/xplugin.cxx Making: ../../../unxmacxp.pro/slo/xplugin.obj ccache g++ -fsigned-char -fmessage-length=0 -malign-natural -c -I. -I../../../unxmacxp.pro/inc/plugin -I../inc -I../../../inc -I../../../unx/inc -I../../../unxmacxp.pro/inc -I. -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/stl -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/external -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc -I/Users/ericb/Desktop/OpenOffice.org680/solenv/unxmacxp/inc -I/Users/ericb/Desktop/OpenOffice.org680/solenv/inc -I/Users/ericb/Desktop/OpenOffice.org680/res -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/stl -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -I/System/Library/Frameworks/JavaVM.framework/Headers -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I. -I../../../res -I. -O2 -fno-strict-aliasing -pipe -malign-natural -fsigned-char -Wno-long-double -Wno-ctor-dtor-privacy -fexceptions -fno-enforce-eh-specs -fPIC -fno-common -DMACOSX -DUNX -DVCL -DGCC -DC300 -DPOWERPC -DGXX_INCLUDE_PATH=/usr/include/gcc/darwin/3.3/c++ -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -D_PTHREADS -D_REENTRANT -DNO_PTHREAD_PRIORITY -DPOWERPC -DPPC -DSTLPORT_VERSION=400 -D_USE_NAMESPACE=1 -DX_LOCALE -DNO_AUDIO -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DGUI -DSOLAR_JAVA -DSRC680 -DBUILD_OS_APPLEOSX -DBUILD_OS_MAJOR=10 -DBUILD_OS_MINOR=3 -DBUILD_OS_REV=4 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../../unxmacxp.pro/slo/xplugin.o /Users/ericb/Desktop/OpenOffice.org680/extensions/source/plugin/base/xplugin.cxx In file included from ../../../unxmacxp.pro/inc/plugin/com/sun/star/awt/VclWindowPeerAttribute.hpp:5, from ../inc/plugin/plctrl.hxx:136, from ../inc/plugin/impl.hxx:175, from /Users/ericb/Desktop/OpenOffice.org680/extensions/source/plugin/base/xplugin.cxx:75: ../../../unxmacxp.pro/inc/plugin/com/sun/star/awt/VclWindowPeerAttribute.hdl:39: warning: this decimal constant is unsigned only in ISO C90 /Users/ericb/Desktop/OpenOffice.org680/extensions/source/plugin/base/xplugin.cxx: In member function `void XPlugin_Impl::loadPlugin()': /Users/ericb/Desktop/OpenOffice.org680/extensions/source/plugin/base/xplugin.cxx:563: error: `AF_UNIX' undeclared (first use this function) /Users/ericb/Desktop/OpenOffice.org680/extensions/source/plugin/base/xplugin.cxx:563: error: (Each undeclared identifier is reported only once for each function it appears in.) /Users/ericb/Desktop/OpenOffice.org680/extensions/source/plugin/base/xplugin.cxx:563: error: `SOCK_STREAM' undeclared (first use this function) /Users/ericb/Desktop/OpenOffice.org680/extensions/source/plugin/base/xplugin.cxx:563: error: `socketpair' undeclared (first use this function) dmake: Error code 1, while making '../../../unxmacxp.pro/slo/xplugin.obj' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /Users/ericb/Desktop/OpenOffice.org680/extensions/source/plugin/base 4th breakage : Making: ../../../unxmacxp.pro/slo/so_main.obj ccache g++ -fsigned-char -fmessage-length=0 -malign-natural -c -I. -I. -I../inc -I../../../inc -I../../../unx/inc -I../../../unxmacxp.pro/inc -I. -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/stl -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/external -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc -I/Users/ericb/Desktop/OpenOffice.org680/solenv/unxmacxp/inc -I/Users/ericb/Desktop/OpenOffice.org680/solenv/inc -I/Users/ericb/Desktop/OpenOffice.org680/res -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/stl -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -I/System/Library/Frameworks/JavaVM.framework/Headers -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I. -I../../../res -I. -O2 -fno-strict-aliasing -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include -I/sw/include/atk-1.0 -I/sw/include/pango-1.0 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -pipe -malign-natural -fsigned-char -Wno-long-double -Wno-ctor-dtor-privacy -fexceptions -fno-enforce-eh-specs -fPIC -fno-common -DMACOSX -DUNX -DVCL -DGCC -DC300 -DPOWERPC -DGXX_INCLUDE_PATH=/usr/include/gcc/darwin/3.3/c++ -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -D_PTHREADS -D_REENTRANT -DNO_PTHREAD_PRIORITY -DPOWERPC -DPPC -DSTLPORT_VERSION=400 -D_USE_NAMESPACE=1 -DX_LOCALE -DNO_AUDIO -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRC680 -DBUILD_OS_APPLEOSX -DBUILD_OS_MAJOR=10 -DBUILD_OS_MINOR=3 -DBUILD_OS_REV=4 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../../unxmacxp.pro/slo/so_main.o /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/so_main.cxx /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/so_main.cxx: In function `sal_Bool start_office(int)': /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/so_main.cxx:277: error: `AF_INET' undeclared (first use this function) /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/so_main.cxx:277: error: (Each undeclared identifier is reported only once for each function it appears in.) /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/so_main.cxx:284: error: `PF_INET' undeclared (first use this function) /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/so_main.cxx:284: error: `SOCK_STREAM' undeclared (first use this function) /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/so_main.cxx:284: error: `socket' undeclared (first use this function) /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/so_main.cxx:287: error: `connect' undeclared (first use this function) dmake: Error code 1, while making '../../../unxmacxp.pro/slo/so_main.obj' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source + 3 other breakages... so I need some time to find the good patch(es) build after defined "by hand" AF_INET 2 PF_INET AF_INET SOCK_STREAM 1 included <sys/socket_apple.h> + modified nsplugin makefile (deleted -lnsl -lnls -lsocket) The build can ended... Ouf !! But of course, not clean at all, and I need some help here
CC for Pavel Janik
ericb->maho : I have solved Mac OSX relative problems, but you can have a look, just in case FreeBSD is concerned too. The three attached patched, called with "where they have to be applied" names permit a successfull build on Mac OS X on SRC680_m71s1 / Mac OSX 10.3.4 / gcc-3.3 / XCode 1.5 1) Error 1 : build stops because extensions/source/nsplugin/source/npshell.cxx Making: ../../../unxmacxp.pro/slo/npshell.obj g++ -fsigned-char -fmessage-length=0 -malign-natural -c -I. -I. -I../inc -I../../../inc -I../../../unx/inc -I../../../unxmacxp.pro/inc -I. -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/stl -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/external -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc -I/Users/ericb/Desktop/OpenOffice.org680/solenv/unxmacxp/inc -I/Users/ericb/Desktop/OpenOffice.org680/solenv/inc -I/Users/ericb/Desktop/OpenOffice.org680/res -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/stl -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -I/System/Library/Frameworks/JavaVM.framework/Headers -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I. -I../../../res -I. -O2 -fno-strict-aliasing -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include -I/sw/include/atk-1.0 -I/sw/include/pango-1.0 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -pipe -malign-natural -fsigned-char -Wno-long-double -Wno-ctor-dtor-privacy -fexceptions -fno-enforce-eh-specs -fPIC -fno-common -DMACOSX -DUNX -DVCL -DGCC -DC300 -DPOWERPC -DGXX_INCLUDE_PATH=/usr/include/gcc/darwin/3.3/c++ -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -D_PTHREADS -D_REENTRANT -DNO_PTHREAD_PRIORITY -DPOWERPC -DPPC -DSTLPORT_VERSION=400 -D_USE_NAMESPACE=1 -DX_LOCALE -DNO_AUDIO -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRC680 -DBUILD_OS_APPLEOSX -DBUILD_OS_MAJOR=10 -DBUILD_OS_MINOR=3 -DBUILD_OS_REV=4 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../../unxmacxp.pro/slo/npshell.o /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/npshell.cxx In file included from /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/npshell.cxx:67: /usr/include/sys/socket.h:77: error: syntax error before `;' token /usr/include/sys/socket.h:79: error: syntax error before `;' token /usr/include/sys/socket.h:213: error: 'u_char' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:214: error: 'u_char' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:224: error: 'u_short' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:225: error: 'u_short' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:238: error: 'u_char' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:239: error: 'sa_family_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:240: error: `int64_t' was not declared in this scope /usr/include/sys/socket.h:240: error: `u_char' was not declared in this scope /usr/include/sys/socket.h:240: error: `sa_family_t' was not declared in this scope /usr/include/sys/socket.h:241: error: 'int64_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:242: error: `u_char' was not declared in this scope /usr/include/sys/socket.h:242: error: `sa_family_t' was not declared in this scope /usr/include/sys/socket.h:242: error: `int64_t' was not declared in this scope /usr/include/sys/socket.h:242: error: `u_char' was not declared in this scope /usr/include/sys/socket.h:242: error: `sa_family_t' was not declared in this scope /usr/include/sys/socket.h:242: error: `int64_t' was not declared in this scope /usr/include/sys/socket.h:373: error: 'caddr_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:374: error: 'socklen_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:376: error: 'u_int' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:377: error: 'caddr_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:378: error: 'socklen_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:408: error: 'socklen_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:471: error: 'u_short' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:479: error: 'caddr_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:483: error: 'caddr_t' is used as a type, but is not defined as a type. /usr/include/sys/socket.h:511: error: type specifier omitted for parameter `socklen_t' /usr/include/sys/socket.h:511: error: parse error before `*' token /usr/include/sys/socket.h:512: error: type specifier omitted for parameter `socklen_t' /usr/include/sys/socket.h:513: error: type specifier omitted for parameter `socklen_t' /usr/include/sys/socket.h:514: error: type specifier omitted for parameter `socklen_t' /usr/include/sys/socket.h:514: error: parse error before `*' token /usr/include/sys/socket.h:515: error: type specifier omitted for parameter `socklen_t' /usr/include/sys/socket.h:515: error: parse error before `*' token /usr/include/sys/socket.h:518: error: parse error before `,' token /usr/include/sys/socket.h:519: error: parse error before `,' token /usr/include/sys/socket.h:520: error: parse error before `,' token /usr/include/sys/socket.h:521: error: parse error before `,' token /usr/include/sys/socket.h:523: error: parse error before `,' token /usr/include/sys/socket.h:524: error: parse error before `,' token /usr/include/sys/socket.h:528: error: type specifier omitted for parameter `socklen_t' dmake: Error code 1, while making '../../../unxmacxp.pro/slo/npshell.obj' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source Applying extensions_source_nsplugin_source_npshell.cxx.patch solves the problem 2) varargs.h not found. It won't be found for a long time ;-) Making: ../../../unxmacxp.pro/slo/so_env.obj g++ -fsigned-char -fmessage-length=0 -malign-natural -c -I. -I. -I../inc -I../../../inc -I../../../unx/inc -I../../../unxmacxp.pro/inc -I. -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/stl -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/external -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc -I/Users/ericb/Desktop/OpenOffice.org680/solenv/unxmacxp/inc -I/Users/ericb/Desktop/OpenOffice.org680/solenv/inc -I/Users/ericb/Desktop/OpenOffice.org680/res -I/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/inc/stl -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -I/System/Library/Frameworks/JavaVM.framework/Headers -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I. -I../../../res -I. -O2 -fno-strict-aliasing -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include -I/sw/include/atk-1.0 -I/sw/include/pango-1.0 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -pipe -malign-natural -fsigned-char -Wno-long-double -Wno-ctor-dtor-privacy -fexceptions -fno-enforce-eh-specs -fPIC -fno-common -DMACOSX -DUNX -DVCL -DGCC -DC300 -DPOWERPC -DGXX_INCLUDE_PATH=/usr/include/gcc/darwin/3.3/c++ -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -D_PTHREADS -D_REENTRANT -DNO_PTHREAD_PRIORITY -DPOWERPC -DPPC -DSTLPORT_VERSION=400 -D_USE_NAMESPACE=1 -DX_LOCALE -DNO_AUDIO -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRC680 -DBUILD_OS_APPLEOSX -DBUILD_OS_MAJOR=10 -DBUILD_OS_MINOR=3 -DBUILD_OS_REV=4 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../../unxmacxp.pro/slo/so_env.o /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/so_env.cxx /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source/so_env.cxx:68:25: sys/varargs.h: No such file or directory dmake: Error code 1, while making '../../../unxmacxp.pro/slo/so_env.obj' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source Applying extensions_source_nsplugin_source_so_env.cxx.patch solves the problem 3) no need to link against libnsl.a on Mac OSX Making: ../../../unxmacxp.pro/lib/libnpsoplugin.dylib gcc -Wl,-multiply_defined,suppress -dynamiclib -single_module -install_name @executable_path/libnpsoplugin.dylib -L../../../unxmacxp.pro/lib -L/Users/ericb/Desktop/OpenOffice.org680/solver/680/unxmacxp.pro/lib -L/usr/lib -L/usr/X11R6/lib -o ../../../unxmacxp.pro/lib/libnpsoplugin.dylib -ldl -lnsl -lpthread -lm -lstlport_gcc -lstdc++ -filelist ../../../unxmacxp.pro/misc/libnpsoplugin.list /usr/bin/libtool: can't locate file for: -lnsl /usr/bin/libtool: file: -lnsl is not an object file (not allowed in a library) dmake: Error code 1, while making '../../../unxmacxp.pro/lib/libnpsoplugin.dylib' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /Users/ericb/Desktop/OpenOffice.org680/extensions/source/nsplugin/source extensions_source_nsplugin_source_makefile.mk.patch solves the problem For now, other patches (for xplugin in extensions/source/plugin/source) are no more necessary.
Created attachment 21646 [details] npshell patch for extensions nsplugin Mac OSX SRC680_m71s1
Created attachment 21647 [details] patch for so_env in extensions nsplugin Mac OSX SRC680_m71s1
Created attachment 21648 [details] SRC680_m71s1 Mac OSX extensions nsplugin : bad linking
Confirmed, taking over. Same problems here. Different solutions though ;-) 1. stdarg/varargs: Removing NP_LINUX in the makefile.mk completely and using varargs only on Solaris (and not using GCC) is the correct solution here. It works, uses the same conditions like in other parts of OOo and reduces the makefile.mk system dependency. 2. The problem about sys/socket.h is different. You have to first include sys/types, so moving it down is the solution here. 3. -lnsl and co I think that this is needed only for Solaris and I wonder why this is not solved the standard way and why we have to see -lnsl -ldl etc. in this makefile.mk. Ause? The patch I use right now is attached.
Created attachment 24217 [details] My current diff
maho: can you please take over this issue? It is connected with your #i46546# a bit too.
as pjanik's suggestion, reassigned to maho
Created attachment 25787 [details] updated patch
ericb ->pjanik insert the issue number in the name is a very good idea :-) Why don't you simply delete the lines 107->109 in extensions/source/nsplugin/source/makefile.mk ?
fixed in macosx07
Status changed for fixed
Seems to be fine in cws macosx07.
issue closed