PDA

View Full Version : Need Help, config program....



Adeon
11-10-2002, 12:01 AM
Hi This is my second message, same problem, hopeing someone can help me resolve this. Ill donate $20US to the SEQ developers on behalf of the user who can help me get SEQ working again.

Error message : C++ compiler cannot create executables

Im pretty new to Linux and SEQ. A freind helped me get the previous version running fine (Prior to PoP), using the GCC 2.9.2 Compiler. (I know the docs say 3+ I have upgraded since then)

First got the updates working to show the unknown spawns and such. (Still using 2.9.2)..

Updated to the new Libeq.a and got the decode.cpp errors. Read up about the compiler not supporting 64bit encryption so bit the bullet and upgraded.

When i tried to compile I got this error : C++ compiler cannot create executables

My gcc and g++ -dumpversion both say 3.2

I ran through the FAQ again and downloaded everythign and started from scratch.

Still same error.

I checked the boards and searched for posts in the last 3 months, found no solutions that applied..

I am on Platform : Slackware Linux 8.1

Heres my config.log

Any help would be appreciated.

--- CONFIG.LOG ----

name -m = i686
uname -r = 2.4.18
uname -s = Linux
uname -v = #4 Fri May 31 01:25:31 PDT 2002

/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/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/www/htdig/bin
PATH: /opt/kde/bin
PATH: /usr/lib/qt-3.0.4/bin
PATH: /usr/share/texmf/bin


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

configure:1441: checking build system type
configure:1459: result: i686-pc-linux-gnu
configure:1467: checking host system type
configure:1481: result: i686-pc-linux-gnu
configure:1489: checking target system type
configure:1503: result: i686-pc-linux-gnu
configure:1534: checking for a BSD-compatible install
configure:1588: result: /usr/bin/ginstall -c
configure:1599: checking whether build environment is sane
configure:1642: result: yes
configure:1668: WARNING: `missing' script is too old or missing
configure:1676: checking for gawk
configure:1692: found /usr/bin/gawk
configure:1702: result: gawk
configure:1712: checking whether make sets ${MAKE}
configure:1732: result: yes
configure:1834: checking whether to enable maintainer-specific portions of Makefiles
configure:1843: result: no
configure:1865: checking for gcc
configure:1881: found /usr/bin/gcc
configure:1891: result: gcc
configure:1905: checking for g++
configure:1921: found /usr/bin/g++
configure:1931: result: g++
configure:1964: checking for supported compiler version
configure:1981: checking for style of include used by make
configure:2009: result: GNU
configure:2107: checking for C++ compiler version
configure:2110: g++ --version </dev/null >&5
g++ (GCC) 3.2
Copyright (C) 2002 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:2113: $? = 0
configure:2115: g++ -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/3.2/specs
Configured with: ../gcc-3.2/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i386-slackware-linux --host=i386-slackware-linux
Thread model: posix
gcc version 3.2
configure:2118: $? = 0
configure:2120: g++ -V </dev/null >&5
g++: argument to `-V' missing

configure:2123: $? = 1
configure:2149: checking for C++ compiler default output
configure:2152: g++ conftest.cc >&5
/usr/lib/gcc-lib/i386-slackware-linux/3.2/../../../libstdc++.so: undefined reference to `__ctype_b_loc@GLIBC_2.3'
/usr/lib/gcc-lib/i386-slackware-linux/3.2/../../../libstdc++.so: undefined reference to `__strftime_l@GLIBC_2.3'
/usr/lib/gcc-lib/i386-slackware-linux/3.2/../../../libstdc++.so: undefined reference to `__ctype_toupper_loc@GLIBC_2.3'
/usr/lib/gcc-lib/i386-slackware-linux/3.2/../../../libstdc++.so: undefined reference to `__wcsftime_l@GLIBC_2.3'
/usr/lib/gcc-lib/i386-slackware-linux/3.2/../../../libstdc++.so: undefined reference to `__ctype_tolower_loc@GLIBC_2.3'
/usr/lib/gcc-lib/i386-slackware-linux/3.2/../../../libstdc++.so: undefined reference to `__uselocale@GLIBC_2.3'
collect2: ld returned 1 exit status
configure:2155: $? = 1
configure: failed program was:
#line 2126 "configure"
#include "confdefs.h"

#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

;
return 0;
}
configure:2182: error: C++ compiler cannot create executables

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
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=set
ac_cv_env_CXX_value=g++
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-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_path_install='/usr/bin/ginstall -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CCd=gcc
ac_cv_prog_CXXd=g++
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu
lt_cv_sys_path_separator=:

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

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "showeq"
#define VERSION "4.3.1"

configure: exit 77

-- EOF --

nok
11-10-2002, 01:21 AM
I too am a linux retard that was using slack 8.1. I got 9.0beta. works great. nothing to update, showeq compiles right out of the box.

Mr. Suspicious
11-10-2002, 06:38 AM
(I know the docs say 3+ I have upgraded since then)

/usr/lib/gcc-lib/i386-slackware-linux/3.2/../../../libstdc++.so: undefined reference to `__ctype_b_loc@GLIBC_2.3'

Error message : C++ compiler cannot create executables


Has been mentioned quite a lot of times before, do a search on the words: "libstdc++.so", "libstdc" or "undefined reference to".

Most likely you:

- don't have all required packages installed OR
- you did not compile with your new gcc version OR
- you did not export the GCC and/or GXX enviromentals correctly.

Please repost with more info's:


examples:
- what packages did you all have installed
- did you compile any packages you had to compile with your new C compiler?
- what guide are you following to install (provide URL to it if possible, most non official guides are out of date)
- what steps are you doing different then mentioned in that guide
- are you doing install as root?
- are you doing install in a xterm window or in the default linux shell?
- did you install qt? if so, how?
- did you export the environemental variables? if so, how, with what commands?
- which commands and in what order did youdo the makes and ./configure?
- what were the error messages and at exactly what step of the process do they happen?

Adeon
11-10-2002, 09:59 AM
-what packages did you all have installed
Just installed GCC3.2 and G++ 3.2 from Binaries using PKGTOOL.


- did you compile any packages you had to compile with your new C compiler?
a.No downloaded binaries..

- what guide are you following to install (provide URL to it if possible, most non official guides are out of date)
a.Using the FAQ form the main Page (READ THIS FIRST)
http://www.macsrule.com/~seqfaq/seq-faq.html#2.6

- what steps are you doing different then mentioned in that guide
a.None following exactly

- are you doing install as root?
a.Yes

- are you doing install in a xterm window or in the default linux shell?
a. Terminal in XWindows.. As Root user

- did you install qt? if so, how?
a. Didnt install it.. Using version installed with Slackware 8.1
/usr/lib/qt-3.0.4


- did you export the environemental variables? if so, how, with what commands?
a. Dont think so.. Unless specified in FAQ.

- which commands and in what order did youdo the makes and ./configure?
a. As per the FAQ form Forum main page (Read this)

- what were the error messages and at exactly what step of the process do they happen?
a.Error : C++ compiler cannot create executables
After I type
# CC=gcc CXX=g++ QTDIR=/usr/lib/qt ./configure
aslo tried just..
# ./configure && make
same error..

Mr. Suspicious
11-10-2002, 10:35 AM
- what guide are you following to install (provide URL to it if possible, most non official guides are out of date)
a.Using the FAQ form the main Page (READ THIS FIRST)
http://www.macsrule.com/~seqfaq/seq-faq.html#2.6

- did you export the environemental variables? if so, how, with what commands?
a. Dont think so.. Unless specified in FAQ.


This could be your error, read section 1.4 and 1.5 of the INSTALL.newbies file found in your showeq directory for more details (that file is also viewable via the "Browse CVS repository" at: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/seq/showeq/INSTALL.newbies?rev=1.3&content-type=text/vnd.viewcvs-markup )

baelang
11-10-2002, 01:49 PM
also, the qt version you installed probably wasn't made with the thread options. you might want to get the source and compile it yourself using gcc3.

Adeon
11-10-2002, 05:40 PM
Hi Mr Suspicious..

Ran through the INSTALL.newbies and put in the Export commands..

#export CC=gcc
#export CXX=g++
#export QTDIR=/usr/lib/qt-3.0.4

Also tried

#export CC=gcc-3.2
#export CXX=g++-gcc-3.2
#export QTDIR=/usr/lib/qt-3.0.4

still same error..

Also added /usr/lib/qt-3.0.4 to ldconfig

I also tried copying my old libstdc++.co into my /gcc-lib/../../3.2 directory

This gave me the Error : Need GCC 3.0 or higher to compile. Copied my newer version (That installed with GCC 3.2) and again gave me the original error.

So it seems to be picking up the new libstdc++.co ok..

:confused:

So maybe its QT related..

Is there anyway to check to see if my QT has been compiled using -thread option ?

QT was working fine previous to update..

baelang
11-10-2002, 07:00 PM
Originally posted by Adeon

#export CC=gcc
#export CXX=g++
#export QTDIR=/usr/lib/qt-3.0.4

Also tried

#export CC=gcc-3.2
#export CXX=g++-gcc-3.2
#export QTDIR=/usr/lib/qt-3.0.4

still same error..



As per the INSTALL.newbies, try this:

export CC=gcc3
export CXX=g++3

Mr. Suspicious
11-10-2002, 07:06 PM
I also tried copying my old libstdc++.co into my /gcc-lib/../../3.2 directory

That's not particularry smart.

You didn't overlook the 1.4 Editting linux-g++-shared part?

baelang
11-10-2002, 07:12 PM
Originally posted by Mr. Suspicious


That's not particularry smart.

You didn't overlook the 1.4 Editting linux-g++-shared part?

that is just for the compile of QT, which he isn't doing.

he is using the pre-packaged binaries. (which seldom works, but whatever. if it worked on a previous, but recent, version it should work now.)

Adeon
11-11-2002, 05:15 PM
Tried #export CC=gcc3 and g++3 also, neither worked..

I copied the old libstdc.co to ensure it was picking up the new one. I didnt expect it to work, but to possibly give me a different error (Which it did)..

keep in mind also my gcc and g++ commands both report version 3.2..

#gcc -dumpversion
3.2

#g++ -dumpversion
3.2

I dont not have any files on my system called gcc3 or g++3

gcc
gcc-2.95.3
gcc-3.2
gccbug
gccmmakedep

So following section 1.4 of the Newbie guide would probably make things worse as it suggests changing all the gcc references to gcc3 ..

I appreciate your help.. Its just damn anoying.. :confused:

baelang
11-11-2002, 06:32 PM
[quote]
configure:2123: $? = 1
configure:2149: checking for C++ compiler default output
configure:2152: g++ conftest.cc >&5
/usr/lib/gcc-lib/i386-slackware-linux/3.2/../../../libstdc++.so: undefined reference to `__ctype_b_loc@GLIBC_2.3'
/usr/lib/gcc-lib/i386-slackware-linux/3.2/../../../libstdc++.so: undefined reference to `__strftime_l@GLIBC_2.3'
/usr/lib/gcc-lib/i386-slackware-linux/3.2/../../../libstdc++.so: undefined reference to `__ctype_toupper_loc@GLIBC_2.3'
/usr/lib/gcc-lib/i386-slackware-linux/3.2/../../../libstdc++.so: undefined reference to `__wcsftime_l@GLIBC_2.3'
/usr/lib/gcc-lib/i386-slackware-linux/3.2/../../../libstdc++.so: undefined reference to `__ctype_tolower_loc@GLIBC_2.3'
/usr/lib/gcc-lib/i386-slackware-linux/3.2/../../../libstdc++.so: undefined reference to `__uselocale@GLIBC_2.3'
collect2: ld returned 1 exit status
configure:2155: $? = 1
configure: failed program was:
#line 2126 "configure"
#include "confdefs.h"

[/qote]

looks like your various libraries (libstdc.so etc.) don't match your gcc version. (glibc_2.3 vs. gcc version 3.2)

that might take some work to fix.

Cryonic
11-11-2002, 10:48 PM
Didn't realize that the system libraries and the compiler were kept at the same version.

Nope, they aren't kept at the same version. Glibc latest is only 2.3.1, Gcc is at 3.2.

fee
11-11-2002, 11:19 PM
Looks to me like your libstdc++ is not the correct version. At the very least you need libstdc++3 and it MUST be compiled with the same version of gcc you plan to use. So if you updated your compiler and for whatever reason you libstdc++3 library was not updated you'll need to fix this

fee

p.s. All your c++ libraries must be compiled with the same c++ compiler you are using. This is for ABI compatibility. Connecting the dots, this means Qt will need to be compiled with gcc 3.2 also.

Adeon
11-20-2002, 07:55 AM
My friend got it working again.. He told me to go back to my old compiler and he sent me a patch with this email..


-------------------

I managed to get a successful compile using gcc(g++)-2.95.3. I made a change
in the configure.in script which fixed the --enable-old-compiler option
(it was rejecting anything < 2.96 where it should have been rejecting 2.96
specifically). I also had to make a few changes to fix the integer constant out
of range problem, it was a matter of explicitly stating their type with the ULL (unsigned long long, or 64-bit unsigned) suffix. There was the strange problem
of the word "and" being used in place of the && boolean operator (it must have
been intentional). The last fix was a missing header file (implicit declaration of lrint).

$ cvs -z3 -d:pserver:[email protected]:/cvsroot/seq co showeq
$ cd showeq
$ patch -p0 < showeq.slackware8.patch
$ make -f Makefile.dist
$ ./configure --enable-old-compiler
$ make
$ install


showeq.slackware8.patch
---------------------------------

? src/player.i
? src/showeq-slackware8.patch
Index: configure.in
================================================== =================
RCS file: /cvsroot/seq/showeq/configure.in,v
retrieving revision 1.32
diff -u -r1.32 configure.in
--- configure.in 12 Nov 2002 03:33:04 -0000 1.32
+++ configure.in 14 Nov 2002 11:21:11 -0000
@@ -44,7 +44,7 @@
[
#ifdef __GNUC__
#if ((!defined(OLDCOMPILER) && (__GNUC__ < 3)) || \
- ((__GNUC__ < 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ < 96))))
+ ((__GNUC__ < 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ == 96))))
#ifdef __GNUC_PATCHLEVEL__
printf("Unsupported GCC Version: %d.%d.%d\n",
__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
Index: src/decode.cpp
================================================== =================
--- src/decode.cpp 12 Nov 2002 03:33:04 -0000 1.15
+++ src/decode.cpp 14 Nov 2002 11:21:11 -0000
@@ -20,7 +20,7 @@

//#define DIAG_DECODE_ZLIB_ERROR
//#define PKTBUF_LEN 65535
-#define UNKKEY 0xffffffffffffffff
+#define UNKKEY 0xffffffffffffffffULL

EQDecode::EQDecode (QObject *parent, const char *name)
: QObject (parent, name)
Index: src/interface.cpp
================================================== =================
RCS file: /cvsroot/seq/showeq/src/interface.cpp,v
retrieving revision 1.53
diff -u -r1.53 interface.cpp
--- src/interface.cpp 12 Nov 2002 03:33:05 -0000 1.53
+++ src/interface.cpp 14 Nov 2002 11:21:14 -0000
@@ -5598,7 +5598,7 @@

void EQInterface::set_decoder_key()
{
- uint64_t key = 0xffffffffffffffff; // this is the bad value
+ uint64_t key = 0xffffffffffffffffULL; // this is the bad value

//dialog here
bool ok = FALSE;
Index: src/player.cpp
================================================== =================
RCS file: /cvsroot/seq/showeq/src/player.cpp,v
retrieving revision 1.31
diff -u -r1.31 player.cpp
--- src/player.cpp 10 Nov 2002 17:41:45 -0000 1.31
+++ src/player.cpp 14 Nov 2002 11:21:16 -0000
@@ -4,13 +4,17 @@
* ShowEQ Distributed under GPL
* http://seq.sourceforge.net/
*/
+#define _ISOC99_SOURCE

#include <stdio.h>
#include <unistd.h>

+#include <math.h>
+
#include <qdir.h>
#include <qfile.h>
#include <qdatastream.h>
+

#include "player.h"
#include "util.h"
Index: src/spelllist.cpp
================================================== =================
RCS file: /cvsroot/seq/showeq/src/spelllist.cpp,v
retrieving revision 1.7
diff -u -r1.7 spelllist.cpp
--- src/spelllist.cpp 21 May 2002 21:37:36 -0000 1.7
+++ src/spelllist.cpp 14 Nov 2002 11:21:17 -0000
@@ -64,11 +64,11 @@

if (m_item->duration() > 120)
this->setTextColor(Qt::black);
- else if (m_item->duration() <= 120 and m_item->duration() > 60)
+ else if (m_item->duration() <= 120 && m_item->duration() > 60)
this->setTextColor(QColor(128,54,193));
- else if (m_item->duration() <= 60 and m_item->duration() > 30)
+ else if (m_item->duration() <= 60 && m_item->duration() > 30)
this->setTextColor(Qt::blue);
- else if (m_item->duration() <= 30 and m_item->duration() > 12)
+ else if (m_item->duration() <= 30 && m_item->duration() > 12)
this->setTextColor(Qt::magenta);
else if (m_item->duration() <= 12)
this->setTextColor(Qt::red);

--EOF--

Adeon
11-20-2002, 07:56 AM
This give me all moving spawns, and the basics, map, radar GPS mode etc.. So now I need to get one of the keysniffers working.. Not having much luck with that either..

Fletch
11-20-2002, 08:04 AM
Originally posted by Adeon
This give me all moving spawns, and the basics, map, radar GPS mode etc.. So now I need to get one of the keysniffers working.. Not having much luck with that either..

I use MSVC6 and the sniffer link below is working great.

http://seq.sourceforge.net/showthre...&threadid=2453/