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

setsockopt undefined symbol #2263

Closed
rafael2k opened this issue Mar 19, 2025 · 6 comments
Closed

setsockopt undefined symbol #2263

rafael2k opened this issue Mar 19, 2025 · 6 comments
Labels
bug Defect in the product

Comments

@rafael2k
Copy link
Contributor

I'm importing the urlget code to bobcat, but now I get:

owcc -bos2 -s -Wl,option -Wl,dosseg -Wl,option -Wl,start=_start -Wl,option -Wl,nodefaultlibs -Wl,option -Wl,stack=0x2200 -Wl,option -Wl,heapsize=512 -o bobcat DefaultStyle.obj HTAlert.obj LYDownlo.obj LYHistor.obj LYLeaks.obj LYMainLoop.obj LYrcFile.obj LYShowIn.obj GridText.obj HTML.obj LYClean.obj LYEdit.obj LYJump.obj LYOption.obj LYReadCF.obj LYString.obj LYBookmark.obj LYCurses.obj LYGetFil.obj LYKeymap.obj LYMain.obj LYPrint.obj LYSearch.obj LYUtils.obj LYEditMap.obj HTWrite.obj HTForms.obj curses/curses2.obj curses/curses3.obj curses/curses.obj curses/unikey.obj curses/tty.obj mem.obj lib/SGML.obj lib/HTAnchor.obj lib/HTChunk.obj lib/HTMIME.obj lib/HTPlain.obj lib/HTTP.obj lib/HTList.obj lib/HTAccess.obj lib/HTAuth.obj lib/HTLex.obj lib/HTParse.obj lib/HTStyle.obj lib/HTBTree.obj lib/HTFWrite.obj lib/HTPasswd.obj lib/HTTCP.obj lib/HTAssoc.obj lib/HTFile.obj lib/HTMLDTD.obj lib/HTUU.obj lib/HTAtom.obj lib/HTFormat.obj lib/HTInit.obj lib/HTMLGen.obj lib/HTString.obj lib/HTWriter.obj lib/HTRules.obj lib/HTAAUtil.obj lib/HTAAProt.obj lib/HTAABrow.obj lib/HTAAFile.obj lib/HTAAServ.obj lib/HTACL.obj lib/HTGroup.obj -Wl,library -Wl,/home/rafael2k/programs/devel/elks/libc/libcl.lib
Error! E2028: setsockopt_ is an undefined reference
  file lib/HTTCP.obj(/home/rafael2k/programs/devel/bobcat/src/lib/HTTCP.c): undefined symbol setsockopt_
Error: Linker returned a bad status

Am I missing something or it is just that setsockopt is not implemented for wc yet?

Btw, I'm having problems with urlget already, at the second time I use it, it blocks.

@rafael2k rafael2k added the bug Defect in the product label Mar 19, 2025
@ghaerr
Copy link
Owner

ghaerr commented Mar 19, 2025

Looks like setsockopt needs to be added to libc/watcom/syscalls. I will do that shortly, or you might just comment it out for the time being.

I'm having problems with urlget already, at the second time I use it, it blocks.

It looks like urlget is pretty old program source and I think has been fairly unused. We will need more information as to its problems in order to try to fix it.

@ghaerr
Copy link
Owner

ghaerr commented Mar 19, 2025

I pushed a commit with setsockopt() added, thank you.

@rafael2k
Copy link
Contributor Author

Thanks @ghaerr!

@rafael2k
Copy link
Contributor Author

Next time I come back to it I'll try to identify the syscall that is blocking... I have a guess thou, as the same is happening with urlget.

@ghaerr
Copy link
Owner

ghaerr commented Mar 20, 2025

I'll try to identify the syscall that is blocking... I have a guess thou, as the same is happening with urlget.

Sounds like connect?

I'd be interested in more information about how urlget fails. Ktcp does have some issues with re-using local port numbers, we can also debug that after more information about what is causing the failure.

@rafael2k
Copy link
Contributor Author

I can browse on ELKS! Yay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defect in the product
Projects
None yet
Development

No branches or pull requests

2 participants