Summary:ASTERISK-09361: make install fails on: cannot stat `.libs/libchan_h323.so.1.0.1'
Reporter:seb7 (seb7)Labels:
Date Opened:2007-05-01 12:15:37Date Closed:2008-02-13 16:58:01.000-0600
Versions:Frequency of
Environment:Attachments:( 0) asterisk-ooh323c.diff
Description:make went fine, but in make install:
make[1]: Entering directory `/usr/src/asterisk-addons-1.4-svn/asterisk-ooh323c'
cp .libs/libchan_h323.so.1.0.1 /usr/lib/asterisk/modules/chan_ooh323.so
cp: cannot stat `.libs/libchan_h323.so.1.0.1': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/asterisk-addons-1.4-svn/asterisk-ooh323c'
make: *** [install] Error 2

I also tried a fresh copy of asterisk-addons-1.4.1 on a different server just to be sure! (But that had the same error.)


[root@IVRA3 asterisk-addons-1.4-svn]# ls asterisk-ooh323c/.libs/ -l
total 3756
lrwxrwxrwx  1 root root      18 May  1 17:40 libchan_h323 -> libchan_h323.1.0.1
lrwxrwxrwx  1 root root      18 May  1 17:40 libchan_h323.1 -> libchan_h323.1.0.1
-rwxr-xr-x  1 root root 1819582 May  1 17:40 libchan_h323.1.0.1
-rw-r--r--  1 root root 1984570 May  1 17:40 libchan_h323.a
lrwxrwxrwx  1 root root      18 May  1 17:40 libchan_h323.la -> ../libchan_h323.la
-rw-r--r--  1 root root     803 May  1 17:40 libchan_h323.lai
Comments:By: Michael Gaudette (bluefox) 2007-05-23 12:45:33

If you need a second occurance of this bug to help fix it, I get the exact same thing all the time on two different computers running Fedora.

By: Ed Day (eday) 2007-05-23 13:23:51

Support for ooh323c by our company (Objective Systems) is expired.  Please assign to someone else.

By: Michael Gaudette (bluefox) 2007-05-30 12:44:11

Shouldn't this have been assigned to somebody else by now?  Can't the assigned person assign it to somebody else (the person in charge of assigning?)

I am not sure how to escalate this bug, but it seems to be stuck in limbo

By: Joshua C. Colp (jcolp) 2007-05-31 11:22:40

The system automatically assigns it, and we were all at the developer conference last week and didn't get to this until now.

By: Ed Day (eday) 2007-05-31 11:31:45

Apparently the system can't read.  Support with our company is expired.  So unless a. support is renewed, or b. the ticket is assigned to someone else, this will not get fixed.

By: Joshua C. Colp (jcolp) 2007-05-31 11:33:30

I have already unassigned it and changed it so it will not assign bugs automatically to the objsys user.

By: Joshua C. Colp (jcolp) 2007-05-31 11:40:52

I have also unassigned all the other ooh323 open bugs.

By: Andrey S Pankov (casper) 2007-06-20 06:33:24

The same problem with 1.2.7 addons...
I'll upload a patch. Disclaimer is on file.

By: dea (dea) 2007-06-20 11:02:40

That approach will certainly work, but I wonder why the build process
now produces libchan_h323.1.0.1 instead of libchan_h323.so.1.0.1

I've been in and out of all of the Makefile and configure scripts, including
older working versions to find a change, and I don't see one.  I suspect
libtool, but don't know for sure.

By: Tilghman Lesher (tilghman) 2007-09-06 17:20:36

Is this still a problem on your platform?  I've just tried it and it works fine on Ubuntu.

By: Daniel Hazelbaker (cabal95) 2007-09-21 16:14:33

I can report that on Fedora Core 6 this is still a problem.

By: () 2007-10-28 12:17:35

Also on Centos 5.0 with addons 1.4.4.

The problem is here:
Makefile:1251:  cp .libs/libchan_h323.so.1.0.1 $(DESTDIR)/usr/lib/asterisk/modules/chan_ooh323.so

The module is compiled as libchan_h323.1.0.1 instead of libchan_h323.so.1.0.1, so  therefore not found.

By: Brandon Kruse (bkruse) 2007-10-29 09:03:58

Are you re-running the configure script?

Maybe you possibly copied it from another machine?


By: () 2007-10-29 09:38:53

bkruse, no. And I could solve it with

--- asterisk-ooh323c/Makefile.am.orig   2007-05-14 18:22:44.000000000 +0200
+++ asterisk-ooh323c/Makefile.am        2007-10-28 18:50:08.000000000 +0100
@@ -21,8 +21,13 @@

-       cp .libs/libchan_h323.so.1.0.1 $(DESTDIR)/usr/lib/asterisk/modules/chan_ooh323.so
+       if test -f .libs/libchan_h323.so.1.0.1; \
+       then \
+               cp .libs/libchan_h323.so.1.0.1 $(DESTDIR)/usr/lib/asterisk/modules/chan_ooh323.so; \
+       else \
+               cp .libs/libchan_h323.1.0.1 $(DESTDIR)/usr/lib/asterisk/modules/chan_ooh323.so; \
+       fi

       cp h323.conf.sample $(DESTDIR)/etc/asterisk/ooh323.conf

By: Jason T. Banks (bcs-satori) 2007-12-21 15:13:54.000-0600

This issue still exists on CentOS under kernel 2.6.18-53.1.4.el5

[root@voipsrv001 asterisk-addons]# make install
make[1]: Entering directory `/usr/src/asterisk-addons-1.4.5'
  [CC] app_saycountpl.c -> app_saycountpl.o
  [LD] app_saycountpl.o -> app_saycountpl.so
make[2]: Entering directory `/usr/src/asterisk-addons-1.4.5/asterisk-ooh323c'
make  all-am
make[3]: Entering directory `/usr/src/asterisk-addons-1.4.5/asterisk-ooh323c'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/src/asterisk-addons-1.4.5/asterisk-ooh323c'
make[2]: Leaving directory `/usr/src/asterisk-addons-1.4.5/asterisk-ooh323c'
make[2]: Entering directory `/usr/src/asterisk-addons-1.4.5/format_mp3'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/asterisk-addons-1.4.5/format_mp3'
make[1]: Leaving directory `/usr/src/asterisk-addons-1.4.5'
for x in app_addon_sql_mysql.so app_saycountpl.so cdr_addon_mysql.so res_config_mysql.so; do /usr/bin/install -c -m 755 $x /usr/lib/asterisk/modules ; done
make[1]: Entering directory `/usr/src/asterisk-addons-1.4.5/format_mp3'
/usr/bin/install -c -m 755 format_mp3.so /usr/lib/asterisk/modules
make[1]: Leaving directory `/usr/src/asterisk-addons-1.4.5/format_mp3'
make[1]: Entering directory `/usr/src/asterisk-addons-1.4.5/asterisk-ooh323c'
cp .libs/libchan_h323.so.1.0.1 /usr/lib/asterisk/modules/chan_ooh323.so
cp: cannot stat `.libs/libchan_h323.so.1.0.1': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/asterisk-addons-1.4.5/asterisk-ooh323c'
make: *** [install] Error 2
[root@voipsrv001 asterisk-addons]#

By: Jason T. Banks (bcs-satori) 2007-12-21 15:22:11.000-0600

cd /usr/src/asterisk-addons/asterisk-ooh323c/.libs/
ln -s libchan_h323.1.0.1 libchan_h323.so.1.0.1

This seemed to have resolved my issue

By: Digium Subversion (svnbot) 2008-02-13 15:48:54.000-0600

Repository: asterisk-addons
Revision: 526

A   team/qwell/moddir_14/

r526 | qwell | 2008-02-13 15:48:53 -0600 (Wed, 13 Feb 2008) | 2 lines

Branch for backporting moddirmagic, for issue ASTERISK-9361



By: Jason Parker (jparker) 2008-02-13 16:57:45.000-0600

This is no longer an issue as of revision 530, as autotools is no longer used.