2012-06-27 30 views
0

在試圖建立與在Fedora 16紅寶石1.9.2-P320的mysql2寶石,我就遇到了這個錯誤, 重複性像這樣:從哪裏可以獲得針對Fedora 16的nsslowhash lib?光源最好

gremlin:mysql2 $ cat conftest.c 
    #include "ruby.h" 

    /*top*/ 
    int main() {return 0;} 
    int t() { 
     void ((*volatile p)()); 
     p = (void ((*)()))rb_thread_blocking_region; 
     return 0; 
    } 

gremlin:mysql2 $ gcc -o conftest -I/usr/local/include/ruby-1.9.1/i686-linux \ 
    -I/usr/local/include/ruby-1.9.1/ruby/backward 
    -I/usr/local/include/ruby-1.9.1 -I. 
    -I/usr/local/include/ruby-1.9.1/ 
    -D_FILE_OFFSET_BITS=64 -O3 -ggdb -Wextra -Wno-unused-parameter 
    -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers 
    -Wno-long-long conftest.c -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L. 
    -rdynamic -Wl,-export-dynamic  -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib 
    -lruby-static -lpthread -lrt -ldl -lnss3 -lcrypt -lm -lc 

    /usr/lib/gcc/i686-redhat-linux/4.6.3/../../../libcrypt.a(md5-crypt.o): 
    In function `__md5_crypt_r': 
      (.text+0x96): undefined reference to `NSSLOW_Init' 

    /usr/lib/gcc/i686-redhat-linux/4.6.3/../../../libcrypt.a(md5-crypt.o): 
    In function `__md5_crypt_r': 
      (.text+0xb1): undefined reference to `NSSLOWHASH_NewContext' 

...,多爲其他全球性的消息函數在nsslowhash庫中, 它看起來像/usr/lib/libcrypt.a預計可用,但我沒有安裝 ,並且找不到源代碼。

其實這並不完全正確。我發現nsslowhash是Firefox的Mozilla-Central構建的 的一部分,但是當我在編譯的 .a和.so文件上運行nm時,它們都沒有定義任何與NSSLOW匹配的內容。 那麼這些名字從哪裏來?

任何幫助表示讚賞。

回答

0

問題通過在LIBS CONFIG設置中添加-lfreebl3來解決。

相關問題