Mailing List Archive

Compile failing on MAC
Hi,

I am trying to compile the quagga code on MAC but it is failing.
Configuration of the code went fine without any errors.

I am using quagga-1.2.1 version of code.

/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive

Making all in lib

true

/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am

CC network.lo

CC pid_output.lo

CC getopt.lo

CC getopt1.lo

CC daemon.lo

CC checksum.lo

CC vector.lo

CC linklist.lo

CC vty.lo

CC command.lo

CC sockunion.lo

CC prefix.lo

CC thread.lo

CC if.lo

CC memory.lo

CC buffer.lo

CC table.lo

CC hash.lo

CC filter.lo

CC routemap.lo

CC distribute.lo

CC stream.lo

stream.c:500:2: warning: "Unknown floating-point format, __func__ may be
wrong" [-W#warnings]

#warning "Unknown floating-point format, __func__ may be wrong"

^

stream.c:516:2: warning: "Unknown floating-point format, __func__ may be
wrong" [-W#warnings]

#warning "Unknown floating-point format, __func__ may be wrong"

^

stream.c:638:2: warning: "Unknown floating-point format, __func__ may be
wrong" [-W#warnings]

#warning "Unknown floating-point format, __func__ may be wrong"

^

stream.c:655:2: warning: "Unknown floating-point format, __func__ may be
wrong" [-W#warnings]

#warning "Unknown floating-point format, __func__ may be wrong"

^

4 warnings generated.

CC str.lo

CC log.lo

CC plist.lo

CC zclient.lo

CC sockopt.lo

CC smux.lo

CC agentx.lo

CC snmp.lo

CC md5.lo

CC if_rmap.lo

CC keychain.lo

CC privs.lo

privs.c:722:70: warning: passing 'gid_t [16]' to parameter of type 'int *'
converts between pointers to integer types with different sign
[-Wpointer-sign]

if ( (ngroups = getgrouplist (zprivs->user, zprivs_state.zgid,
groups, &ngroups )) < 0 )

^~~~~~

/usr/include/unistd.h:653:43: note: passing argument to parameter here

int getgrouplist(const char *, int, int *, int *);

^

1 warning generated.

CC sigevent.lo

CC pqueue.lo

CC jhash.lo

CC memtypes.lo

CC workqueue.lo

CC vrf.lo

CC event_counter.lo

CC nexthop.lo

CCLD libzebra.la

duplicate symbol ___packed in:

.libs/vty.o

.libs/sockunion.o

duplicate symbol ___packed in:

.libs/vty.o

.libs/prefix.o

duplicate symbol ___packed in:

.libs/vty.o

.libs/if.o

duplicate symbol ___packed in:

.libs/vty.o

.libs/table.o

duplicate symbol ___packed in:

.libs/vty.o

.libs/routemap.o

duplicate symbol ___packed in:

.libs/vty.o

.libs/filter.o

duplicate symbol ___packed in:

.libs/vty.o

.libs/stream.o

duplicate symbol ___packed in:

.libs/vty.o

.libs/plist.o

duplicate symbol ___packed in:

.libs/vty.o

.libs/zclient.o

duplicate symbol ___packed in:

.libs/vty.o

.libs/vrf.o

duplicate symbol ___packed in:

.libs/vty.o

.libs/nexthop.o

ld: 11 duplicate symbols for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see
invocation)

make[3]: *** [libzebra.la] Error 1

make[2]: *** [all] Error 2

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2

/anil.