Closed dreamsxin closed 3 years ago
On what platform does this occur?
On Tue, Dec 1, 2020, 00:23 Dreamszhu notifications@github.com wrote:
cmake . make ./src/samples/hello/hello
24543 lwan-job.c:104 lwan_job_thread_init() Initializing low priority job thread 24543 lwan-tables.c:47 lwan_tables_init() Uncompressing MIME type table: 8082->31348 bytes, 953 entries 24543 lwan.c:498 setup_from_config() Loading configuration file: hello.conf 24543 lwan-config.c:695 config_open_path() Could not open configuration file: hello.conf: No such file or directory (error number 2) 24543 lwan-response.c:77 lwan_response_init() Initializing default response 24543 lwan.c:708 lwan_init_with_config() Initializing lwan web server 24543 lwan.c:736 lwan_init_with_config() Using 4 threads, maximum 262144 sockets per thread 24543 lwan-readahead.c:177 lwan_readahead_init() Initializing low priority readahead thread 24543 lwan-readahead.c:187 lwan_readahead_init() fcntl: Invalid argument (error number 22)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lpereira/lwan/issues/298, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADVGI2QU2NZNAYVZR5H3DSSSRW5ANCNFSM4UIVWPJA .
Ubuntu 16.04
mkdir build
cd build && cmake .. -DCMAKE_BUILD_TYPE=Release
make
error
[ 2%] Built target bin2hex
[ 3%] Built target generate_auto_index_icons
[ 9%] Built target mimegen
[ 11%] Built target generate_mime_types_table
[ 61%] Built target lwan-static
[ 62%] Linking C shared library liblwan.so
[ 64%] Built target lwan-shared
[ 74%] Built target configdump
[ 75%] Linking C executable lwan
/tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0x70): undefined reference to `.L349'
/tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0x78): undefined reference to `.L350'
/tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0x80): undefined reference to `.L351'
/tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0x88): undefined reference to `.L352'
/tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0x90): undefined reference to `.L353'
/tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0x98): undefined reference to `.L354'
/tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0xa0): undefined reference to `.L355'
/tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0xa8): undefined reference to `.L356'
/tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0xb0): undefined reference to `.L357'
/tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0xb8): undefined reference to `.L358'
/tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0xc0): undefined reference to `.L359'
collect2: error: ld returned 1 exit status
src/bin/lwan/CMakeFiles/lwan.dir/build.make:96: recipe for target 'src/bin/lwan/lwan' failed
make[2]: *** [src/bin/lwan/lwan] Error 1
CMakeFiles/Makefile2:427: recipe for target 'src/bin/lwan/CMakeFiles/lwan.dir/all' failed
make[1]: *** [src/bin/lwan/CMakeFiles/lwan.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
This other error is unrelated to the original error; there's another issue related to that, please post more details there. Given that the build error is happening on an old distro that's not even supported by the original maintainers anymore, though, it's unlikely I'll spend time addressing it.
I might be able to fix the original issue regarding the fcntl call. Please don't hold your breath, though, as I'm taking a break from open source.
On Tue, Dec 1, 2020, 17:27 Dreamszhu notifications@github.com wrote:
Ubuntu 16.04
mkdir buildcd build && cmake .. -DCMAKE_BUILD_TYPE=Release make
error
[ 2%] Built target bin2hex [ 3%] Built target generate_auto_index_icons [ 9%] Built target mimegen [ 11%] Built target generate_mime_types_table [ 61%] Built target lwan-static [ 62%] Linking C shared library liblwan.so [ 64%] Built target lwan-shared [ 74%] Built target configdump [ 75%] Linking C executable lwan /tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0x70): undefined reference to
.L349' /tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0x78): undefined reference to
.L350' /tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0x80): undefined reference to.L351' /tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0x88): undefined reference to
.L352' /tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0x90): undefined reference to.L353' /tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0x98): undefined reference to
.L354' /tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0xa0): undefined reference to.L355' /tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0xa8): undefined reference to
.L356' /tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0xb0): undefined reference to.L357' /tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0xb8): undefined reference to
.L358' /tmp/ccOZKKcD.ltrans5.ltrans.o:(.data.rel.ro.local+0xc0): undefined reference to `.L359' collect2: error: ld returned 1 exit status src/bin/lwan/CMakeFiles/lwan.dir/build.make:96: recipe for target 'src/bin/lwan/lwan' failed make[2]: [src/bin/lwan/lwan] Error 1 CMakeFiles/Makefile2:427: recipe for target 'src/bin/lwan/CMakeFiles/lwan.dir/all' failed make[1]: [src/bin/lwan/CMakeFiles/lwan.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lpereira/lwan/issues/298#issuecomment-736926965, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADVGJ4YVFXLK4FKY7VBK3SSWJYNANCNFSM4UIVWPJA .
I pushed a fix for the readahead/fnctl issue. Could you please build a new version and confirm it's working?
It's working fine.