Ticket #241 (closed defect: invalid)

Opened 4 months ago

Last modified 4 weeks ago

Compile error

Reported by: Zeqadious Assigned to: lennart
Priority: major Milestone:
Component: avahi-glib Version:
Keywords: glib gobject compile Cc:

Description

Trying to compile avahi 0.6.23 and during the avahi-gobject phase I get the following error:

libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I.. "-DDEBUG_TRAP=asm(\"int \$3\")" -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=i686 -mtune=generic -O2 -pipe -fstack-protector -std=c99 -Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -fPIC -D_XOPEN_SOURCE=500 -DEXTENSIONS -MT libavahi_gobject_la-ga-client.lo -MD -MP -MF .deps/libavahi_gobject_la-ga-client.Tpo -c ga-client.c -fPIC -DPIC -o .libs/libavahi_gobject_la-ga-client.o
In file included from ga-client.c:29:
ga-client-enumtypes.h:4:13: warning: extra tokens at end of #ifndef directive
ga-client-enumtypes.h:5:13: warning: ISO C99 requires whitespace after the macro name
ga-client-enumtypes.h:12:11: warning: ISO C99 requires whitespace after the macro name
ga-client-enumtypes.h:14:11: warning: ISO C99 requires whitespace after the macro name
ga-client-enumtypes.h:14:1: warning: "GA" redefined
ga-client-enumtypes.h:12:1: warning: this is the location of the previous definition
ga-client.c: In function 'ga_client_class_init':
ga-client.c:127: error: 'GA_TYPE_CLIENT_STATE' undeclared (first use in this function)
ga-client.c:127: error: (Each undeclared identifier is reported only once
ga-client.c:127: error: for each function it appears in.)
ga-client.c:136: error: 'GA_TYPE_CLIENT_FLAGS' undeclared (first use in this function)

I can't seem to figure this out. Any help or insights would be greately appreciated.

Thanks,

Zeqadious

Attachments

glib-mkenums (15.0 kB) - added by Zeqadious on 09/09/08 19:37:54.
Glib 2.18.0 of glib-mkenums
ga-client-enumtypes.h (484 bytes) - added by Zeqadious on 09/09/08 19:41:31.
generated ga-client-enumtypes.h from glib 2.18.0 glib-mkenums

Change History

09/08/08 20:36:03 changed by lennart

What gcc version is this? What glib version?

ga-client-enumtypes.h is generated dynamically by glib-mkenums on build time, could you please paste the version that was generated for you?

09/09/08 19:37:54 changed by Zeqadious

  • attachment glib-mkenums added.

Glib 2.18.0 of glib-mkenums

09/09/08 19:39:53 changed by Zeqadious

gcc version 4.3.1 glib version 2.18.0

I used glib 2.16.4 before this 2.18.0 with the exact same compile error.

09/09/08 19:41:31 changed by Zeqadious

  • attachment ga-client-enumtypes.h added.

generated ga-client-enumtypes.h from glib 2.18.0 glib-mkenums

09/30/08 17:44:34 changed by Zeqadious

Bump?

10/01/08 05:05:43 changed by tedp

Looks like your tr command is broken. What platform is this on?

What is the output of:

echo abc- | tr [:lower:]- [:upper:]_

and

tr --version

and maybe

make --version

10/01/08 05:08:59 changed by tedp

Try these as well

echo abc- | tr [a-z]- [A-Z]_ echo abc- | tr -[:lower:] _[:upper:]

12/12/08 21:16:11 changed by lennart

  • status changed from new to closed.
  • resolution set to invalid.

Closing due to lack of response.