< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate] gperf compile problem


I removed the --enum argument since it seems to make a difference for
your version of gperf(1).  The generated files are identical when --enum
is removed since -E is already there.  Update your copy to get this.

Thanks,
-Ryan

On 2007-07-03 at 10h06, maodong hu wrote:
> Can anyone help to confirm this problem?
> 
> 2007/6/29, maodong hu <hhmmdd@xxxxxxx>:
> >
> >gperf: version 2.8 (ACE version)
> >
> >2007/6/29, Ryan Kereliuk <ryker@xxxxxxxxx>:
> >>
> >> What is the output of 'gperf --version' on your machine?
> >>
> >> Thanks,
> >> -Ryan
> >>
> >> On 2007-06-29 at 09h53, maodong hu wrote:
> >> > hi, all
> >> >
> >> > Many times I compile resip on linux has problem, compilation seems
> >> have no
> >> > error, but when I run my program, it report undefined reference
> >> > xxxx:in_words_set
> >> > it means some cxx file not generate correctly, I checked the gperf
> >> file, it
> >> > seems
> >> > GPERFOPTS = -D --enum -E -L C++ -t -k '*' --compare-strncmp
> >> >
> >> > should be
> >> >
> >> > GPERFOPTS = -D -E -L C++ -t -k '*' --compare-strncmp
> >> >
> >> > according gperf help, -E is same as --enum , I test as following:
> >> >
> >> >
> >> > root@FoolCentOS42 ~]# cd /software/resip/resip/stack/
> >> > [root@FoolCentOS42 stack]# gperf -D -E -c -E -L C++ -t -k '*' -Z
> >> MethodHash
> >> > -e 's.*' MethodHash.gperf > MethodHash.cxx             // ok
> >> > [root@FoolCentOS42 stack]# gperf -D --enum -c -E -L C++ -t -k '*' -Z
> >> > MethodHash -e 's.*' MethodHash.gperf > MethodHash.cxx     // error
> >> > Usage: gperf
> >> >
> >> 
> >[-abBcCdDef[num]gGhH<hashname>i<init>IjJk<keys>K<keyname>lL<language>mMnN<function
> >>
> >> > name>oOprs<size>S<switches>tTvVZ<class name>].
> >> > (type gperf -h for help)
> >> > [root@FoolCentOS42 stack]# gperf -D --enum -c -L C++ -t -k '*' -Z
> >> MethodHash
> >> > -e 's.*' MethodHash.gperf > MethodHash.cxx         // error
> >> > Usage: gperf
> >> >
> >> 
> >[-abBcCdDef[num]gGhH<hashname>i<init>IjJk<keys>K<keyname>lL<language>mMnN<function
> >> > name>oOprs<size>S<switches>tTvVZ<class name>].
> >> > (type gperf -h for help)
> >> >
> >> > so it seems --enum never works