weechat-dev
[Top][All Lists]
Advanced

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

[Weechat-dev] [bug #37373] Linker unable to find libgcrypt


From: Simon
Subject: [Weechat-dev] [bug #37373] Linker unable to find libgcrypt
Date: Tue, 18 Sep 2012 07:15:32 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1

Follow-up Comment #2, bug #37373 (project weechat):

The linker is now able to find libgcrypt now and the irc plugins gets
compiled/linked now.

Though now I have the following problem:

[ 70%] Building C object
src/plugins/script/CMakeFiles/script.dir/script-repo.o
cd /usr/ports/pobj/weechat-devel-20120918/weechat-devel/src/plugins/script &&
/usr/bin/cc  -Dscript_EXPORTS -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_LARGE_FILES -DHAVE_GCRYPT
-DHAVE_GNUTLS -DHAVE_ZLIB -DHAVE_ICONV -DWEECHAT_VERSION="0.3.9-rc1"
-DWEECHAT_LICENSE="GPL3" -O2 -pipe   -Wall -W
-Werror-implicit-function-declaration -fPIC -I/usr/local/include
-I/usr/ports/pobj/weechat-devel-20120918/weechat-devel   -fPIC -o
CMakeFiles/script.dir/script-repo.o   -c
/usr/ports/pobj/weechat-devel-20120918/weechat-devel/src/plugins/script/script-repo.c
In file included from
/usr/ports/pobj/weechat-devel-20120918/weechat-devel/src/plugins/script/script-repo.c:35:
/usr/local/include/gcrypt.h:224: error: expected declaration specifiers or
'...' before 'fd_set'
/usr/local/include/gcrypt.h:224: error: expected declaration specifiers or
'...' before 'fd_set'
/usr/local/include/gcrypt.h:224: error: expected declaration specifiers or
'...' before 'fd_set'
*** Error code 1


The include and library paths are all there, and I was able to build a test
programm using the includes from script-repo.c (and the gcrypt functions it is
using). The only problem seems to be the

#define _XOPEN_SOURCE 700

This seems to prevent sys/select.h to get pulled in (where fd_set is
typedef'd). Seems like a (Open)BSD specific problem.

After removing the define I'm finally able to build weechat through.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?37373>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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