I had a similar problem on Solaris. Sun's m4 doesn't understand the -I
option.
Gnu m4 was mentioned at a deeper level README/INSTALL (perhaps a note in
the top level INSTALL would be helpful ?)
I also had a follow up problem with syntax errors when compiling
./lyx-1.1.6fix2/sigc++/slot.cc
I did a 'make distclean' just in case the faulty m4 left something
dud lying around and got the same problem.
Further investigation showed that slot.h was an empty file.
I checked ./lyx-1.1.6fix2/sigc++/Makefile for the distclean target
and it doesn't clean up the .h files created from the macros.
My fix was to simply remove all the ${BUILT_SOURCES} .h files and
remake.
I now have a working lyx (now all I want to do is get the corporate word templates
into lyx so I can use lyx for all my writings here ...)
Simon
Sanjay Vohra <[EMAIL PROTECTED]>@seb2.eng.ohio-state.edu on 11/06/2001
01:57:37
Please respond to [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: compile problems sun sparc 2.7
hi
im tryign to get this ver 1.6.fix2 to work on a sun solaris 2.7
and get the following errors after make, can you help me out?
# make
Making all in intl
Making all in po
Making all in sigc++
make all-recursive
Making all in macros
m4 -I./macros macros/basic_signal.h.m4 > basic_signal.h
m4: bad option: -I./macros
*** Error code 1
make: Fatal error: Command failed for target `basic_signal.h'
Current working directory /tmp/lyx-1.1.6fix2/sigc++
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /tmp/lyx-1.1.6fix2/sigc++
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'
Current working directory /tmp/lyx-1.1.6fix2/sigc++
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
#
attached are the results from running ./configure
loading cache ./config.cache
configuring LyX version 1.1.6fix2
checking host system type... sparc-sun-solaris2.7
checking target system type... sparc-sun-solaris2.7
checking build system type... sparc-sun-solaris2.7
checking config.cache system type... same
checking for install target ... ... lyx
checking for a BSD compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... missing
checking for prefix by checking for lyx... no
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD compatible install... config/install-sh -c
checking for kpsewhich... (cached) :
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for POSIXized ISC... no
checking how to run the C preprocessor... (cached) gcc -E
checking for AIX... no
checking for HP-UX... (cached) no
checking for SunOS 4.x... (cached) no
checking for SCO 3.2v4... (cached) no
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking for executable suffix... (cached) no
checking what frontend should be used as main GUI... xforms
checking for a working C++ compiler... g++
checking whether the C++ compiler (g++ ) is a cross-compiler... yes
checking whether we are using GNU C++... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... (cached) g++ -E
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no
checking for BSD-compatible nm... (cached) /usr/ccs/bin/nm -p
checking whether ln -s works... (cached) yes
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... (cached) no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries...
yes
checking command to parse /usr/ccs/bin/nm -p output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/ccs/bin/ld option to reload object files... -r
checking dynamic linker characteristics... solaris2.7 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking if C++ compiler supports mutable... (cached) yes
checking if C++ compiler supports partial specialization... (cached) yes
checking whether the C++ compiler understands explicit... (cached) yes
checking whether the included std::string should be used... checking ...
(cached) no
checking whether the systems std::string is really good... (cached) no
checking for correct namespaces support... (cached) yes
checking for C headers wrappers... (cached) yes
checking whether C library functions are already in the global namespace...
(cached) no
checking for conforming std::count... (cached) yes
checking for ostream... (cached) no
checking for istream... (cached) no
checking for sstream... (cached) no
checking for locale... (cached) no
checking for modern STL streams... (cached) no
checking for regex.h... (cached) yes
checking for sin in -lm... (cached) yes
checking for fopen in -lc... (cached) yes
checking for extra library directory... (cached) NONE
checking for extra include directory... (cached) NONE
checking for extra lib+include directory... (cached) NONE
checking for main in -liberty... (cached) yes
checking whether the included libsigc++ should be used... yes
checking for pspell support... no
checking for ptsname in -lpt... (cached) no
checking for X... (cached) libraries /usr/openwin/lib, headers
/usr/openwin/include
checking whether -R must be followed by a space... no
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) no
checking for gethostbyname in -lnsl... (cached) yes
checking for connect... (cached) no
checking for connect in -lsocket... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking for XOpenIM... (cached) yes
checking for XpmCreateBufferFromImage in -lXpm... (cached) yes
checking for X11/xpm.h... (cached) yes
checking xpm header version... (cached) 4.11
checking for fl_initialize in -lforms... (cached) yes
checking for X11/forms.h... (cached) no
checking for forms.h... (cached) yes
checking xforms header version... (cached) 0.89.0
checking for working const... (cached) yes
checking for inline... (cached) inline
checking for ANSI C header files... (cached) yes
checking for off_t... (cached) yes
checking for size_t... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for argz.h... (cached) no
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking for nl_types.h... (cached) yes
checking for malloc.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getcwd... (cached) yes
checking for munmap... (cached) yes
checking for putenv... (cached) yes
checking for setenv... (cached) yes
checking for setlocale... (cached) yes
checking for strchr... (cached) yes
checking for strcasecmp... (cached) yes
checking for strdup... (cached) yes
checking for __argz_count... (cached) no
checking for __argz_stringify... (cached) no
checking for __argz_next... (cached) no
checking for LC_MESSAGES... (cached) yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for libintl.h... (cached) yes
checking for gettext in libc... (cached) yes
checking for msgfmt... (cached) /bin/msgfmt
checking for dcgettext... (cached) yes
checking for gmsgfmt... (cached) /bin/msgfmt
checking for xgettext... (cached) /bin/xgettext
found xgettext program is not GNU xgettext; ignore it
checking for catalogs to be installed... ca cs da de es eu fi fr he hu it
nl no pl pt ro ru sl sv tr wa
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking whether sys/types.h defines makedev... (cached) no
checking for sys/mkdev.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for strings.h... (cached) yes
checking for stl_string_fwd.h... (cached) no
checking whether stat file-mode macros are broken... (cached) no
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for st_blksize in struct stat... (cached) yes
checking for st_blocks in struct stat... (cached) yes
checking for st_rdev in struct stat... (cached) yes
checking for mode_t... (cached) yes
checking for off_t... (cached) yes
checking for pid_t... (cached) yes
checking return type of signal handlers... (cached) void
checking for size_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking for snprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking if snprintf is declared by header stdio.h... (cached) yes
checking if vsnprintf is declared by header stdio.h... (cached) yes
checking for memmove... (cached) yes
checking for memset... (cached) yes
checking for strchr... (cached) yes
checking for putenv... (cached) yes
checking for setenv... (cached) yes
checking for mkfifo... (cached) yes
checking for mkstemp... (cached) yes
checking for mktemp... (cached) yes
checking types of arguments for select()... (cached) int,fd_set *,struct
timeval *
checking type of argument for putenv()... (cached) char *
checking for strerror... (cached) yes
checking for atexit... (cached) yes
checking if mkstemp is declared by header unistd.h... (cached) no
checking if mkstemp is declared by header stdlib.h... (cached) yes
creating ./config.status
creating Makefile
creating development/lyx.spec
creating lib/Makefile
creating intl/Makefile
creating po/Makefile.in
creating boost/Makefile
creating src/Makefile
creating src/mathed/Makefile
creating src/graphics/Makefile
creating src/insets/Makefile
creating src/support/Makefile
creating src/frontends/Makefile
creating src/frontends/support/Makefile
creating src/frontends/xforms/Makefile
creating src/frontends/kde/Makefile
creating src/frontends/kde/moc/Makefile
creating src/frontends/kde/dlg/Makefile
creating src/frontends/kde/dlg/moc/Makefile
creating src/frontends/gnome/Makefile
creating src/config.h
src/config.h is unchanged
configuring in sigc++
running /bin/sh ./configure --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking for a BSD compatible install... ../config/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking host system type... sparc-sun-solaris2.7
checking build system type... sparc-sun-solaris2.7
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... (cached) no
checking for BSD-compatible nm... (cached) /usr/ccs/bin/nm -p
checking whether ln -s works... (cached) yes
loading cache .././config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... (cached) no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries...
yes
checking command to parse /usr/ccs/bin/nm -p output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/ccs/bin/ld option to reload object files... -r
checking dynamic linker characteristics... solaris2.7 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache .././config.cache
checking for gm4... (cached) m4
checking for c++... (cached) c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... yes
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking if linker supports global constructors... no
checking if C++ compiler uses std namespace ... yes
checking if C++ compiler supports bool (required)... yes
checking if C++ compiler supports const_cast<> (required)... yes
checking if C++ compiler supports member function templates... yes
checking if C++ compiler supports member class templates... yes
checking if C++ compiler supports mutable... yes
checking if C++ compiler supports partial specialization(required)... yes
checking if C++ compiler supports name spaces... yes
checking if C++ compiler supports friend template... yes
checking if C++ compiler has intrinsic constructors... yes
checking if C++ compiler uses template copy ctor... no
checking if C++ compiler allows void returns... yes
checking if C++ compiler allows specialization of references... yes
checking if C++ environment provides all required features... yes
checking how to run the C++ preprocessor... (cached) g++ -E
checking for pthread.h... (cached) yes
checking if should compile with pthreads... no
creating ./config.status
creating Makefile
creating sigc-config
creating macros/Makefile
creating sigc++config.h
sigc++config.h is unchanged
configuring in lib
running /bin/sh ./configure --cache-file=.././config.cache --srcdir=.
checking for a LaTeX2e program... (latex latex2e)
+checking for "latex"... not useable
+checking for "latex2e"... not useable
checking for the pdflatex program... (pdflatex)
+checking for "pdflatex"... not useable
checking for a LaTeX -> LyX converter... (reLyX)
+checking for "reLyX"... yes
checking for a Noweb -> LyX converter... (noweb2lyx)
+checking for "noweb2lyx"... no
checking for a Noweb -> LaTeX converter... (noweave)
+checking for "noweave"... no
checking for a HTML -> Latex converter... (html2latex)
+checking for "html2latex"... no
checking for a MSWord -> Latex converter... (wvCleanLatex word2x)
+checking for "wvCleanLatex"... no
+checking for "word2x"... no
checking for Image converter... (convert)
+checking for "convert"... no
checking for a Postscript interpreter... (gs)
+checking for "gs"... yes
checking for a Postscript previewer... (gv ghostview)
+checking for "gv"... yes
checking for a PDF preview... (acroread gv ghostview xpdf)
+checking for "acroread"... no
+checking for "gv"... yes
checking for a DVI previewer... (xdvi)
+checking for "xdvi"... no
checking for a HTML previewer... (netscape)
+checking for "netscape"... no
checking for a PS to PDF converter... (ps2pdf)
+checking for "ps2pdf"... yes
checking for a DVI to PS converter... (dvips)
+checking for "dvips"... no
checking for a *roff formatter... (groff nroff)
+checking for "groff"... yes
checking for ChkTeX... (chktex)
+checking for "chktex"... no
checking for a spell-checker... (ispell)
+checking for "ispell"... no
checking for a fax program... (ksendfax)
+checking for "ksendfax"... no
checking for SGML-tools 1.x (LinuxDoc)... (sgml2lyx)
+checking for "sgml2lyx"... no
checking for SGML-tools 2.x (DocBook) or db2x scripts... (sgmltools db2dvi)
+checking for "sgmltools"... no
+checking for "db2dvi"... no
checking for a spool command... (lp lpr)
+checking for "lp"... yes
checking for a LaTeX -> HTML converter... (tth latex2html hevea)
+checking for "tth"... no
+checking for "latex2html"... no
+checking for "hevea"... no
checking LaTeX configuration... default values
creating textclass.lst
creating packages.lst
creating doc/LaTeXConfig.lyx
creating lyxrc.defaults
configuring in lib/reLyX
running /bin/sh ./configure --cache-file=../.././config.cache --srcdir=.
loading cache ../.././config.cache
checking for a BSD compatible install... ../../config/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... missing
checking for prefix by checking for reLyX... no
checking for a BSD compatible install... ../../config/install-sh -c
checking for perl >= 5.002... /usr/local/bin/perl
creating ./config.status
creating Makefile
creating reLyX
creating noweb2lyx
Configuration:
Source code location: .
C++ Compiler: g++
C++ Compiler flags: -g -O2 -fno-rtti -fno-exceptions
C Compiler: gcc
C Compiler flags: -g -O2
LyX binary dir: /usr/local/bin
LyX files dir: /usr/local/share/lyx
Special flags: frontend-xforms included-libsigc
=== The following minor problems have been detected by configure.
=== Please check the messages below before running 'make'.
=== (see the section 'Problems' in the INSTALL file)
== LyX should work ok with version 0.89.0 of xforms, but
it is an unproven version and might still have some bugs. If you
have problems, please use version 0.88 instead.
Configuration of LyX was successful.
Type 'make' to compile the program,
and then 'make install' to install it.