[bug #41245] weechat fails to build if ncurses is build with the --with-termlib flag

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #41245] weechat fails to build if ncurses is build with the --with-termlib flag

Andreas Weber-2
URL:
  <http://savannah.nongnu.org/bugs/?41245>

                 Summary: weechat fails to build if ncurses is build with the
--with-termlib flag
                 Project: WeeChat
            Submitted by: zeom
            Submitted on: Thu 16 Jan 2014 02:08:41 AM GMT
                Category: compilation
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name:
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 0.4.3-dev
                IRC nick: zeom

    _______________________________________________________

Details:

Here is the error message:


/usr/bin/x86_64-pc-linux-gnu-gcc  -march=native -msse4 -O2 -pipe -ggdb  -Wall
-W -Werror-implicit-function-declaration  -L/usr/lib64 -L/usr/lib64
-Wl,--as-needed CMakeFiles/weechat.dir/gui-curses-bar-window.o
CMakeFiles/weechat.dir/gui-curses-chat.o
CMakeFiles/weechat.dir/gui-curses-color.o
CMakeFiles/weechat.dir/gui-curses-key.o
CMakeFiles/weechat.dir/gui-curses-main.o
CMakeFiles/weechat.dir/gui-curses-mouse.o
CMakeFiles/weechat.dir/gui-curses-term.o
CMakeFiles/weechat.dir/gui-curses-window.o  -o weechat -rdynamic
../libweechat_gui_common.a ../../plugins/libweechat_plugins.a
../../core/libweechat_core.a -lgcrypt -lgpg-error -lgnutls -ldl -lncursesw -lm
-lcurl ../libweechat_gui_common.a ../../plugins/libweechat_plugins.a
../../core/libweechat_core.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld:
CMakeFiles/weechat.dir/gui-curses-main.o: undefined reference to symbol
'nodelay'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld:
note: 'nodelay' is defined in DSO /lib64/libtinfow.so.5 so try adding it to
the linker command line
/lib64/libtinfow.so.5: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
src/gui/curses/CMakeFiles/weechat.dir/build.make:271: recipe for target
'src/gui/curses/weechat' failed



It is my understanding that if you build ncurses with the --with -termlib flag
some functions get moved to libtinfo{w}.so.

Using "ncurses{w}5-config --libs" might be right way  to fix this, but I have
no clue about cmake to even attempt to patch this myself.

It happens with the latest version in the git repo.





    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

[bug #41245] weechat fails to build if ncurses is build with the --with-termlib flag

Andreas Weber-2
Follow-up Comment #1, bug #41245 (project weechat):

Still happens with 1.0-rc2.

Do you need more info? Or something else?

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

[bug #41245] weechat fails to build if ncurses is build with the --with-termlib flag

Andreas Weber-2
Update of bug #41245 (project weechat):

              Item Group:                    None => compile/install        
                  Status:                    None => In Progress            
             Assigned to:                    None => flashcode              

    _______________________________________________________

Follow-up Comment #2:

Sorry, I forgot to test that, I'll try to fix that for the next release (1.0).

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

[bug #41245] weechat fails to build if ncurses is build with the --with-termlib flag

Andreas Weber-2
Follow-up Comment #3, bug #41245 (project weechat):

I can reproduce myself.

I'll have to rewrite detection for ncurses lib in CMake and autotools, to get
all required libs when compiling.
Since this can break the build (I have to check on many operating systems and
versions), this will take some time, so it's a bit late for 1.0.
I schedule that for 1.1.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

[bug #41245] weechat fails to build if ncurses is build with the --with-termlib flag

Andreas Weber-2
Follow-up Comment #4, bug #41245 (project weechat):

Here is a fix

https://github.com/weechat/weechat/pull/468

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

[bug #41245] weechat fails to build if ncurses is build with the --with-termlib flag

Andreas Weber-2
Update of bug #41245 (project weechat):

                  Status:             In Progress => Fixed                  

    _______________________________________________________

Follow-up Comment #5:

Done via https://github.com/weechat/weechat/pull/1090 (it will be part of
version 2.0).

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev