VOGONS


First post, by Flint Eastwood

User metadata
Rank Newbie
Rank
Newbie

I was able to compile SDL_net with an older MinGW-Msys environment nearly one year ago.

Now I decided to install the latest MinGW-Msys environment and run directly into a problem with SDL_net:

$ ./configure
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler
cannot create executables
See `config.log' for more details.

I'm a beginner in building Dosbox, I don't know what to do now. Can somebody help me?
SDL library 1.2.14 compiled without problems.

This is the 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 configure, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure

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

hostname = Stefan-PC
uname -m = i686
uname -r = 1.0.17(0.48/3/2)
uname -s = MINGW32_NT-6.1
uname -v = 2011-04-24 23:39

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

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

PATH: .
PATH: /usr/local/bin
PATH: /mingw/bin
PATH: /bin
PATH: /c/Program Files (x86)/NVIDIA Corporation/PhysX/Common
PATH: /c/Program Files/Common Files/Microsoft Shared/Windows Live
PATH: /c/Windows/system32
PATH: /c/Windows
PATH: /c/Windows/System32/Wbem
PATH: /c/Windows/System32/WindowsPowerShell/v1.0/
PATH: /c/Program Files (x86)/Autodesk/Backburner/
PATH: /c/Program Files/Common Files/Autodesk Shared/
PATH: /c/Program Files (x86)/Common Files/Acronis/SnapAPI/
PATH: /c/Program Files/XviD MPEG-4 Video Codec 1.2.2 64-BIT
PATH: /c/Program Files (x86)/NVIDIA Corporation/DDS Utilities
PATH: /c/Program Files/Common Files/Microsoft Shared/Windows Live
PATH: /c/Program Files (x86)/FraunhoferIIS/MP3SurroundEncoder


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

configure:1567: checking build system type
configure:1585: result: i686-pc-mingw32
configure:1593: checking host system type
configure:1607: result: i686-pc-mingw32
configure:1630: checking for a BSD-compatible install
configure:1685: result: /bin/install -c
configure:1696: checking whether build environment is sane
configure:1739: result: yes
Show last 237 lines
configure:1804: checking for gawk
configure:1820: found /bin/gawk
configure:1830: result: gawk
configure:1840: checking whether make sets $(MAKE)
configure:1860: result: yes
configure:2116: checking for style of include used by make
configure:2144: result: GNU
configure:2215: checking for gcc
configure:2231: found /mingw/bin/gcc
configure:2241: result: gcc
configure:2485: checking for C compiler version
configure:2488: gcc --version </dev/null >&5
gcc.exe (GCC) 4.6.2
Copyright (C) 2011 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:2491: $? = 0
configure:2493: gcc -v </dev/null >&5
Using built-in specs.
COLLECT_GCC=C:\MinGWenv\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingwenv/bin/../libexec/gcc/mingw32/4.6.2/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.6.2/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.6.2 (GCC)
configure:2496: $? = 0
configure:2498: gcc -V </dev/null >&5
gcc.exe: error: unrecognized option '-V'
gcc.exe: fatal error: no input files
compilation terminated.
configure:2501: $? = 1
configure:2524: checking for C compiler default output file name
configure:2527: gcc -pipe -02 -mms-bitfields -march=i686 conftest.c >&5
gcc.exe: error: unrecognized option '-02'
configure:2530: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "SDL_net"
| #define VERSION "1.2.7"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2569: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i686-pc-mingw32
ac_cv_build_alias=i686-pc-mingw32
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-pipe -02 -mms-bitfields -march=i686'
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_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_host=i686-pc-mingw32
ac_cv_host_alias=i686-pc-mingw32
ac_cv_path_install='/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /home/Stefan/s_sdlnet127/missing --run aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/Stefan/s_sdlnet127/missing --run tar'
AR=''
AS=''
AUTOCONF='${SHELL} /home/Stefan/s_sdlnet127/missing --run autoconf'
AUTOHEADER='${SHELL} /home/Stefan/s_sdlnet127/missing --run autoheader'
AUTOMAKE='${SHELL} /home/Stefan/s_sdlnet127/missing --run automake-1.9'
AWK='gawk'
BINARY_AGE='7'
CC='gcc'
CCDEPMODE=''
CFLAGS='-pipe -02 -mms-bitfields -march=i686'
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
HAVE_GUI_LIB_FALSE=''
HAVE_GUI_LIB_TRUE=''
INETLIB=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
INTERFACE_AGE='7'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
LT_AGE='0'
LT_CURRENT='0'
LT_RELEASE='1.2'
LT_REVISION='7'
MAJOR_VERSION='1'
MAKEINFO='${SHELL} /home/Stefan/s_sdlnet127/missing --run makeinfo'
MICRO_VERSION='7'
MINOR_VERSION='2'
OBJDUMP=''
OBJEXT=''
PACKAGE='SDL_net'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SDL_CFLAGS=''
SDL_CONFIG=''
SDL_LIBS=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_VERSION_RC_FALSE=''
USE_VERSION_RC_TRUE=''
VERSION='1.2.7'
WINDRES=''
ac_ct_AR=''
ac_ct_AS=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_DLLTOOL=''
ac_ct_F77=''
ac_ct_OBJDUMP=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-mingw32'
build_alias=''
build_cpu='i686'
build_os='mingw32'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-mingw32'
host_alias=''
host_cpu='i686'
host_os='mingw32'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/Stefan/s_sdlnet127/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

#define PACKAGE "SDL_net"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "1.2.7"

configure: exit 77
Last edited by Flint Eastwood on 2012-01-02, 20:09. Edited 1 time in total.

i7 870 + Zotac 470GTX AMP! + 12GB RAM + Win7 64Bit

Reply 1 of 13, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Ask in the SDL development forum http://forums.libsdl.org/viewforum.php?f=1&si … a677d285948b800

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 2 of 13, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

You might need to run ./autogen.sh first OR use development branch of SDL_net.
Maybe you don't even need SDL_net depending on your gaming needs

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 3 of 13, by Yushatak

User metadata
Rank Member
Rank
Member

If all you want to do is compile DOSBox you don't need to build SDL - install this:

http://www.libsdl.org/release/SDL-devel-1.2.1 … -mingw32.tar.gz

Extract it to a folder, go into the folder (in MSYS, that is) and run "make native".

Alternatively I think you can just slap an SDL.dll in the folder with the code, iirc I used to do that - IIRC if you build it yourself this needs to be done, but I'm not sure if that's the right way to do it.

Reply 4 of 13, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

@yushatak, the op wrote SDL compiled fine. SDL_net is the problem.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 7 of 13, by Flint Eastwood

User metadata
Rank Newbie
Rank
Newbie

Hi gulikoza.
It is "Zero-two".

I doubt its a problem of the newer gcc-compiler. Has been the older gcc a special MinGW-Version? :

C:\MinGWenv_alt\MinGW\bin>gcc --version
gcc (GCC) 3.4.5 (mingw-vista special r3)
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.
$ gcc --version
gcc.exe (GCC) 4.6.2
Copyright (C) 2011 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.

i7 870 + Zotac 470GTX AMP! + 12GB RAM + Win7 64Bit

Reply 8 of 13, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

it should be o not 0, as in Optimization.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 10 of 13, by Flint Eastwood

User metadata
Rank Newbie
Rank
Newbie

How are those params generated?
I digged out the old config.log from my old MinGW-env. and there are the params missing (but it compiled without problems):

configure:2527: gcc    conftest.c  >&5
configure:2488: gcc --version </dev/null >&5
gcc.exe (GCC) 3.4.5 (mingw-vista special r3)
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:2491: $? = 0
configure:2493: gcc -v </dev/null >&5
Reading specs from c:/mingwenv/mingw/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw-vista special r3)
configure:2496: $? = 0
configure:2498: gcc -V </dev/null >&5
gcc.exe: `-V' option must have argument
configure:2501: $? = 1
configure:2524: checking for C compiler default output file name
configure:2527: gcc conftest.c >&5
configure:2530: $? = 0
configure:2576: result: a.exe

i7 870 + Zotac 470GTX AMP! + 12GB RAM + Win7 64Bit

Reply 11 of 13, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

How are those params generated?

env vars, configure params, can be anything.

As Dominus already noted this is completely unrelated to dosbox so please use the respective sdl forums.

Reply 12 of 13, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

And please read my other posts too...

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 13 of 13, by Flint Eastwood

User metadata
Rank Newbie
Rank
Newbie

I found the problem 😁 . I did a type-mistake when setting up the environment.
For a beginner its really hard to get an overview.
Sorry for wasting your time. 😢

i7 870 + Zotac 470GTX AMP! + 12GB RAM + Win7 64Bit