[Home]

Summary:ASTERISK-06887: Compilation error
Reporter:Jay Lee (dankunwizard)Labels:
Date Opened:2006-05-03 01:21:31Date Closed:2006-05-19 08:55:31
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) Makefile.am
Description:ooh323c driver cannot be compiled and below is the output. OS: CentOS release 4.3 (Final)

# make
rpath /usr/local/lib -L./ooh323c/src -version-info 1:1:0  -lpthread
make: rpath: Command not found
make: [libchan_h323.la] Error 127 (ignored)

****** ADDITIONAL INFORMATION ******

# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for ANSI C header files... (cached) yes
checking for /usr/include/asterisk/channel.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for strftime... yes
checking for vprintf... yes
checking for _doprnt... no
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memchr... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for pipe... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
# make
rpath /usr/local/lib -L./ooh323c/src -version-info 1:1:0  -lpthread
make: rpath: Command not found
make: [libchan_h323.la] Error 127 (ignored)
#
Comments:By: Objective Systems (objsys) 2006-05-03 09:44:32

Hi dankunwizard,

The command is `$(LINK) -rpath /usr/local/lib ...'
but Automake forgot to define `$(LINK)'. This is the bug in automake.

I will check for possible solution.

Regards,
Avin Patel

By: Objective Systems (objsys) 2006-05-05 14:10:27

Hi dankunwizard,
This is the automake common bug, This solution should fix this problem.

Add the following line the end of the makefile.am or use attached one,
EXTRA_PROGRAMS = foo

Than run again configure, make, ...
Hopefully that should solve the problem.

Regards,
Avin Patel
Objective Systems, Inc.

By: Serge Vecher (serge-v) 2006-05-07 16:06:02

avin: could you please make this into a patch to consider for inclusion in trunk?

Thanks.

By: Objective Systems (objsys) 2006-05-08 13:01:07

Hi dankunwizard,
Let us know this solves your problem or not.

If it does, than I can include svn/patch.

Regards,
Avin Patel
Objective Systems, Inc.

By: Jay Lee (dankunwizard) 2006-05-08 16:24:40

I've added EXTRA_PROGRAMS = foo at the end of Makefile.am however compilation stops with below error:

libtool: link: `src/chan_h323.lo' is not a valid libtool object
make: *** [libchan_h323.la] Error 1

By: Jay Lee (dankunwizard) 2006-05-11 17:22:44

I've copied v0.4 Makefile.am and .in but still not working.

# make
Makefile:296: *** missing separator.  Stop.


In addition, ooh323c 0.4 included in asterisk-addon-1.2.2 also have problem installing. I had to move the compiled file manually.

# make install
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: *** [install] Error 1

By: Objective Systems (objsys) 2006-05-17 11:54:57

Hi Jay,
Can you try downloading the updates from svn trunk version. Command can be found at asterisk-addons/asterisk-ooh323c/README file.
Or
Download version from www.obj-sys.com/open.

Regards,
Avin Patel
Objective Systems Inc

By: Jay Lee (dankunwizard) 2006-05-19 00:49:35

SVN 216 compiles withour any error! Thanks.

By: Objective Systems (objsys) 2006-05-19 08:55:31

Fixed autotools problem