dev-serveez
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [dev-serveez] serveez needs flag for -pthread on Fedora 15


From: Mike Gran
Subject: Re: [dev-serveez] serveez needs flag for -pthread on Fedora 15
Date: Mon, 30 May 2011 21:11:36 -0700 (PDT)

> From: Thien-Thi Nguyen <address@hidden>

> Hmm, gi.c doesn't do anything explicitly w/ threads, so this must be a
> transitive requirement from Guile.

It seems that gi.o wants scm_cell and that the SCM_FREELIST_LOC macro
in scm_cell is what calls pthread_getspecific.

>  What does:
> 
> grep -nHE -e '^[A-Z]+.* -l' \
>   src/Makefile \
>   src/libserveez/Makefile
> 
> output? 

address@hidden serveez]$ grep -nHE -e '^[A-Z]+.* -l' \
>   src/Makefile \
>   src/libserveez/Makefile
src/Makefile:224:CODECLIBS =  -lz -lbz2
src/Makefile:241:GUILE_LDFLAGS = -L/usr/local/lib -lguile
src/Makefile:250:LIBS = -lpthread 
src/Makefile:251:LIBSERVEEZLIBS =  -ldl
src/Makefile:279:SERVEEZ_CONFIG_LDFLAGS = -LNONE/lib -lserveez
src/libserveez/Makefile:205:CODECLIBS =  -lz -lbz2
src/libserveez/Makefile:222:GUILE_LDFLAGS = -L/usr/local/lib -lguile
src/libserveez/Makefile:231:LIBS = -lpthread 
src/libserveez/Makefile:232:LIBSERVEEZLIBS =  -ldl
src/libserveez/Makefile:260:SERVEEZ_CONFIG_LDFLAGS = -LNONE/lib -lserveez

Obviously the "LIBS = -lpthread" here is from what I added to the
configure command.  Rerunning a raw configure would return the same
without the "LIBS = -lpthread"

> Also (somewhat related), i suspect Fedora has ‘fwrite_unlocked’, so
> ‘ENABLE_LOG_MUTEX’ in src/config.h is (correctly) #undef.  Is that the case?

True in my case.

> 
> Thanks for the tip.  I'll keep it in mind if root cause proves to NOT be
> Guile-related.  For Guile-related root cause, probably the problem lies with
> m4/inc.4m macro ‘SVZ_GUILE’.

FWIW, 'guile-config link' gives '-pthread  -lguile'

Thanks,

Mike Gran




reply via email to

[Prev in Thread] Current Thread [Next in Thread]