• Viernes 8 de Noviembre de 2024, 09:48

Mostrar Mensajes

Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.


Mensajes - paranoiamaria

Páginas: [1]
1
C/C++ / Problema al ejecutar ./configure
« en: Martes 29 de Septiembre de 2009, 16:49 »
Hola!

Estoy intentando compilar una aplicación, que ya ha sido compilada en otro ordenador, pero que al migrarla me está dando problemas al ejecutar el ./configure.

1. Ejecuto el ./configure

$ cd "/usr/local/cabecera_maria/aplicacion/cab" && LDFLAGS="-L/home/maria/LinuxSDK_jun08.zip_FILES/LinuxSDK/DTAPI/ -lDTAPI -lpthread" CPPFLAGS="-I/home/maria/LinuxSDK_jun08.zip_FILES/LinuxSDK/DTAPI/Include -v  Dunix -Dlinux" CXXFLAGS="-O0 -g3" "/usr/local/cabecera_maria/aplicacion/configure" --enable-debug=full

2. Obtengo la siguiente salida:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
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.

3. El contienido del fichero config.log (el que contiene los detalles) es el siguiente:

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

  $ /usr/local/cabecera_maria/aplicacion/configure --enable-debug=full

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

hostname = pc059
uname -m = i686
uname -r = 2.6.18-6-686
uname -s = Linux
uname -v = #1 SMP Sat May 24 10:24:42 UTC 2008

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

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

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/bin/X11


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

configure:1561: checking build system type
configure:1579: result: i686-pc-linux-gnu
configure:1587: checking host system type
configure:1601: result: i686-pc-linux-gnu
configure:1609: checking target system type
configure:1623: result: i686-pc-linux-gnu
configure:1670: checking for a BSD-compatible install
configure:1725: result: /usr/bin/install -c
configure:1740: checking for -p flag to install
configure:1753: result: yes
configure:1764: checking whether build environment is sane
configure:1807: result: yes
configure:1827: checking for gawk
configure:1856: result: no
configure:1827: checking for mawk
configure:1843: found /usr/bin/mawk
configure:1853: result: mawk
configure:1863: checking whether make sets $(MAKE)
configure:1883: result: yes
configure:2089: checking for style of include used by make
configure:2117: result: GNU
configure:2264: checking for gcc
configure:2280: found /usr/bin/gcc
configure:2290: result: gcc
configure:2534: checking for C compiler version
configure:2537: gcc --version </dev/null >&5
gcc (Debian 4.3.2-1.1) 4.3.2
Copyright (C) 2008 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:2540: $? = 0
configure:2542: gcc -v </dev/null >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-cld --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)
configure:2545: $? = 0
configure:2547: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2550: $? = 1
configure:2573: checking for C compiler default output file name
configure:2576: gcc   -I/home/maria/LinuxSDK_jun08.zip_FILES/LinuxSDK/DTAPI/Include -v  Dunix -Dlinux -L/home/maria/LinuxSDK_jun08.zip_FILES/LinuxSDK/DTAPI/ -lDTAPI -lpthread conftest.c  >&5
gcc: Dunix: No such file or directory
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-cld --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)
COLLECT_GCC_OPTIONS='-I/home/maria/LinuxSDK_jun08.zip_FILES/LinuxSDK/DTAPI/Include' '-v' '-Dlinux' '-L/home/maria/LinuxSDK_jun08.zip_FILES/LinuxSDK/DTAPI/' '-mtune=generic'
 /usr/lib/gcc/i486-linux-gnu/4.3.2/cc1 -quiet -v -I/home/maria/LinuxSDK_jun08.zip_FILES/LinuxSDK/DTAPI/Include -Dlinux conftest.c -quiet -dumpbase conftest.c -mtune=generic -auxbase conftest -version -o /tmp/ccv39sAU.s
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/i486-linux-gnu/4.3.2/../../../../i486-linux-gnu/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /home/maria/LinuxSDK_jun08.zip_FILES/LinuxSDK/DTAPI/Include
 /usr/local/include
 /usr/lib/gcc/i486-linux-gnu/4.3.2/include
 /usr/lib/gcc/i486-linux-gnu/4.3.2/include-fixed
 /usr/include
End of search list.
GNU C (Debian 4.3.2-1.1) version 4.3.2 (i486-linux-gnu)
    compiled by GNU C version 4.3.2, GMP version 4.2.2, MPFR version 2.3.2.
warning: GMP header version 4.2.2 differs from library version 4.2.1.
warning: MPFR header version 2.3.2 differs from library version 2.3.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: c4cd35f2318868df36b839e33a8e2089
COLLECT_GCC_OPTIONS='-I/home/maria/LinuxSDK_jun08.zip_FILES/LinuxSDK/DTAPI/Include' '-v' '-Dlinux' '-L/home/maria/LinuxSDK_jun08.zip_FILES/LinuxSDK/DTAPI/' '-mtune=generic'
 as -V -Qy -o /tmp/cckKd9DD.o /tmp/ccv39sAU.s
GNU assembler version 2.18.0 (i486-linux-gnu) using BFD version (GNU Binutils for Debian) 2.18.0.20080103
configure:2579: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "cabecera_gatv_v01"
| #define VERSION "0.1"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2618: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
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=set
ac_cv_env_CPPFLAGS_value='-I/home/maria/LinuxSDK_jun08.zip_FILES/LinuxSDK/DTAPI/Include -v  Dunix -Dlinux'
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=set
ac_cv_env_CXXFLAGS_value='-O0 -g3'
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=set
ac_cv_env_LDFLAGS_value='-L/home/maria/LinuxSDK_jun08.zip_FILES/LinuxSDK/DTAPI/ -lDTAPI -lpthread'
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-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=mawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu

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

ACLOCAL='${SHELL} /usr/local/cabecera_maria/aplicacion/admin/missing --run aclocal-1.6'
AMDEPBACKSLASH=''
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /usr/local/cabecera_maria/aplicacion/admin/missing --run tar'
AR=''
ARTSCCONFIG=''
AUTOCONF='${SHELL} /usr/local/cabecera_maria/aplicacion/admin/missing --run autoconf'
AUTODIRS=''
AUTOHEADER='${SHELL} /usr/local/cabecera_maria/aplicacion/admin/missing --run autoheader'
AUTOMAKE='${SHELL} /usr/local/cabecera_maria/aplicacion/admin/missing --run automake-1.6'
AWK='mawk'
CC='gcc'
CCDEPMODE=''
CFLAGS=' '
CONF_FILES=' $(top_srcdir)/./admin/configure.in.min $(top_srcdir)/configure.in.in'
CPP=''
CPPFLAGS='-I/home/maria/LinuxSDK_jun08.zip_FILES/LinuxSDK/DTAPI/Include -v  Dunix -Dlinux'
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-O0 -g3'
DCOPIDL2CPP=''
DCOPIDL=''
DCOPIDLNG=''
DCOP_DEPENDENCIES=''
DEFS=''
DEPDIR='.deps'
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
FRAMEWORK_COREAUDIO=''
GMSGFMT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
KCFG_DEPENDENCIES=''
KCONFIG_COMPILER=''
KDECONFIG=''
KDE_EXTRA_RPATH=''
KDE_INCLUDES=''
KDE_LDFLAGS=''
KDE_MT_LDFLAGS=''
KDE_MT_LIBS=''
KDE_NO_UNDEFINED=''
KDE_PLUGIN=''
KDE_RPATH=''
KDE_USE_CLOSURE_FALSE=''
KDE_USE_CLOSURE_TRUE=''
KDE_USE_FINAL_FALSE=''
KDE_USE_FINAL_TRUE=''
KDE_USE_NMCHECK_FALSE=''
KDE_USE_NMCHECK_TRUE=''
KDE_XSL_STYLESHEET=''
LDFLAGS='-L/home/maria/LinuxSDK_jun08.zip_FILES/LinuxSDK/DTAPI/ -lDTAPI -lpthread'
LIBCOMPAT=''
LIBCRYPT=''
LIBDL=''
LIBJPEG=''
LIBOBJS=''
LIBPNG=''
LIBPTHREAD=''
LIBRESOLV=''
LIBS=''
LIBSM=''
LIBSOCKET=''
LIBTOOL=''
LIBUCB=''
LIBUTIL=''
LIBZ=''
LIB_KAB=''
LIB_KABC=''
LIB_KDECORE=''
LIB_KDEPIM=''
LIB_KDEPRINT=''
LIB_KDEUI=''
LIB_KFILE=''
LIB_KFM=''
LIB_KHTML=''
LIB_KIO=''
LIB_KPARTS=''
LIB_KSPELL=''
LIB_KSYCOCA=''
LIB_KUTILS=''
LIB_POLL=''
LIB_QPE=''
LIB_QT=''
LIB_SMB=''
LIB_X11=''
LIB_XEXT=''
LIB_XRENDER=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /usr/local/cabecera_maria/aplicacion/admin/missing --run makeinfo'
MCOPIDL=''
MEINPROC=''
MOC=''
MSGFMT=''
NOOPT_CFLAGS=''
NOOPT_CXXFLAGS=''
OBJEXT=''
PACKAGE='cabecera_gatv_v01'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PERL=''
QTE_NORTTI=''
QT_INCLUDES=''
QT_LDFLAGS=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
TOPSUBDIRS=''
UIC=''
UIC_TR=''
USER_INCLUDES=''
USER_LDFLAGS=''
USE_EXCEPTIONS=''
USE_RTTI=''
USE_THREADS=''
VERSION='0.1'
WOVERLOADED_VIRTUAL=''
XGETTEXT=''
XMLLINT=''
X_EXTRA_LIBS=''
X_INCLUDES=''
X_LDFLAGS=''
X_PRE_LIBS=''
X_RPATH=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
all_includes=''
all_libraries=''
am__include='include'
am__quote=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
include_ARTS_FALSE=''
include_ARTS_TRUE=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/usr/local/cabecera_maria/aplicacion/admin/install-sh'
kde_appsdir=''
kde_bindir=''
kde_confdir=''
kde_datadir=''
kde_htmldir=''
kde_icondir=''
kde_includes=''
kde_kcfgdir=''
kde_libraries=''
kde_libs_htmldir=''
kde_libs_prefix=''
kde_locale=''
kde_mimedir=''
kde_moduledir=''
kde_qtver=''
kde_servicesdir=''
kde_servicetypesdir=''
kde_sounddir=''
kde_styledir=''
kde_templatesdir=''
kde_wallpaperdir=''
kde_widgetdir=''
kdeinitdir=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/local/kde'
program_transform_name='s,x,x,'
qt_includes=''
qt_libraries=''
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu

C='i686'
target_os='linux-gnu'
target_vendor='pc'
x_includes='NONE'
x_libraries='NONE'
xdg_appsdir=''
xdg_directorydir=''
xdg_menudir=''

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

#define PACKAGE "cabecera_gatv_v01"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "0.1"

configure: exit 77

*******************************************************************************************************

He probado cambiando el compilador gcc a la versión 4.1.3 ya que por lo que sé a partir de la versión 4.2 hay una serie de cambios que causan
bastantes problemas, y la versión del gcc de la cabecera original era 4.0.2 creo, pero me sigue dando el mismo error.

El ordenador en el que lo estoy intentando instalar tiene la siguiente cpuinfo, y el sistema operativo es Debian:
processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 75
model name      : AMD Athlon(tm) 64 X2 Dual Core Processor 3600+
stepping        : 2
cpu MHz         : 2004.244
cache size      : 256 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm stc
bogomips        : 4008.42


Si me podeis ayudar estaría muy agradecida ya que estoy bastante perdida....

Muchas gracias de antemano,

María

2
C/C++ / Re: Cabecera en ficheros .h y .cpp
« en: Jueves 24 de Julio de 2008, 11:34 »
Muchas gracias por la respuesta, ha sido de gran utilidad.

Un Saludo

3
C/C++ / Cabecera en ficheros .h y .cpp
« en: Miércoles 23 de Julio de 2008, 16:46 »
Hola,

Tengo que programar una aplicación y el diseño incluye clases. Tengo una duda, que no he conseguido aclarar buscando por la web,  no sé la diferencia entre insertar las cabeceras #include<> en el fichero .h o en el .cpp de una clase. Tanto si los incluyo en el .h como en el .cpp compila, pero me gustaría saber la diferencia y qué es más eficiente.
Otra cosilla, ¿es obligatorio insertar en el fichero miClase.cpp la directiva #include <miClase.h>?

Muchas gracias por adelantado

Páginas: [1]