Bug #28105 Compile error - seg fault?
Submitted: 25 Apr 2007 21:07 Modified: 1 May 2007 19:41
Reporter: Chris LaFond Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.0.33 OS:Other (OpenBSD 4.1 sparc64)
Assigned to: CPU Architecture:Any

[25 Apr 2007 21:07] Chris LaFond
Description:
I updated my source tree because mysql was not installing server, just client, 
cd /usr/ports/databases/mysql
make reinstall

and i got this error:

FAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX -DDEFAULT_SYSCONFDIR="\"/etc\"" -DSHAREDIR="\"/usr/local/share/mysql\"" -DDONT_USE_RAID -DMYSQL_CLIENT  -I. -I. -I.. -I../include -I../include      -DDBUG_OFF -O2 -pipe   -MT my_thr_init.lo -MD -MP -MF ".deps/my_thr_init.Tpo" -c -o my_thr_init.lo my_thr_init.c; \
then mv -f ".deps/my_thr_init.Tpo" ".deps/my_thr_init.Plo"; else rm -f ".deps/my_thr_init.Tpo"; exit 1; fi
Segmentation fault (core dumped) 
gmake[2]: *** [my_thr_init.lo] Error 1
gmake[2]: Leaving directory `/usr/ports/databases/mysql/w-mysql-5.0.33/mysql-5.0.33/libmysql_r'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/databases/mysql/w-mysql-5.0.33/mysql-5.0.33'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/databases/mysql (line 2063 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/databases/mysql (line 1373 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/databases/mysql (line 1861 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/databases/mysql (line 1400 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/databases/mysql (line 2831 of /usr/ports/infrastructure/mk/bsd.port.mk).

I will try make clean && make reinstall and see if that fixes it.

How to repeat:
not sure, i am using Openbsd 4.1 Sparc64 (Enterprise 420R 4gig ram) with latest tools from ports tree.
[26 Apr 2007 4:08] Valeriy Kravchuk
Thank you for a problem report. Whave version of gcc do you use? Is it possible for you to build newer version, 5.0.37, from our sources, not from OpenBSD port?

I can not just try as we do not have any OpenBSD on SPARC. Hence the requests above.
[1 May 2007 17:01] Chris LaFond
the version of gcc isnt the newest, i would think i would be :o

# gcc -v
Reading specs from /usr/lib/gcc-lib/sparc64-unknown-openbsd4.1/3.3.5/specs
Configured with: 
Thread model: single
gcc version 3.3.5 (propolice)

I did compile mysql from your source and it did work. I guess the problem must be in the BSD ports packages, ive had problems with apache2, and php5.
 Sorry for wasting your time, but thanks!!
[1 May 2007 19:41] Valeriy Kravchuk
Problem is not repeatable with 5.0.37 compiled from sources "our way" (not when built from ports).