inevity / cacheboy

Automatically exported from code.google.com/p/cacheboy
0 stars 0 forks source link

issues building w/ pinger under freeBSD? #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
cc  -O2 -fno-strict-aliasing -pipe  -I/usr/local/include
-I/usr/local/include  -I/usr/include -g -D_REENTRANT  -L/usr/local/lib
-L/usr/local/lib -rpath=/usr/lib:/usr/local/lib -L/usr/lib -rdynamic -o
pinger  pinger.o debug.o globals.o -L../lib -L../libcore -L../libmem
-L../libcb -L../libhelper -L../libiapp -L../libhttp -L../libstat
-L../libsqdns -L../libsqinet -lsqinet -lsqdns -lmiscutil -lcore -lmem -lcb
-lhelper -liapp -lhttp -lstat -lrt -pthread -lmd -lm 
../libcore/libcore.a(tools.o)(.text+0x160): In function `getCurrentTime':
/home/adrian/work/cacheboy/ports/ports/www/cacheboy/work/CACHEBOY_1.4/libcore/to
ols.c:35:
multiple definition of `getCurrentTime'
pinger.o(.text+0x90):/home/adrian/work/cacheboy/ports/ports/www/cacheboy/work/CA
CHEBOY_1.4/src/pinger.c:498:
first defined here
/usr/bin/ld: Warning: size of symbol `getCurrentTime' changed from 35 in
pinger.o to 69 in ../libcore/libcore.a(tools.o)
*** Error code 1

wtf?

Original issue reported on code.google.com by adrian.c...@gmail.com on 30 Jul 2008 at 10:20

GoogleCodeExporter commented 9 years ago
r13083 - makes it compile again, but its not properly working?

Original comment by adrian.c...@gmail.com on 30 Jul 2008 at 11:21

GoogleCodeExporter commented 9 years ago
r13084 - make it work again; but the stderr logging isn't being thrown through 
to the debug log. The ipc and 
debug logging changes make it so the ipc code doesn't know about the stderr 
debugging FD.

The real fix is to bind the stderr FD from each ipc connection over to a 
dedicated FD handler which redirects 
everything through the debugging code. This way stuff like syslog logging of 
IPC stuff will work.

Original comment by adrian.c...@gmail.com on 30 Jul 2008 at 12:31