compilation error
hello sir,
i am try rohc compression for my program.
before this i used rohc_first_
my rohc-1.6.1 passed all test.
but when i give command-
$gcc -o rohc_first_
then error show
Package rohc was not found in the pkg-config search path.
Perhaps you should add the directory containing `rohc.pc'
to the PKG_CONFIG_PATH environment variable
No package 'rohc' found
gcc: error: rohc_first_
gcc: fatal error: no input files
compilation terminated.
Thank You in Advance..!!
and i also try
$ gcc -o rohc_first_
then error show
rohc_first_
compilation terminated.
i already added PKG_CONFIG_PATH environment variable in ./bashrc file.
path is
PKG_CONFIG_
but it is show above error.
please help me.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- rohc Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Hi,
Did you install the ROHC library (make install at step 10 of http://
Regards,
Didier
Revision history for this message
|
#2 |
hello sir,
thanks for reply
i am give a list of command which is executed by me;
$./autogen.sh
$make
$make all
$sudo make install
$ ./configure --enable-doc
$ make html
$./configure --enable-rohc-tests
make check
output is
=======
328 of 328 tests failed
See test/non_
Please report to http://
=======
make[4]: *** [test-suite.log] Error 1
make[4]: Leaving directory `/home/
make[3]: *** [check-TESTS] Error 2
make[3]: Leaving directory `/home/
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/
make: *** [check-recursive] Error 1
or when use $ ./configure --enable-rohc-tests --enable-
but same output show.
please help me.
Revision history for this message
|
#3 |
and before non regression all test is passed
Revision history for this message
|
#4 |
Step 5 is mandatory for running tests.
Didier
Revision history for this message
|
#5 |
thanks for reply
i was also do the step no. 5
i download rohc-tests-
and murge into rohc-1.6.1 directory.
but when use
$./configure or $sudo ./configure output is-
config.status: error: cannot find input file: `test/non_
and when use $autogen.sh
Running libtoolize... done
Running autoconf... done
Running autoheader... done
Running automake... failed
Running automake again with errors unmasked:
configure.ac:859: required file `test/non_
please help me.
thank u in advance
Revision history for this message
|
#6 |
Hello,
Please try again with clean extraction from release archives, something probably went wrong with yours. I've just tried with success the following commands:
$ wget https:/
$ wget https:/
$ tar xjf rohc-1.6.1.tar.bz2
$ tar xjf rohc-tests-
$ cd rohc-1.6.1
$ ./configure
$ make all
$ make check
Regards,
Didier
Revision history for this message
|
#7 |
Thanks Didier Barvaux, that solved my question.
Revision history for this message
|
#8 |
thanks for reply your solution is very helpful for me, that solved my problem.
after this require any library path set becaue when i run your rohc_first_
it is give follwing output
$gcc -o rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
In file included from rohc_first_
/usr/local/
rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
rohc_first_
In file included from rohc_first_
/usr/local/
if require a set path please send me exact path becuse i am beginner for the ubuntu 12.10.
waiting for your reply
thank u
Revision history for this message
|
#9 |
Please copy/paste the content of rohc_first_
Didier
Revision history for this message
|
#10 |
manish@
code is given by you-
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/**
* @file simple_
* @brief A simple program that uses the compression part of the ROHC library
* @author Didier Barvaux <email address hidden>
*
* This simple program was first published on the mailing list dedicated to the
* ROHC library. Ask your questions about this example there.
*
* Mailing list subscription: http://
* Mailing list public archives: http://
*/
/* system includes */
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include "config.h" /* for HAVE_*_H definitions */
#if HAVE_WINSOCK2_H == 1
# include <winsock2.h> /* for htons() on Windows */
#endif
#if HAVE_ARPA_INET_H == 1
# include <arpa/inet.h> /* for htons() on Linux */
#endif
/* includes required to use the compression part of the ROHC library */
#include <rohc.h>
#include <rohc_comp.h>
/** The size (in bytes) of the buffers used in the program */
#define BUFFER_SIZE 2048
/** The payload for the fake IP packet */
#define FAKE_PAYLOAD "hello, ROHC world!"
static int gen_random_
/**
* @brief The main entry point for the simple ROHC program
*
* @param argc The number of arguments given to the program
* @param argv The table of arguments given to the program
* @return 0 in case of success, 1 otherwise
*/
int main(int argc, char **argv)
{
struct rohc_comp *compressor; /* the ROHC compressor */
unsigned char ip_packet[
size_t ip_packet_len; /* the length (in bytes) of the
unsigned char rohc_packet[
size_t rohc_packet_len; /* the length (in bytes) of the
unsigned int seed;
size_t i;
int ret;
/* initialize the random generator */
seed = time(NULL);
srand(seed);
/* Create a ROHC compressor with small CIDs, no jamming and no adaptation
* to encapsulation frames.
*
* See http://
* for details about rohc_alloc_
*/
printf("\ncreate the ROHC compressor\n");
compressor = rohc_alloc_
if(compressor == NULL)
{
fprintf(stderr, "failed create the ROHC compressor\n");
goto error;
}
/* set the callback for random numbers */
if(!rohc_
{
fprintf(stderr, "failed to set the callback for random numbers\n");
goto release_compressor;
}
/* Enable the compression profiles you need (comment or uncomment some lines).
*
* See http://
* for details about rohc_activate_
*/
printf("\nenable several ROHC compression profiles\n");
rohc_activate_
//rohc_
rohc_activate_
//rohc_
//rohc_
//rohc_
/* create a fake IP packet for the purpose of this simple program */
printf("\nbuild a fake IP packet\n");
ip_packet[0] = 4 << 4; /* IP version 4 */
ip_packet[0] |= 5; /* IHL: minimal IPv4 header length (in 32-bit words) */
ip_packet[1] = 0; /* TOS */
ip_packet_len = 5 * 4 + strlen(
ip_packet[2] = (ip_packet_len >> 8) & 0xff; /* Total Length */
ip_packet[3] = ip_packet_len & 0xff;
ip_packet[4] = 0; /* IP-ID */
ip_packet[5] = 0;
ip_packet[6] = 0; /* Fragment Offset and IP flags */
ip_packet[7] = 0;
ip_packet[8] = 1; /* TTL */
ip_packet[9] = 134; /* Protocol: unassigned number */
ip_packet[10] = 0xbe; /* fake Checksum */
ip_packet[11] = 0xef;
ip_packet[12] = 0x01; /* Source address */
ip_packet[13] = 0x02;
ip_packet[14] = 0x03;
ip_packet[15] = 0x04;
ip_packet[16] = 0x05; /* Destination address */
ip_packet[17] = 0x06;
ip_packet[18] = 0x07;
ip_packet[19] = 0x08;
/* copy the payload just after the IP header */
memcpy(ip_packet + 5 * 4, FAKE_PAYLOAD, strlen(
/* dump the newly-created IP packet on terminal */
for(i = 0; i < ip_packet_len; i++)
{
printf("0x%02x ", ip_packet[i]);
if(i != 0 && ((i + 1) % 8) == 0)
{
printf("\n");
}
}
if(i != 0 && ((i + 1) % 8) != 0) /* be sure to go to the line */
{
printf("\n");
}
/* Now, compress this fake IP packet.
*
* See http://
* for details about rohc_compress in the API documentation.
*/
printf("\ncompress the fake IP packet\n");
ret = rohc_compress2(
if(ret != ROHC_OK)
{
fprintf(stderr, "compression of fake IP packet failed\n");
goto release_compressor;
}
/* dump the ROHC packet on terminal */
printf("\nROHC packet resulting from the ROHC compression:\n");
for(i = 0; i < rohc_packet_len; i++)
{
printf("0x%02x ", rohc_packet[i]);
if(i != 0 && ((i + 1) % 8) == 0)
{
printf("\n");
}
}
if(i != 0 && ((i + 1) % 8) != 0) /* be sure to go to the line */
{
printf("\n");
}
/* Release the ROHC compressor when you do not need it anymore.
*
* See http://
* for details about rohc_free_
*/
printf(
rohc_free_
printf("\nThe program ended successfully. The ROHC packet is larger than the "
"IP packet (39 bytes versus 38 bytes). This is expected since we only "
"compress one packet in this simple example. Keep in mind that ROHC "
"is designed to compress streams of packets not one single packet.\n\n");
return 0;
release_compressor:
rohc_free_
error:
fprintf(stderr, "an error occured during program execution, "
"abort program\n");
return 1;
}
/**
* @brief Generate a random number
*
* @param comp The ROHC compressor
* @param user_context Should always be NULL
* @return A random number
*/
static int gen_random_
{
return rand();
}
Revision history for this message
|
#11 |
the output is
simple_
compilation terminated.
Revision history for this message
|
#12 |
Hello,
The program contains some special code to build on both Windows and Linux. Please change:
#include "config.h" /* for HAVE_*_H definitions */
#if HAVE_WINSOCK2_H == 1
# include <winsock2.h> /* for htons() on Windows */
#endif
#if HAVE_ARPA_INET_H == 1
# include <arpa/inet.h> /* for htons() on Linux */
#endif
into:
#include <arpa/inet.h> /* for htons() on Linux */
Regards,
Didier
Revision history for this message
|
#13 |
thanks for reply sir,
i modify the code according to your instruction but this is not create rohc_alloc_
please help me i am give a code and its output
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/**
* @file simple_
* @brief A simple program that uses the compression part of the ROHC library
* @author Didier Barvaux <email address hidden>
*
* This simple program was first published on the mailing list dedicated to the
* ROHC library. Ask your questions about this example there.
*
* Mailing list subscription: http://
* Mailing list public archives: http://
*/
/* system includes */
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#if HAVE_ARPA_INET_H == 1
# include <arpa/inet.h> /* for htons() on Linux */
#endif
/* includes required to use the compression part of the ROHC library */
#include <rohc.h>
#include <rohc_comp.h>
/** The size (in bytes) of the buffers used in the program */
#define BUFFER_SIZE 2048
/** The payload for the fake IP packet */
#define FAKE_PAYLOAD "hello, ROHC world!"
static int gen_random_
/**
* @brief The main entry point for the simple ROHC program
*
* @param argc The number of arguments given to the program
* @param argv The table of arguments given to the program
* @return 0 in case of success, 1 otherwise
*/
int main(int argc, char **argv)
{
struct rohc_comp *compressor; /* the ROHC compressor */
unsigned char ip_packet[
size_t ip_packet_len; /* the length (in bytes) of the
unsigned char rohc_packet[
size_t rohc_packet_len; /* the length (in bytes) of the
unsigned int seed;
size_t i;
int ret;
/* initialize the random generator */
seed = time(NULL);
srand(seed);
/* Create a ROHC compressor with small CIDs, no jamming and no adaptation
* to encapsulation frames.
*
* See http://
* for details about rohc_alloc_
*/
printf("\ncreate the ROHC compressor\n");
compressor = rohc_alloc_
if(compressor == NULL)
{
fprintf(stderr, "failed create the ROHC compressor\n");
goto error;
}
/* set the callback for random numbers */
if(!rohc_
{
fprintf(stderr, "failed to set the callback for random numbers\n");
goto release_compressor;
}
/* Enable the compression profiles you need (comment or uncomment some lines).
*
* See http://
* for details about rohc_activate_
*/
printf("\nenable several ROHC compression profiles\n");
rohc_activate_
//rohc_
rohc_activate_
//rohc_
//rohc_
//rohc_
/* create a fake IP packet for the purpose of this simple program */
printf("\nbuild a fake IP packet\n");
ip_packet[0] = 4 << 4; /* IP version 4 */
ip_packet[0] |= 5; /* IHL: minimal IPv4 header length (in 32-bit words) */
ip_packet[1] = 0; /* TOS */
ip_packet_len = 5 * 4 + strlen(
ip_packet[2] = (ip_packet_len >> 8) & 0xff; /* Total Length */
ip_packet[3] = ip_packet_len & 0xff;
ip_packet[4] = 0; /* IP-ID */
ip_packet[5] = 0;
ip_packet[6] = 0; /* Fragment Offset and IP flags */
ip_packet[7] = 0;
ip_packet[8] = 1; /* TTL */
ip_packet[9] = 134; /* Protocol: unassigned number */
ip_packet[10] = 0xbe; /* fake Checksum */
ip_packet[11] = 0xef;
ip_packet[12] = 0x01; /* Source address */
ip_packet[13] = 0x02;
ip_packet[14] = 0x03;
ip_packet[15] = 0x04;
ip_packet[16] = 0x05; /* Destination address */
ip_packet[17] = 0x06;
ip_packet[18] = 0x07;
ip_packet[19] = 0x08;
/* copy the payload just after the IP header */
memcpy(ip_packet + 5 * 4, FAKE_PAYLOAD, strlen(
/* dump the newly-created IP packet on terminal */
for(i = 0; i < ip_packet_len; i++)
{
printf("0x%02x ", ip_packet[i]);
if(i != 0 && ((i + 1) % 8) == 0)
{
printf("\n");
}
}
if(i != 0 && ((i + 1) % 8) != 0) /* be sure to go to the line */
{
printf("\n");
}
/* Now, compress this fake IP packet.
*
* See http://
* for details about rohc_compress in the API documentation.
*/
printf("\ncompress the fake IP packet\n");
ret = rohc_compress2(
if(ret != ROHC_OK)
{
fprintf(stderr, "compression of fake IP packet failed\n");
goto release_compressor;
}
/* dump the ROHC packet on terminal */
printf("\nROHC packet resulting from the ROHC compression:\n");
for(i = 0; i < rohc_packet_len; i++)
{
printf("0x%02x ", rohc_packet[i]);
if(i != 0 && ((i + 1) % 8) == 0)
{
printf("\n");
}
}
if(i != 0 && ((i + 1) % 8) != 0) /* be sure to go to the line */
{
printf("\n");
}
/* Release the ROHC compressor when you do not need it anymore.
*
* See http://
* for details about rohc_free_
*/
printf(
rohc_free_
printf("\nThe program ended successfully. The ROHC packet is larger than the "
"IP packet (39 bytes versus 38 bytes). This is expected since we only "
"compress one packet in this simple example. Keep in mind that ROHC "
"is designed to compress streams of packets not one single packet.\n\n");
return 0;
release_compressor:
rohc_free_
error:
fprintf(stderr, "an error occured during program execution, "
"abort program\n");
return 1;
}
/**
* @brief Generate a random number
*
* @param comp The ROHC compressor
* @param user_context Should always be NULL
* @return A random number
*/
static int gen_random_
{
return rand();
}
output is-
manish@
/tmp/ccmlyCMo.o: In function `main':
/home/manish/
/home/manish/
/home/manish/
/home/manish/
/home/manish/
/home/manish/
/home/manish/
collect2: error: ld returned 1 exit status
Revision history for this message
|
#14 |
Hello,
Please send me the output of the following 2 commands:
$ pkg-config rohc --modversion
$ PKG_CONFIG_
Regards,
Didier
Revision history for this message
|
#15 |
This is the ouput of your command
manish@
manish@
rohc: command not found
and i add outut of following command which is locate pkgconfig
manish@
/home/ns2/
/home/ns2/
/usr/lib/pkgconfig
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/local/
/usr/local/
/usr/local/
/usr/ns2/
/usr/ns2/
/usr/ns2/
/usr/ns2/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
i think the problem is i found two rohc path
/home/ns2/
/home/ns2/
/usr/lib/pkgconfig
if this is a problem please send me how to correct it
Revision history for this message
|
#16 |
You mistyped my 2nd command. Whitespace position is important.
Incorrect: PKG_CONFIG_
Correct: PKG_CONFIG_
According to your locate command, the correct command should work and report 1.6.1. Then, you can do:
$ cd rohc-1.
$ gcc -o simple_rohc_program -g -Wall \
$( PKG_CONFIG_
simple_
Revision history for this message
|
#17 |
extremely sorry for the my silly mistake i am providing my log file
according to your instruction
manish@
1.6.1
manish@
PKG_CONFIG_
1.6.1
manish@
manish@
manish@
simple_rohc_program -g -Wall $( PKG_CONFIG_
pkg-config rohc --libs ) simple_
/tmp/ccglCz67.o: In function `main':
/home/manish/
reference to `rohc_alloc_
/home/manish/
reference to `rohc_comp_
/home/manish/
reference to `rohc_activate_
/home/manish/
reference to `rohc_activate_
/home/manish/
reference to `rohc_compress2'
/home/manish/
reference to `rohc_free_
/home/manish/
reference to `rohc_free_
collect2: error: ld returned 1 exit status
manish@
On Tue, Sep 3, 2013 at 1:31 PM, Didier Barvaux <
<email address hidden>> wrote:
> Question #234832 on rohc changed:
> https:/
>
> Status: Open => Answered
>
> Didier Barvaux proposed the following answer:
> You mistyped my 2nd command. Whitespace position is important.
>
> Incorrect: PKG_CONFIG_
> modversion
> Correct: PKG_CONFIG_
> --modversion
>
> According to your locate command, the correct command should work and
> report 1.6.1. Then, you can do:
> $ cd rohc-1.
> $ gcc -o simple_rohc_program -g -Wall \
> $( PKG_CONFIG_
> \
> simple_
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#18 |
Please send me the output of the following commands:
$ PKG_CONFIG_
$ ls -l /usr/local/
$ cat /usr/local/
Revision history for this message
|
#19 |
this is log according to your instruction-
manish@
PKG_CONFIG_
-L/usr/local/lib -lrohc_decomp -lrohc_comp -lrohc_common
manish@
-rwxr-xr-x 1 root root 948 Sep 2 15:14 /usr/local/
lrwxrwxrwx 1 root root 23 Sep 2 15:14 /usr/local/
-> librohc_
lrwxrwxrwx 1 root root 23 Sep 2 15:14
/usr/local/
-rwxr-xr-x 1 root root 133921 Sep 2 15:14
/usr/local/
-rwxr-xr-x 1 root root 994 Sep 2 15:14 /usr/local/
lrwxrwxrwx 1 root root 21 Sep 2 15:14 /usr/local/
-> librohc_
lrwxrwxrwx 1 root root 21 Sep 2 15:14 /usr/local/
-> librohc_
-rwxr-xr-x 1 root root 520240 Sep 2 15:14
/usr/local/
-rwxr-xr-x 1 root root 1060 Sep 2 15:14 /usr/local/
lrwxrwxrwx 1 root root 23 Sep 2 15:14 /usr/local/
-> librohc_
lrwxrwxrwx 1 root root 23 Sep 2 15:14
/usr/local/
-rwxr-xr-x 1 root root 520609 Sep 2 15:14
/usr/local/
manish@
prefix=/usr/local
exec_prefix=
libdir=
includedir=
Name: RObust Header Compression (ROHC)
Description: Free and efficient library that implements the ROHC protocol
Version: 1.6.1
Libs: -L${libdir} -lrohc_decomp -lrohc_comp -lrohc_common
Cflags: -I${includedir}
On Tue, Sep 3, 2013 at 3:46 PM, Didier Barvaux <
<email address hidden>> wrote:
> Question #234832 on rohc changed:
> https:/
>
> Status: Open => Answered
>
> Didier Barvaux proposed the following answer:
> Please send me the output of the following commands:
> $ PKG_CONFIG_
> $ ls -l /usr/local/
> $ cat /usr/local/
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#20 |
Please try:
$ gcc -o simple_rohc_program -g -Wall \
$( PKG_CONFIG_
simple_
Revision history for this message
|
#21 |
thanks for reply. i am very thankful for you because you give time for my
thread.
but i still have compilation error.
this is the output-
manish@
simple_rohc_program -g -Wall $(
PKG_CONFIG_
) simple_
/tmp/ccz0wPFR.o: In function `main':
/home/manish/
reference to `rohc_alloc_
/home/manish/
reference to `rohc_comp_
/home/manish/
reference to `rohc_activate_
/home/manish/
reference to `rohc_activate_
/home/manish/
reference to `rohc_compress2'
/home/manish/
reference to `rohc_free_
/home/manish/
reference to `rohc_free_
collect2: error: ld returned 1 exit status
On Tue, Sep 3, 2013 at 11:36 PM, Didier Barvaux <
<email address hidden>> wrote:
> Question #234832 on rohc changed:
> https:/
>
> Status: Open => Needs information
>
> Didier Barvaux requested more information:
> Please try:
>
> $ gcc -o simple_rohc_program -g -Wall \
> $( PKG_CONFIG_
> --cflags ) \
> simple_
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#22 |
The libraries seem to be found correctly, but there is something wrong during the link... Could you send me the output of the following commands:
$ uname -m -i
$ gcc --version
$ ld --version
$ file /usr/local/
$ cd rohc-1.
$ rm -f simple_
$ gcc -c -o simple_
$( PKG_CONFIG_
simple_
$ file simple_
$ gcc -Wl,--verbose -o simple_rohc_program \
$( PKG_CONFIG_
simple_
$ file simple_rohc_program
And what Linux distribution do you use?
Regards,
Didier
Revision history for this message
|
#23 |
hello sir,
thanks for reply. this is log according to your suggestion.
manish@
i686 i686
manish@
gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
manish@
/usr/local/
/usr/local/
`librohc_
/usr/local/
`librohc_
/usr/local/
80386, version 1 (SYSV), dynamically linked,
BuildID[
/usr/local/
/usr/local/
`librohc_
/usr/local/
`librohc_
/usr/local/
80386, version 1 (SYSV), dynamically linked,
BuildID[
/usr/local/
/usr/local/
`librohc_
/usr/local/
`librohc_
/usr/local/
80386, version 1 (SYSV), dynamically linked,
BuildID[
manish@
manish@
simple_
manish@
simple_
PKG_CONFIG_
simple_
manish@
simple_
simple_
(SYSV), not stripped
manish@
simple_rohc_program
simple_
or directory)
i am using ubuntu 12.10 and os type 32-bit.
waiting for your reply.
On Wed, Sep 4, 2013 at 2:16 AM, Didier Barvaux <
<email address hidden>> wrote:
> Question #234832 on rohc changed:
> https:/
>
> Status: Open => Needs information
>
> Didier Barvaux requested more information:
> The libraries seem to be found correctly, but there is something wrong
> during the link... Could you send me the output of the following
> commands:
>
> $ uname -m -i
> $ gcc --version
> $ ld --version
> $ file /usr/local/
> $ cd rohc-1.
> $ rm -f simple_
> $ gcc -c -o simple_
> $( PKG_CONFIG_
> \
> simple_
> $ file simple_
> $ gcc -Wl,--verbose -o simple_rohc_program \
> $( PKG_CONFIG_
> simple_
> $ file simple_rohc_program
>
> And what Linux distribution do you use?
>
> Regards,
> Didier
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#24 |
Two commands are missing:
$ ld --version
$ gcc -Wl,--verbose -o simple_rohc_program \
$( PKG_CONFIG_
simple_
Revision history for this message
|
#25 |
thank you for reply
pardon me for my incomplete post i am proving the log of two command-
manish@
GNU ld (GNU Binutils for Ubuntu) 2.22.90.20120924
Copyright 2012 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later
version.
This program has absolutely no warranty.
manish@
manish@
manish@
-o simple_rohc_program $( PKG_CONFIG_
pkg-config rohc --libs ) simple_
GNU ld (GNU Binutils for Ubuntu) 2.22.90.20120924
Supported emulations:
elf_i386
i386linux
elf32_x86_64
elf_x86_64
elf_l1om
elf_k1om
using internal linker script:
=======
/* Script for -z combreloc: combine and sort reloc sections */
OUTPUT_
OUTPUT_ARCH(i386)
ENTRY(_start)
SEARCH_
SEARCH_
SEARCH_
SEARCH_
SEARCH_
SEARCH_
SECTIONS
{
/* Read-only sections, merged into text segment: */
PROVIDE (__executable_start = SEGMENT_
. = SEGMENT_
.interp : { *(.interp) }
.note.
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.gnu.version : { *(.gnu.version) }
.gnu.version_d : { *(.gnu.version_d) }
.gnu.version_r : { *(.gnu.version_r) }
.rel.dyn :
{
*(.rel.init)
*(.rel.text .rel.text.* .rel.gnu.
*(.rel.fini)
*(.rel.rodata .rel.rodata.* .rel.gnu.
*
*(.rel.data .rel.data.* .rel.gnu.
*(.rel.tdata .rel.tdata.* .rel.gnu.
*(.rel.tbss .rel.tbss.* .rel.gnu.
*(.rel.ctors)
*(.rel.dtors)
*(.rel.got)
*(.rel.bss .rel.bss.* .rel.gnu.
*(.rel.ifunc)
}
.rel.plt :
{
*(.rel.plt)
PROVIDE_
*(.rel.iplt)
PROVIDE_
}
.init :
{
KEEP (*(SORT_
}
.plt : { *(.plt) *(.iplt) }
.text :
{
*(.
*(.text.exit .text.exit.*)
*(.text.startup .text.startup.*)
*(.text.hot .text.hot.*)
*(.text .stub .text.* .gnu.linkonce.t.*)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
}
.fini :
{
KEEP (*(SORT_
}
PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
.rodata1 : { *(.rodata1) }
.eh_frame_hdr : { *(.eh_frame_hdr) }
.eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
.gcc_except_table : ONLY_IF_RO { *(.gcc_except_table
.gcc_
/* These sections are generated by the Sun/Oracle C++ compiler. */
.exception_ranges : ONLY_IF_RO { *(.exception_ranges
.exception_
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) &
(CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT
(MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
/* Exception handling */
.eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
.gcc_except_table : ONLY_IF_RW { *(.gcc_except_table
.gcc_except_
.exception_ranges : ONLY_IF_RW { *(.exception_ranges
.exception_ranges*) }
/* Thread Local Storage sections */
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
.preinit_array :
{
PROVIDE_HIDDEN (__preinit_
KEEP (*(.preinit_array))
PROVIDE_HIDDEN (__preinit_
}
.init_array :
{
PROVIDE_HIDDEN (__init_array_start = .);
KEEP (*(SORT_
SORT_BY_
KEEP (*(.init_array))
KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o )
.ctors))
PROVIDE_HIDDEN (__init_array_end = .);
}
.fini_array :
{
PROVIDE_HIDDEN (__fini_array_start = .);
KEEP (*(SORT_
SORT_BY_
KEEP (*(.fini_array))
KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o )
.dtors))
PROVIDE_HIDDEN (__fini_array_end = .);
}
.ctors :
{
/* gcc uses crtbegin.o to find the start of
the constructors, so we make sure it is
first. Because this is a wildcard, it
doesn't matter if the user does not
actually link against crtbegin.o; the
linker won't look for a file to match a
wildcard. The wildcard also means that it
doesn't matter which directory crtbegin.o
is in. */
KEEP (*crtbegin.
KEEP (*crtbegin?
/* We don't want to include the .ctor section from
the crtend.o file until after the sorted ctors.
The .ctor section from the crtend file contains the
end of ctors marker and it must be last */
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
}
.dtors :
{
KEEP (*crtbegin.
KEEP (*crtbegin?
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
}
.jcr : { KEEP (*(.jcr)) }
.data.rel.ro : { *(.data.
data.rel.ro .data.rel.ro.* .gnu.linkonce.
.dynamic : { *(.dynamic) }
.got : { *(.got) *(.igot) }
. = DATA_SEGMENT_
.got.plt : { *(.got.plt) *(.igot.plt) }
.data :
{
*(.data .data.* .gnu.linkonce.d.*)
SORT(
}
.data1 : { *(.data1) }
_edata = .; PROVIDE (edata = .);
. = .;
__bss_start = .;
.bss :
{
*(.dynbss)
*(.bss .bss.* .gnu.linkonce.b.*)
*(COMMON)
/* Align here to ensure that the .bss section occupies space up to
_end. Align after .bss to ensure correct alignment even if the
.bss section disappears because there are no input sections.
FIXME: Why do we need it? When there is no .bss section, we don't
pad the .data section. */
. = ALIGN(. != 0 ? 32 / 8 : 1);
}
. = ALIGN(32 / 8);
. = ALIGN(32 / 8);
_end = .; PROVIDE (end = .);
. = DATA_SEGMENT_END (.);
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
.stab.excl 0 : { *(.stab.excl) }
.stab.exclstr 0 : { *(.stab.exclstr) }
.stab.index 0 : { *(.stab.index) }
.stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) }
/* DWARF debug sections.
Symbols in the DWARF debugging sections are relative to the beginning
of the section so we begin them at 0. */
/* DWARF 1 */
.debug 0 : { *(.debug) }
.line 0 : { *(.line) }
/* GNU DWARF 1 extensions */
.debug_srcinfo 0 : { *(.debug_srcinfo) }
.debug_sfnames 0 : { *(.debug_sfnames) }
/* DWARF 1.1 and DWARF 2 */
.debug_aranges 0 : { *(.debug_aranges) }
.debug_pubnames 0 : { *(.debug_pubnames) }
/* DWARF 2 */
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
.debug_abbrev 0 : { *(.debug_abbrev) }
.debug_line 0 : { *(.debug_line) }
.debug_frame 0 : { *(.debug_frame) }
.debug_str 0 : { *(.debug_str) }
.debug_loc 0 : { *(.debug_loc) }
.debug_macinfo 0 : { *(.debug_macinfo) }
/* SGI/MIPS DWARF 2 extensions */
.debug_weaknames 0 : { *(.debug_weaknames) }
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
/* DWARF 3 */
.debug_pubtypes 0 : { *(.debug_pubtypes) }
.debug_ranges 0 : { *(.debug_ranges) }
/* DWARF Extension. */
.debug_macro 0 : { *(.debug_macro) }
.gnu.attributes 0 : { KEEP (*(.gnu.
/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
}
=======
attempt to open
/usr/lib/
/usr/lib/
attempt to open
/usr/lib/
/usr/lib/
attempt to open /usr/lib/
/usr/lib/
attempt to open /usr/local/
-lrohc_decomp (/usr/local/
attempt to open /usr/local/
-lrohc_comp (/usr/local/
attempt to open /usr/local/
-lrohc_common (/usr/local/
attempt to open simple_
simple_
attempt to open /usr/local/
attempt to open /usr/local/
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open /usr/local/
attempt to open /usr/local/
attempt to open /usr/lib/
-lgcc_s (/usr/lib/
attempt to open /usr/local/
attempt to open /usr/local/
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open
/usr/lib/
opened script file
/usr/lib/
opened script file
/usr/lib/
attempt to open /lib/i386-
/lib/i386-
attempt to open /usr/lib/
(/usr/lib/
attempt to open /lib/i386-
/lib/i386-
attempt to open /usr/local/
attempt to open /usr/local/
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open /usr/local/
attempt to open /usr/local/
attempt to open /usr/lib/
-lgcc_s (/usr/lib/
attempt to open /usr/lib/
/usr/lib/
attempt to open
/usr/lib/
/usr/lib/
ld-linux.so.2 needed by /lib/i386-
found ld-linux.so.2 at /lib/i386-
simple_
/home/manish/
reference to `rohc_alloc_
/home/manish/
reference to `rohc_comp_
/home/manish/
reference to `rohc_activate_
/home/manish/
reference to `rohc_activate_
/home/manish/
reference to `rohc_compress2'
/home/manish/
reference to `rohc_free_
/home/manish/
reference to `rohc_free_
collect2: error: ld returned 1 exit status
manish@
On Wed, Sep 4, 2013 at 10:36 PM, Didier Barvaux <
<email address hidden>> wrote:
> Question #234832 on rohc changed:
> https:/
>
> Status: Open => Needs information
>
> Didier Barvaux requested more information:
> Two commands are missing:
>
> $ ld --version
> $ gcc -Wl,--verbose -o simple_rohc_program \
> $( PKG_CONFIG_
> simple_
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#26 |
The linker finds the libraries and use them, but it does not find the rohc_* symbols. Maybe they are not in the so file. Please send the output of the following commands to check:
$ readelf --syms /usr/local/
$ readelf --syms /usr/local/
$ readelf --syms /usr/local/
$ readelf --syms /usr/local/
Revision history for this message
|
#27 |
thanks for reply. this is log according your suggestion-
manish@
/usr/local/
121: 00004de0 656 FUNC GLOBAL DEFAULT 11 rohc_alloc_
512: 00004de0 656 FUNC GLOBAL DEFAULT 11 rohc_alloc_
manish@
/usr/local/
165: 00004100 43 FUNC GLOBAL DEFAULT 11 rohc_comp_
464: 00004100 43 FUNC GLOBAL DEFAULT 11 rohc_comp_
manish@
/usr/local/
112: 00004890 159 FUNC GLOBAL DEFAULT 11 rohc_activate_
397: 00004890 159 FUNC GLOBAL DEFAULT 11 rohc_activate_
manish@
/usr/local/
183: 00003f40 255 FUNC GLOBAL DEFAULT 11 rohc_free_
406: 00003f40 255 FUNC GLOBAL DEFAULT 11 rohc_free_
On Thu, Sep 5, 2013 at 12:41 AM, Didier Barvaux <
<email address hidden>> wrote:
> Question #234832 on rohc changed:
> https:/
>
> Status: Open => Needs information
>
> Didier Barvaux requested more information:
> The linker finds the libraries and use them, but it does not find the
> rohc_* symbols. Maybe they are not in the so file. Please send the
> output of the following commands to check:
>
> $ readelf --syms /usr/local/
> rohc_alloc_
> $ readelf --syms /usr/local/
> rohc_comp_
> $ readelf --syms /usr/local/
> rohc_activate_
> $ readelf --syms /usr/local/
> rohc_free_
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#28 |
Hello,
To summarize:
1/ gcc correctly builds the .o object from sources,
2/ ld fails to link a small programs with the ROHC libraries,
3/ ld correctly finds the librohc*.so files,
4/ the librohc*.so files seem correct (ELF 32-bit, symbols are all there).
I don't understand why it fails... Let's try with a smaller program that uses only the librohc_common.so library:
$ cat > test_rohc_common.c << EOF
> #include <stdlib.h>
> #include <stdio.h>
> #include <rohc.h>
>
> int main(int argc, char **argv)
> {
> printf("ROHC version %s\n", rohc_version());
> return 0;
> }
> EOF
$ cat test_rohc_common.c
$ gcc -o test_rohc_common -g -Wall -I/usr/
-L/
$ file test_rohc_common
Regards,
Didier
Revision history for this message
|
#29 |
this code also given compilation error.
this is log
manish@
> #include <stdlib.h>
> #include <stdio.h>
> #include <rohc.h>
>
> int main(int argc, char **argv)
> {
> printf("ROHC version %s\n", rohc_version());
> return 0;
>
> }
> EOF
manish@
#include <stdlib.h>
#include <stdio.h>
#include <rohc.h>
int main(int argc, char **argv)
{
printf("ROHC version %s\n", rohc_version());
return 0;
}
manish@
-I/usr/
/tmp/cc5H9Nty.o: In function `main':
/home/manish/
collect2: error: ld returned 1 exit statu
i need to reinstall or any other solution?
please help me
i am waiting for you and sorry about bothering to you for my questions.
On Thu, Sep 5, 2013 at 11:21 PM, Didier Barvaux <
<email address hidden>> wrote:
> Question #234832 on rohc changed:
> https:/
>
> Status: Open => Needs information
>
> Didier Barvaux requested more information:
> Hello,
>
> To summarize:
> 1/ gcc correctly builds the .o object from sources,
> 2/ ld fails to link a small programs with the ROHC libraries,
> 3/ ld correctly finds the librohc*.so files,
> 4/ the librohc*.so files seem correct (ELF 32-bit, symbols are all there).
>
> I don't understand why it fails... Let's try with a smaller program that
> uses only the librohc_common.so library:
>
> $ cat > test_rohc_common.c << EOF
> > #include <stdlib.h>
> > #include <stdio.h>
> > #include <rohc.h>
> >
> > int main(int argc, char **argv)
> > {
> > printf("ROHC version %s\n", rohc_version());
> > return 0;
> > }
> > EOF
> $ cat test_rohc_common.c
> $ gcc -o test_rohc_common -g -Wall -I/usr/
> -L/usr/local/lib/ -lrohc_common test_rohc_common.c
> $ file test_rohc_common
>
> Regards,
> Didier
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#30 |
sorry for typo waiting for you reply
thank you
On Fri, Sep 6, 2013 at 8:01 PM, manish shivare <
<email address hidden>> wrote:
> Question #234832 on rohc changed:
> https:/
>
> Status: Needs information => Open
>
> manish shivare gave more information on the question:
> this code also given compilation error.
> this is log
> manish@
> > #include <stdlib.h>
> > #include <stdio.h>
> > #include <rohc.h>
> >
> > int main(int argc, char **argv)
> > {
> > printf("ROHC version %s\n", rohc_version());
> > return 0;
> >
> > }
> > EOF
> manish@
> #include <stdlib.h>
> #include <stdio.h>
> #include <rohc.h>
>
> int main(int argc, char **argv)
> {
> printf("ROHC version %s\n", rohc_version());
> return 0;
>
> }
> manish@
> -I/usr/
> test_rohc_common.c
> /tmp/cc5H9Nty.o: In function `main':
> /home/manish/
> collect2: error: ld returned 1 exit statu
>
>
> i need to reinstall or any other solution?
> please help me
> i am waiting for you and sorry about bothering to you for my questions.
>
>
> On Thu, Sep 5, 2013 at 11:21 PM, Didier Barvaux <
> <email address hidden>> wrote:
>
> > Question #234832 on rohc changed:
> > https:/
> >
> > Status: Open => Needs information
> >
> > Didier Barvaux requested more information:
> > Hello,
> >
> > To summarize:
> > 1/ gcc correctly builds the .o object from sources,
> > 2/ ld fails to link a small programs with the ROHC libraries,
> > 3/ ld correctly finds the librohc*.so files,
> > 4/ the librohc*.so files seem correct (ELF 32-bit, symbols are all
> there).
> >
> > I don't understand why it fails... Let's try with a smaller program that
> > uses only the librohc_common.so library:
> >
> > $ cat > test_rohc_common.c << EOF
> > > #include <stdlib.h>
> > > #include <stdio.h>
> > > #include <rohc.h>
> > >
> > > int main(int argc, char **argv)
> > > {
> > > printf("ROHC version %s\n", rohc_version());
> > > return 0;
> > > }
> > > EOF
> > $ cat test_rohc_common.c
> > $ gcc -o test_rohc_common -g -Wall -I/usr/
> > -L/usr/local/lib/ -lrohc_common test_rohc_common.c
> > $ file test_rohc_common
> >
> > Regards,
> > Didier
> >
> > --
> > You received this question notification because you are a member of ROHC
> > Team, which is an answer contact for rohc.
> >
> > _______
> > Mailing list: https:/
> > Post to : <email address hidden>
> > Unsubscribe : https:/
> > More help : https:/
> >
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#31 |
Could you please try with another installation?
$ mkdir /tmp/rohc_sources
$ cd /tmp/rohc_sources
$ wget https:/
$ tar -xjf rohc-1.6.1.tar.bz2
$ cd rohc-1.6.1
$ ./configure --prefix=
$ make clean all install
$ cd ..
$ cat > test_rohc_common.c << EOF
> #include <stdlib.h>
> #include <stdio.h>
> #include <rohc.h>
>
> int main(int argc, char **argv)
> {
> printf("ROHC version %s\n", rohc_version());
> return 0;
>
> }
> EOF
$ gcc -o test_rohc_common -g -Wall -I/tmp/
-lrohc_common -L/tmp/
$ file ./test_rohc_common
$ LD_LIBRARY_
Revision history for this message
|
#32 |
thank you for reply. i am giving a log-
manish@
manish@
manish@
-o simple_rohc_program $( PKG_CONFIG_
pkg-config rohc --libs ) simple_
GNU ld (GNU Binutils for Ubuntu) 2.22.90.20120924
Supported emulations:
elf_i386
i386linux
elf32_x86_64
elf_x86_64
elf_l1om
elf_k1om
using internal linker script:
=======
/* Script for -z combreloc: combine and sort reloc sections */
OUTPUT_
OUTPUT_ARCH(i386)
ENTRY(_start)
SEARCH_
SEARCH_
SEARCH_
SEARCH_
SEARCH_
SEARCH_
SECTIONS
{
/* Read-only sections, merged into text segment: */
PROVIDE (__executable_start = SEGMENT_
. = SEGMENT_
.interp : { *(.interp) }
.note.
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.gnu.version : { *(.gnu.version) }
.gnu.version_d : { *(.gnu.version_d) }
.gnu.version_r : { *(.gnu.version_r) }
.rel.dyn :
{
*(.rel.init)
*(.rel.text .rel.text.* .rel.gnu.
*(.rel.fini)
*(.rel.rodata .rel.rodata.* .rel.gnu.
*
*(.rel.data .rel.data.* .rel.gnu.
*(.rel.tdata .rel.tdata.* .rel.gnu.
*(.rel.tbss .rel.tbss.* .rel.gnu.
*(.rel.ctors)
*(.rel.dtors)
*(.rel.got)
*(.rel.bss .rel.bss.* .rel.gnu.
*(.rel.ifunc)
}
.rel.plt :
{
*(.rel.plt)
PROVIDE_
*(.rel.iplt)
PROVIDE_
}
.init :
{
KEEP (*(SORT_
}
.plt : { *(.plt) *(.iplt) }
.text :
{
*(.
*(.text.exit .text.exit.*)
*(.text.startup .text.startup.*)
*(.text.hot .text.hot.*)
*(.text .stub .text.* .gnu.linkonce.t.*)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
}
.fini :
{
KEEP (*(SORT_
}
PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
.rodata1 : { *(.rodata1) }
.eh_frame_hdr : { *(.eh_frame_hdr) }
.eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
.gcc_except_table : ONLY_IF_RO { *(.gcc_except_table
.gcc_
/* These sections are generated by the Sun/Oracle C++ compiler. */
.exception_ranges : ONLY_IF_RO { *(.exception_ranges
.exception_
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) &
(CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT
(MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
/* Exception handling */
.eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
.gcc_except_table : ONLY_IF_RW { *(.gcc_except_table
.gcc_except_
.exception_ranges : ONLY_IF_RW { *(.exception_ranges
.exception_ranges*) }
/* Thread Local Storage sections */
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
.preinit_array :
{
PROVIDE_HIDDEN (__preinit_
KEEP (*(.preinit_array))
PROVIDE_HIDDEN (__preinit_
}
.init_array :
{
PROVIDE_HIDDEN (__init_array_start = .);
KEEP (*(SORT_
SORT_BY_
KEEP (*(.init_array))
KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o )
.ctors))
PROVIDE_HIDDEN (__init_array_end = .);
}
.fini_array :
{
PROVIDE_HIDDEN (__fini_array_start = .);
KEEP (*(SORT_
SORT_BY_
KEEP (*(.fini_array))
KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o )
.dtors))
PROVIDE_HIDDEN (__fini_array_end = .);
}
.ctors :
{
/* gcc uses crtbegin.o to find the start of
the constructors, so we make sure it is
first. Because this is a wildcard, it
doesn't matter if the user does not
actually link against crtbegin.o; the
linker won't look for a file to match a
wildcard. The wildcard also means that it
doesn't matter which directory crtbegin.o
is in. */
KEEP (*crtbegin.
KEEP (*crtbegin?
/* We don't want to include the .ctor section from
the crtend.o file until after the sorted ctors.
The .ctor section from the crtend file contains the
end of ctors marker and it must be last */
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
}
.dtors :
{
KEEP (*crtbegin.
KEEP (*crtbegin?
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
}
.jcr : { KEEP (*(.jcr)) }
.data.rel.ro : { *(.data.
data.rel.ro .data.rel.ro.* .gnu.linkonce.
.dynamic : { *(.dynamic) }
.got : { *(.got) *(.igot) }
. = DATA_SEGMENT_
.got.plt : { *(.got.plt) *(.igot.plt) }
.data :
{
*(.data .data.* .gnu.linkonce.d.*)
SORT(
}
.data1 : { *(.data1) }
_edata = .; PROVIDE (edata = .);
. = .;
__bss_start = .;
.bss :
{
*(.dynbss)
*(.bss .bss.* .gnu.linkonce.b.*)
*(COMMON)
/* Align here to ensure that the .bss section occupies space up to
_end. Align after .bss to ensure correct alignment even if the
.bss section disappears because there are no input sections.
FIXME: Why do we need it? When there is no .bss section, we don't
pad the .data section. */
. = ALIGN(. != 0 ? 32 / 8 : 1);
}
. = ALIGN(32 / 8);
. = ALIGN(32 / 8);
_end = .; PROVIDE (end = .);
. = DATA_SEGMENT_END (.);
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
.stab.excl 0 : { *(.stab.excl) }
.stab.exclstr 0 : { *(.stab.exclstr) }
.stab.index 0 : { *(.stab.index) }
.stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) }
/* DWARF debug sections.
Symbols in the DWARF debugging sections are relative to the beginning
of the section so we begin them at 0. */
/* DWARF 1 */
.debug 0 : { *(.debug) }
.line 0 : { *(.line) }
/* GNU DWARF 1 extensions */
.debug_srcinfo 0 : { *(.debug_srcinfo) }
.debug_sfnames 0 : { *(.debug_sfnames) }
/* DWARF 1.1 and DWARF 2 */
.debug_aranges 0 : { *(.debug_aranges) }
.debug_pubnames 0 : { *(.debug_pubnames) }
/* DWARF 2 */
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
.debug_abbrev 0 : { *(.debug_abbrev) }
.debug_line 0 : { *(.debug_line) }
.debug_frame 0 : { *(.debug_frame) }
.debug_str 0 : { *(.debug_str) }
.debug_loc 0 : { *(.debug_loc) }
.debug_macinfo 0 : { *(.debug_macinfo) }
/* SGI/MIPS DWARF 2 extensions */
.debug_weaknames 0 : { *(.debug_weaknames) }
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
/* DWARF 3 */
.debug_pubtypes 0 : { *(.debug_pubtypes) }
.debug_ranges 0 : { *(.debug_ranges) }
/* DWARF Extension. */
.debug_macro 0 : { *(.debug_macro) }
.gnu.attributes 0 : { KEEP (*(.gnu.
/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
}
=======
attempt to open
/usr/lib/
/usr/lib/
attempt to open
/usr/lib/
/usr/lib/
attempt to open /usr/lib/
/usr/lib/
attempt to open /usr/local/
-lrohc_decomp (/usr/local/
attempt to open /usr/local/
-lrohc_comp (/usr/local/
attempt to open /usr/local/
-lrohc_common (/usr/local/
attempt to open simple_
simple_
attempt to open /usr/local/
attempt to open /usr/local/
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open /usr/local/
attempt to open /usr/local/
attempt to open /usr/lib/
-lgcc_s (/usr/lib/
attempt to open /usr/local/
attempt to open /usr/local/
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open
/usr/lib/
opened script file
/usr/lib/
opened script file
/usr/lib/
attempt to open /lib/i386-
/lib/i386-
attempt to open /usr/lib/
(/usr/lib/
attempt to open /lib/i386-
/lib/i386-
attempt to open /usr/local/
attempt to open /usr/local/
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open /usr/local/
attempt to open /usr/local/
attempt to open /usr/lib/
-lgcc_s (/usr/lib/
attempt to open /usr/lib/
/usr/lib/
attempt to open
/usr/lib/
/usr/lib/
ld-linux.so.2 needed by /lib/i386-
found ld-linux.so.2 at /lib/i386-
simple_
simple_
`rohc_alloc_
simple_
`rohc_comp_
simple_
`rohc_activate_
simple_
`rohc_activate_
simple_
simple_
`rohc_free_
simple_
`rohc_free_
collect2: error: ld returned 1 exit status
according to my analysis this file are create problem
attempt to open /usr/lib/
attempt to open /usr/local/
attempt to open /usr/local/
because they are not present in a directory.
any suggestion regarding this problem.
On Sat, Sep 7, 2013 at 9:56 AM, manish shivare <
<email address hidden>> wrote:
> Question #234832 on rohc changed:
> https:/
>
> manish shivare gave more information on the question:
> sorry for typo waiting for you reply
> thank you
>
>
> On Fri, Sep 6, 2013 at 8:01 PM, manish shivare <
> <email address hidden>> wrote:
>
> > Question #234832 on rohc changed:
> > https:/
> >
> > Status: Needs information => Open
> >
> > manish shivare gave more information on the question:
> > this code also given compilation error.
> > this is log
> > manish@
> > > #include <stdlib.h>
> > > #include <stdio.h>
> > > #include <rohc.h>
> > >
> > > int main(int argc, char **argv)
> > > {
> > > printf("ROHC version %s\n", rohc_version());
> > > return 0;
> > >
> > > }
> > > EOF
> > manish@
> > #include <stdlib.h>
> > #include <stdio.h>
> > #include <rohc.h>
> >
> > int main(int argc, char **argv)
> > {
> > printf("ROHC version %s\n", rohc_version());
> > return 0;
> >
> > }
> > manish@
> > -I/usr/
> > test_rohc_common.c
> > /tmp/cc5H9Nty.o: In function `main':
> > /home/manish/
> > collect2: error: ld returned 1 exit statu
> >
> >
> > i need to reinstall or any other solution?
> > please help me
> > i am waiting for you and sorry about bothering to you for my questions.
> >
> >
> > On Thu, Sep 5, 2013 at 11:21 PM, Didier Barvaux <
> > <email address hidden>> wrote:
> >
> > > Question #234832 on rohc changed:
> > > https:/
> > >
> > > Status: Open => Needs information
> > >
> > > Didier Barvaux requested more information:
> > > Hello,
> > >
> > > To summarize:
> > > 1/ gcc correctly builds the .o object from sources,
> > > 2/ ld fails to link a small programs with the ROHC libraries,
> > > 3/ ld correctly finds the librohc*.so files,
> > > 4/ the librohc*.so files seem correct (ELF 32-bit, symbols are all
> > there).
> > >
> > > I don't understand why it fails... Let's try with a smaller program
> that
> > > uses only the librohc_common.so library:
> > >
> > > $ cat > test_rohc_common.c << EOF
> > > > #include <stdlib.h>
> > > > #include <stdio.h>
> > > > #include <rohc.h>
> > > >
> > > > int main(int argc, char **argv)
> > > > {
> > > > printf("ROHC version %s\n", rohc_version());
> > > > return 0;
> > > > }
> > > > EOF
> > > $ cat test_rohc_common.c
> > > $ gcc -o test_rohc_common -g -Wall -I/usr/
> > > -L/usr/local/lib/ -lrohc_common test_rohc_common.c
> > > $ file test_rohc_common
> > >
> > > Regards,
> > > Didier
> > >
> > > --
> > > You received this question notification because you are a member of
> ROHC
> > > Team, which is an answer contact for rohc.
> > >
> > > _______
> > > Mailing list: https:/
> > > Post to : <email address hidden>
> > > Unsubscribe : https:/
> > > More help : https:/
> > >
> >
> > --
> > You received this question notification because you are a member of ROHC
> > Team, which is an answer contact for rohc.
> >
> > _______
> > Mailing list: https:/
> > Post to : <email address hidden>
> > Unsubscribe : https:/
> > More help : https:/
> >
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#33 |
> according to my analysis this file are create problem
> attempt to open /usr/lib/
> attempt to open /usr/local/
> attempt to open /usr/local/
> because they are not present in a directory.
> any suggestion regarding this problem.
I don't think so. I got same failures on my system. libgcc.a is found, so the libgcc.so failure is not a problem. libgcc_s.(so|a) is found in another directory.
Did you try to re-install as described in my previous message?
Didier
Revision history for this message
|
#34 |
hello sir,
yes, i try to re-install according to your instruction
but still found compilation error-
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries...
yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking for sys/types.h... (cached) yes
checking linux/if_tun.h usability... yes
checking linux/if_tun.h presence... yes
checking for linux/if_tun.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for gcc option to accept ISO C99... -std=gnu99
checking for malloc... yes
checking for calloc... yes
checking for free... yes
checking for memcpy... yes
checking for memcmp... yes
checking for ntohl... yes
checking for htonl... yes
checking for ntohs... yes
checking for htons... yes
checking for sched_setschedu
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking whether the Linux kernel module shall be built... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating bzr_revno
config.status: creating src/Makefile
config.status: creating src/common/Makefile
config.status: creating src/common/
config.status: creating src/common/
config.status: creating src/comp/Makefile
config.status: creating src/comp/
config.status: creating src/decomp/Makefile
config.status: creating test/Makefile
config.status: creating test/functional
config.status: creating test/functional
config.status: creating test/functional
config.status: creating test/functional
config.status: creating test/functional
config.status: creating test/functional
config.status: creating test/functional
config.status: creating test/functional
config.status: creating test/robustness
config.status: creating test/robustness
config.status: creating test/robustness
config.status: creating test/robustness
config.status: creating test/robustness
config.status: creating test/robustness
config.status: creating test/non_
config.status: creating statistics/Makefile
config.status: creating examples/Makefile
config.status: creating linux/Makefile
config.status: creating app/Makefile
config.status: creating app/performance
config.status: creating app/tunnel/Makefile
config.status: creating app/sniffer/
config.status: creating app/fuzzer/Makefile
config.status: creating doc/doxygen.conf
config.status: creating doc/Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/rohc.spec
config.status: creating rohc.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
manish@
all install
Making clean in src
make[1]: Entering directory `/tmp/rohc_
Making clean in .
make[2]: Entering directory `/tmp/rohc_
rm -rf .libs _libs
rm -f *.lo
make[2]: Leaving directory `/tmp/rohc_
Making clean in common
make[2]: Entering directory `/tmp/rohc_
Making clean in protocols
make[3]: Entering directory
`/tmp/rohc_
rm -rf .libs _libs
rm -f *.lo
make[3]: Leaving directory
`/tmp/rohc_
Making clean in .
make[3]: Entering directory `/tmp/rohc_
test -z "librohc_common.la" || rm -f librohc_common.la
rm -f ./so_locations
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
make[3]: Leaving directory `/tmp/rohc_
Making clean in test
make[3]: Entering directory `/tmp/rohc_
rm -f test_lsb_
test_rtp_
rm -rf .libs _libs
rm -f *.o
test -z "test_lsb_
test_lsb_
test_lsb_
test_rtp_
test -z "test_lsb_
test_lsb_
test_lsb_
test_rtp_
test -z "test-suite.log" || rm -f test-suite.log
rm -f *.lo
make[3]: Leaving directory `/tmp/rohc_
make[2]: Leaving directory `/tmp/rohc_
Making clean in comp
make[2]: Entering directory `/tmp/rohc_
Making clean in .
make[3]: Entering directory `/tmp/rohc_
test -z "librohc_comp.la" || rm -f librohc_comp.la
rm -f ./so_locations
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
make[3]: Leaving directory `/tmp/rohc_
Making clean in test
make[3]: Entering directory `/tmp/rohc_
rm -f test_api_robustness
rm -rf .libs _libs
rm -f *.o
test -z "test_api_
test -z "test_api_
test -z "test-suite.log" || rm -f test-suite.log
rm -f *.lo
make[3]: Leaving directory `/tmp/rohc_
make[2]: Leaving directory `/tmp/rohc_
Making clean in decomp
make[2]: Entering directory `/tmp/rohc_
test -z "librohc_decomp.la" || rm -f librohc_decomp.la
rm -f ./so_locations
rm -rf .libs _libs
rm -f *.o
rm -f *.lo
make[2]: Leaving directory `/tmp/rohc_
make[1]: Leaving directory `/tmp/rohc_
Making clean in app
make[1]: Entering directory `/tmp/rohc_
make[2]: Entering directory `/tmp/rohc_
rm -rf .libs _libs
rm -f *.lo
make[2]: Leaving directory `/tmp/rohc_
make[1]: Leaving directory `/tmp/rohc_
Making clean in contrib
make[1]: Entering directory `/tmp/rohc_
rm -rf .libs _libs
rm -f *.lo
make[1]: Leaving directory `/tmp/rohc_
make[1]: Entering directory `/tmp/rohc_
rm -rf .libs _libs
test -z "" || rm -f
test -z "" || rm -f
test -z "test-suite.log" || rm -f test-suite.log
rm -f *.lo
make[1]: Leaving directory `/tmp/rohc_
make all-recursive
make[1]: Entering directory `/tmp/rohc_
Making all in src
make[2]: Entering directory `/tmp/rohc_
Making all in .
make[3]: Entering directory `/tmp/rohc_
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/tmp/rohc_
Making all in common
make[3]: Entering directory `/tmp/rohc_
Making all in protocols
make[4]: Entering directory
`/tmp/rohc_
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/tmp/rohc_
Making all in .
make[4]: Entering directory `/tmp/rohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CCLD librohc_common.la
make[4]: Leaving directory `/tmp/rohc_
Making all in test
make[4]: Entering directory `/tmp/rohc_
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/tmp/rohc_
make[3]: Leaving directory `/tmp/rohc_
Making all in comp
make[3]: Entering directory `/tmp/rohc_
Making all in .
make[4]: Entering directory `/tmp/rohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CCLD librohc_comp.la
make[4]: Leaving directory `/tmp/rohc_
Making all in test
make[4]: Entering directory `/tmp/rohc_
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/tmp/rohc_
make[3]: Leaving directory `/tmp/rohc_
Making all in decomp
make[3]: Entering directory `/tmp/rohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CC librohc_
CCLD librohc_decomp.la
make[3]: Leaving directory `/tmp/rohc_
make[2]: Leaving directory `/tmp/rohc_
Making all in app
make[2]: Entering directory `/tmp/rohc_
make[3]: Entering directory `/tmp/rohc_
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/tmp/rohc_
make[2]: Leaving directory `/tmp/rohc_
Making all in contrib
make[2]: Entering directory `/tmp/rohc_
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/rohc_
make[2]: Entering directory `/tmp/rohc_
make[2]: Leaving directory `/tmp/rohc_
make[1]: Leaving directory `/tmp/rohc_
Making install in src
make[1]: Entering directory `/tmp/rohc_
Making install in .
make[2]: Entering directory `/tmp/rohc_
make[3]: Entering directory `/tmp/rohc_
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/tmp/rohc_
make[2]: Leaving directory `/tmp/rohc_
Making install in common
make[2]: Entering directory `/tmp/rohc_
Making install in protocols
make[3]: Entering directory
`/tmp/rohc_
make[4]: Entering directory
`/tmp/rohc_
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory
`/tmp/rohc_
make[3]: Leaving directory
`/tmp/rohc_
Making install in .
make[3]: Entering directory `/tmp/rohc_
make[4]: Entering directory `/tmp/rohc_
/bin/mkdir -p '/tmp/rohc_
/bin/bash ../../libtool --mode=install /usr/bin/install -c
librohc_common.la '/tmp/rohc_
libtool: install: /usr/bin/install -c .libs/librohc_
/tmp/rohc_
libtool: install: (cd /tmp/rohc_
librohc_
&& ln -s librohc_
libtool: install: (cd /tmp/rohc_
librohc_
ln -s librohc_
libtool: install: /usr/bin/install -c .libs/librohc_
/tmp/rohc_
libtool: finish:
PATH="/
ldconfig -n /tmp/rohc_
-------
Libraries have been installed in:
/tmp/
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
-------
/bin/mkdir -p '/tmp/rohc_
/usr/bin/install -c -m 644 rohc.h rohc_packets.h rohc_traces.h
'/tmp/rohc_
make[4]: Leaving directory `/tmp/rohc_
make[3]: Leaving directory `/tmp/rohc_
Making install in test
make[3]: Entering directory `/tmp/rohc_
make[4]: Entering directory `/tmp/rohc_
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/tmp/rohc_
make[3]: Leaving directory `/tmp/rohc_
make[2]: Leaving directory `/tmp/rohc_
Making install in comp
make[2]: Entering directory `/tmp/rohc_
Making install in .
make[3]: Entering directory `/tmp/rohc_
make[4]: Entering directory `/tmp/rohc_
/bin/mkdir -p '/tmp/rohc_
/bin/bash ../../libtool --mode=install /usr/bin/install -c
librohc_comp.la '/tmp/rohc_
libtool: install: warning: relinking `librohc_comp.la'
libtool: install: (cd /tmp/rohc_
/tmp/rohc_
-std=gnu99 -g -Wall -Wstrict-prototypes -g -O2 -no-undefined -version-info
1:0:1 -L../..
/tmp/rohc_
librohc_
librohc_
librohc_
librohc_
libtool: install: /usr/bin/install -c .libs/librohc_
/tmp/rohc_
libtool: install: (cd /tmp/rohc_
librohc_
-s librohc_
libtool: install: (cd /tmp/rohc_
librohc_
librohc_
libtool: install: /usr/bin/install -c .libs/librohc_
/tmp/rohc_
libtool: finish:
PATH="/
ldconfig -n /tmp/rohc_
-------
Libraries have been installed in:
/tmp/
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
-------
/bin/mkdir -p '/tmp/rohc_
/usr/bin/install -c -m 644 rohc_comp.h '/tmp/rohc_
make[4]: Leaving directory `/tmp/rohc_
make[3]: Leaving directory `/tmp/rohc_
Making install in test
make[3]: Entering directory `/tmp/rohc_
make[4]: Entering directory `/tmp/rohc_
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/tmp/rohc_
make[3]: Leaving directory `/tmp/rohc_
make[2]: Leaving directory `/tmp/rohc_
Making install in decomp
make[2]: Entering directory `/tmp/rohc_
make[3]: Entering directory `/tmp/rohc_
/bin/mkdir -p '/tmp/rohc_
/bin/bash ../../libtool --mode=install /usr/bin/install -c
librohc_decomp.la '/tmp/rohc_
libtool: install: warning: relinking `librohc_decomp.la'
libtool: install: (cd /tmp/rohc_
/tmp/rohc_
-std=gnu99 -g -Wall -Wstrict-prototypes -g -O2 -no-undefined -version-info
1:0:1 -L../..
librohc_
librohc_
librohc_
librohc_
librohc_
librohc_
-lrohc_comp )
libtool: install: /usr/bin/install -c .libs/librohc_
/tmp/rohc_
libtool: install: (cd /tmp/rohc_
librohc_
&& ln -s librohc_
libtool: install: (cd /tmp/rohc_
librohc_
ln -s librohc_
libtool: install: /usr/bin/install -c .libs/librohc_
/tmp/rohc_
libtool: finish:
PATH="/
ldconfig -n /tmp/rohc_
-------
Libraries have been installed in:
/tmp/
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
-------
/bin/mkdir -p '/tmp/rohc_
/usr/bin/install -c -m 644 rohc_decomp.h '/tmp/rohc_
make[3]: Leaving directory `/tmp/rohc_
make[2]: Leaving directory `/tmp/rohc_
make[1]: Leaving directory `/tmp/rohc_
Making install in app
make[1]: Entering directory `/tmp/rohc_
make[2]: Entering directory `/tmp/rohc_
make[3]: Entering directory `/tmp/rohc_
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/tmp/rohc_
make[2]: Leaving directory `/tmp/rohc_
make[1]: Leaving directory `/tmp/rohc_
Making install in contrib
make[1]: Entering directory `/tmp/rohc_
make[2]: Entering directory `/tmp/rohc_
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/tmp/rohc_
make[1]: Leaving directory `/tmp/rohc_
make[1]: Entering directory `/tmp/rohc_
make[2]: Entering directory `/tmp/rohc_
make[2]: Nothing to be done for `install-exec-am'.
/bin/mkdir -p '/tmp/rohc_
/usr/bin/install -c -m 644 README INSTALL COPYING AUTHORS ChangeLog
'/tmp/rohc_
/bin/mkdir -p '/tmp/rohc_
/usr/bin/install -c -m 644 rohc.pc '/tmp/rohc_
make[2]: Leaving directory `/tmp/rohc_
make[1]: Leaving directory `/tmp/rohc_
manish@
manish@
test_rohc_common.c << EOF
> #include <stdlib.h>
> #include <stdio.h>
> #include <rohc.h>
> int main(int argc, char **argv)
> {
> printf("ROHC version %s\n", rohc_version());
> return 0;
> }
> EOF
manish@
-g -Wall -I/tmp/
-L/tmp/
/tmp/cchpXK8J.o: In function `main':
/tmp/rohc_
`rohc_version'
collect2: error: ld returned 1 exit status
On Sat, Sep 7, 2013 at 6:36 PM, Didier Barvaux <
<email address hidden>> wrote:
> Question #234832 on rohc changed:
> https:/
>
> Didier Barvaux posted a new comment:
> > according to my analysis this file are create problem
> > attempt to open /usr/lib/
> > attempt to open /usr/local/
> > attempt to open /usr/local/
> > because they are not present in a directory.
> > any suggestion regarding this problem.
>
> I don't think so. I got same failures on my system. libgcc.a is found,
> so the libgcc.so failure is not a problem. libgcc_s.(so|a) is found in
> another directory.
>
> Did you try to re-install as described in my previous message?
>
> Didier
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#35 |
Thanks. The problem was probably not caused by the previous installation. It may be either a global problem with your system (gcc, ld...) or a specific problem with librohc. Let's try to build a small application that links with another library, libpcap.
$ sudo apt-get install libpcap libpcap-dev # if not already installed
$ cat > test_pcap.c << EOF
> #include <pcap/pcap.h>
>
> int main(int argc, char *argv[])
> {
> pcap_t *handle;
> handle = pcap_open_
> pcap_close(handle);
> return 0;
> }
> EOF
$ gcc -Wl,--verbose -o test_pcap -lpcap test_pcap.c
$ file test_pcap
$ ldd test_pcap
Regards,
Didier
Revision history for this message
|
#36 |
thank u for reply. but i still found the same problem.
this is log
manish@
int main(int argc, char *argv[])
{
pcap_t *handle;
handle = pcap_open_
pcap_close(handle);
return 0;
}
manish@
test_pcap.c
GNU ld (GNU Binutils for Ubuntu) 2.22.90.20120924
Supported emulations:
elf_i386
i386linux
elf32_x86_64
elf_x86_64
elf_l1om
elf_k1om
using internal linker script:
=======
/* Script for -z combreloc: combine and sort reloc sections */
OUTPUT_
OUTPUT_ARCH(i386)
ENTRY(_start)
SEARCH_
SEARCH_
SEARCH_
SEARCH_
SEARCH_
SEARCH_
SECTIONS
{
/* Read-only sections, merged into text segment: */
PROVIDE (__executable_start = SEGMENT_
. = SEGMENT_
.interp : { *(.interp) }
.note.
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.gnu.version : { *(.gnu.version) }
.gnu.version_d : { *(.gnu.version_d) }
.gnu.version_r : { *(.gnu.version_r) }
.rel.dyn :
{
*(.rel.init)
*(.rel.text .rel.text.* .rel.gnu.
*(.rel.fini)
*(.rel.rodata .rel.rodata.* .rel.gnu.
*
*(.rel.data .rel.data.* .rel.gnu.
*(.rel.tdata .rel.tdata.* .rel.gnu.
*(.rel.tbss .rel.tbss.* .rel.gnu.
*(.rel.ctors)
*(.rel.dtors)
*(.rel.got)
*(.rel.bss .rel.bss.* .rel.gnu.
*(.rel.ifunc)
}
.rel.plt :
{
*(.rel.plt)
PROVIDE_
*(.rel.iplt)
PROVIDE_
}
.init :
{
KEEP (*(SORT_
}
.plt : { *(.plt) *(.iplt) }
.text :
{
*(.
*(.text.exit .text.exit.*)
*(.text.startup .text.startup.*)
*(.text.hot .text.hot.*)
*(.text .stub .text.* .gnu.linkonce.t.*)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
}
.fini :
{
KEEP (*(SORT_
}
PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
.rodata1 : { *(.rodata1) }
.eh_frame_hdr : { *(.eh_frame_hdr) }
.eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
.gcc_except_table : ONLY_IF_RO { *(.gcc_except_table
.gcc_
/* These sections are generated by the Sun/Oracle C++ compiler. */
.exception_ranges : ONLY_IF_RO { *(.exception_ranges
.exception_
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) &
(CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT
(MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
/* Exception handling */
.eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
.gcc_except_table : ONLY_IF_RW { *(.gcc_except_table
.gcc_except_
.exception_ranges : ONLY_IF_RW { *(.exception_ranges
.exception_ranges*) }
/* Thread Local Storage sections */
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
.preinit_array :
{
PROVIDE_HIDDEN (__preinit_
KEEP (*(.preinit_array))
PROVIDE_HIDDEN (__preinit_
}
.init_array :
{
PROVIDE_HIDDEN (__init_array_start = .);
KEEP (*(SORT_
SORT_BY_
KEEP (*(.init_array))
KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o )
.ctors))
PROVIDE_HIDDEN (__init_array_end = .);
}
.fini_array :
{
PROVIDE_HIDDEN (__fini_array_start = .);
KEEP (*(SORT_
SORT_BY_
KEEP (*(.fini_array))
KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o )
.dtors))
PROVIDE_HIDDEN (__fini_array_end = .);
}
.ctors :
{
/* gcc uses crtbegin.o to find the start of
the constructors, so we make sure it is
first. Because this is a wildcard, it
doesn't matter if the user does not
actually link against crtbegin.o; the
linker won't look for a file to match a
wildcard. The wildcard also means that it
doesn't matter which directory crtbegin.o
is in. */
KEEP (*crtbegin.
KEEP (*crtbegin?
/* We don't want to include the .ctor section from
the crtend.o file until after the sorted ctors.
The .ctor section from the crtend file contains the
end of ctors marker and it must be last */
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
}
.dtors :
{
KEEP (*crtbegin.
KEEP (*crtbegin?
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
}
.jcr : { KEEP (*(.jcr)) }
.data.rel.ro : { *(.data.
data.rel.ro .data.rel.ro.* .gnu.linkonce.
.dynamic : { *(.dynamic) }
.got : { *(.got) *(.igot) }
. = DATA_SEGMENT_
.got.plt : { *(.got.plt) *(.igot.plt) }
.data :
{
*(.data .data.* .gnu.linkonce.d.*)
SORT(
}
.data1 : { *(.data1) }
_edata = .; PROVIDE (edata = .);
. = .;
__bss_start = .;
.bss :
{
*(.dynbss)
*(.bss .bss.* .gnu.linkonce.b.*)
*(COMMON)
/* Align here to ensure that the .bss section occupies space up to
_end. Align after .bss to ensure correct alignment even if the
.bss section disappears because there are no input sections.
FIXME: Why do we need it? When there is no .bss section, we don't
pad the .data section. */
. = ALIGN(. != 0 ? 32 / 8 : 1);
}
. = ALIGN(32 / 8);
. = ALIGN(32 / 8);
_end = .; PROVIDE (end = .);
. = DATA_SEGMENT_END (.);
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
.stab.excl 0 : { *(.stab.excl) }
.stab.exclstr 0 : { *(.stab.exclstr) }
.stab.index 0 : { *(.stab.index) }
.stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) }
/* DWARF debug sections.
Symbols in the DWARF debugging sections are relative to the beginning
of the section so we begin them at 0. */
/* DWARF 1 */
.debug 0 : { *(.debug) }
.line 0 : { *(.line) }
/* GNU DWARF 1 extensions */
.debug_srcinfo 0 : { *(.debug_srcinfo) }
.debug_sfnames 0 : { *(.debug_sfnames) }
/* DWARF 1.1 and DWARF 2 */
.debug_aranges 0 : { *(.debug_aranges) }
.debug_pubnames 0 : { *(.debug_pubnames) }
/* DWARF 2 */
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
.debug_abbrev 0 : { *(.debug_abbrev) }
.debug_line 0 : { *(.debug_line) }
.debug_frame 0 : { *(.debug_frame) }
.debug_str 0 : { *(.debug_str) }
.debug_loc 0 : { *(.debug_loc) }
.debug_macinfo 0 : { *(.debug_macinfo) }
/* SGI/MIPS DWARF 2 extensions */
.debug_weaknames 0 : { *(.debug_weaknames) }
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
/* DWARF 3 */
.debug_pubtypes 0 : { *(.debug_pubtypes) }
.debug_ranges 0 : { *(.debug_ranges) }
/* DWARF Extension. */
.debug_macro 0 : { *(.debug_macro) }
.gnu.attributes 0 : { KEEP (*(.gnu.
/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
}
=======
attempt to open
/usr/lib/
/usr/lib/
attempt to open
/usr/lib/
/usr/lib/
attempt to open /usr/lib/
/usr/lib/
attempt to open /tmp/ccvbPF0j.o succeeded
/tmp/ccvbPF0j.o
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open /usr/lib/
-lgcc_s (/usr/lib/
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open
/usr/lib/
opened script file
/usr/lib/
opened script file
/usr/lib/
attempt to open /lib/i386-
/lib/i386-
attempt to open /usr/lib/
(/usr/lib/
attempt to open /lib/i386-
/lib/i386-
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open /usr/lib/
-lgcc_s (/usr/lib/
attempt to open /usr/lib/
/usr/lib/
attempt to open
/usr/lib/
/usr/lib/
ld-linux.so.2 needed by /lib/i386-
found ld-linux.so.2 at /lib/i386-
/tmp/ccvbPF0j.o: In function `main':
test_pcap.
test_pcap.
collect2: error: ld returned 1 exit status
i am also try another program its working is fine. i am providing a log
manish@
#include <stdio.h>
#include <pcap.h>
int main(int argc, char *argv[])
{
char *dev, errbuf[
dev = pcap_lookupdev(
if (dev == NULL) {
}
return(0);
}
manish@
manish@
[sudo] password for manish:
Device: eth0
waiting for your reply
On Sun, Sep 8, 2013 at 1:56 PM, Didier Barvaux <
<email address hidden>> wrote:
> Question #234832 on rohc changed:
> https:/
>
> Status: Open => Needs information
>
> Didier Barvaux requested more information:
> Thanks. The problem was probably not caused by the previous
> installation. It may be either a global problem with your system (gcc,
> ld...) or a specific problem with librohc. Let's try to build a small
> application that links with another library, libpcap.
>
> $ sudo apt-get install libpcap libpcap-dev # if not already installed
> $ cat > test_pcap.c << EOF
> > #include <pcap/pcap.h>
> >
> > int main(int argc, char *argv[])
> > {
> > pcap_t *handle;
> > handle = pcap_open_
> > pcap_close(handle);
> > return 0;
> > }
> > EOF
> $ gcc -Wl,--verbose -o test_pcap -lpcap test_pcap.c
> $ file test_pcap
> $ ldd test_pcap
>
> Regards,
> Didier
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#37 |
Hello,
Thanks for the output. You seem however to have mistyped the command:
Wrong: gcc -Wl,--verbose -o test_pca-lpcap test_pcap.c
Right: gcc -Wl,--verbose -o test_pcap -lpcap test_pcap.c
The first version makes the -lpcap option part of the binary name. It could explain the error you encounter.
Please try again with the 2nd version.
Regards,
Didier
Revision history for this message
|
#38 |
pardon me for my silly mistake. this is the log after running 2nd Version.
manish@
#include <pcap/pcap.h>
int main(int argc, char *argv[])
{
pcap_t *handle;
handle = pcap_open_
pcap_close(handle);
return 0;
}
manish@
test_pcap.c
GNU ld (GNU Binutils for Ubuntu) 2.22.90.20120924
Supported emulations:
elf_i386
i386linux
elf32_x86_64
elf_x86_64
elf_l1om
elf_k1om
using internal linker script:
=======
/* Script for -z combreloc: combine and sort reloc sections */
OUTPUT_
OUTPUT_ARCH(i386)
ENTRY(_start)
SEARCH_
SEARCH_
SEARCH_
SEARCH_
SEARCH_
SEARCH_
SECTIONS
{
/* Read-only sections, merged into text segment: */
PROVIDE (__executable_start = SEGMENT_
. = SEGMENT_
.interp : { *(.interp) }
.note.
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.gnu.version : { *(.gnu.version) }
.gnu.version_d : { *(.gnu.version_d) }
.gnu.version_r : { *(.gnu.version_r) }
.rel.dyn :
{
*(.rel.init)
*(.rel.text .rel.text.* .rel.gnu.
*(.rel.fini)
*(.rel.rodata .rel.rodata.* .rel.gnu.
*
*(.rel.data .rel.data.* .rel.gnu.
*(.rel.tdata .rel.tdata.* .rel.gnu.
*(.rel.tbss .rel.tbss.* .rel.gnu.
*(.rel.ctors)
*(.rel.dtors)
*(.rel.got)
*(.rel.bss .rel.bss.* .rel.gnu.
*(.rel.ifunc)
}
.rel.plt :
{
*(.rel.plt)
PROVIDE_
*(.rel.iplt)
PROVIDE_
}
.init :
{
KEEP (*(SORT_
}
.plt : { *(.plt) *(.iplt) }
.text :
{
*(.
*(.text.exit .text.exit.*)
*(.text.startup .text.startup.*)
*(.text.hot .text.hot.*)
*(.text .stub .text.* .gnu.linkonce.t.*)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
}
.fini :
{
KEEP (*(SORT_
}
PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
.rodata1 : { *(.rodata1) }
.eh_frame_hdr : { *(.eh_frame_hdr) }
.eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
.gcc_except_table : ONLY_IF_RO { *(.gcc_except_table
.gcc_
/* These sections are generated by the Sun/Oracle C++ compiler. */
.exception_ranges : ONLY_IF_RO { *(.exception_ranges
.exception_
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) &
(CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT
(MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
/* Exception handling */
.eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
.gcc_except_table : ONLY_IF_RW { *(.gcc_except_table
.gcc_except_
.exception_ranges : ONLY_IF_RW { *(.exception_ranges
.exception_ranges*) }
/* Thread Local Storage sections */
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
.preinit_array :
{
PROVIDE_HIDDEN (__preinit_
KEEP (*(.preinit_array))
PROVIDE_HIDDEN (__preinit_
}
.init_array :
{
PROVIDE_HIDDEN (__init_array_start = .);
KEEP (*(SORT_
SORT_BY_
KEEP (*(.init_array))
KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o )
.ctors))
PROVIDE_HIDDEN (__init_array_end = .);
}
.fini_array :
{
PROVIDE_HIDDEN (__fini_array_start = .);
KEEP (*(SORT_
SORT_BY_
KEEP (*(.fini_array))
KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o )
.dtors))
PROVIDE_HIDDEN (__fini_array_end = .);
}
.ctors :
{
/* gcc uses crtbegin.o to find the start of
the constructors, so we make sure it is
first. Because this is a wildcard, it
doesn't matter if the user does not
actually link against crtbegin.o; the
linker won't look for a file to match a
wildcard. The wildcard also means that it
doesn't matter which directory crtbegin.o
is in. */
KEEP (*crtbegin.
KEEP (*crtbegin?
/* We don't want to include the .ctor section from
the crtend.o file until after the sorted ctors.
The .ctor section from the crtend file contains the
end of ctors marker and it must be last */
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
}
.dtors :
{
KEEP (*crtbegin.
KEEP (*crtbegin?
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
}
.jcr : { KEEP (*(.jcr)) }
.data.rel.ro : { *(.data.
data.rel.ro .data.rel.ro.* .gnu.linkonce.
.dynamic : { *(.dynamic) }
.got : { *(.got) *(.igot) }
. = DATA_SEGMENT_
.got.plt : { *(.got.plt) *(.igot.plt) }
.data :
{
*(.data .data.* .gnu.linkonce.d.*)
SORT(
}
.data1 : { *(.data1) }
_edata = .; PROVIDE (edata = .);
. = .;
__bss_start = .;
.bss :
{
*(.dynbss)
*(.bss .bss.* .gnu.linkonce.b.*)
*(COMMON)
/* Align here to ensure that the .bss section occupies space up to
_end. Align after .bss to ensure correct alignment even if the
.bss section disappears because there are no input sections.
FIXME: Why do we need it? When there is no .bss section, we don't
pad the .data section. */
. = ALIGN(. != 0 ? 32 / 8 : 1);
}
. = ALIGN(32 / 8);
. = ALIGN(32 / 8);
_end = .; PROVIDE (end = .);
. = DATA_SEGMENT_END (.);
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
.stab.excl 0 : { *(.stab.excl) }
.stab.exclstr 0 : { *(.stab.exclstr) }
.stab.index 0 : { *(.stab.index) }
.stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) }
/* DWARF debug sections.
Symbols in the DWARF debugging sections are relative to the beginning
of the section so we begin them at 0. */
/* DWARF 1 */
.debug 0 : { *(.debug) }
.line 0 : { *(.line) }
/* GNU DWARF 1 extensions */
.debug_srcinfo 0 : { *(.debug_srcinfo) }
.debug_sfnames 0 : { *(.debug_sfnames) }
/* DWARF 1.1 and DWARF 2 */
.debug_aranges 0 : { *(.debug_aranges) }
.debug_pubnames 0 : { *(.debug_pubnames) }
/* DWARF 2 */
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
.debug_abbrev 0 : { *(.debug_abbrev) }
.debug_line 0 : { *(.debug_line) }
.debug_frame 0 : { *(.debug_frame) }
.debug_str 0 : { *(.debug_str) }
.debug_loc 0 : { *(.debug_loc) }
.debug_macinfo 0 : { *(.debug_macinfo) }
/* SGI/MIPS DWARF 2 extensions */
.debug_weaknames 0 : { *(.debug_weaknames) }
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
/* DWARF 3 */
.debug_pubtypes 0 : { *(.debug_pubtypes) }
.debug_ranges 0 : { *(.debug_ranges) }
/* DWARF Extension. */
.debug_macro 0 : { *(.debug_macro) }
.gnu.attributes 0 : { KEEP (*(.gnu.
/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
}
=======
attempt to open
/usr/lib/
/usr/lib/
attempt to open
/usr/lib/
/usr/lib/
attempt to open /usr/lib/
/usr/lib/
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open
/usr/lib/
-lpcap (/usr/lib/
attempt to open /tmp/cc0MERjt.o succeeded
/tmp/cc0MERjt.o
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open /usr/lib/
-lgcc_s (/usr/lib/
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open
/usr/lib/
opened script file
/usr/lib/
opened script file
/usr/lib/
attempt to open /lib/i386-
/lib/i386-
attempt to open /usr/lib/
(/usr/lib/
attempt to open /lib/i386-
/lib/i386-
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open /usr/lib/
-lgcc_s (/usr/lib/
attempt to open /usr/lib/
/usr/lib/
attempt to open
/usr/lib/
/usr/lib/
ld-linux.so.2 needed by /lib/i386-
found ld-linux.so.2 at /lib/i386-
/tmp/cc0MERjt.o: In function `main':
test_pcap.
test_pcap.
collect2: error: ld returned 1 exit status
sorry for giving trouble to you. but this rohc library is require for my
project.
thank you
On Mon, Sep 9, 2013 at 12:51 PM, Didier Barvaux <
<email address hidden>> wrote:
> Question #234832 on rohc changed:
> https:/
>
> Status: Open => Needs information
>
> Didier Barvaux requested more information:
> Hello,
>
> Thanks for the output. You seem however to have mistyped the command:
>
> Wrong: gcc -Wl,--verbose -o test_pca-lpcap test_pcap.c
> Right: gcc -Wl,--verbose -o test_pcap -lpcap test_pcap.c
>
> The first version makes the -lpcap option part of the binary name. It
> could explain the error you encounter.
> Please try again with the 2nd version.
>
> Regards,
> Didier
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#39 |
Your system got a problem: a small program with librohc or libpcap fails to link, another succeeds with libpcap. If you have access to another Ubuntu 12.10 32-bit system, could you please try to link the same small programs?
Revision history for this message
|
#40 |
hello sir ,
this is not comfortable for me to re-install my ubuntu 12.10.
i am try below command
manish@
-lpcap
manish@
test_pcap: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.24,
BuildID[
manish@
linux-gate.so.1 => (0xb7766000)
libpcap.so.0.8 => /usr/lib/
libc.so.6 => /lib/i386-
/lib/
on behalf of your suggest command.
its working seems to find.
but i am not able to get proper linker order to run rohc library.
please suggest me how to attach library file with linker in a manual mode
and automatic both.
or suggest any reference regarding this because i am beginner for linux.
thank you
On Mon, Sep 9, 2013 at 6:01 PM, Didier Barvaux <
<email address hidden>> wrote:
> Question #234832 on rohc changed:
> https:/
>
> Status: Open => Needs information
>
> Didier Barvaux requested more information:
> Your system got a problem: a small program with librohc or libpcap fails
> to link, another succeeds with libpcap. If you have access to another
> Ubuntu 12.10 32-bit system, could you please try to link the same small
> programs?
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#41 |
Hello,
Do you mean that the command below does not work:
$ gcc -Wl,--verbose -o test_pcap -lpcap test_pcap.c
And the command below works:
$ gcc -Wall test_pcap.c -o test_pcap -lpcap
with the same content in the test_pcap.c file?
Regards,
Didier
Revision history for this message
|
#42 |
thanks for reply,
i am providing log of both command.
manish@
test_pcap.c
GNU ld (GNU Binutils for Ubuntu) 2.22.90.20120924
Supported emulations:
elf_i386
i386linux
elf32_x86_64
elf_x86_64
elf_l1om
elf_k1om
using internal linker script:
=======
/* Script for -z combreloc: combine and sort reloc sections */
OUTPUT_
OUTPUT_ARCH(i386)
ENTRY(_start)
SEARCH_
SEARCH_
SEARCH_
SEARCH_
SEARCH_
SEARCH_
SECTIONS
{
/* Read-only sections, merged into text segment: */
PROVIDE (__executable_start = SEGMENT_
. = SEGMENT_
.interp : { *(.interp) }
.note.
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.gnu.version : { *(.gnu.version) }
.gnu.version_d : { *(.gnu.version_d) }
.gnu.version_r : { *(.gnu.version_r) }
.rel.dyn :
{
*(.rel.init)
*(.rel.text .rel.text.* .rel.gnu.
*(.rel.fini)
*(.rel.rodata .rel.rodata.* .rel.gnu.
*
*(.rel.data .rel.data.* .rel.gnu.
*(.rel.tdata .rel.tdata.* .rel.gnu.
*(.rel.tbss .rel.tbss.* .rel.gnu.
*(.rel.ctors)
*(.rel.dtors)
*(.rel.got)
*(.rel.bss .rel.bss.* .rel.gnu.
*(.rel.ifunc)
}
.rel.plt :
{
*(.rel.plt)
PROVIDE_
*(.rel.iplt)
PROVIDE_
}
.init :
{
KEEP (*(SORT_
}
.plt : { *(.plt) *(.iplt) }
.text :
{
*(.
*(.text.exit .text.exit.*)
*(.text.startup .text.startup.*)
*(.text.hot .text.hot.*)
*(.text .stub .text.* .gnu.linkonce.t.*)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
}
.fini :
{
KEEP (*(SORT_
}
PROVIDE (__etext = .);
PROVIDE (_etext = .);
PROVIDE (etext = .);
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
.rodata1 : { *(.rodata1) }
.eh_frame_hdr : { *(.eh_frame_hdr) }
.eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
.gcc_except_table : ONLY_IF_RO { *(.gcc_except_table
.gcc_
/* These sections are generated by the Sun/Oracle C++ compiler. */
.exception_ranges : ONLY_IF_RO { *(.exception_ranges
.exception_
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) &
(CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT
(MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
/* Exception handling */
.eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
.gcc_except_table : ONLY_IF_RW { *(.gcc_except_table
.gcc_except_
.exception_ranges : ONLY_IF_RW { *(.exception_ranges
.exception_ranges*) }
/* Thread Local Storage sections */
.tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
.tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
.preinit_array :
{
PROVIDE_HIDDEN (__preinit_
KEEP (*(.preinit_array))
PROVIDE_HIDDEN (__preinit_
}
.init_array :
{
PROVIDE_HIDDEN (__init_array_start = .);
KEEP (*(SORT_
SORT_BY_
KEEP (*(.init_array))
KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o )
.ctors))
PROVIDE_HIDDEN (__init_array_end = .);
}
.fini_array :
{
PROVIDE_HIDDEN (__fini_array_start = .);
KEEP (*(SORT_
SORT_BY_
KEEP (*(.fini_array))
KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o )
.dtors))
PROVIDE_HIDDEN (__fini_array_end = .);
}
.ctors :
{
/* gcc uses crtbegin.o to find the start of
the constructors, so we make sure it is
first. Because this is a wildcard, it
doesn't matter if the user does not
actually link against crtbegin.o; the
linker won't look for a file to match a
wildcard. The wildcard also means that it
doesn't matter which directory crtbegin.o
is in. */
KEEP (*crtbegin.
KEEP (*crtbegin?
/* We don't want to include the .ctor section from
the crtend.o file until after the sorted ctors.
The .ctor section from the crtend file contains the
end of ctors marker and it must be last */
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
KEEP (*(SORT(.ctors.*)))
KEEP (*(.ctors))
}
.dtors :
{
KEEP (*crtbegin.
KEEP (*crtbegin?
KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
KEEP (*(SORT(.dtors.*)))
KEEP (*(.dtors))
}
.jcr : { KEEP (*(.jcr)) }
.data.rel.ro : { *(.data.
data.rel.ro .data.rel.ro.* .gnu.linkonce.
.dynamic : { *(.dynamic) }
.got : { *(.got) *(.igot) }
. = DATA_SEGMENT_
.got.plt : { *(.got.plt) *(.igot.plt) }
.data :
{
*(.data .data.* .gnu.linkonce.d.*)
SORT(
}
.data1 : { *(.data1) }
_edata = .; PROVIDE (edata = .);
. = .;
__bss_start = .;
.bss :
{
*(.dynbss)
*(.bss .bss.* .gnu.linkonce.b.*)
*(COMMON)
/* Align here to ensure that the .bss section occupies space up to
_end. Align after .bss to ensure correct alignment even if the
.bss section disappears because there are no input sections.
FIXME: Why do we need it? When there is no .bss section, we don't
pad the .data section. */
. = ALIGN(. != 0 ? 32 / 8 : 1);
}
. = ALIGN(32 / 8);
. = ALIGN(32 / 8);
_end = .; PROVIDE (end = .);
. = DATA_SEGMENT_END (.);
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }
.stab.excl 0 : { *(.stab.excl) }
.stab.exclstr 0 : { *(.stab.exclstr) }
.stab.index 0 : { *(.stab.index) }
.stab.indexstr 0 : { *(.stab.indexstr) }
.comment 0 : { *(.comment) }
/* DWARF debug sections.
Symbols in the DWARF debugging sections are relative to the beginning
of the section so we begin them at 0. */
/* DWARF 1 */
.debug 0 : { *(.debug) }
.line 0 : { *(.line) }
/* GNU DWARF 1 extensions */
.debug_srcinfo 0 : { *(.debug_srcinfo) }
.debug_sfnames 0 : { *(.debug_sfnames) }
/* DWARF 1.1 and DWARF 2 */
.debug_aranges 0 : { *(.debug_aranges) }
.debug_pubnames 0 : { *(.debug_pubnames) }
/* DWARF 2 */
.debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
.debug_abbrev 0 : { *(.debug_abbrev) }
.debug_line 0 : { *(.debug_line) }
.debug_frame 0 : { *(.debug_frame) }
.debug_str 0 : { *(.debug_str) }
.debug_loc 0 : { *(.debug_loc) }
.debug_macinfo 0 : { *(.debug_macinfo) }
/* SGI/MIPS DWARF 2 extensions */
.debug_weaknames 0 : { *(.debug_weaknames) }
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
/* DWARF 3 */
.debug_pubtypes 0 : { *(.debug_pubtypes) }
.debug_ranges 0 : { *(.debug_ranges) }
/* DWARF Extension. */
.debug_macro 0 : { *(.debug_macro) }
.gnu.attributes 0 : { KEEP (*(.gnu.
/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
}
=======
attempt to open
/usr/lib/
/usr/lib/
attempt to open
/usr/lib/
/usr/lib/
attempt to open /usr/lib/
/usr/lib/
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open
/usr/lib/
-lpcap (/usr/lib/
attempt to open /tmp/ccWKcRXK.o succeeded
/tmp/ccWKcRXK.o
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open /usr/lib/
-lgcc_s (/usr/lib/
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open
/usr/lib/
opened script file
/usr/lib/
opened script file
/usr/lib/
attempt to open /lib/i386-
/lib/i386-
attempt to open /usr/lib/
(/usr/lib/
attempt to open /lib/i386-
/lib/i386-
attempt to open /usr/lib/
attempt to open /usr/lib/
attempt to open /usr/lib/
-lgcc_s (/usr/lib/
attempt to open /usr/lib/
/usr/lib/
attempt to open
/usr/lib/
/usr/lib/
ld-linux.so.2 needed by /lib/i386-
found ld-linux.so.2 at /lib/i386-
/tmp/ccWKcRXK.o: In function `main':
test_pcap.
test_pcap.
collect2: error: ld returned 1 exit status
output of second command
manish@
-lpcap
manish@
test_pcap: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.24,
BuildID[
manish@
linux-gate.so.1 => (0xb779b000)
libpcap.so.0.8 => /usr/lib/
libc.so.6 => /lib/i386-
/lib/
second command log is compile the program properly.
any suggestion regrading this.
and you did not given any advise for my previous query about compiling
librohc.
i am waiting for your reply.
On Tue, Sep 10, 2013 at 10:31 PM, Didier Barvaux <
<email address hidden>> wrote:
> Question #234832 on rohc changed:
> https:/
>
> Status: Open => Needs information
>
> Didier Barvaux requested more information:
> Hello,
>
> Do you mean that the command below does not work:
> $ gcc -Wl,--verbose -o test_pcap -lpcap test_pcap.c
>
> And the command below works:
> $ gcc -Wall test_pcap.c -o test_pcap -lpcap
>
> with the same content in the test_pcap.c file?
>
> Regards,
> Didier
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#43 |
Could you please the following variants of the command lines:
$ gcc -Wl,--verbose -Wall test_pcap.c -o test_pcap -lpcap
$ gcc -Wl,--verbose test_pcap.c -o test_pcap -lpcap
$ gcc -Wall -o test_pcap -lpcap test_pcap.c
$ gcc -o test_pcap -lpcap test_pcap.c
Revision history for this message
|
#44 |
hello sir,
sorry for bothering you.
but suggested all command is given same output only below command compile.
manish@
-lpcap
manish@
[sudo] password for manish:
test_pcap: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.24,
BuildID[
the output of command is correct or not?
because i don't know what is the output of the test_pcap.c
and you are not providing any suggestion for running rohc my major concern
on rohc library not pcap library.
i only want to use rohc library for compression and decompression of my
self created pkt.
i don't want to capture network traffic. so please suggest me how to
compile sample_
In my system linker problem is found so please suggest me how to resolve it
manual linker command.
if you provide syntax of command it is very helpful for me.
thank you.
On Tue, Sep 10, 2013 at 11:11 PM, manish shivare <
<email address hidden>> wrote:
> Question #234832 on rohc changed:
> https:/
>
> Status: Needs information => Open
>
> manish shivare gave more information on the question:
> thanks for reply,
> i am providing log of both command.
> manish@
> test_pcap.c
> GNU ld (GNU Binutils for Ubuntu) 2.22.90.20120924
> Supported emulations:
> elf_i386
> i386linux
> elf32_x86_64
> elf_x86_64
> elf_l1om
> elf_k1om
> using internal linker script:
> =======
> /* Script for -z combreloc: combine and sort reloc sections */
> OUTPUT_
> "elf32-i386")
> OUTPUT_ARCH(i386)
> ENTRY(_start)
> SEARCH_
> SEARCH_
> SEARCH_
> SEARCH_
> SEARCH_
> SEARCH_
> SECTIONS
> {
> /* Read-only sections, merged into text segment: */
> PROVIDE (__executable_start = SEGMENT_
> . = SEGMENT_
> .interp : { *(.interp) }
> .note.gnu.build-id : { *(.note.
> .hash : { *(.hash) }
> .gnu.hash : { *(.gnu.hash) }
> .dynsym : { *(.dynsym) }
> .dynstr : { *(.dynstr) }
> .gnu.version : { *(.gnu.version) }
> .gnu.version_d : { *(.gnu.version_d) }
> .gnu.version_r : { *(.gnu.version_r) }
> .rel.dyn :
> {
> *(.rel.init)
> *(.rel.text .rel.text.* .rel.gnu.
> *(.rel.fini)
> *(.rel.rodata .rel.rodata.* .rel.gnu.
> *(.rel.data.rel.ro .rel.data.rel.ro.* .rel.gnu.
> *(.rel.data .rel.data.* .rel.gnu.
> *(.rel.tdata .rel.tdata.* .rel.gnu.
> *(.rel.tbss .rel.tbss.* .rel.gnu.
> *(.rel.ctors)
> *(.rel.dtors)
> *(.rel.got)
> *(.rel.bss .rel.bss.* .rel.gnu.
> *(.rel.ifunc)
> }
> .rel.plt :
> {
> *(.rel.plt)
> PROVIDE_HIDDEN (__rel_iplt_start = .);
> *(.rel.iplt)
> PROVIDE_HIDDEN (__rel_iplt_end = .);
> }
> .init :
> {
> KEEP (*(SORT_
> }
> .plt : { *(.plt) *(.iplt) }
> .text :
> {
> *(.text.unlikely .text.*_unlikely)
> *(.text.exit .text.exit.*)
> *(.text.startup .text.startup.*)
> *(.text.hot .text.hot.*)
> *(.text .stub .text.* .gnu.linkonce.t.*)
> /* .gnu.warning sections are handled specially by elf32.em. */
> *(.gnu.warning)
> }
> .fini :
> {
> KEEP (*(SORT_
> }
> PROVIDE (__etext = .);
> PROVIDE (_etext = .);
> PROVIDE (etext = .);
> .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
> .rodata1 : { *(.rodata1) }
> .eh_frame_hdr : { *(.eh_frame_hdr) }
> .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
> .gcc_except_table : ONLY_IF_RO { *(.gcc_except_table
> .gcc_except_
> /* These sections are generated by the Sun/Oracle C++ compiler. */
> .exception_ranges : ONLY_IF_RO { *(.exception_ranges
> .exception_ranges*) }
> /* Adjust the address for the data segment. We want to adjust up to
> the same address within the page on the next page up. */
> . = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) &
> (CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT
> (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
> /* Exception handling */
> .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
> .gcc_except_table : ONLY_IF_RW { *(.gcc_except_table
> .gcc_except_
> .exception_ranges : ONLY_IF_RW { *(.exception_ranges
> .exception_ranges*) }
> /* Thread Local Storage sections */
> .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
> .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
> .preinit_array :
> {
> PROVIDE_HIDDEN (__preinit_
> KEEP (*(.preinit_array))
> PROVIDE_HIDDEN (__preinit_
> }
> .init_array :
> {
> PROVIDE_HIDDEN (__init_array_start = .);
> KEEP (*(SORT_
> SORT_BY_
> KEEP (*(.init_array))
> KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o )
> .ctors))
> PROVIDE_HIDDEN (__init_array_end = .);
> }
> .fini_array :
> {
> PROVIDE_HIDDEN (__fini_array_start = .);
> KEEP (*(SORT_
> SORT_BY_
> KEEP (*(.fini_array))
> KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o )
> .dtors))
> PROVIDE_HIDDEN (__fini_array_end = .);
> }
> .ctors :
> {
> /* gcc uses crtbegin.o to find the start of
> the constructors, so we make sure it is
> first. Because this is a wildcard, it
> doesn't matter if the user does not
> actually link against crtbegin.o; the
> linker won't look for a file to match a
> wildcard. The wildcard also means that it
> doesn't matter which directory crtbegin.o
> is in. */
> KEEP (*crtbegin.
> KEEP (*crtbegin?
> /* We don't want to include the .ctor section from
> the crtend.o file until after the sorted ctors.
> The .ctor section from the crtend file contains the
> end of ctors marker and it must be last */
> KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
> KEEP (*(SORT(.ctors.*)))
> KEEP (*(.ctors))
> }
> .dtors :
> {
> KEEP (*crtbegin.
> KEEP (*crtbegin?
> KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
> KEEP (*(SORT(.dtors.*)))
> KEEP (*(.dtors))
> }
> .jcr : { KEEP (*(.jcr)) }
> .data.rel.ro : { *(.data.
> *(.
> data.rel.ro .data.rel.ro.* .gnu.linkonce.
> .dynamic : { *(.dynamic) }
> .got : { *(.got) *(.igot) }
> . = DATA_SEGMENT_
> .got.plt : { *(.got.plt) *(.igot.plt) }
> .data :
> {
> *(.data .data.* .gnu.linkonce.d.*)
> SORT(CONSTRUCTORS)
> }
> .data1 : { *(.data1) }
> _edata = .; PROVIDE (edata = .);
> . = .;
> __bss_start = .;
> .bss :
> {
> *(.dynbss)
> *(.bss .bss.* .gnu.linkonce.b.*)
> *(COMMON)
> /* Align here to ensure that the .bss section occupies space up to
> _end. Align after .bss to ensure correct alignment even if the
> .bss section disappears because there are no input sections.
> FIXME: Why do we need it? When there is no .bss section, we don't
> pad the .data section. */
> . = ALIGN(. != 0 ? 32 / 8 : 1);
> }
> . = ALIGN(32 / 8);
> . = ALIGN(32 / 8);
> _end = .; PROVIDE (end = .);
> . = DATA_SEGMENT_END (.);
> /* Stabs debugging sections. */
> .stab 0 : { *(.stab) }
> .stabstr 0 : { *(.stabstr) }
> .stab.excl 0 : { *(.stab.excl) }
> .stab.exclstr 0 : { *(.stab.exclstr) }
> .stab.index 0 : { *(.stab.index) }
> .stab.indexstr 0 : { *(.stab.indexstr) }
> .comment 0 : { *(.comment) }
> /* DWARF debug sections.
> Symbols in the DWARF debugging sections are relative to the beginning
> of the section so we begin them at 0. */
> /* DWARF 1 */
> .debug 0 : { *(.debug) }
> .line 0 : { *(.line) }
> /* GNU DWARF 1 extensions */
> .debug_srcinfo 0 : { *(.debug_srcinfo) }
> .debug_sfnames 0 : { *(.debug_sfnames) }
> /* DWARF 1.1 and DWARF 2 */
> .debug_aranges 0 : { *(.debug_aranges) }
> .debug_pubnames 0 : { *(.debug_pubnames) }
> /* DWARF 2 */
> .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
> .debug_abbrev 0 : { *(.debug_abbrev) }
> .debug_line 0 : { *(.debug_line) }
> .debug_frame 0 : { *(.debug_frame) }
> .debug_str 0 : { *(.debug_str) }
> .debug_loc 0 : { *(.debug_loc) }
> .debug_macinfo 0 : { *(.debug_macinfo) }
> /* SGI/MIPS DWARF 2 extensions */
> .debug_weaknames 0 : { *(.debug_weaknames) }
> .debug_funcnames 0 : { *(.debug_funcnames) }
> .debug_typenames 0 : { *(.debug_typenames) }
> .debug_varnames 0 : { *(.debug_varnames) }
> /* DWARF 3 */
> .debug_pubtypes 0 : { *(.debug_pubtypes) }
> .debug_ranges 0 : { *(.debug_ranges) }
> /* DWARF Extension. */
> .debug_macro 0 : { *(.debug_macro) }
> .gnu.attributes 0 : { KEEP (*(.gnu.
> /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
> }
>
>
> =======
> attempt to open
> /usr/lib/
> /usr/lib/
> attempt to open
> /usr/lib/
> /usr/lib/
> attempt to open /usr/lib/
> /usr/lib/
> attempt to open /usr/lib/
> attempt to open /usr/lib/
> attempt to open
> /usr/lib/
> succeeded
> -lpcap (/usr/lib/
> attempt to open /tmp/ccWKcRXK.o succeeded
> /tmp/ccWKcRXK.o
> attempt to open /usr/lib/
> attempt to open /usr/lib/
> attempt to open /usr/lib/
> -lgcc_s (/usr/lib/
> attempt to open /usr/lib/
> attempt to open /usr/lib/
> attempt to open
> /usr/lib/
> opened script file
> /usr/lib/
> opened script file
> /usr/lib/
> attempt to open /lib/i386-
> /lib/i386-
> attempt to open /usr/lib/
> (/usr/lib/
> attempt to open /lib/i386-
> /lib/i386-
> attempt to open /usr/lib/
> attempt to open /usr/lib/
> attempt to open /usr/lib/
> -lgcc_s (/usr/lib/
> attempt to open /usr/lib/
> /usr/lib/
> attempt to open
> /usr/lib/
> /usr/lib/
> ld-linux.so.2 needed by /lib/i386-
> found ld-linux.so.2 at /lib/i386-
> /tmp/ccWKcRXK.o: In function `main':
> test_pcap.
> test_pcap.
> collect2: error: ld returned 1 exit status
> output of second command
> manish@
> -lpcap
> manish@
> test_pcap: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> dynamically linked (uses shared libs), for GNU/Linux 2.6.24,
> BuildID[
> manish@
> linux-gate.so.1 => (0xb779b000)
> libpcap.so.0.8 => /usr/lib/
> libc.so.6 => /lib/i386-
> /lib/ld-linux.so.2 (0xb779c000)
> second command log is compile the program properly.
> any suggestion regrading this.
> and you did not given any advise for my previous query about compiling
> librohc.
> i am waiting for your reply.
>
>
>
> On Tue, Sep 10, 2013 at 10:31 PM, Didier Barvaux <
> <email address hidden>> wrote:
>
> > Question #234832 on rohc changed:
> > https:/
> >
> > Status: Open => Needs information
> >
> > Didier Barvaux requested more information:
> > Hello,
> >
> > Do you mean that the command below does not work:
> > $ gcc -Wl,--verbose -o test_pcap -lpcap test_pcap.c
> >
> > And the command below works:
> > $ gcc -Wall test_pcap.c -o test_pcap -lpcap
> >
> > with the same content in the test_pcap.c file?
> >
> > Regards,
> > Didier
> >
> > --
> > You received this question notification because you are a member of ROHC
> > Team, which is an answer contact for rohc.
> >
> > _______
> > Mailing list: https:/
> > Post to : <email address hidden>
> > Unsubscribe : https:/
> > More help : https:/
> >
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#45 |
and i also try the syntax which is given on
http://
log is -
manish@
rohc_first_
PKG_CONFIG_
) rohc_first_
rohc_first_
rohc_first_
‘rohc_comp_new’ [-Wimplicit-
compressor = rohc_comp_
^
rohc_first_
integer without a cast [enabled by default]
compressor = rohc_comp_
^
rohc_first_
‘rohc_comp_
if(!rohc_
^
rohc_first_
‘rohc_comp_
if(!rohc_
^
rohc_first_
‘rohc_compress3’ [-Wimplicit-
ret = rohc_compress3(
^
rohc_first_
‘rohc_comp_free’ [-Wimplicit-
rohc_
^
/tmp/cctkfFbq.o: In function `main':
/home/manish/
reference to `rohc_comp_new'
/home/manish/
reference to `rohc_comp_
/home/manish/
reference to `rohc_comp_
/home/manish/
reference to `rohc_comp_
/home/manish/
reference to `rohc_comp_
/home/manish/
reference to `rohc_compress3'
/home/manish/
reference to `rohc_comp_free'
/home/manish/
reference to `rohc_comp_free'
collect2: error: ld returned 1 exit status
On Thu, Sep 12, 2013 at 11:57 PM, manish <email address hidden> wrote:
> hello sir,
> sorry for bothering you.
> but suggested all command is given same output only below command compile.
>
> manish@
> -lpcap
> manish@
> [sudo] password for manish:
> test_pcap: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> dynamically linked (uses shared libs), for GNU/Linux 2.6.24,
> BuildID[
> the output of command is correct or not?
> because i don't know what is the output of the test_pcap.c
> and you are not providing any suggestion for running rohc my major concern
> on rohc library not pcap library.
> i only want to use rohc library for compression and decompression of my
> self created pkt.
> i don't want to capture network traffic. so please suggest me how to
> compile sample_
> In my system linker problem is found so please suggest me how to resolve
> it manual linker command.
> if you provide syntax of command it is very helpful for me.
> thank you.
>
>
> On Tue, Sep 10, 2013 at 11:11 PM, manish shivare <
> <email address hidden>> wrote:
>
>> Question #234832 on rohc changed:
>> https:/
>>
>> Status: Needs information => Open
>>
>> manish shivare gave more information on the question:
>> thanks for reply,
>> i am providing log of both command.
>> manish@
>> test_pcap.c
>> GNU ld (GNU Binutils for Ubuntu) 2.22.90.20120924
>> Supported emulations:
>> elf_i386
>> i386linux
>> elf32_x86_64
>> elf_x86_64
>> elf_l1om
>> elf_k1om
>> using internal linker script:
>> =======
>> /* Script for -z combreloc: combine and sort reloc sections */
>> OUTPUT_
>> "elf32-i386")
>> OUTPUT_ARCH(i386)
>> ENTRY(_start)
>> SEARCH_
>> SEARCH_
>> SEARCH_
>> SEARCH_
>> SEARCH_
>> SEARCH_
>> SECTIONS
>> {
>> /* Read-only sections, merged into text segment: */
>> PROVIDE (__executable_start = SEGMENT_
>> 0x08048000));
>> . = SEGMENT_
>> .interp : { *(.interp) }
>> .note.gnu.build-id : { *(.note.
>> .hash : { *(.hash) }
>> .gnu.hash : { *(.gnu.hash) }
>> .dynsym : { *(.dynsym) }
>> .dynstr : { *(.dynstr) }
>> .gnu.version : { *(.gnu.version) }
>> .gnu.version_d : { *(.gnu.version_d) }
>> .gnu.version_r : { *(.gnu.version_r) }
>> .rel.dyn :
>> {
>> *(.rel.init)
>> *(.rel.text .rel.text.* .rel.gnu.
>> *(.rel.fini)
>> *(.rel.rodata .rel.rodata.* .rel.gnu.
>> *(.rel.data.rel.ro .rel.data.rel.ro.* .rel.gnu.
>> *(.rel.data .rel.data.* .rel.gnu.
>> *(.rel.tdata .rel.tdata.* .rel.gnu.
>> *(.rel.tbss .rel.tbss.* .rel.gnu.
>> *(.rel.ctors)
>> *(.rel.dtors)
>> *(.rel.got)
>> *(.rel.bss .rel.bss.* .rel.gnu.
>> *(.rel.ifunc)
>> }
>> .rel.plt :
>> {
>> *(.rel.plt)
>> PROVIDE_HIDDEN (__rel_iplt_start = .);
>> *(.rel.iplt)
>> PROVIDE_HIDDEN (__rel_iplt_end = .);
>> }
>> .init :
>> {
>> KEEP (*(SORT_
>> }
>> .plt : { *(.plt) *(.iplt) }
>> .text :
>> {
>> *(.text.unlikely .text.*_unlikely)
>> *(.text.exit .text.exit.*)
>> *(.text.startup .text.startup.*)
>> *(.text.hot .text.hot.*)
>> *(.text .stub .text.* .gnu.linkonce.t.*)
>> /* .gnu.warning sections are handled specially by elf32.em. */
>> *(.gnu.warning)
>> }
>> .fini :
>> {
>> KEEP (*(SORT_
>> }
>> PROVIDE (__etext = .);
>> PROVIDE (_etext = .);
>> PROVIDE (etext = .);
>> .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
>> .rodata1 : { *(.rodata1) }
>> .eh_frame_hdr : { *(.eh_frame_hdr) }
>> .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) }
>> .gcc_except_table : ONLY_IF_RO { *(.gcc_except_table
>> .gcc_except_
>> /* These sections are generated by the Sun/Oracle C++ compiler. */
>> .exception_ranges : ONLY_IF_RO { *(.exception_ranges
>> .exception_ranges*) }
>> /* Adjust the address for the data segment. We want to adjust up to
>> the same address within the page on the next page up. */
>> . = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) &
>> (CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT
>> (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
>> /* Exception handling */
>> .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) }
>> .gcc_except_table : ONLY_IF_RW { *(.gcc_except_table
>> .gcc_except_
>> .exception_ranges : ONLY_IF_RW { *(.exception_ranges
>> .exception_ranges*) }
>> /* Thread Local Storage sections */
>> .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) }
>> .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) }
>> .preinit_array :
>> {
>> PROVIDE_HIDDEN (__preinit_
>> KEEP (*(.preinit_array))
>> PROVIDE_HIDDEN (__preinit_
>> }
>> .init_array :
>> {
>> PROVIDE_HIDDEN (__init_array_start = .);
>> KEEP (*(SORT_
>> SORT_BY_
>> KEEP (*(.init_array))
>> KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o )
>> .ctors))
>> PROVIDE_HIDDEN (__init_array_end = .);
>> }
>> .fini_array :
>> {
>> PROVIDE_HIDDEN (__fini_array_start = .);
>> KEEP (*(SORT_
>> SORT_BY_
>> KEEP (*(.fini_array))
>> KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o )
>> .dtors))
>> PROVIDE_HIDDEN (__fini_array_end = .);
>> }
>> .ctors :
>> {
>> /* gcc uses crtbegin.o to find the start of
>> the constructors, so we make sure it is
>> first. Because this is a wildcard, it
>> doesn't matter if the user does not
>> actually link against crtbegin.o; the
>> linker won't look for a file to match a
>> wildcard. The wildcard also means that it
>> doesn't matter which directory crtbegin.o
>> is in. */
>> KEEP (*crtbegin.
>> KEEP (*crtbegin?
>> /* We don't want to include the .ctor section from
>> the crtend.o file until after the sorted ctors.
>> The .ctor section from the crtend file contains the
>> end of ctors marker and it must be last */
>> KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors))
>> KEEP (*(SORT(.ctors.*)))
>> KEEP (*(.ctors))
>> }
>> .dtors :
>> {
>> KEEP (*crtbegin.
>> KEEP (*crtbegin?
>> KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors))
>> KEEP (*(SORT(.dtors.*)))
>> KEEP (*(.dtors))
>> }
>> .jcr : { KEEP (*(.jcr)) }
>> .data.rel.ro : { *(.data.
>> *(.
>> data.rel.ro .data.rel.ro.* .gnu.linkonce.
>> .dynamic : { *(.dynamic) }
>> .got : { *(.got) *(.igot) }
>> . = DATA_SEGMENT_
>> .got.plt : { *(.got.plt) *(.igot.plt) }
>> .data :
>> {
>> *(.data .data.* .gnu.linkonce.d.*)
>> SORT(CONSTRUCTORS)
>> }
>> .data1 : { *(.data1) }
>> _edata = .; PROVIDE (edata = .);
>> . = .;
>> __bss_start = .;
>> .bss :
>> {
>> *(.dynbss)
>> *(.bss .bss.* .gnu.linkonce.b.*)
>> *(COMMON)
>> /* Align here to ensure that the .bss section occupies space up to
>> _end. Align after .bss to ensure correct alignment even if the
>> .bss section disappears because there are no input sections.
>> FIXME: Why do we need it? When there is no .bss section, we don't
>> pad the .data section. */
>> . = ALIGN(. != 0 ? 32 / 8 : 1);
>> }
>> . = ALIGN(32 / 8);
>> . = ALIGN(32 / 8);
>> _end = .; PROVIDE (end = .);
>> . = DATA_SEGMENT_END (.);
>> /* Stabs debugging sections. */
>> .stab 0 : { *(.stab) }
>> .stabstr 0 : { *(.stabstr) }
>> .stab.excl 0 : { *(.stab.excl) }
>> .stab.exclstr 0 : { *(.stab.exclstr) }
>> .stab.index 0 : { *(.stab.index) }
>> .stab.indexstr 0 : { *(.stab.indexstr) }
>> .comment 0 : { *(.comment) }
>> /* DWARF debug sections.
>> Symbols in the DWARF debugging sections are relative to the beginning
>> of the section so we begin them at 0. */
>> /* DWARF 1 */
>> .debug 0 : { *(.debug) }
>> .line 0 : { *(.line) }
>> /* GNU DWARF 1 extensions */
>> .debug_srcinfo 0 : { *(.debug_srcinfo) }
>> .debug_sfnames 0 : { *(.debug_sfnames) }
>> /* DWARF 1.1 and DWARF 2 */
>> .debug_aranges 0 : { *(.debug_aranges) }
>> .debug_pubnames 0 : { *(.debug_pubnames) }
>> /* DWARF 2 */
>> .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) }
>> .debug_abbrev 0 : { *(.debug_abbrev) }
>> .debug_line 0 : { *(.debug_line) }
>> .debug_frame 0 : { *(.debug_frame) }
>> .debug_str 0 : { *(.debug_str) }
>> .debug_loc 0 : { *(.debug_loc) }
>> .debug_macinfo 0 : { *(.debug_macinfo) }
>> /* SGI/MIPS DWARF 2 extensions */
>> .debug_weaknames 0 : { *(.debug_weaknames) }
>> .debug_funcnames 0 : { *(.debug_funcnames) }
>> .debug_typenames 0 : { *(.debug_typenames) }
>> .debug_varnames 0 : { *(.debug_varnames) }
>> /* DWARF 3 */
>> .debug_pubtypes 0 : { *(.debug_pubtypes) }
>> .debug_ranges 0 : { *(.debug_ranges) }
>> /* DWARF Extension. */
>> .debug_macro 0 : { *(.debug_macro) }
>> .gnu.attributes 0 : { KEEP (*(.gnu.
>> /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
>> }
>>
>>
>> =======
>> attempt to open
>> /usr/lib/
>> /usr/lib/
>> attempt to open
>> /usr/lib/
>> /usr/lib/
>> attempt to open /usr/lib/
>> /usr/lib/
>> attempt to open /usr/lib/
>> attempt to open /usr/lib/
>> attempt to open
>> /usr/lib/
>> succeeded
>> -lpcap
>> (/usr/lib/
>> attempt to open /tmp/ccWKcRXK.o succeeded
>> /tmp/ccWKcRXK.o
>> attempt to open /usr/lib/
>> attempt to open /usr/lib/
>> attempt to open /usr/lib/
>> -lgcc_s (/usr/lib/
>> attempt to open /usr/lib/
>> attempt to open /usr/lib/
>> attempt to open
>> /usr/lib/
>> opened script file
>> /usr/lib/
>> opened script file
>> /usr/lib/
>> attempt to open /lib/i386-
>> /lib/i386-
>> attempt to open /usr/lib/
>> (/usr/lib/
>> attempt to open /lib/i386-
>> /lib/i386-
>> attempt to open /usr/lib/
>> attempt to open /usr/lib/
>> attempt to open /usr/lib/
>> -lgcc_s (/usr/lib/
>> attempt to open /usr/lib/
>> /usr/lib/
>> attempt to open
>> /usr/lib/
>> /usr/lib/
>> ld-linux.so.2 needed by /lib/i386-
>> found ld-linux.so.2 at /lib/i386-
>> /tmp/ccWKcRXK.o: In function `main':
>> test_pcap.
>> test_pcap.
>> collect2: error: ld returned 1 exit status
>> output of second command
>> manish@
>> -lpcap
>> manish@
>> test_pcap: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
>> dynamically linked (uses shared libs), for GNU/Linux 2.6.24,
>> BuildID[
>> manish@
>> linux-gate.so.1 => (0xb779b000)
>> libpcap.so.0.8 => /usr/lib/
>> libc.so.6 => /lib/i386-
>> /lib/ld-linux.so.2 (0xb779c000)
>> second command log is compile the program properly.
>> any suggestion regrading this.
>> and you did not given any advise for my previous query about compiling
>> librohc.
>> i am waiting for your reply.
>>
>>
>>
>> On Tue, Sep 10, 2013 at 10:31 PM, Didier Barvaux <
>> <email address hidden>> wrote:
>>
>> > Question #234832 on rohc changed:
>> > https:/
>> >
>> > Status: Open => Needs information
>> >
>> > Didier Barvaux requested more information:
>> > Hello,
>> >
>> > Do you mean that the command below does not work:
>> > $ gcc -Wl,--verbose -o test_pcap -lpcap test_pcap.c
>> >
>> > And the command below works:
>> > $ gcc -Wall test_pcap.c -o test_pcap -lpcap
>> >
>> > with the same content in the test_pcap.c file?
>> >
>> > Regards,
>> > Didier
>> >
>> > --
>> > You received this question notification because you are a member of ROHC
>> > Team, which is an answer contact for rohc.
>> >
>> > _______
>> > Mailing list: https:/
>> > Post to : <email address hidden>
>> > Unsubscribe : https:/
>> > More help : https:/
>> >
>>
>> --
>> You received this question notification because you are a member of ROHC
>> Team, which is an answer contact for rohc.
>>
>> _______
>> Mailing list: https:/
>> Post to : <email address hidden>
>> Unsubscribe : https:/
>> More help : https:/
>>
>
>
Revision history for this message
|
#46 |
Hello,
> sorry for bothering you.
> but suggested all command is given same output only below command compile.
Your system is somewhat broken. All commands should work...
> the output of command is correct or not?
> because i don't know what is the output of the test_pcap.c
No output is expected. The program itself is useless. Its purpose was testing compilation.
> and you are not providing any suggestion for running rohc my major concern
> on rohc library not pcap library.
> i only want to use rohc library for compression and decompression of my
> self created pkt.
> i don't want to capture network traffic. so please suggest me how to
> compile sample_
> In my system linker problem is found so please suggest me how to resolve it
> manual linker command.
I know that you care about the ROHC library, not the pcap library. I was using the pcap library to test how strangely your system behaves. You state that the problem with your system linker is found. I don't share your opinion...
Anyway, one of the commands seems to work somehow, so let's try to mimic the same command for the ROHC library. Please try to build the example with:
$ gcc -Wall rohc_first_
$( PKG_CONFIG_
pkg-config rohc --libs --cflags )
A note about the error you report in your last message: you use some example code that is written for the future version 1.7.0 of the library, that's why you get new errors. Please get back to the previous code that you copied/pasted me a few days ago (don't forget to apply the changes I mentioned at that time).
Regards,
Didier
Revision history for this message
|
#47 |
This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.