lpereira / lwan

Experimental, scalable, high performance HTTP server

Home Page:https://lwan.ws

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fcntl: Invalid argument (error number 22)

dreamsxin opened this issue · comments

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)

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

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.