[Freeswitch-users] Build system/RPM's

Michael Jerris mike at jerris.com
Tue Mar 20 10:44:58 PDT 2007


This appears to be a symptom of libtool 1.5.6 which is quite broken, and
appears to be on many machines.  Did you have 1.5.6 on previously?  If
you ./libtool --version in the root FreeSWITCH(tm) source dir, what does
it give you?  I just had this same thing happen on a box even after
upgrading to 1.5.22 because I installed libtool from source using the
default prefix /usr/local and the one in /usr was still taking
precedence.  I had to install to /usr to get it to work right.

Also, as a note, I changed the checks in our bootstrap as of svn r4683
to no longer bootstrap with libtool 1.5.6 due to this issue.  And
clearly we will need to have pre-bootstrapped source tarballs out there
very soon for those who do not have appropriate autotools versions.  I
am working on that now.

Mike


> -----Original Message-----
> From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-
> users-bounces at lists.freeswitch.org] On Behalf Of Tamas Cseke
> Sent: Tuesday, March 20, 2007 12:56 PM
> To: freeswitch-users at lists.freeswitch.org
> Subject: Re: [Freeswitch-users] Build system/RPM's
> 
> Hello,
> 
> I had automake1.4, so this was the inital problem,
>  i saw your mail to late :-[
> 
> but i upgraded it.
> now i have:
> autoconf                          2.60-1
> automake1.9                   1.9.6-4
> libtool                             1.5.22-4
> 
> and i have still building problems:
> 
> i done
> ./bootsrap.sh
> ./configure -C prefix=/usr/local/freeswitch-cstomi
> make
> 
> ....
> (cd .libs && rm -f libfreeswitch.la && ln -s ../libfreeswitch.la
> libfreeswitch.la)
> gcc -I/home/cstomi/freeswitch_trunk/src/include
> -I/usr/local/freeswitch-cstomi//include -fPIC -Werror -g -O2 -Wall
> -std=c99 -pedantic -o .libs/freeswitch freeswitch-switch.o
> -L/usr/local/freeswitch-cstomi//lib -lm -L/usr/local/lib
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so -Wl,--rpath
> -Wl,/usr/local/freeswitch-cstomi//lib
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `dlerror'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_create'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_getspecific'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_rwlock_rdlock'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_rwlock_init'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_mutexattr_destroy'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_rwlock_destroy'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `sem_wait'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `sem_post'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_rwlock_unlock'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `apr_generate_random_bytes'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `sem_unlink'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `dlclose'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_detach'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_once'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_key_create'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `sem_close'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_attr_setstacksize'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `dlopen'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_rwlock_wrlock'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_sigmask'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `dlsym'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_mutexattr_settype'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_mutexattr_setpshared'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `sem_open'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_rwlock_trywrlock'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_rwlock_tryrdlock'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_mutexattr_init'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_attr_setguardsize'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_mutex_trylock'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_join'
> /home/cstomi/freeswitch_trunk/.libs/libfreeswitch.so: undefined
> reference to `pthread_setspecific'
> collect2: ld returned 1 exit status
> make[2]: *** [freeswitch] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> 
> Thanks
> Tamas
> 
> Michael Jerris wrote:
> 
> >What versions of autoconf automake and libtool do you have on that
box?
> >
> >
> >
> >>-----Original Message-----
> >>From: freeswitch-users-bounces at lists.freeswitch.org
> >>
> >>
> >[mailto:freeswitch-
> >
> >
> >>users-bounces at lists.freeswitch.org] On Behalf Of Tamas Cseke
> >>Sent: Tuesday, March 20, 2007 11:45 AM
> >>To: freeswitch-users at lists.freeswitch.org
> >>Subject: Re: [Freeswitch-users] Build system/RPM's
> >>
> >>Hello
> >>
> >>I am unable to build fs.
> >>http://pastebin.freeswitch.org/409
> >>I have autoconf, automake, libtool installed.
> >>Is there anything what i need to install.
> >>It seems make can't find rpath..
> >>I don't know what is it. I need install something else?
> >>
> >>Thanks,
> >>Tamas
> >>
> >>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-user
s
> >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




More information about the FreeSWITCH-users mailing list