Bug #13354 --with-pstack compile failure on linuxc

Submitted: 20 Sep 2005 17:05 Modified: 29 Sep 2008 22:08
Reporter: Hartmut Holzgraefe Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.0, 4.1, 5.0 OS:Linux (SuSE linux 9.3, maybe others)
Assigned to: Jim Winstead CPU Architecture:Any

[20 Sep 2005 17:05] Hartmut Holzgraefe
Description:
the "asection" structure definition does not necessarily contain a _cooked_size member,
this leads to compile errors. 

How to repeat:
> configure --with-pstack
> make
...
pstack.c: In function `decode_symbol':
pstack.c:2203: error: structure has no member named `_cooked_size'
make[1]: *** [pstack.o] Error 1
make[1]: Leaving directory `/home/hartmut/projects/mysql/releases/mysql-5.0.12-beta/pstack'
...

Suggested fix:
Add configure check for "_cooked_size" presence in "asection", 
fall back to its "size" member if "_cooked_size" is undefined?
[20 Sep 2005 17:28] MySQL Verification Team
pstack.c: In function `decode_symbol':
pstack.c:2203: error: structure has no member named `_cooked_size'
make[3]: *** [pstack.o] Error 1
make[3]: Leaving directory `/home/miguel/mysql-5.0/pstack'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/miguel/mysql-5.0/pstack'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/miguel/mysql-5.0'
make: *** [all] Error 2
miguel@hegel:~/mysql-5.0> uname -a
Linux hegel 2.6.11.4-20a-default #1 Wed Mar 23 21:52:37 UTC 2005 i686 athlon i386 GNU/Linux
miguel@hegel:~/mysql-5.0>
[19 Oct 2005 1:27] Jim Winstead
The next wall we'll hit is that pstack only supports LinuxThreads. We need to find a more portable library for generating backtraces, but this is a backburner project now.
[29 Sep 2008 22:08] Konstantin Osipov
Adding a portable backtrace library is done in 6.0.
After 3 years of neglect, I think it'd be fair to say we have no plans to fix this bug.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.