Ticket #1423 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

[FreeBSD] Fail to compile with option '--with-screen=slang' with already installed slang library

Reported by: slavazanko Owned by: slavazanko
Priority: blocker Milestone: 4.7.0
Component: mc-core Version: master
Keywords: FAQ FreeBSD OpenBSD termcap Cc: nikon@…
Blocked By: Blocking:
Branch state: Votes for changeset:

Description (last modified by slavazanko) (diff)

I'm was try to build on FreeBSD-7.2 (in virtual box):

./configure
...
checking for slang.h... (cached) yes                                                 
checking if S-Lang uses termcap... (cached) yes                                      
configure: using S-Lang screen library with termcap                                  
checking for tgoto in -ltermcap... (cached) yes                                      
checking for SLang_init_tty in -lslang... (cached) no                                
checking for SLsmg_write_nwchars in -lslang... (cached) no                           
checking if S-Lang exports private functions... (cached) no                          
configure: error: Slang library not found  

But slang already installed into /usr/local/ path.

Need to fix it in pre1.

Change History

comment:1 Changed 15 years ago by slavazanko

  • Owner set to slavazanko
  • Status changed from new to accepted
  • Description modified (diff)

comment:2 follow-up: ↓ 3 Changed 15 years ago by zaytsev

Today's EL5 builds also failed because of SLang, although they used to build just fine before. Maybe those are somehow connected issues.

http://rpm.zaytsev.net/mc/epel-5-i386/build.log

comment:3 in reply to: ↑ 2 Changed 15 years ago by zaytsev

Replying to zaytsev:

Today's EL5 builds also failed because of SLang, although they used to build just fine before. Maybe those are somehow connected issues.

http://rpm.zaytsev.net/mc/epel-5-i386/build.log

Please disregard this, I was stupid enough to mess up my patches.

comment:4 Changed 15 years ago by slavazanko

  • severity changed from no branch to on review

Created branch 1423_FreeBSD_Slang_not_found (parent: master)

initial changeset:6dc3f9ed37498954465b72eb6a33dd329ca1e8c5

Review, please.

comment:5 Changed 15 years ago by slyfox

  • Votes for changeset set to slyfox

comment:6 Changed 15 years ago by angel_il

  • Votes for changeset changed from slyfox to slyfox angel_il
  • severity changed from on review to approved

comment:7 Changed 15 years ago by slavazanko

  • Status changed from accepted to testing
  • Resolution set to fixed

comment:8 Changed 15 years ago by slavazanko

  • Status changed from testing to closed

comment:9 Changed 15 years ago by andrew_b

  • Status changed from closed to reopened
  • Resolution fixed deleted

The build on linux is broken now.

checking SLANG-headers in default place ...
checking for slang.h... no
checking for slang/slang.h... yes
checking if S-Lang uses termcap... yes
configure: using S-Lang screen library with termcap
checking for tgoto in -ltermcap... no
checking for SLang_init_tty in -lslang... no
checking SLANG-headers in /usr ...
checking for slang.h... no
checking for slang/slang.h... yes
checking if S-Lang uses termcap... (cached) yes
configure: using S-Lang screen library with termcap
checking for tgoto in -ltermcap... (cached) no
checking for SLang_init_tty in -lslang... no
checking SLANG-headers in /usr/local ...
checking for slang.h... no
checking for slang/slang.h... yes
checking if S-Lang uses termcap... (cached) yes
configure: using S-Lang screen library with termcap
checking for tgoto in -ltermcap... (cached) no
checking for SLang_init_tty in -lslang... no
configure: error: Slang library not found

comment:10 Changed 15 years ago by zaytsev

+1 today's nightlies are broken, you can have a look at the build logs.

comment:11 Changed 15 years ago by slavazanko

  • Status changed from reopened to accepted
  • Keywords termcap added
  • Votes for changeset slyfox angel_il deleted
  • severity changed from approved to on rework

Created branch 1423_fail_to_configure (parent: master)

changeset:24e81db0dc4457b2ca7b035081ce2d8117554646

review, please.

comment:12 Changed 15 years ago by andrew_b

  • Votes for changeset set to andrew_b

ОК. Bug is fixed for me.

comment:13 Changed 15 years ago by slavazanko

  • severity changed from on rework to on review

comment:14 Changed 15 years ago by angel_il

  • Votes for changeset changed from andrew_b to andrew_b angel_il

comment:15 Changed 15 years ago by slavazanko

  • severity changed from on review to approved

comment:16 Changed 15 years ago by slavazanko

  • Status changed from accepted to testing
  • Resolution set to fixed

comment:17 Changed 15 years ago by slavazanko

  • Status changed from testing to closed

comment:18 Changed 15 years ago by zaytsev

FYI: today nightlies are OK again, so it actually fixed the issue.

comment:19 Changed 15 years ago by nijikon

  • Status changed from closed to reopened
  • Votes for changeset andrew_b angel_il deleted
  • Cc nikon@… added
  • Priority changed from major to blocker
  • Milestone changed from 4.7.0-pre1 to 4.7.0
  • Keywords OpenBSD added
  • Resolution fixed deleted

I have the same issue on OpenBSD-current:

libslang version - 2.2.1

CONFIGURE_ARGS= --with-vfs --with-samba --without-mcfs --enable-charset

checking SLANG-headers in default place ...
checking for slang.h... yes
checking if S-Lang uses termcap... yes
configure: using S-Lang screen library with termcap
checking for tgoto in -ltermcap... yes
checking for SLang_init_tty in -lslang... no
checking SLANG-headers in /usr ...
checking for slang.h... yes
checking if S-Lang uses termcap... (cached) yes
configure: using S-Lang screen library with termcap
checking for tgoto in -ltermcap... yes
checking for SLang_init_tty in -lslang... no
checking SLANG-headers in /usr/local ...
checking for slang.h... yes
checking if S-Lang uses termcap... (cached) yes
configure: using S-Lang screen library with termcap
checking for tgoto in -ltermcap... yes
checking for SLang_init_tty in -lslang... no
configure: error: S-lang library not found
* Error code 1

comment:20 Changed 15 years ago by slavazanko

  • Status changed from reopened to accepted

Please, attach to this ticket your config.log file.

Also, where S-Lang installed on your system (what path)?

comment:21 Changed 15 years ago by nijikon

config.log - http://puffy.pl/mc_config_log

slang is in /usr/local

comment:22 Changed 15 years ago by slavazanko

Looks like broken S-Lang installation...

From config.log

/usr/local/lib/libslang.so.15.0: undefined reference to `log'
/usr/local/lib/libslang.so.15.0: undefined reference to `sqrt'
/usr/local/lib/libslang.so.15.0: undefined reference to `cosh'
/usr/local/lib/libslang.so.15.0: undefined reference to `asinh'
/usr/local/lib/libslang.so.15.0: undefined reference to `ldexpf'
/usr/local/lib/libslang.so.15.0: undefined reference to `ceil'
/usr/local/lib/libslang.so.15.0: undefined reference to `floor'
...

May be, your S-Lang need for math library... try to run:

LDFLAGS="-lm" ./configure ...

And report again, please.

comment:23 Changed 15 years ago by slavazanko

Also,

I have the same issue on OpenBSD-current:

libslang version - 2.2.1

...

/usr/local/lib/libslang.so.15.0: ...

libslang.so.15.0? S-Lang-1.5 ?

For example:

slavaz@notebook / $ rpm -q slang
slang-2.2.1-1.fc12.x86_64
slavaz@notebook / $ ls /usr/lib64/libslang*
/usr/lib64/libslang.so  /usr/lib64/libslang.so.2  /usr/lib64/libslang.so.2.2.1

comment:24 Changed 15 years ago by nijikon

  • Status changed from accepted to testing
  • Resolution set to fixed

this is OpenBSD :)

You're suggestion fixed my issue, thanks!

comment:25 Changed 15 years ago by slavazanko

  • Status changed from testing to closed
  • Keywords FAQ added

You welcome :)

Note: See TracTickets for help on using tickets.