Date: Sun, 19 Jun 2005 12:08:55 -0600 From: Mike Durian <durian@shadetreesoftware.com> To: NAKATA Maho <chat95@mac.com> Cc: freebsd-openoffice@freebsd.org Subject: Re: 2.0-devel, epm, libfltk and libm Message-ID: <200506191208.56452.durian@shadetreesoftware.com> In-Reply-To: <20050619.124642.74718514.chat95@mac.com> References: <200506061410.33055.durian@shadetreesoftware.com> <20050619.124642.74718514.chat95@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 18 June 2005 09:46 pm, NAKATA Maho wrote: > In Message-ID: <200506061410.33055.durian@shadetreesoftware.com> > > Mike Durian <durian@shadetreesoftware.com> wrote: > > I'm trying to build 2.0-devel (m107) and the build process is dying > > trying to build epm: > > it seems to be if epm is installed building project epm dies. I think this is a different problem. Though I had epm installed at one point, I made sure it was deinstalled before starting a fresh OOo build with the latest sources (m110). The problem is due to OOo's epm detecting fltk and trying to use it without picking up a libm dependency. fltk uses math library functions. Maybe it is fltk-config's fault for not specifying -lm, but something needs to include libm if fltk is detected. I bet you can reproduce this problem yourself if you install x11-toolkits/fltk and then try a clean build of OOo-2.0-devel. Here is the end of the build log: cd ./unxfbsd.pro/misc/build && cat ../../../epm-3.7.patch | /usr/local/bin/gpatch -p2 && touch so_patched_epm patching file epm-3.7/bsd.c patching file epm-3.7/epm.c patching file epm-3.7/file.c patching file epm-3.7/osx.c patching file epm-3.7/pkg.c patching file epm-3.7/rpm.c mkdir ./unxfbsd.pro/misc/build/epm-3.7/ mkdir: ./unxfbsd.pro/misc/build/epm-3.7/: File exists cd ./unxfbsd.pro/misc/build/epm-3.7/ && ./configure && touch so_configured_epm checking for gcc... gcc-ooo checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc-ooo accepts -g... yes checking whether we are using the GNU C++ compiler... yes checking whether g++-ooo accepts -g... yes checking for chmod... /bin/chmod checking for cp... /bin/cp checking for gzip... /usr/bin/gzip checking for htmldoc... no checking for mkdir... /bin/mkdir checking for nroff... /usr/bin/nroff checking for rm... /bin/rm checking for rpm... /usr/local/bin/rpm checking for rpmbuild... no checking for strip... /usr/bin/strip checking for gcc-ooo option to accept ANSI C... none needed checking for an ANSI C-conforming const... yes checking how to run the C preprocessor... gcc-ooo -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether char is unsigned... no checking for ANSI C header files... (cached) yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for strings.h... (cached) yes checking sys/mount.h usability... no checking sys/mount.h presence... yes configure: WARNING: sys/mount.h: present but cannot be compiled configure: WARNING: sys/mount.h: check for missing prerequisite headers? configure: WARNING: sys/mount.h: proceeding with the preprocessor's result checking for sys/mount.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/statfs.h usability... no checking sys/statfs.h presence... no checking for sys/statfs.h... no checking sys/vfs.h usability... no checking sys/vfs.h presence... no checking for sys/vfs.h... no checking for strdup... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for snprintf... yes checking for vsnprintf... yes checking for library containing gethostname... none required checking for fltk-config... /usr/X11R6/bin/fltk-config checking if libsupc++ is required... yes checking if GCC supports -fno-rtti... yes checking if GCC supports -fno-exceptions... yes configure: creating ./config.status config.status: creating Makefile config.status: creating epm.list config.status: creating doc/Makefile config.status: creating macosx/setup.plist config.status: creating macosx/uninst.plist config.status: creating config.h mv ./unxfbsd.pro/misc/build/epm-3.7//so_configured_epm ./unxfbsd.pro/misc/build/so_configured_epm mkdir ./unxfbsd.pro/misc/build/epm-3.7/ mkdir: ./unxfbsd.pro/misc/build/epm-3.7/: File exists cd ./unxfbsd.pro/misc/build/epm-3.7/ && make && touch so_built_epm Compiling aix.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling bsd.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling deb.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling dist.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling epm.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling file.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling inst.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling osx.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling pkg.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C pkg.c: In function `make_pkg': pkg.c:53: warning: unused variable `tarfile' Compiling portable.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling qprintf.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling rpm.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling run.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling setld.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling slackware.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling snprintf.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling string.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling swinstall.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Compiling tar.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Linking epm... Compiling epminstall.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Linking epminstall... Compiling mkepmlist.c... cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C Linking mkepmlist... Compiling setup.cxx... Compiling setup2.cxx... Compiling gui-common.cxx... Linking setup... /usr/X11R6/lib/libfltk.a(Fl_Valuator.o)(.text+0x116): In function `Fl_Valuator::step(double)': : undefined reference to `rint' /usr/X11R6/lib/libfltk.a(Fl_Valuator.o)(.text+0x158): In function `Fl_Valuator::step(double)': : undefined reference to `rint' /usr/X11R6/lib/libfltk.a(Fl_Valuator.o)(.text+0x401): In function `Fl_Valuator::round(double)': : undefined reference to `rint' /usr/X11R6/lib/libfltk.a(Fl_Valuator.o)(.text+0x4f8): In function `Fl_Valuator::increment(double, int)': : undefined reference to `rint' /usr/X11R6/lib/libfltk.a(Fl_get_system_colors.o)(.text+0x4d): In function `Fl::background(unsigned char, unsigned char, unsigned char)': : undefined reference to `log' /usr/X11R6/lib/libfltk.a(Fl_get_system_colors.o)(.text+0x62): In function `Fl::background(unsigned char, unsigned char, unsigned char)': : undefined reference to `log' /usr/X11R6/lib/libfltk.a(Fl_get_system_colors.o)(.text+0xa2): In function `Fl::background(unsigned char, unsigned char, unsigned char)': : undefined reference to `log' /usr/X11R6/lib/libfltk.a(Fl_get_system_colors.o)(.text+0xb7): In function `Fl::background(unsigned char, unsigned char, unsigned char)': : undefined reference to `log' /usr/X11R6/lib/libfltk.a(Fl_get_system_colors.o)(.text+0xf7): In function `Fl::background(unsigned char, unsigned char, unsigned char)': : undefined reference to `log' /usr/X11R6/lib/libfltk.a(Fl_get_system_colors.o)(.text+0x10c): more undefined references to `log' follow /usr/X11R6/lib/libfltk.a(Fl_get_system_colors.o)(.text+0x142): In function `Fl::background(unsigned char, unsigned char, unsigned char)': : undefined reference to `pow' /usr/X11R6/lib/libfltk.a(Fl_get_system_colors.o)(.text+0x187): In function `Fl::background(unsigned char, unsigned char, unsigned char)': : undefined reference to `pow' /usr/X11R6/lib/libfltk.a(Fl_get_system_colors.o)(.text+0x1cc): In function `Fl::background(unsigned char, unsigned char, unsigned char)': : undefined reference to `pow' /usr/X11R6/lib/libfltk.a(fl_vertex.o)(.text+0x2ff): In function `fl_rotate(double)': : undefined reference to `sin' /usr/X11R6/lib/libfltk.a(fl_vertex.o)(.text+0x316): In function `fl_rotate(double)': : undefined reference to `cos' /usr/X11R6/lib/libfltk.a(fl_vertex.o)(.text+0x58a): In function `fl_transformed_vertex(double, double)': : undefined reference to `rint' /usr/X11R6/lib/libfltk.a(fl_vertex.o)(.text+0x5b7): In function `fl_transformed_vertex(double, double)': : undefined reference to `rint' /usr/X11R6/lib/libfltk.a(fl_vertex.o)(.text+0x9d6): In function `fl_circle(double, double, double)': : undefined reference to `sqrt' /usr/X11R6/lib/libfltk.a(fl_vertex.o)(.text+0xa3d): In function `fl_circle(double, double, double)': : undefined reference to `sqrt' /usr/X11R6/lib/libfltk.a(fl_vertex.o)(.text+0xa7c): In function `fl_circle(double, double, double)': : undefined reference to `rint' /usr/X11R6/lib/libfltk.a(fl_vertex.o)(.text+0xaa0): In function `fl_circle(double, double, double)': : undefined reference to `rint' /usr/X11R6/lib/libfltk.a(fl_vertex.o)(.text+0xaca): In function `fl_circle(double, double, double)': : undefined reference to `rint' /usr/X11R6/lib/libfltk.a(fl_vertex.o)(.text+0xaf1): In function `fl_circle(double, double, double)': : undefined reference to `rint' collect2: ld returned 1 exit status *** Error code 1 Stop in /disk2/ports/editors/openoffice-2.0-devel/work/epm/unxfbsd.pro/misc/build/epm-3.7. dmake: Error code 1, while making './unxfbsd.pro/misc/build/so_built_epm' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /disk2/ports/editors/openoffice-2.0-devel/work/epm dmake: Error code 1, while making 'build_all' '---* tg_merge.mk *---' *** Error code 255 Stop in /disk2/ports/editors/openoffice-2.0-devel.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506191208.56452.durian>