[Home]

Summary:ASTERISK-00123: chan_h323 fails to link.
Reporter:oliver (oliver)Labels:
Date Opened:2003-08-18 20:13:49Date Closed:2008-01-15 14:32:26.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Since the recent move of the chan_h323 building-process into the standard channels Makefile, chan_h323 fails to link with this error:

gcc -shared -Xlinker -x -o chan_h323.so chan_h323.o h323/libchanh323.a -L/lib  -lpt_linux_x86_r -L/lib -lh323_linux_x86_r -L/usr/lib -lpthread -ldl -lcrypto -lssl -lexpat
/usr/bin/ld: cannot find -lpt_linux_x86_r
collect2: ld returned 1 exit status
make[1]: *** [chan_h323.so] Error 1


I traced it down to the missing definitions of "PWLIBDIR" and "OPENH323DIR" in the channels Makefile, which the rule to make "chan_h323.so" requires.

Adding the following near the top of this Makefile fixes it:

ifndef OPENH323DIR
OPENH323DIR=$(HOME)/openh323
endif

ifndef PWLIBDIR
PWLIBDIR=$(HOME)/pwlib
endif
Comments:By: Mark Spencer (markster) 2003-08-18 20:16:57

Fixed in CVS

By: Digium Subversion (svnbot) 2008-01-15 14:32:26.000-0600

Repository: asterisk
Revision: 1371

U   trunk/channels/Makefile

------------------------------------------------------------------------
r1371 | markster | 2008-01-15 14:32:25 -0600 (Tue, 15 Jan 2008) | 2 lines

Build fix for H.323 (bug ASTERISK-123)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=1371