Thank you for your reply.
"make clean" as you suggested seems to fix the problem.
I have run into situations in the past where "make clean" fixes a lot of make issues, I
have to remember this for the future.
Thank you for your expert advice,
--- On Thu, 10/7/10, Joerg Bruehe <joerg.bruehe@stripped> wrote:
> From: Joerg Bruehe <joerg.bruehe@stripped>
> Subject: Re: Make without debug code
> To: internals@stripped
> Cc: "Hiromichi Watari" <hiromichiwatari@stripped>
> Date: Thursday, October 7, 2010, 1:20 PM
> Hi Hiromichi,
> Hiromichi Watari wrote:
> > Hi,
> > I'm trying to build the server without debug code,
> >> ./configure ..... (without
> >> make
> > but then I get the following error, does anybody have
> any idea about this or a workaround ?
> You might really have told us the version you are using
> I tried to reproduce it using current MySQL 5.1.
> > libtool: link: gcc -g -O2 -DUNIV_LINUX -DUNIV_LINUX
> -rdynamic -o factorial my_main.o factorial.o libdbug.a
> ../mysys/libmysys.a ../strings/libmystrings.a -lpthread
> -lcrypt -lnsl -lm -lpthread
> > ../mysys/libmysys.a(my_thr_init.o): In function
> undefined reference to `_db_pop_'
> > collect2: ld returned 1 exit status
> > make: *** [factorial] Error 1
> I could reproduce it by doing a debug build first, then a
> non-debug one.
> So you hit a bug in the Makefile, some dependency isn't
> coded properly,
> and the non-debug build is using a debug object module
> which still contains a reference to "_db_pop_()".
> You prevent this by running a "make clean" before you do
> the non-debug
> As an alternative, you might also just remove the old
> (debug) module
> "mysys/my_thr_init.o" and then call "make" again, this
> should force a
> (non-debug) rebuild of that module and then of
> "mysys/libmysys.a", but
> who knows whether there are similar dependencies missing?
> Joerg Bruehe, MySQL Build Team, joerg.bruehe@stripped
> ORACLE Deutschland B.V. & Co.
> KG, Komturstrasse
> 18a, D-12099 Berlin
> Geschaeftsfuehrer: Juergen Kunz, Marcel v.d. Molen,
> Alexander v.d. Ven
> Amtsgericht Muenchen: HRA 95603
> MySQL Internals Mailing List
> For list archives: http://lists.mysql.com/internals
> To unsubscribe: http://lists.mysql.com/internals?unsub=1