[Freeswitch-users] openzap compiling issue.

Anthony Minessale anthmct at yahoo.com
Wed Nov 7 09:40:16 PST 2007


export ZAP_CFLAGS="-fPIC"

will let you do the same with no patch since this is a gcc 
specific flag.

cd libs/openzap
export ZAP_CFLAGS="-fPIC"

make clean
make
cd ../..
make mod_openzap-install


 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org
pstn:213-799-1400


----- Original Message ----
From: Brian West <brian.west at mac.com>
To: freeswitch-users at lists.freeswitch.org
Sent: Wednesday, November 7, 2007 5:27:37 AM
Subject: Re: [Freeswitch-users] openzap compiling issue.


This should let me know if this is the issue.  But I have the correct  
fix ready to go once you tell me this works.

/b

On Nov 7, 2007, at 11:12 AM, Brian West wrote:

> I would suspect that libopenzap wsn't compiled with -fPIC, which can
> result in this error when you try to compile against a lib that
 wasn't
> compiled with -fPIC
>
> please try this:
>
> Index: general.makefile
> ===================================================================
> --- general.makefile    (revision 320)
> +++ general.makefile    (working copy)
> @@ -1,3 +1,3 @@
>  CC=gcc
> -CC_CFLAGS += -Wall -Werror -Wextra -Wno-unused-parameter #-std=c99 -
> pedantic -Wno-unused-parameter
> +CC_CFLAGS += -fPIC -Wall -Werror -Wextra -Wno-unused-parameter #-
> std=c99 -pedantic -Wno-unused-parameter
>
>
>
> Thanks,
> Brian
>
>
> On Nov 7, 2007, at 10:56 AM, John Bittner wrote:
>
>> Guys,
>> Any idea why openzap will not compile under freeswitch ?
>> This is the error I am getting. FYI ... I am running 64bit Redhat  
>> 5 ..
>>
>> Compiling mod_openzap.c...
>> gcc -w -I../src/include -I../src/isdn/include -I/usr/src/freeswitch/
>> src/include -I/usr/src/freeswitch/libs/libteletone/src -fPIC -Werror
>> -g -O2 -Wall -std=c99 -pedantic -D_GNU_SOURCE -DHAVE_CONFIG_H -c -o
>> mod_openzap.o mod_openzap.c
>> Creating mod_openzap.so...
>> /usr/bin/ld: ../libopenzap.a(zap_io.o): relocation R_X86_64_32S
>> against `a local symbol' can not be used when making a shared
>> object; recompile with -fPIC
>> ../libopenzap.a: could not read symbols: Bad value
>> collect2: ld returned 1 exit status
>> gcc -w -I../src/include -I../src/isdn/include -I/usr/src/freeswitch/
>> src/include -I/usr/src/freeswitch/libs/libteletone/src -fPIC -Werror
>> -g -O2 -Wall -std=c99 -pedantic -D_GNU_SOURCE -o .libs/
>> mod_openzap.so -shared -Wl,-x mod_openzap.o -o .libs/mod_openzap.so
>> -lm -L/usr/local/lib /usr/src/freeswitch/.libs/libfreeswitch.so -
>> lsqlite3 /usr/src/freeswitch/libs/apr/.libs/libapr-1.a -luuid -lrt -
>> ldl -lcrypt -lpthread -L/usr/src/freeswitch/libs/srtp ../
>> libopenzap.a  -Wl,--rpath -Wl,/usr/local/freeswitch/lib
>> make[5]: *** [mod_openzap.so] Error 1
>> make[4]: *** [all] Error 1
>>
>> Any help appreciated.
>>
>> Thanks
>>
>> John Bittner
>> Simlab.net
>>
>>
>>
>> _______________________________________________
>> Freeswitch-users mailing list
>> Freeswitch-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>
 UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20071107/6ca21e73/attachment-0002.html 


More information about the FreeSWITCH-users mailing list