bugWeeChat - Bugs: bug #37373, Linker unable to find libgcrypt

 
 

bug #37373: Linker unable to find libgcrypt

Submitted by:  Simon <foobar23>
Submitted on:  Mon 17 Sep 2012 12:45:26 PM UTC  
 
Category: compilationSeverity: 3 - Normal
Item Group: compile/installStatus: Fixed
Privacy: PublicAssigned to: Sebastien Helleu <flashcode>
Originator Name: Open/Closed: Closed
Release: 0.3.9IRC nick: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 18 Sep 2012 08:08:44 AM UTC, comment #4:

Now I am able to do a full build. Thank you!

Simon <foobar23>
Tue 18 Sep 2012 07:49:22 AM UTC, comment #3:

The define of _XOPEN_SOURCE has been removed for OpenBSD. Please try latest git :)

Note: I removed same define in src/plugins/logger/logger.c, since according to your tests, it's not needed on OpenBSD (in Linux, the define is needed for the call to function "strptime").

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Tue 18 Sep 2012 07:15:32 AM UTC, comment #2:

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

Though now I have the following problem:

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
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.

Simon <foobar23>
Mon 17 Sep 2012 02:01:17 PM UTC, comment #1:

It should be fixed by latest commit. Please test and keep me informed.

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Mon 17 Sep 2012 12:45:26 PM UTC, original submission:

I thought that this problem would be fixed with the bugfix from #37311, but it is not.

Building weechat from the latest git on OpenBSD, I get the following linker error. There was no such build problem with the 0.3.8 release and in the 0.3.9 development snapshots from ~2 months ago. I think it it got introduced by the new scripts plugin, but that could just be coincidence...

[ 31%] Built target fifo
make -f src/plugins/irc/CMakeFiles/irc.dir/build.make src/plugins/irc/CMakeFiles/irc.dir/depend
cd /usr/ports/pobj/weechat-devel-20120917/weechat-devel && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /usr/ports/pobj/weechat-devel-20120917/weechat-devel /usr/ports/pobj/weechat-devel-20120917/weechat-devel/src/plugins/irc /usr/ports/pobj/weechat-devel-20120917/weechat-devel /usr/ports/pobj/weechat-devel-20120917/weechat-devel/src/plugins/irc /usr/ports/pobj/weechat-devel-20120917/weechat-devel/src/plugins/irc/CMakeFiles/irc.dir/DependInfo.cmake --color=
make -f src/plugins/irc/CMakeFiles/irc.dir/build.make src/plugins/irc/CMakeFiles/irc.dir/build
Linking C shared module irc.so
cd /usr/ports/pobj/weechat-devel-20120917/weechat-devel/src/plugins/irc && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/irc.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -O2 -pipe -Wall -W -Werror-implicit-function-declaration -shared -Wl,-soname,irc.so -o irc.so CMakeFiles/irc.dir/irc.o CMakeFiles/irc.dir/irc-bar-item.o CMakeFiles/irc.dir/irc-buffer.o CMakeFiles/irc.dir/irc-channel.o CMakeFiles/irc.dir/irc-color.o CMakeFiles/irc.dir/irc-command.o CMakeFiles/irc.dir/irc-completion.o CMakeFiles/irc.dir/irc-config.o CMakeFiles/irc.dir/irc-ctcp.o CMakeFiles/irc.dir/irc-debug.o CMakeFiles/irc.dir/irc-display.o CMakeFiles/irc.dir/irc-ignore.o CMakeFiles/irc.dir/irc-info.o CMakeFiles/irc.dir/irc-input.o CMakeFiles/irc.dir/irc-message.o CMakeFiles/irc.dir/irc-mode.o CMakeFiles/irc.dir/irc-msgbuffer.o CMakeFiles/irc.dir/irc-nick.o CMakeFiles/irc.dir/irc-notify.o CMakeFiles/irc.dir/irc-protocol.o CMakeFiles/irc.dir/irc-raw.o CMakeFiles/irc.dir/irc-redirect.o CMakeFiles/irc.dir/irc-sasl.o CMakeFiles/irc.dir/irc-server.o CMakeFiles/irc.dir/irc-upgrade.o /usr/local/lib/libgnutls.so.17.1 -lgcrypt -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib
/usr/bin/ld: cannot find -lgcrypt
collect2: ld returned 1 exit status

      • Error code 1

libgcrypt is installed in /usr/local/lib/libgcrypt.so.15.0.
The last snapshot of weechat I was able to built linked successfully against it. The /usr/local/lib path is in arguments too, so ld should be able to find it...

Please let me know if you need more infos or anything.

Simon <foobar23>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by flashcode (Posted a comment)
  • -unavailable- added by foobar23 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 29 Sep 2012 09:31:58 AM UTCflashcodeRelease2.1-dev=>0.3.9
    Sat 29 Sep 2012 09:25:00 AM UTCflashcodeOpen/ClosedOpen=>Closed
    Tue 18 Sep 2012 08:12:15 AM UTCflashcodeStatusReady For Test=>Fixed
    Mon 17 Sep 2012 02:01:17 PM UTCflashcodeStatusNone=>Ready For Test
      Assigned toNone=>flashcode

    Back to the top


    Powered by Savane 3.1-cleanup1