[reSIProcate] gperf compile problem
- From: "maodong hu" <hhmmdd@xxxxxxx>
- Date: Fri, 29 Jun 2007 09:53:02 +0800
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
--
Best Regards
Maodong Hu