make runs into an error

Asked by TrueType

hi,

hnathanson@server003:~/trunk$ make
cc -Wall -Werror `mysql_config --cflags` `pkg-config --cflags glib-2.0 gthread-2.0` `pcre-config --cflags` -O3 -g -c -o mydumper.o mydumper.c
mydumper.c: In function ‘main’:
mydumper.c:287: error: ‘thrconn’ undeclared (first use in this function)
mydumper.c:287: error: (Each undeclared identifier is reported only once
mydumper.c:287: error: for each function it appears in.)
make: *** [mydumper.o] Fehler 1

sorry, it is the first time I use make. I get the same error in the trunk and in 0.1 on an AMD64 debian system ( 2.6.18-6-xen-amd64). I run apt-get udpate and apt-get upgrade and exchanged the Makefile as was described in a bug report here. Any hint would be appreciated.

Henri

Question information

Language:
English Edit question
Status:
Answered
For:
MySQL Data Dumper Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Domas Mituzas (domas-mituzas) said :
#1

This just doesn't make sense - thrconn does not exist in main at all, and in trunk that line is empty, in 0.1 it is 'char *p;', and thrconn really has no references in main().

Can you try removing -O3 from build options? Maybe it gets confused by inlining?

Revision history for this message
TrueType (henri-nathanson) said :
#2

There is a thrconn in main()... in line 287 for trunk and line 279 for ver0.1

{{{
        if (mysql_query(thrconn, "SET SESSION wait_timeout = 2147483")){
                g_warning("Failed to increase wait_timeout: %s", mysql_error(thrconn));
        }
}}}

Changing the Makefile, deleting '-03' doesn't change anything, but changing "thrconn" to just "conn" (2times) makes it compilable.

Revision history for this message
Domas Mituzas (domas-mituzas) said :
#3

arghhhh, thats new code committed by someone else :) I'll strangle for not testing the build before the push :) Fixed in new revisions, thanks for headsup.

I didn't have fresh pull on my side :)

Can you help with this problem?

Provide an answer of your own, or ask TrueType for more information if necessary.

To post a message you must log in.