Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linking the hello_world example against liblwan.so fails #223

Closed
diviaki opened this issue Feb 16, 2018 · 7 comments
Closed

linking the hello_world example against liblwan.so fails #223

diviaki opened this issue Feb 16, 2018 · 7 comments

Comments

@diviaki
Copy link

diviaki commented Feb 16, 2018

gcc -o hello hello.c -I lwan/src/lib/ -Llwan/build/src/lib/ -llwan

/tmp/cc4jC9OA.o: In function `hello_world':
hello.c:(.text+0x6d): undefined reference to `strbuf_set_static'
collect2: error: ld returned 1 exit status
@diviaki diviaki changed the title linking the hello_world example fails linking the hello_world example against liblwan.so fails Feb 17, 2018
@diviaki
Copy link
Author

diviaki commented Feb 17, 2018

looks like it isn't exposed:

$ readelf -s lwan/build/src/lib/liblwan.so|grep strbuf_set_static
$

@lpereira
Copy link
Owner

That's true: any symbols that do not begin with lwan_ are not being exported any longer. The strbuf_ symbols need to be renamed to lwan_strbuf_. Rationale: #217.

@diviaki
Copy link
Author

diviaki commented Feb 17, 2018

need a hand with that?

@lpereira
Copy link
Owner

Sure, help is always appreciated.

@lpereira
Copy link
Owner

I ended up renaming it already. The wiki and web page have been updated.

@diviaki
Copy link
Author

diviaki commented Feb 19, 2018

That's great.
Note that I still see an occurrence of strbuf_set_static on lwan.ws though.

@diviaki
Copy link
Author

diviaki commented Feb 21, 2018

Linking works fine now, closing.

@diviaki diviaki closed this as completed Feb 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants