New question #676612 on rohc:
https://answers.launchpad.net/rohc/+question/676612

Hello,

I am trying to build the latest ROHC source (2.2.0) on both Linux and Windows. 
I am able to build it fine on Ubuntu 18.04 and use it. But when I to try to 
build it on Windows 10 with Cygwin, the build is failing with the following 
errors:

 -------------------------------
make[2]: Leaving directory '/cygdrive/c/rohc/rohc-2.2.0/src/test'
Making install in .
make[2]: Entering directory '/cygdrive/c/rohc/rohc-2.2.0/src'
  CCLD     librohc.la
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/../../../../x86_64-pc-cygwin/bin/ld: Cannot 
export rohc_buf_append: symbol not defined
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/../../../../x86_64-pc-cygwin/bin/ld: Cannot 
export rohc_buf_append_buf: symbol not defined
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/../../../../x86_64-pc-cygwin/bin/ld: Cannot 
export rohc_buf_avail_len: symbol not defined
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/../../../../x86_64-pc-cygwin/bin/ld: Cannot 
export rohc_buf_data: symbol not defined
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/../../../../x86_64-pc-cygwin/bin/ld: Cannot 
export rohc_buf_data_at: symbol not defined
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/../../../../x86_64-pc-cygwin/bin/ld: Cannot 
export rohc_buf_is_empty: symbol not defined
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/../../../../x86_64-pc-cygwin/bin/ld: Cannot 
export rohc_buf_is_malformed: symbol not defined
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/../../../../x86_64-pc-cygwin/bin/ld: Cannot 
export rohc_buf_prepend: symbol not defined
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/../../../../x86_64-pc-cygwin/bin/ld: Cannot 
export rohc_buf_pull: symbol not defined
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/../../../../x86_64-pc-cygwin/bin/ld: Cannot 
export rohc_buf_push: symbol not defined
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/../../../../x86_64-pc-cygwin/bin/ld: Cannot 
export rohc_buf_reset: symbol not defined
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:486: librohc.la] Error 1
make[2]: Leaving directory '/cygdrive/c/rohc/rohc-2.2.0/src'
make[1]: *** [Makefile:507: install-recursive] Error 1
make[1]: Leaving directory '/cygdrive/c/rohc/rohc-2.2.0/src'
make: *** [Makefile:722: install-recursive] Error 1
---------------------------------------------
I see that these symbols have not been exported with ROHC_EXPORT as they are 
declared 'static'. Is this a known issue for Windows 10?. Please let me know if 
there is any solution/workaround for the same. 

Also, during 'configure',  I see the following warnings (which I guess is not 
related to the above issue) : 
checking winsock2.h presence... yes
configure: WARNING: winsock2.h: present but cannot be compiled
configure: WARNING: winsock2.h:     check for missing prerequisite headers?
configure: WARNING: winsock2.h: see the Autoconf documentation
configure: WARNING: winsock2.h:     section "Present But Cannot Be Compiled"
configure: WARNING: winsock2.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to https://rohc-lib.org/ ##
configure: WARNING:     ## ------------------------------------ ##
checking for winsock2.h... no


Thanks,
Vinod



-- 
You received this question notification because your team ROHC Team is
an answer contact for rohc.

_______________________________________________
Mailing list: https://launchpad.net/~rohc
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~rohc
More help   : https://help.launchpad.net/ListHelp

Reply via email to