LibBSD is not linking for the BBB BSP

Vijay Kumar Banerjee vijaykumar9597 at gmail.com
Tue Aug 27 14:34:25 UTC 2019


On Tue, Aug 27, 2019 at 11:59 AM Chris Johns <chrisj at rtems.org> wrote:

> Hi,
>
> Libcurl is not building for the BBB using HEAD on master. The config.log
> fragment with the failure is below. It looks like something to do with the
> frame
> buffer changes ... `_bsd_fb_fb_modmodule_sys_init` ?
>
> Thanks
> Chris



I'm getting the following error after trying a fix for the fb_modmodule
error:
Am I missing something?


configure:19828: checking for gethostbyname for eCos
configure:19847: arm-rtems5-gcc -o conftest -qrtems
-B/home/lunatic/development/rtems/5/arm-rtems5/lib/
-B/home/lunatic/development/rtems/5/arm-rtems5/beagleboneblack/lib/ --specs
bsp_specs -mcpu=cortex-a8 -O2 -ffunction-sections -fdata-sections
-Werror-implicit-function-declaration -Wno-system-headers -isystem
/home/lunatic/development/rtems/5/arm-rtems5/beagleboneblack/lib/include
-L/home/lunatic/development/rtems/5/arm-rtems5/beagleboneblack/lib
-L/home/lunatic/development/rtems/rsb/rtems/build/tmp/sb-lunatic/ftp/curl/home/lunatic/development/rtems/5/lib
conftest.c -lrtemsdefaultconfig >&5
/home/lunatic/development/rtems/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld:
/tmp/ccXCcJLN.o: in function `main':
conftest.c:(.text.startup.main+0xc): undefined reference to `gethostbyname'
collect2: error: ld returned 1 exit status
configure:19847: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "curl"
| #define PACKAGE_TARNAME "curl"
| #define PACKAGE_VERSION "-"
| #define PACKAGE_STRING "curl -"
| #define PACKAGE_BUGREPORT "a suitable curl mailing list:
https://curl.haxx.se/mail/"
| #define PACKAGE_URL ""
| #define PACKAGE "curl"
| #define VERSION "-"
| #define OS "arm-unknown-rtems5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_LDAP_SSL 1
| /* end confdefs.h.  */
|
|
| #include <stdio.h>
| #include <netdb.h>
|
| int main (void)
| {
|
|       gethostbyname("www.dummysite.com");
|
|  ;
|  return 0;
| }
|
configure:19855: result: no
configure:19865: checking for gethostbyname for AmigaOS bsdsocket.library
configure:19884: arm-rtems5-gcc -o conftest -qrtems
-B/home/lunatic/development/rtems/5/arm-rtems5/lib/
-B/home/lunatic/development/rtems/5/arm-rtems5/beagleboneblack/lib/ --specs
bsp_specs -mcpu=cortex-a8 -O2 -ffunction-sections -fdata-sections
-Werror-implicit-function-declaration -Wno-system-headers -isystem
/home/lunatic/development/rtems/5/arm-rtems5/beagleboneblack/lib/include
-L/home/lunatic/development/rtems/5/arm-rtems5/beagleboneblack/lib
-L/home/lunatic/development/rtems/rsb/rtems/build/tmp/sb-lunatic/ftp/curl/home/lunatic/development/rtems/5/lib
conftest.c -lrtemsdefaultconfig >&5
conftest.c:27:10: fatal error: proto/bsdsocket.h: No such file or directory
 #include <proto/bsdsocket.h>
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
configure:19884: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "curl"
| #define PACKAGE_TARNAME "curl"
| #define PACKAGE_VERSION "-"
| #define PACKAGE_STRING "curl -"
| #define PACKAGE_BUGREPORT "a suitable curl mailing list:
https://curl.haxx.se/mail/"
| #define PACKAGE_URL ""
| #define PACKAGE "curl"
| #define VERSION "-"
| #define OS "arm-unknown-rtems5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_LDAP_SSL 1
| /* end confdefs.h.  */
|
|
| #include <proto/bsdsocket.h>
| struct Library *SocketBase = NULL;
|
| int main (void)
| {
|
|       gethostbyname("www.dummysite.com");
|
|  ;
|  return 0;
| }
|
configure:19898: result: no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190827/4e13712f/attachment-0002.html>


More information about the devel mailing list