couple fixes to makefile etc.

This commit is contained in:
mwells
2013-09-28 16:37:39 -06:00
parent ded9ccff0b
commit d11e9520bd
4 changed files with 8 additions and 3 deletions

@ -676,6 +676,11 @@ long File::doesExist ( ) {
// resource temporarily unavailable (for newer libc)
if ( g_errno == EAGAIN ) { g_errno = old_errno; return 0; }
// log & return -1 on any other error
if ( ! g_errno ) {
log("process: you tried to overload __errno_location() "
"but were unsuccessful. you need to be using pthreads.");
char *xx=NULL;*xx=0;
}
log("disk: error stat3(%s): %s", m_filename , strerror(g_errno));
return -1;
}

@ -3242,7 +3242,7 @@ Proxy.o: Proxy.cpp gb-include.h types.h fctypes.h Unicode.h \
SearchInput.h Msg40.h Msg39.h Msg37.h Posdb.h TopTree.h IndexTable2.h \
Msg51.h Msg17.h Msg2b.h Msg3a.h PostQueryRerank.h Sanity.h SiteGetter.h \
Title.h Address.h zlib.h zconf.h Spider.h PageCrawlBot.h Statsdb.h \
Process.h Msg28.h seo.h
Process.h Msg28.h
QAClient.o: QAClient.cpp gb-include.h types.h fctypes.h Unicode.h \
UnicodeProperties.h UCPropTable.h iconv.h UCNormalizer.h hash.h Errno.h \
Log.h QAClient.h Url.h ip.h Titledb.h Rdb.h RdbBase.h Conf.h Xml.h \

@ -84,7 +84,7 @@ else
# you might have to do apt-get install gcc-multilib to ensure that -m32 works.
# -m32 should use /usr/lib32/ as the library path.
# i also provide 32-bit libraries for linking that are not so easy to get.
CPPFLAGS = -m32 -g -Wall -pipe -Wno-write-strings -Wstrict-aliasing=0 -Wno-uninitialized -static -D_PTHREADS_ -Wno-unused-but-set-variable
CPPFLAGS = -m32 -g -Wall -pipe -Wno-write-strings -Wstrict-aliasing=0 -Wno-uninitialized -static -DPTHREADS -Wno-unused-but-set-variable
LIBS= -L. ./libz.a ./libssl.a ./libcrypto.a ./libiconv.a ./libm.a ./libstdc++.a -lpthread
endif

@ -1721,7 +1721,7 @@ void XmlDoc::setStatus ( char *s ) {
s_last = s;
//if ( ! g_conf.m_logDebugBuild ) return ;
if ( ! g_conf.m_logDebugBuild ) return ;
//return;
if ( m_firstUrlValid )
logf(LOG_DEBUG,"build: status = %s for %s (this=0x%lx)",