Hi All ,
I somehow managed to fix that bug but this time i am getting confused due to
this error while compiling ossl.
The error is showing while compiling sipp.cpp file as ,
r...@sougata-desktop:/home/sougata/IMSBenchSIPp/ims_bench# make ossl
make OSNAME=Linux MODELNAME=i686 GSL_LIBS="-lgsl -lgslcblas -lm"
OBJ_TLS="auth.o sslinit.o sslthreadsafe.o milenage.o rijndael.o"
TLS_LIBS="-lssl -lcrypto" TLS="-D_USE_OPENSSL -DOPENSSL_NO_KRB5" sipp
make[1]: Entering directory `/home/sougata/IMSBenchSIPp/ims_bench'
gcc \
-o sipp auth.o sslinit.o sslthreadsafe.o milenage.o rijndael.o
xp_parser.o scenario.o screen.o call.o comp.o sipp.o stat.o actions.o
variables.o user.o csocket.o utils.o partner.o remote.o myself.o
asyncevent.o sudp.o rmt_parms.o ratios.o except.o systemstats.o pause.o -ldl
-lpthread -lncurses -lstdc++ -lm -L /usr/local/lib -L /usr/lib rmt/librmt.a
-lgsl -lgslcblas -lm -lssl -lcrypto
sipp.o: In function `open_connections()':
*sipp.cpp:(.text+0xd90e): undefined reference to `connect_to_peer(char
const*, int*, sockaddr_storage*, char*, int*)'
sipp.cpp:(.text+0xd92a): undefined reference to
`connect_local_twin_socket(char const*)'
sipp.cpp:(.text+0xda0f): undefined reference to
`connect_local_twin_socket(char const*)'
sipp.cpp:(.text+0xda4c): undefined reference to
`connect_local_twin_socket(char const*)'*
collect2: ld returned 1 exit status
make[1]: *** [sipp] Error 1
make[1]: Leaving directory `/home/sougata/IMSBenchSIPp/ims_bench'
make: *** [ossl] Error 2
Any idea how to solve this issue?
Regards ,
Sougata
On Thu, Sep 23, 2010 at 1:00 PM, Simonart, Xavier <xavier.simon...@intel.com
> wrote:
> Hi,
>
>
>
> You might have hit some gcc4.4 incompatibilities. A patch was sent fixing
> this:
> http://www.mail-archive.com/sipp-users@lists.sourceforge.net/msg04616.html
>
>
>
> -Xavier
>
>
> ------------------------------
>
> *From:* sougata pal [mailto:sougata....@gmail.com]
> *Sent:* jeudi 23 septembre 2010 11:35
> *To:* sipp-users@lists.sourceforge.net
> *Subject:* [Sipp-users] Error in make ossl
>
>
>
> Hello All ,
>
>
> I am new to IMS Benchmark SIPp. Installing now for testing for my
> OpenIMSCore. I am continuously facing error while making the ossl file. I am
> pasting the error trace below ,
>
> r...@sougata-desktop:/home/sougata/IMSBenchSIPp/ims_bench# make ossl
>
> make OSNAME=Linux MODELNAME=i686 GSL_LIBS="-lgsl -lgslcblas -lm"
> OBJ_TLS="auth.o sslinit.o sslthreadsafe.o milenage.o rijndael.o"
> TLS_LIBS="-lssl -lcrypto" TLS="-D_USE_OPENSSL -DOPENSSL_NO_KRB5" sipp
> make[1]: Entering directory `/home/sougata/IMSBenchSIPp/ims_bench'
> gcc -D__LINUX -pthread -DSIPP_EPOLL -D__3PCC__ -DHAVE_GSL -DFORCE_LOGGING
> -D_USE_OPENSSL -DOPENSSL_NO_KRB5 -I. -I/opt/openssl/include -c -o
> call.o call.cpp
> call.cpp: In member function ‘const char* call::get_last_header(const
> char*)’:
> call.cpp:1332: error: invalid conversion from ‘const char*’ to ‘char*’
> call.cpp: In member function ‘char* call::get_header_content(char*, const
> char*)’:
> call.cpp:1413: error: invalid conversion from ‘const char*’ to ‘char*’
> call.cpp: In member function ‘char* call::getKeywordParam(const char*,
> const char*, char*)’:
> call.cpp:2295: error: invalid conversion from ‘const char*’ to ‘char*’
> call.cpp: In member function ‘char* call::createSendingMessage(const char*,
> int)’:
> call.cpp:2636: error: invalid conversion from ‘const char*’ to ‘char*’
> make[1]: *** [call.o] Error 1
> make[1]: Leaving directory `/home/sougata/IMSBenchSIPp/ims_bench'
> make: *** [ossl] Error 2
>
> I have highlighted the line where the error is coming. I got an idea that
> its a GCC compilation error due to wrong declaration but can't fix. This
> same error is for the next 3 cases.
>
> const char * call::get_last_header(const char * name)
> {
> static char last_header[MAX_HEADER_LEN * 10];
> const char * src;
> char * dest; char * ptr;
> /* Gcc will zero extend this using memset, if we do a default
> initializer.
> We don't need this behavior, because we can just use sprintf. */
> char src_tmp[MAX_HEADER_LEN+1];
>
> if((!last_recv_msg) || (!*last_recv_msg)) {
> return NULL;
> }
>
> src = last_recv_msg;
> dest = last_header;
> snprintf(src_tmp, MAX_HEADER_LEN, "\n%s", name);
> /* Ideally this check should be moved to the XML parser so that it is not
> * along a critical path. We could also handle lowercasing there. */
> if (strlen(name) > MAX_HEADER_LEN) {
> ERROR_P2("call::get_last_header: Header to parse bigger than %d (%d)",
> MAX_HEADER_LEN, strlen(name));
> }
> while (src = strcasestr2(src, src_tmp)) {
> src++;
> *ptr = strchr(src, '\n');*
>
> /* Multiline headers always begin with a tab or a space
> * on the subsequent lines */
> while((ptr) &&
> ((*(ptr+1) == ' ' ) ||
> (*(ptr+1) == '\t') )) {
> ptr = strchr(ptr + 1, '\n');
> }
>
> if(ptr) { *ptr = 0; }
> // Add \r\n when several Via header are present (AgM)
> if (dest != last_header) {
> dest += sprintf(dest, "\r\n");
> }
> dest += sprintf(dest, "%s", src);
> if(ptr) { *ptr = '\n'; }
>
> src++;
> }
>
> if(dest == last_header) {
> return NULL;
> }
>
> *(dest--) = 0;
>
> /* Remove trailing whitespaces, tabs, and CRs */
> while ((dest > last_header) &&
> ((*dest == ' ') || (*dest == '\r')|| (*dest == '\t'))) {
> *(dest--) = 0;
> }
>
> /* remove enclosed CRs in multilines */
> /* don't remove enclosed CRs for multiple headers (e.g. Via) (Rhys) */
> while((ptr = strstr(last_header, "\r\n")) != NULL
> && ( *(ptr + 2) == ' '
> || *(ptr + 2) == '\r'
> || *(ptr + 2) == '\t') ) {
> /* Use strlen(ptr) to include trailing zero */
> memmove(ptr, ptr+1, strlen(ptr));
> }
> /* Remove illegal double CR characters */
> while((ptr = strstr(last_header, "\r\r")) != NULL) {
> memmove(ptr, ptr+1, strlen(ptr));
> }
> /* Remove illegal double Newline characters */
> while((ptr = strstr(last_header, "\n\n")) != NULL) {
> memmove(ptr, ptr+1, strlen(ptr));
> }
>
> return last_header;
> }
>
>
> Any help on this will be highly appreciated.
>
> REgards ,
>
> Sougata
>
> Intel Corporation NV/SA
> Kings Square, Veldkant 31
> 2550 Kontich
> RPM (Bruxelles) 0415.497.718.
> Citibank, Brussels, account 570/1031255/09
>
> This e-mail and any attachments may contain confidential material for the
> sole use of the intended recipient(s). Any review or distribution by others
> is strictly prohibited. If you are not the intended recipient, please contact
> the sender and delete all copies.
>
>
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users