Just a correction. Obviously I've got a typo there. It's supposed to
be CFLAGS instead of FCLAGS. I've corrected it and now I've got the
following error:

MAKE i3bar
CC src/ucs2_to_utf8.c
CC src/outputs.c
CC src/workspaces.c
CC src/ipc.c
src/ipc.c: In function 'reconnect':
src/ipc.c:57:13: warning: implicit declaration of function 'strerror'
src/ipc.c:57:13: warning: format '%s' expects type 'char *', but
argument 5 has type 'int'
src/ipc.c: In function 'got_data':
src/ipc.c:152:5: warning: implicit declaration of function 'strlen'
src/ipc.c:152:27: warning: incompatible implicit declaration of
built-in function 'strlen'
src/ipc.c:155:9: warning: format '%s' expects type 'char *', but
argument 5 has type 'int'
src/ipc.c:165:13: warning: format '%s' expects type 'char *', but
argument 5 has type 'int'
src/ipc.c:179:5: warning: implicit declaration of function 'strncmp'
src/ipc.c:189:5: warning: implicit declaration of function 'memcpy'
src/ipc.c:189:5: warning: incompatible implicit declaration of
built-in function 'memcpy'
src/ipc.c:210:13: warning: format '%s' expects type 'char *', but
argument 5 has type 'int'
src/ipc.c: In function 'i3_send_msg':
src/ipc.c:241:15: warning: incompatible implicit declaration of
built-in function 'strlen'
src/ipc.c:245:25: warning: incompatible implicit declaration of
built-in function 'strlen'
src/ipc.c:251:9: warning: format '%s' expects type 'char *', but
argument 5 has type 'int'
src/ipc.c:257:5: warning: implicit declaration of function 'strncpy'
src/ipc.c:257:5: warning: incompatible implicit declaration of
built-in function 'strncpy'
src/ipc.c:259:5: warning: incompatible implicit declaration of
built-in function 'memcpy'
src/ipc.c:272:13: warning: format '%s' expects type 'char *', but
argument 5 has type 'int'
src/ipc.c: In function 'init_connection':
src/ipc.c:294:9: warning: format '%s' expects type 'char *', but
argument 5 has type 'int'
src/ipc.c:299:5: warning: implicit declaration of function 'memset'
src/ipc.c:299:5: warning: incompatible implicit declaration of
built-in function 'memset'
src/ipc.c:301:5: warning: implicit declaration of function 'strcpy'
src/ipc.c:301:5: warning: incompatible implicit declaration of
built-in function 'strcpy'
src/ipc.c:303:9: warning: format '%s' expects type 'char *', but
argument 6 has type 'int'
src/ipc.c:310:9: warning: format '%s' expects type 'char *', but
argument 5 has type 'int'
CC src/main.c
CC src/xcb.c
src/main.c: In function 'expand_path':
src/main.c:31:5: warning: implicit declaration of function 'strdup'
src/main.c:31:20: warning: initialization makes pointer from integer
without a cast
src/main.c: In function 'read_color':
src/main.c:55:20: warning: assignment makes pointer from integer without a cast
src/main.c: In function 'main':
src/main.c:160:25: warning: assignment makes pointer from integer without a cast
src/main.c:181:26: warning: assignment makes pointer from integer without a cast
CC src/child.c
src/xcb.c: In function 'init_xcb':
src/xcb.c:574:39: error: 'PATH_MAX' undeclared (first use in this function)
src/xcb.c:574:39: note: each undeclared identifier is reported only
once for each function it appears in
src/xcb.c:584:13: warning: implicit declaration of function 'strndup'
src/xcb.c:584:18: warning: assignment makes pointer from integer without a cast
make[1]: *** [src/xcb.o] Error 1
make[1]: *** Waiting for unfinished jobs....
src/child.c: In function 'kill_child':
src/child.c:185:9: warning: implicit declaration of function 'kill'
make: *** [subdirs] Error 2


Has anyone tried it on Slackware?

thank you

regards
Marcin


On 1 August 2011 16:08, Marcin Herda <[email protected]> wrote:
> On 1 August 2011 13:57, Michael Stapelberg <[email protected]> wrote:
>> Hi Marcin,
>>
>> Excerpts from Marcin Herda's message of 2011-08-01 14:47:00 +0200:
>>> MAKE i3bar
>>> CC src/ucs2_to_utf8.c
>>> CC src/outputs.c
>>> src/outputs.c:15:20: fatal error: i3/ipc.h: No such file or directory
>>> compilation terminated.
>>> make[1]: *** [src/outputs.o] Error 1
>>> make: *** [subdirs] Error 2
>> The problem has been reported on IRC and will be adressed in a new minor
>> release soon. Until then, you can fix this issue by adding the following line
>> in i3bar/Makefile before the 'all: i3bar doc' line:
>>
>> CFLAGS += -I$(TOPDIR)/../include
>>
>> Best regards,
>> Michael
>>
>
> Thank you Michael. Unfortunately it hasn't helped. The error hasn't
> disappeared. I removed the old sources and downloaded the tarball
> again. The i3-4.0/i3bar/Makefile is as follows:
> TOPDIR=$(shell pwd)
>
> include $(TOPDIR)/common.mk
>
> FILES:=$(wildcard src/*.c)
> FILES:=$(FILES:.c=.o)
> HEADERS:=$(wildcard include/*.h)
> FCLAGS+=-l$(TOPDIR)/../include
> all: i3bar doc
>
> When I 'make clean' after the error, I get the following:
>
> which: no lcov in
> (/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/java/bin:/usr/lib64/java/jre/bin:/usr/lib64/java/bin:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin:.:/home/xtd8865/bin)
> CLEAN i3-msg
> CLEAN i3-input
> CLEAN i3-nagbar
> CLEAN i3-config-wizard
> CLEAN i3bar
> make[2]: warning: jobserver unavailable: using -j1.  Add `+' to parent
> make rule.
> make[2]: warning: jobserver unavailable: using -j1.  Add `+' to parent
> make rule.
>
>
> I din't know if it matters. Thank you for your help.
>
> regards
> Marcin
>

Reply via email to