From: Hiromichi Watari Date: October 7 2010 6:49pm Subject: Re: Make without debug code List-Archive: http://lists.mysql.com/internals/38133 Message-Id: <251998.26575.qm@web55907.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi J=F6rg,=0AThank you for your reply.=0A"make clean" as you suggested seem= s to fix the problem.=0AI have run into situations in the past where "make = clean" fixes a lot of make issues, I have to remember this for the future.= =0AThank you for your expert advice,=0AHiromichi=0A=0A=0A=0A=0A--- On Thu, = 10/7/10, Joerg Bruehe wrote:=0A=0A> From: Joerg B= ruehe =0A> Subject: Re: Make without debug code=0A= > To: internals@stripped=0A> Cc: "Hiromichi Watari" =0A> Date: Thursday, October 7, 2010, 1:20 PM=0A> Hi Hiromichi,= =0A> =0A> =0A> Hiromichi Watari wrote:=0A> > Hi,=0A> > I'm trying to build = the server without debug code,=0A> > =0A> >> ./configure=A0 =A0 .....=A0 (w= ithout=0A> --with-debug)=0A> >> make=0A> > =0A> > but then I get the follow= ing error, does anybody have=0A> any idea about this or a workaround ?=0A> = =0A> You might really have told us the version you are using=0A> ...=0A> = =0A> I tried to reproduce it using current MySQL 5.1.=0A> =0A> > =0A> >=0A>= ------------------------------------------------------------------------= =0A> > =0A> > libtool: link: gcc -g -O2 -DUNIV_LINUX -DUNIV_LINUX=0A> -rdyn= amic -o factorial my_main.o factorial.o=A0 libdbug.a=0A> ../mysys/libmysys.= a ../strings/libmystrings.a -lpthread=0A> -lcrypt -lnsl -lm -lpthread=0A> >= ../mysys/libmysys.a(my_thr_init.o): In function=0A> `my_thread_end':=0A> >= =0A> /home/hwatari/mysql-server/mysql-5.1-build-modified/mysys/my_thr_init.= c:340:=0A> undefined reference to `_db_pop_'=0A> > collect2: ld returned 1 = exit status=0A> > make[1]: *** [factorial] Error 1=0A> =0A> I could reprodu= ce it by doing a debug build first, then a=0A> non-debug one.=0A> =0A> So y= ou hit a bug in the Makefile, some dependency isn't=0A> coded properly,=0A>= and the non-debug build is using a debug object module=0A> "my_thr_init.o"= =0A> which still contains a reference to "_db_pop_()".=0A> =0A> You prevent= this by running a "make clean" before you do=0A> the non-debug=0A> build.= =0A> =0A> As an alternative, you might also just remove the old=0A> (debug)= module=0A> "mysys/my_thr_init.o" and then call "make" again, this=0A> shou= ld force a=0A> (non-debug) rebuild of that module and then of=0A> "mysys/li= bmysys.a", but=0A> who knows whether there are similar dependencies missing= ?=0A> =0A> =0A> HTH,=0A> J=F6rg=0A> =0A> -- =0A> Joerg Bruehe,=A0 MySQL Bui= ld Team,=A0 joerg.bruehe@stripped=0A> ORACLE Deutschland B.V. & Co.=0A> K= G,=A0=A0=A0Komturstrasse=0A> 18a,=A0=A0=A0D-12099 Berlin=0A> Geschaeftsfueh= rer: Juergen Kunz, Marcel v.d. Molen,=0A> Alexander v.d. Ven=0A> Amtsgerich= t Muenchen: HRA 95603=0A> =0A> =0A> --=0A> MySQL Internals Mailing List=0A>= For list archives: http://lists.mysql.com/internals=0A> To unsubscribe:=A0= =A0 http://lists.mysql.com/internals?unsub=3Dhiromichiwatari@stripped=0A>= =0A> =0A=0A=0A