Skip to contentSkip to conversation

Quick fix for build failure with git tree master branch

LTP Rishikesh K Rajak 1 participant 1 message Mar 9, 2010

lore
Share & tools
lore
#0 lore raw

Currently i am merging to next branch, Let's review this patch here, if it will through then will merge to master branch.

commit 716d29883b11107c32313b1836bea447fecbaf1e

Author: Rishikesh K Rajak <[email protected]>
Date:   Tue Mar 9 12:48:53 2010 +0530

Quick fix for build failure with 8th Mar master tree.

Getting compilation error as:
==================================================================
buffer.c: In function ‘evbuffer_add_printf’:
buffer.c:96: warning: implicit declaration of function ‘vasprintf’ buffer.c:100: warning: pointer targets in passing argument 2 of
‘evbuffer_add’ differ in signedness

    gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat    -Wall -g -O2 -c
evbuffer.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat    -Wall -g -O2 -c select.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat    -Wall -g -O2 -c poll.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat    -Wall -g -O2 -c epoll.c
    gcc -DHAVE_CONFIG_H -I. -I. -I. -Icompat    -Wall -g -O2 -c signal.c

rm -f libevent.a
ar cru libevent.a event.o buffer.o evbuffer.o select.o poll.o
epoll.o signal.o
ar: -u: (PROGRAM ERROR) Option should have been recognized!? Try ar --help' or ar --usage' for more information. make[2]: *** [libevent.a] Error 64
make[2]: Leaving directory
`/root/ltp-dev/testcases/kernel/syscalls/libevent'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/root/ltp-dev/testcases/kernel/syscalls/libevent'
make: *** [all-recursive-am] Error 2 :~/ltp-dev/testcases/kernel/syscalls/libevent #
=================================================================

(quoted diff) +0 -0

b/testcases/kernel/syscalls/libevent/Makefile.in
index d1d9af7..dd0138d 100644

testcases/kernel/syscalls/libevent/Makefile.in +1 -0
@@ -99,6 +99,7 @@ LIBS = @LIBS@
 libevent_a_DEPENDENCIES =  @LIBOBJS@
 libevent_a_OBJECTS =  event.o buffer.o evbuffer.o
 AR = ar
+AR_FLAGS = cr
 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)

$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
@@ -219,7 +220,7 @@ maintainer-clean-compile:

libevent.a: $(libevent_a_OBJECTS) $(libevent_a_DEPENDENCIES)
-rm -f libevent.a
- $(AR) cru libevent.a $(libevent_a_OBJECTS) $(libevent_a_LIBADD)
+ $(AR) $(AR_FLAGS) libevent.a $(libevent_a_OBJECTS)
$(libevent_a_LIBADD)

        $(RANLIB) libevent.a

install-man3:

Signature · 16 lines
Thanks & Regards
Rishi
LTP Maintainer
IBM, LTC, Bangalore
Please join IRC #ltp @ irc.freenode.net

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list