Re: Recompiling MySQL
I can get MySQL to recompile using the original .spec file and with a modified .spec file that includes --with-openssl options. I get a whole set of .s390x.rpm files. There is one that is missing. The normal files available from Novell include mysql-shared and mysql-shared-32bit files, but rebuilding from the .src.rpm yields only the mysql-shared. There is no reference to 32bit in the .spec file. How does the -32bit file get built? Is it just a build using s390 architecture and rename that one rpm file and throw away the rest? /Tom Kern -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Recompiling MySQL
On 2/3/2009 at 10:50 AM, Thomas Kern tlk_sysp...@yahoo.com wrote: -snip- How does the -32bit file get built? Is it just a build using s390 architecture and rename that one rpm file and throw away the rest? It almost looks that way. I did an rpm -qip against the normal and -32bit RPMs, and they were built on different days, on different machines: Release : 12.18 Build Date: Mon 21 Apr 2008 11:40:47 PM EDT Install Date: (not installed) Build Host: s390z16.suse.de Release : 12.18 Build Date: Tue 22 Apr 2008 02:52:15 AM EDT Install Date: (not installed) Build Host: s390a02.suse.de It may be that the s390 command was used to do the rpm build on a 64-bit system, but I've never used that. Mark Post -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Recompiling MySQL
It doesn't work. When I try to install the renamed rpm, I get a message that the mysql-shared package is already installed. There is something inside the RPM file to say this is mysql-shared not mysql-shared-32bit. I will try to modify a .spec file to properly name a shared-32bit package. Perhaps this is where Novell should supply multiple .spec files in the src.rpm or provide a single .spec file that completely recreates their distributed binaries. /Tom Kern Original Message From: Mark Post mp...@novell.com Subject: Re: Recompiling MySQL On 2/3/2009 at 10:50 AM, Thomas Kern tlk_sysp...@yahoo.com wrote:=20 -snip- How does the -32bit file get built? Is it just a build using s390 architecture and rename that one rpm file and throw away the rest? It almost looks that way. I did an rpm -qip against the normal and = -32bit RPMs, and they were built on different days, on different machines: Release : 12.18 Build Date: Mon 21 Apr 2008 = 11:40:47 PM EDT Install Date: (not installed) Build Host: s390z16.suse.de Release : 12.18 Build Date: Tue 22 Apr 2008 = 02:52:15 AM EDT Install Date: (not installed) Build Host: s390a02.suse.de It may be that the s390 command was used to do the rpm build on a 64-bit = system, but I've never used that. Mark Post -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Recompiling MySQL
On 2/3/2009 at 1:18 PM, Thomas Kern tlk_sysp...@yahoo.com wrote: -snip- Perhaps this is where Novell should supply multiple .spec files in the src.rpm or provide a single .spec file that completely recreates their distributed binaries. Open a service request, or it's not likely to change. Mark -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Recompiling MySQL
On 1/29/09 11:51 AM David Boyes Said On 1/29/09 10:19 AM, Kern, Thomas thomas.k...@hq.doe.gov wrote: make[2]: Entering directory `/usr/src/packages/BUILD/mysql-5.0.26/sql' d --debug --verbose sql_yacc.yy make[2]: d: Command not found Looks like some Solaris dtrace stuff has slipped into the build. You can comment out the line in the makefile that runs this. I think it unlikely that DTrace got slipped into the YACC-related portion of building mySQL. DTrace has a language called D (note case), and by convention, script files in that language end in .d, but there is no command anywhere called d. Note that Makefile.am, which is (at 5.1.30 level) contains AM_YFLAGS = -d --verbose which looks similar to the error message Thomas reported. regards, Jeff -- Jeff Savit Principal Field Technologist Sun Microsystems, Inc.Phone: 732-537-3451 (x63451) 2398 E Camelback DriveEmail: jeff.sa...@sun.com Phoenix, AZ 85016http://blogs.sun.com/jsavit/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Recompiling MySQL
The real error was my lack of bison. Once that was installed, the recompile worked. /Tom Kern Jeff Savit wrote: On 1/29/09 11:51 AM David Boyes Said On 1/29/09 10:19 AM, Kern, Thomas thomas.k...@hq.doe.gov wrote: make[2]: Entering directory `/usr/src/packages/BUILD/mysql-5.0.26/sql' d --debug --verbose sql_yacc.yy make[2]: d: Command not found Looks like some Solaris dtrace stuff has slipped into the build. You can comment out the line in the makefile that runs this. I think it unlikely that DTrace got slipped into the YACC-related portion of building mySQL. DTrace has a language called D (note case), and by convention, script files in that language end in .d, but there is no command anywhere called d. Note that Makefile.am, which is (at 5.1.30 level) contains AM_YFLAGS = -d --verbose which looks similar to the error message Thomas reported. regards, Jeff -- Jeff Savit Principal Field Technologist Sun Microsystems, Inc.Phone: 732-537-3451 (x63451) 2398 E Camelback DriveEmail: jeff.sa...@sun.com Phoenix, AZ 85016http://blogs.sun.com/jsavit/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Recompiling MySQL
On 1/29/2009 at 10:19 AM, Kern, Thomas thomas.k...@hq.doe.gov wrote: This may not be the best place to ask this but I think you will understand why I am doing things this way. Exact system level (uname -a) and version of the SRPM? Mark Post -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Recompiling MySQL
On 1/29/09 10:19 AM, Kern, Thomas thomas.k...@hq.doe.gov wrote: make[2]: Entering directory `/usr/src/packages/BUILD/mysql-5.0.26/sql' d --debug --verbose sql_yacc.yy make[2]: d: Command not found Looks like some Solaris dtrace stuff has slipped into the build. You can comment out the line in the makefile that runs this. Cd to the directory listed, and do a 'make -n'. That will tell you what commands it wants to execute. Then try doing them one by one. make[2]: [sql_yacc.cc] Error 127 (ignored) Do you have bison installed? You need a yacc clone (or real yacc) to process the yacc grammar that you'll end up compiling later on. -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Recompiling MySQL
sles10:~ # uname -a Linux sles10 2.6.16.60-0.33-default #1 SMP Fri Oct 31 14:24:07 UTC 2008 s390x s390x s390x GNU/Linux sles10:~ # find / -iname 'mysql*.src.rpm' /usr/src/packages/SRPMS/mysql-5.0.26-12.18.src.rpm sles10:~ # /Thomas Kern /301-903-2211 (O) /301-905-6427 (M) From: Mark Post mp...@novell.com Subject: Re: Recompiling MySQL On 1/29/2009 at 10:19 AM, Kern, Thomas thomas.k...@hq.doe.gov = wrote:=20 This may not be the best place to ask this but I think you will understand why I am doing things this way.=20 Exact system level (uname -a) and version of the SRPM? Mark Post -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Recompiling MySQL
Yet Another required package I did not realize I needed: bison Installing that and RPMBUILD recreates all of the RPMs. Now I can try modifying a copy of .specs to add --with-openssl Thanks for your help. /Thomas Kern /301-903-2211 (O) /301-905-6427 (M) From: David Boyes dbo...@sinenomine.net Subject: Re: Recompiling MySQL On 1/29/09 10:19 AM, Kern, Thomas thomas.k...@hq.doe.gov wrote: make[2]: Entering directory `/usr/src/packages/BUILD/mysql-5.0.26/sql' d --debug --verbose sql_yacc.yy make[2]: d: Command not found Looks like some Solaris dtrace stuff has slipped into the build. You can comment out the line in the makefile that runs this. Cd to the directory listed, and do a 'make -n'. That will tell you what commands it wants to execute. Then try doing them one by one. make[2]: [sql_yacc.cc] Error 127 (ignored) Do you have bison installed? You need a yacc clone (or real yacc) to process the yacc grammar that you'll end up compiling later on. -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390