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

fix(main/lighttpd): link with libandroid-spawn #22024

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

robertkirkman
Copy link
Contributor

@robertkirkman robertkirkman commented Oct 30, 2024

Progress on #21130

Fixes this error during build:

ld.lld: error: undefined symbol: posix_spawn_file_actions_init
>>> referenced by fdevent.c:495 (../src/src/fdevent.c:495)
>>>               src/test_mod.p/fdevent.c.o:(fdevent_fork_execve)

I tested this by using the docker container to cross-compile this package, then copying the .deb file to my aarch64 Android 10 device. I was able to successfully test the resulting program as a functioning web server at runtime after installing the .deb file by typing these commands (note: identical commands are also required for testing the previous build of the lighttpd package from the time of NDK revision 26 that's currently in the repositories, so I believe that my update most likely has equivalent functionality without any regression):

mkdir -p $PREFIX/var/log/lighttpd
mkdir -p $PREFIX/var/www/htdocs
echo 'hello lighttpd' > $PREFIX/var/www/htdocs/index.html
lighttpd -f $PREFIX/etc/lighttpd/lighttpd.conf

My Android 10 device's WiFi LAN local IP address is 192.168.120.74, so then I used a separate computer's web browser to go to this address: http://192.168.120.74:8080/index.html, where I am able to see the text I wrote into the index.html file, "hello lighttpd"

image

Progress on termux#21130

Fixes this error during build:

```
ld.lld: error: undefined symbol: posix_spawn_file_actions_init
>>> referenced by fdevent.c:495 (../src/src/fdevent.c:495)
>>>               src/test_mod.p/fdevent.c.o:(fdevent_fork_execve)
```

I successfully tested this by using the docker container to
cross-compile this package, then copying the .deb file to
my aarch64 Android 10 device. I was able to successfully test the
resulting program as a functioning web server
at runtime after installing the .deb file by
typing these commands:

```bash
mkdir -p $PREFIX/var/log/lighttpd
mkdir -p $PREFIX/var/www/htdocs
echo 'hello lighttpd' > $PREFIX/var/www/htdocs/index.html
lighttpd -f $PREFIX/etc/lighttpd/lighttpd.conf
```

My Android 10 device's WiFi LAN local IP address is 192.168.120.74, so
then I used a separate computer's web browser to go to this address:
http://192.168.120.74:8080/index.html, where I am able to see the text I
wrote into the `index.html` file, "hello lighttpd"
@twaik twaik merged commit dc477b4 into termux:master Oct 30, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants