! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Mousepad fails to compile on Cygwin
Status:
RESOLVED: WORKSFORME
Severity:
critical
Product:
Mousepad
Component:
General

Comments

Description John Doe 2008-04-27 02:01:19 CEST
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Build Identifier: 

I tried to compile Mousepad on Cygwin (WinXP, 32-bit).  There was a problem in the compile with regards to Mousepad not allowing the configure process to continue
because of an incorrect version of GCC.

I have attached the config.log to this post.

Reproducible: Always

Steps to Reproduce:
1. Install Cygwin on Windows (Any)
2. Download the source code for mousepad
3. Untar with tar -xvf *.tar.gz (or bzip2 -d *.bz2)
4. Try to chmod +x and chmod 777 as root
5. Install GCC, make, and autoconf on Cygwin
6. Run ./configure in the folder where the configure script is located

Actual Results:  
./configure
checking for a BSD-compatible install... /usr/bin/install -c
...
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See 'config.log' for more details.

Expected Results:  
It should have compiled so I could "make" and "make install"

CONFIG.LOG:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Mousepad configure 0.2.13, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = computer
uname -m = i686
uname -r = 1.5.25(0.156/4/2)
uname -s = CYGWIN_NT-5.1
uname -v = 2008-04-17 12:11

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /media/local/WINDOWS/system32
PATH: /media/local/WINDOWS
PATH: /media/local/WINDOWS/System32/Wbem


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2055: checking for a BSD-compatible install
configure:2111: result: /usr/bin/install -c
configure:2122: checking whether build environment is sane
configure:2165: result: yes
configure:2189: WARNING: `missing' script is too old or missing
configure:2193: checking for a thread-safe mkdir -p
configure:2232: result: /usr/bin/mkdir -p
configure:2245: checking for gawk
configure:2261: found /usr/bin/gawk
configure:2272: result: gawk
configure:2283: checking whether make sets $(MAKE)
configure:2304: result: yes
configure:2494: checking whether to enable maintainer-specific portions of Makefiles
configure:2503: result: no
configure:2566: checking for gcc
configure:2582: found /usr/bin/gcc
configure:2593: result: gcc
configure:2831: checking for C compiler version
configure:2838: gcc --version >&5
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2841: $? = 0
configure:2848: gcc -v >&5
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
configure:2851: $? = 0
configure:2858: gcc -V >&5
gcc: `-V' option must have argument
configure:2861: $? = 1
configure:2884: checking for C compiler default output file name
configure:2911: gcc    conftest.c  >&5
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/as.exe: /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/as.exe: cannot execute binary file
configure:2914: $? = 1
configure:2952: result: 
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Mousepad"
| #define PACKAGE_TARNAME "mousepad"
| #define PACKAGE_VERSION "0.2.13"
| #define PACKAGE_STRING "Mousepad 0.2.13"
| #define PACKAGE_BUGREPORT "erikharrison@gmail.com"
| #define PACKAGE "mousepad"
| #define VERSION "0.2.13"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2959: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='aclocal-1.10'
ALL_LINGUAS=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='tar'
AR=''
AUTOCONF='autoconf'
AUTOHEADER='autoheader'
AUTOMAKE='automake-1.10'
AWK='gawk'
CATALOGS=''
CATOBJEXT=''
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='cygpath -w'
DATADIRNAME=''
DEFS=''
DEPDIR=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
GETTEXT_PACKAGE=''
GMOFILES=''
GMSGFMT=''
GREP=''
GTK_CFLAGS=''
GTK_LIBS=''
GTK_REQUIRED_VERSION=''
GTK_VERSION=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INSTOBJEXT=''
INTLLIBS=''
INTLTOOL_CAVES_RULE=''
INTLTOOL_DESKTOP_RULE=''
INTLTOOL_DIRECTORY_RULE=''
INTLTOOL_EXTRACT=''
INTLTOOL_ICONV=''
INTLTOOL_KBD_RULE=''
INTLTOOL_KEYS_RULE=''
INTLTOOL_MERGE=''
INTLTOOL_MSGFMT=''
INTLTOOL_MSGMERGE=''
INTLTOOL_OAF_RULE=''
INTLTOOL_PERL=''
INTLTOOL_PONG_RULE=''
INTLTOOL_PROP_RULE=''
INTLTOOL_SCHEMAS_RULE=''
INTLTOOL_SERVER_RULE=''
INTLTOOL_SERVICE_RULE=''
INTLTOOL_SHEET_RULE=''
INTLTOOL_SOUNDLIST_RULE=''
INTLTOOL_THEME_RULE=''
INTLTOOL_UI_RULE=''
INTLTOOL_UPDATE=''
INTLTOOL_XAM_RULE=''
INTLTOOL_XGETTEXT=''
INTLTOOL_XML_NOMERGE_RULE=''
INTLTOOL_XML_RULE=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIBXFCEGUI4_CFLAGS=''
LIBXFCEGUI4_LIBS=''
LIBXFCEGUI4_REQUIRED_VERSION=''
LIBXFCEGUI4_VERSION=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='makeinfo'
MKINSTALLDIRS=''
MSGFMT=''
MSGFMT_OPTS=''
OBJEXT=''
PACKAGE='mousepad'
PACKAGE_BUGREPORT='erikharrison@gmail.com'
PACKAGE_NAME='Mousepad'
PACKAGE_STRING='Mousepad 0.2.13'
PACKAGE_TARNAME='mousepad'
PACKAGE_VERSION='0.2.13'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PLATFORM_CFLAGS=''
PLATFORM_CPPFLAGS=''
PLATFORM_LDFLAGS=''
POFILES=''
POSUB=''
PO_IN_DATADIR_FALSE=''
PO_IN_DATADIR_TRUE=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_NLS=''
VERSION='0.2.13'
XGETTEXT=''
XGETTEXT_ARGS=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_F77=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /media/local/Documents and Settings/Admin/Desktop/mousepad-0.2.13/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/usr/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "Mousepad"
#define PACKAGE_TARNAME "mousepad"
#define PACKAGE_VERSION "0.2.13"
#define PACKAGE_STRING "Mousepad 0.2.13"
#define PACKAGE_BUGREPORT "erikharrison@gmail.com"
#define PACKAGE "mousepad"
#define VERSION "0.2.13"

configure: exit 77
Comment 1 Andre Miranda editbugs 2013-10-14 04:37:35 CEST
I wasn't able to compile it under Cygwin(not even xfce4-dev-tools), please check if the error still happens as GCC has changed a lot since and so does mousepad.
Comment 2 Matthew Brush editbugs 2013-10-26 05:47:45 CEST
@André you were _not_ able to compile using more recent Cygwin GCC?
Comment 3 Andre Miranda editbugs 2013-10-27 02:38:17 CET
(In reply to Matthew Brush from comment #2)
> @André you were _not_ able to compile using more recent Cygwin GCC?

Yeah, I'm not used to Cygwin, MinGW is my preferred compiler for Windows.
I just tried to compile but I couldn't :(
Comment 4 Andre Miranda editbugs 2013-11-05 04:31:06 CET
Ok, I took some time and compiled Mousepad on Cygwin. The program runs, but crashes when trying to save or print a file and syntax highlighting is not working.
I didn't try(dare) to compile D-Bus.

These are the steps I made:

I have installed Cygwin 32-bit and packages like: gcc, autotools, gtk, glib, xorg and xinit.

git clone "xfce4-dev-tools"
dos2unix autogen.sh && ./autogen.sh && make && make install

download gtksourceview.2.11.2
./configure
sed -i 's/G_CONST_RETURN/const/g' gtksourceview/*
sed -i 's/G_UNICODE_COMBINING_MARK/G_UNICODE_SPACING_MARK/g' gtksourceview/gtksourceiter.c
make && make install
cp gtksourceview-2.0.pc /usr/share/pkgconfig/

git clone "mousepad"
dos2unix autogen.sh && ./autogen.sh
cd mousepad
glib-genmarshal --header mousepad-marshal.list > mousepad-marshal.h
glib-genmarshal --body mousepad-marshal.list > mousepad-marshal.c
sed -i 's/g_cclosure_user_/_mousepad_/g' mousepad-marshal.h
sed -i 's/g_cclosure_user_/_mousepad_/g' mousepad-marshal.c
xdt-csource --strip-comments --strip-content --static --name=mousepad_window_ui mousepad-window-ui.xml > mousepad-window-ui.h
cd ..
make
(startxwin)
mousepad/mousepad
Comment 5 Andre Miranda editbugs 2016-01-24 02:57:00 CET
Fast foward 2016.
Here is another try on Windows 7 64-bits(same system, same machine, what a shame).
There is already a cygwin package for mousepad 0.3.0.
Anyway, here are instructions to build from git. 

- Install Cygwin 64-bits(install only the base)
- Open a cygwin terminal
- Run the following commands:
cd /usr/local/bin/
lynx -source raw.github.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
chmod +x apt-cyg
cd ~
apt-cyg install wget
apt-cyg install xfce4-dev-tools make automake gcc-core libisl10 cloog-isl pkg-config \
libgtksourceview3.0-devel xorg-server xinit
git clone git://git.xfce.org/apps/mousepad
cd mousepad
./autogen.sh
cd mousepad
glib-genmarshal --header mousepad-marshal.list > mousepad-marshal.h
glib-genmarshal --body mousepad-marshal.list > mousepad-marshal.c
sed -i 's/g_cclosure_user_/_mousepad_/g' mousepad-marshal.h
sed -i 's/g_cclosure_user_/_mousepad_/g' mousepad-marshal.c
xdt-csource --strip-comments --strip-content --static --name=mousepad_window_ui mousepad-window-ui.xml > mousepad-window-ui.h
xdt-csource --strip-comments --strip-content --static --name=mousepad_prefs_dialog_ui mousepad-prefs-dialog.glade > mousepad-prefs-dialog-ui.h
cd ..
make && make install
startxwin &
mousepad

You can also build using libgtksourceview2.0-devel and passing --disable-gtk3 to autogen.sh.

Bug #4039

Reported by:
John Doe
Reported on: 2008-04-27
Last modified on: 2016-01-24

People

Assignee:
Matthew Brush
CC List:
3 users

Version

Version:
Unspecified
Target Milestone:
Mousepad 0.2.x

Attachments

Additional information