Problem s kompilaci MySQL (delsi)

Michal Hucik chaky na goliash.inext.cz
Pátek Prosinec 4 11:26:00 CET 1998


Hi,
	na RH-5.2 se marne pokousim prekompilovat jakoukoliv verzi MySQL z
RPM (nejnovejsi tu mam mysql-3.21.30-1.src.rpm).

Prvnim problemem na ktery jsem narazil je chybova hlaska u scriptu
configure:

---
configure: error: installation or configuration problem: C++ compiler cannot
create executables.
---

V config.log jsem nasel zaznam:

---
gcc: installation problem, cannot exec `cc1plus': No such file or directory
---

Pomoci locate jsem cc1plus nasel a pokusil jsem se tedy vytvorit link:

ln -s /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.29/cc1plus /usr/bin/

Po tomhle zasahu mi uz configure script prosel, ale pri kompilaci se objevil
dalsi problem:

---
gcc -O -O2 -m486 -fno-strength-reduce -D_LINUX_TYPES_H \
-fno-implicit-templates -DDBUG_OFF -s -rdynamic -o mysql \
mysql.o readline.o sql_string.o completion_hash.o -lreadline \
-lncurses -L. -lmysqlclient -lnsl -lm   -lcrypt -ldl
mysql.o: In function `main':
mysql.o(.text+0x40a): undefined reference to `__eh_pc'
mysql.o(.text+0x413): undefined reference to `__throw'
mysql.o(.text+0x419): undefined reference to `terminate(void)'
mysql.o: In function `add_line(String &, char *, char *)':
mysql.o(.text+0xd12): undefined reference to `__eh_pc'
mysql.o(.text+0xd1b): undefined reference to `__throw'
mysql.o(.text+0xd22): undefined reference to `__eh_pc'
mysql.o(.text+0xd2b): undefined reference to `__throw'
mysql.o(.text+0xd3e): undefined reference to `__eh_pc'
mysql.o(.text+0xd47): undefined reference to `__throw'
mysql.o(.text+0xd4e): undefined reference to `__eh_pc'
mysql.o(.text+0xd57): undefined reference to `__throw'
mysql.o(.text+0xd5e): undefined reference to `__eh_pc'
mysql.o(.text+0xd67): undefined reference to `__throw'
mysql.o(.text+0xd7a): undefined reference to `__eh_pc'
mysql.o(.text+0xd83): undefined reference to `__throw'
mysql.o(.text+0xd89): undefined reference to `terminate(void)'
mysql.o: In function `print_table_data(st_mysql_res *)':
mysql.o(.text+0x1a9e): undefined reference to `__eh_pc'
mysql.o(.text+0x1aa7): undefined reference to `__throw'
mysql.o(.text+0x1aad): undefined reference to `terminate(void)'
make[2]: *** [mysql] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/mysql-3.21.30/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/mysql-3.21.30'
make: *** [all-recursive-am] Error 2
---

Netusim jestli s tim nejak souvisi problem, ktery se objevil pri configure a
muj sverazny zpusob jeho odstraneni (asi ano), ale zde uz mne nenapada jak
tento problem odstranit. Muzete mi nekdo poradit? Dekuji.

BTW: nikdy jsem nepouzival g++, ale docela mne zarazilo odlisne chovani g++
a gcc, pokud jej zavolam bez jakehokoliv parametru. Muze to nejak souviset s
uvedenymi problemy?

---
[root na arrakis /root]# gcc
gcc: No input files
[root na arrakis /root]# g++
/usr/lib/crt1.o(.text+0x36): undefined reference to `main'
collect2: ld returned 1 exit status
[root na arrakis /root]#
---


Ahoj -
	Michal
--
   "http://www.inext.cz/www/chaky/", "mailto:chaky na vs.inext.cz"

    ---===   Beskyde, Beskyde, kdo po tobe SCSI ... ?   ===---


Další informace o konferenci Linux