[Asterisk-Dev] linking and libs fixes for chan_h323

Jeremy McNamara jj at indie.org
Tue May 13 11:16:05 MST 2003


Pawe? Go?aszewski wrote:

>Who will tell me why there was -lpt_linux_x86_r and -lh323_linux_x86_r ?? 
>  
>
[root at psycho lib]# pwd
/usr/src/openh323/lib
[root at psycho lib]# ll
total 26664
-rw-r--r--    1 root root 17591194 Apr  4 15:08 libh323_linux_x86_r_s.a
lrwxrwxrwx    1 root root       29 Apr  4 15:09 libh323_linux_x86_r.so 
-> libh323_linux_x86_r.so.1.11.8
lrwxrwxrwx    1 root root       29 Apr  4 15:09 libh323_linux_x86_r.so.1 
-> libh323_linux_x86_r.so.1.11.8
lrwxrwxrwx    1 root root       29 Apr  4 15:09 
libh323_linux_x86_r.so.1.11 -> libh323_linux_x86_r.so.1.11.8
-rwxr-xr-x    1 root root  9661248 Apr  4 15:09 
libh323_linux_x86_r.so.1.11.8
drwxr-xr-x    2 root root     4096 Mar 24 07:11 obj_linux_x86_d
drwxr-xr-x    2 root root     4096 Apr  4 15:08 obj_linux_x86_r

[root at psycho lib]# ll /usr/src/pwlib/lib
total 11672
-rw-r--r--    1 root     root      5782748 Apr  4 13:21 
libpt_linux_x86_r_s.a
lrwxrwxrwx    1 root     root           27 Apr  4 13:21 
libpt_linux_x86_r.so -> libpt_linux_x86_r.so.1.4.12
lrwxrwxrwx    1 root     root           27 Apr  4 13:21 
libpt_linux_x86_r.so.1 -> libpt_linux_x86_r.so.1.4.12
lrwxrwxrwx    1 root     root           27 Apr  4 13:21 
libpt_linux_x86_r.so.1.4 -> libpt_linux_x86_r.so.1.4.12
-rwxr-xr-x    1 root     root      2894736 Apr  4 13:21 
libpt_linux_x86_r.so.1.4.12
-rwxr-xr-x    1 root     root      3240056 Jan 16 23:37 
libpt_linux_x86_r.so.1.4.9
drwxr-xr-x    2 root     root         4096 Apr  4 12:44 obj_linux_x86_d
drwxr-xr-x    2 root     root         4096 Apr  4 13:21 obj_linux_x86_r


>  
>
>------------------------------------------------------------------------
>
>--- ./channels/h323/Makefile.org	Tue May 13 09:53:16 2003
>+++ ./channels/h323/Makefile	Tue May 13 09:55:26 2003
>@@ -24,7 +24,8 @@
> CFLAGS += -DP_HAS_SEMAPHORES -DP_SSL -DP_PTHREADS
> CFLAGS += -DPHAS_TEMPLATES -DPTRACING -DP_USE_PRAGMA 
> CFLAGS += -I$(PWLIBDIR)/include/ptlib/unix -I$(PWLIBDIR)/include 
>-CFLAGS += -I$(OPENH323DIR)/include -Wno-missing-prototypes -Wno-missing-declarations
>+CFLAGS += -I$(OPENH323DIR)/include -I/usr/include/openh323
>+CFLAGS += -Wno-missing-prototypes -Wno-missing-declarations
> 
> 
> all: chan_h323.so
>@@ -61,13 +62,13 @@
> 	g++ -g -c -o $@ $(CFLAGS) $<
> 
> chan_h323.so:	chan_h323.o ast_h323.o
>-	g++  -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt_linux_x86_r -L$(OPENH323DIR)/lib -lh323_linux_x86_r -L/usr/lib -lpthread -ldl -lcrypto -lssl -lexpat
>+	g++  -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt -L$(OPENH323DIR)/lib -lopenh323 -L/usr/lib -lpthread -ldl -lcrypto -lssl -lexpat
> 
> chan_h323_d.so:	chan_h323.o ast_h323.o
>-	g++  -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt_linux_x86_d -L$(OPENH323DIR)/lib -lh323_linux_x86_d -L/usr/lib -lpthread -ldl -lcrypto -lssl -lexpat
>+	g++  -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt -L$(OPENH323DIR)/lib -lopenh323 -L/usr/lib -lpthread -ldl -lcrypto -lssl -lexpat
> 
> chan_h323_s.so:	chan_h323.o ast_h323.o
>-	g++  -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt_linux_x86_r_s -L$(OPENH323DIR)/lib -lh323_linux_x86_r_s -L/usr/lib -lpthread -ldl -lcrypto -lssl -lexpat
>+	g++  -shared -Xlinker -x -o chan_h323.so chan_h323.o ast_h323.o -L$(PWLIBDIR)/lib  -lpt -L$(OPENH323DIR)/lib -lopenh323 -L/usr/lib -lpthread -ldl -lcrypto -lssl -lexpat
> clean:
> 	rm -f *.o *.so core.*
> 
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20030513/71073a72/attachment.htm


More information about the asterisk-dev mailing list