bugWeeChat - Bugs: bug #28723, 0.3.1 compilation fails with...

 
 

bug #28723: 0.3.1 compilation fails with gnutls compilation errors (centos5.4/x86_64)

Submitted by:  sadsfae <sadsfae>
Submitted on:  Sun 24 Jan 2010 01:38:28 AM UTC  
 
Category: compilationSeverity: 3 - Normal
Item Group: compile/installStatus: Fixed
Privacy: PublicAssigned to: Emmanuel Bouthenot <kolter>
Originator Name: Open/Closed: Closed
Release: 0.3.1IRC nick: sadsfae

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Sat 30 Jan 2010 10:14:43 PM UTC, comment #8:

Hey Folks,

I just wanted to report build 0.3.2-dev (2.2 MB, Jan. 30, 2010 06:42) builds successfully for me on gnutls-1.4.x :)

Thanks again.

Distributions: Centos5.4 and RHEL5.4

-- snip --
Enabled features:
Interfaces........... : ncurses
Plugins.............. : alias aspell charset fifo irc logger perl(5.8.8) python(2.4) ruby(1.8) lua(5.1.2) xfer
Optional features.... : gnutls flock largefile backtrace
Compile with debug... : yes
Documentation........ : no
-- snip --

sadsfae <sadsfae>
Fri 29 Jan 2010 10:50:22 PM UTC, comment #7:

Hey folks,

I just tested with the latest dev version (changelog includes reference to fix) and unfortunately the build still fails.

Please let me know if there is any more information or debugging I can perform to provide more data to assist.

-- make snip --
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -DLOCALEDIR=\"/usr/local/share/locale\" -Wall -W -Werror-implicit-function-declaration -pipe -O2 -DHAVE_GNUTLS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O0 -DWEECHAT_VERSION=\"0.3.2-dev\" -MT irc-server.lo -MD -MP -MF .deps/irc-server.Tpo -c -o irc-server.lo irc-server.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -DLOCALEDIR=\"/usr/local/share/locale\" -Wall -W -Werror-implicit-function-declaration -pipe -O2 -DHAVE_GNUTLS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O0 -DWEECHAT_VERSION=\"0.3.2-dev\" -MT irc-server.lo -MD -MP -MF .deps/irc-server.Tpo -c irc-server.c -fPIC -DPIC -o .libs/irc-server.o
irc-server.c: In function ‘irc_server_gnutls_callback’:
irc-server.c:2314: error: implicit declaration of function ‘gnutls_x509_crt_print’
irc-server.c:2314: error: ‘GNUTLS_CRT_PRINT_ONELINE’ undeclared (first use in this function)
irc-server.c:2314: error: (Each undeclared identifier is reported only once
irc-server.c:2314: error: for each function it appears in.)
make[4]: *** [irc-server.lo] Error 1
make[4]: Leaving directory `/home/***/source/weechat-devel/src/plugins/irc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/***/source/weechat-devel/src/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/***/source/weechat-devel/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/***/source/weechat-devel'
make: *** [all] Error 2
-- make snip --

-- cmake output --
[will@funcamp weechat-devel]$ make
[ 8%] Built target translations
Scanning dependencies of target weechat_core
[ 9%] Building C object src/core/CMakeFiles/weechat_core.dir/weechat.o
[ 10%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-backtrace.o
[ 11%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-command.o
[ 12%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-config.o
[ 12%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-config-file.o
[ 13%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-debug.o
[ 14%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-hook.o
[ 15%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-infolist.o
[ 16%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-input.o
[ 17%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-list.o
[ 18%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-log.o
[ 19%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-network.o
[ 20%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-proxy.o
[ 21%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-string.o
[ 22%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-upgrade.o
[ 23%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-upgrade-file.o
[ 24%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-utf8.o
[ 25%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-util.o
Linking C static library libweechat_core.a
[ 25%] Built target weechat_core
Scanning dependencies of target weechat_plugins
[ 25%] Building C object src/plugins/CMakeFiles/weechat_plugins.dir/plugin.o
[ 26%] Building C object src/plugins/CMakeFiles/weechat_plugins.dir/plugin-api.o
[ 27%] Building C object src/plugins/CMakeFiles/weechat_plugins.dir/plugin-config.o
Linking C static library libweechat_plugins.a
[ 27%] Built target weechat_plugins
Scanning dependencies of target alias
[ 28%] Building C object src/plugins/alias/CMakeFiles/alias.dir/alias.o
[ 29%] Building C object src/plugins/alias/CMakeFiles/alias.dir/alias-info.o
Linking C shared module alias.so
[ 29%] Built target alias
Scanning dependencies of target aspell
[ 30%] Building C object src/plugins/aspell/CMakeFiles/aspell.dir/weechat-aspell.o
[ 31%] Building C object src/plugins/aspell/CMakeFiles/aspell.dir/weechat-aspell-config.o
[ 32%] Building C object src/plugins/aspell/CMakeFiles/aspell.dir/weechat-aspell-speller.o
Linking C shared module aspell.so
[ 32%] Built target aspell
Scanning dependencies of target charset
[ 33%] Building C object src/plugins/charset/CMakeFiles/charset.dir/charset.o
Linking C shared module charset.so
[ 33%] Built target charset
Scanning dependencies of target fifo
[ 34%] Building C object src/plugins/fifo/CMakeFiles/fifo.dir/fifo.o
[ 35%] Building C object src/plugins/fifo/CMakeFiles/fifo.dir/fifo-info.o
Linking C shared module fifo.so
[ 35%] Built target fifo
Scanning dependencies of target irc
[ 36%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc.o
[ 37%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-bar-item.o
[ 37%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-buffer.o
[ 38%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-channel.o
[ 39%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-color.o
[ 40%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-command.o
[ 41%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-completion.o
[ 42%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-config.o
[ 43%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-ctcp.o
[ 44%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-debug.o
[ 45%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-display.o
[ 46%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-ignore.o
[ 47%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-info.o
[ 48%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-input.o
[ 49%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-mode.o
[ 50%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-msgbuffer.o
[ 50%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-nick.o
[ 51%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-protocol.o
[ 52%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-raw.o
[ 53%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-server.o
/home/***/source/weechat-devel/src/plugins/irc/irc-server.c: In function ‘irc_server_gnutls_callback’:
/home/***/source/weechat-devel/src/plugins/irc/irc-server.c:2314: error: implicit declaration of function ‘gnutls_x509_crt_print’
/home/***/source/weechat-devel/src/plugins/irc/irc-server.c:2314: error: ‘GNUTLS_CRT_PRINT_ONELINE’ undeclared (first use in this function)
/home/***/source/weechat-devel/src/plugins/irc/irc-server.c:2314: error: (Each undeclared identifier is reported only once
/home/***/source/weechat-devel/src/plugins/irc/irc-server.c:2314: error: for each function it appears in.)
make[2]: *** [src/plugins/irc/CMakeFiles/irc.dir/irc-server.o] Error 1
make[1]: *** [src/plugins/irc/CMakeFiles/irc.dir/all] Error 2
make: *** [all] Error 2

sadsfae <sadsfae>
Fri 29 Jan 2010 06:57:26 AM UTC, comment #6:

Can you please confirm if it's now ok for you (both compilation and SSL connection to server), with your old gnutls version?

Sebastien Helleu <flashcode>
Project Administrator
Fri 29 Jan 2010 12:45:26 AM UTC, comment #5:

I see there are already commits to address older gnutls, that was fast!

http://git.savannah.gnu.org/gitweb/?p=weechat.git;a=commit;h=2f176dc3473b5c21acedd4f1ccb54d8a9c3013f2

I agree that gnutls-1.4 in centos/rhel is very old in comparison to what's out there for more progressive distributions however it is backported with security patches from upstream.

Thanks again for looking at this so quickly, and I appreciate all the hard work that goes into this client.

sadsfae <sadsfae>
Thu 28 Jan 2010 08:52:44 AM UTC, comment #4:

Even for minor release we add some interesting stuff :)
Now we're checking and displaying certificates and your old version (from 2006 !!) can't display certificates.
We'll probably add condition in source to make weechat compile even with old gnutls.

But I strongly recommend to upgrade your gnutls. Using a version released 4 years ago for SSL is unsecure!
At least you should warn CentOS admins to tell them gnutls 1.4 is obsolete.

Sebastien Helleu <flashcode>
Project Administrator
Wed 27 Jan 2010 02:24:22 AM UTC, comment #3:

0.3.1 is compiling fine with a newer gnutls (2.8.5) on an fc12 system. Yes 1.4.x is very old and seems to be the problem, unfortunately it's centos/rhel's current version.

As I was able to compile 0.3.0 against gnutls-1.4.x I thought it strange "irc-server.c" in 0.3.1 was unable to compile between a minor release.

sadsfae <sadsfae>
Mon 25 Jan 2010 11:00:34 AM UTC, comment #2:

I have gnutls 2.8.5 (on debian sid) and 2.4.2 (on debian stable, lenny). I think version 1.4.1 is very old, can you try with recent gnutls lib?

Sebastien Helleu <flashcode>
Project Administrator
Mon 25 Jan 2010 05:00:05 AM UTC, comment #1:

I tried compiling the dev version tonight also, I get the same error.

--- snip ---
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -DLOCALEDIR=\"/usr/local/share/locale\" -Wall -W -Werror-implicit-function-declaration -pipe -O2 -DHAVE_GNUTLS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O0 -DWEECHAT_VERSION=\"0.3.2-dev\" -MT irc-server.lo -MD -MP -MF .deps/irc-server.Tpo -c -o irc-server.lo irc-server.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -DLOCALEDIR=\"/usr/local/share/locale\" -Wall -W -Werror-implicit-function-declaration -pipe -O2 -DHAVE_GNUTLS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O0 -DWEECHAT_VERSION=\"0.3.2-dev\" -MT irc-server.lo -MD -MP -MF .deps/irc-server.Tpo -c irc-server.c -fPIC -DPIC -o .libs/irc-server.o
irc-server.c: In function ‘irc_server_gnutls_callback’:
irc-server.c:2312: error: implicit declaration of function ‘gnutls_x509_crt_print’
irc-server.c:2312: error: ‘GNUTLS_CRT_PRINT_ONELINE’ undeclared (first use in this function)
irc-server.c:2312: error: (Each undeclared identifier is reported only once
irc-server.c:2312: error: for each function it appears in.)
make[4]: *** [irc-server.lo] Error 1
make[4]: Leaving directory `/home/***/source/weechat-devel/src/plugins/irc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/***/source/weechat-devel/src plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/***/source/weechat-devel/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/***/source/weechat-devel'
make: *** [all] Error 2
[sadsfae@funcamp weechat-devel]$
--- snip ---

sadsfae <sadsfae>
Sun 24 Jan 2010 01:38:28 AM UTC, original submission:

Hello,

I am running into gnutls errors when trying to compile 0.3.1.
I can compile 0.2.6.x up to 0.3.0 with no problems.

distribution: centos5.4 (x86_64, vm)
kernel: 2.6.31-302-rs
-- other packages --
gnutls-1.4.1-3.el5_3.5
gnutls-devel-1.4.1-3.el5_3.5
gcc-4.1.2-46.el5_4.2
make-3.81-3.el5
cmake-2.4.8-3.el5

As you can see below my include path and headers are present

-- configure snip --
checking gnutls/gnutls.h presence... yes
checking for gnutls/gnutls.h... yes
checking for gnutls_global_init in -lgnutls... yes
checking for gnutls headers and librairies... yes
-- configure snip --

Below is a paste from the failed build from both cmake and make.

Please let me know if I need to provide more information or collect anymore information. Thanks.

-- cmake --
[ 52%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-raw.o
[ 53%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-server.o
/home/***/source/weechat-0.3.1/src/plugins/irc/irc-server.c: In function ‘irc_server_gnutls_callback’:
/home/***/source/weechat-0.3.1/src/plugins/irc/irc-server.c:2312: error: implicit declaration of function ‘gnutls_x509_crt_print’
/home/***/source/weechat-0.3.1/src/plugins/irc/irc-server.c:2312: error: ‘GNUTLS_CRT_PRINT_ONELINE’ undeclared (first use in this function)
/home/***/source/weechat-0.3.1/src/plugins/irc/irc-server.c:2312: error: (Each undeclared identifier is reported only once
/home/***/source/weechat-0.3.1/src/plugins/irc/irc-server.c:2312: error: for each function it appears in.)
make[2]: *** [src/plugins/irc/CMakeFiles/irc.dir/irc-server.o] Error 1
make[1]: *** [src/plugins/irc/CMakeFiles/irc.dir/all] Error 2
make: *** [all] Error 2

-- make --
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -DLOCALEDIR=\"/usr/local/share/locale\" -Wall -W -Werror-implicit-function-declaration -pipe -O2 -DHAVE_GNUTLS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O0 -DWEECHAT_VERSION=\"0.3.1\" -MT irc-server.lo -MD -MP -MF .deps/irc-server.Tpo -c -o irc-server.lo irc-server.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -DLOCALEDIR=\"/usr/local/share/locale\" -Wall -W -Werror-implicit-function-declaration -pipe -O2 -DHAVE_GNUTLS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O0 -DWEECHAT_VERSION=\"0.3.1\" -MT irc-server.lo -MD -MP -MF .deps/irc-server.Tpo -c irc-server.c -fPIC -DPIC -o .libs/irc-server.o
irc-server.c: In function ‘irc_server_gnutls_callback’:
irc-server.c:2312: error: implicit declaration of function ‘gnutls_x509_crt_print’
irc-server.c:2312: error: ‘GNUTLS_CRT_PRINT_ONELINE’ undeclared (first use in this function)
irc-server.c:2312: error: (Each undeclared identifier is reported only once
irc-server.c:2312: error: for each function it appears in.)
make[4]: *** [irc-server.lo] Error 1
make[4]: Leaving directory `/home/***/source/weechat-0.3.1/src/plugins/irc'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/***/source/weechat-0.3.1/src/plugins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/***/source/weechat-0.3.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/***/source/weechat-0.3.1'
make: *** [all] Error 2

sadsfae <sadsfae>

 

(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 sadsfae (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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 19 Apr 2010 07:23:57 AM UTCflashcodeOpen/ClosedOpen=>Closed
    Sun 31 Jan 2010 12:08:03 AM UTCflashcodeStatusReady For Test=>Fixed
    Fri 29 Jan 2010 06:57:26 AM UTCflashcodeStatusIn Progress=>Ready For Test
      Assigned toflashcode=>kolter
    Thu 28 Jan 2010 08:52:44 AM UTCflashcodeStatusNeed Info=>In Progress
    Mon 25 Jan 2010 11:00:34 AM UTCflashcodeStatusNone=>Need Info
      Assigned toNone=>flashcode

    Back to the top


    Powered by Savane 3.1-cleanup1