René's URL Explorer Experiment


Title: [BUG] Build still uses C++11 flags, although C++14 is supposed to be required · Issue #245 · etr/libhttpserver · GitHub

Open Graph Title: [BUG] Build still uses C++11 flags, although C++14 is supposed to be required · Issue #245 · etr/libhttpserver

X Title: [BUG] Build still uses C++11 flags, although C++14 is supposed to be required · Issue #245 · etr/libhttpserver

Description: Prerequisites Put an X between the brackets on this line if you have checked that your issue isn't already filed: https://github.com/search?l=&q=repo:etr/libhttpserver&type=Issues Description Changeset 1e61eae added -std=c++11 to CXX...

Open Graph Description: Prerequisites Put an X between the brackets on this line if you have checked that your issue isn't already filed: https://github.com/search?l=&q=repo:etr/libhttpserver&type=Issues Description C...

X Description: Prerequisites Put an X between the brackets on this line if you have checked that your issue isn't already filed: https://github.com/search?l=&q=repo:etr/libhttpserver&type=Issues D...

Opengraph URL: https://github.com/etr/libhttpserver/issues/245

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Build still uses C++11 flags, although C++14 is supposed to be required","articleBody":"### Prerequisites\r\n\r\n* [x] Put an X between the brackets on this line if you have checked that your issue isn't already filed: https://github.com/search?l=\u0026q=repo%3Aetr%2Flibhttpserver\u0026type=Issues\r\n\r\n### Description\r\n\r\nChangeset 1e61eae1f1874a26c447d0fa26ef663073ab2312 added `-std=c++11` to `CXXFLAGS` unconditionally, which is still in *configure.ac*, leading to this output:\r\n\r\n```\r\n% make                                                                                            :(\r\nmake  all-recursive\r\nmake[1]: Verzeichnis „/mnt/data/adahl/src/libhttpserver/build“ wird betreten\r\nMaking all in src\r\nmake[2]: Verzeichnis „/mnt/data/adahl/src/libhttpserver/build/src“ wird betreten\r\n/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I..  -I../ -I../../src/httpserver/  -DDEBUG -g -Wall -Wextra -Werror -pedantic -std=c++14 -Wno-unused-command-line-argument -O0 -fPIC -Wall  -DUSE_FASTOPEN -std=c++11 -DHTTPSERVER_COMPILATION -D_REENTRANT   -MT libhttpserver_la-string_utilities.lo -MD -MP -MF .deps/libhttpserver_la-string_utilities.Tpo -c -o libhttpserver_la-string_utilities.lo `test -f 'string_utilities.cpp' || echo '../../src/'`string_utilities.cpp\r\nlibtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -I../ -I../../src/httpserver/ -DDEBUG -g -Wall -Wextra -Werror -pedantic -std=c++14 -Wno-unused-command-line-argument -O0 -fPIC -Wall -DUSE_FASTOPEN -std=c++11 -DHTTPSERVER_COMPILATION -D_REENTRANT -MT libhttpserver_la-string_utilities.lo -MD -MP -MF .deps/libhttpserver_la-string_utilities.Tpo -c ../../src/string_utilities.cpp  -fPIC -DPIC -o .libs/libhttpserver_la-string_utilities.o\r\nlibtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -I../ -I../../src/httpserver/ -DDEBUG -g -Wall -Wextra -Werror -pedantic -std=c++14 -Wno-unused-command-line-argument -O0 -fPIC -Wall -DUSE_FASTOPEN -std=c++11 -DHTTPSERVER_COMPILATION -D_REENTRANT -MT libhttpserver_la-string_utilities.lo -MD -MP -MF .deps/libhttpserver_la-string_utilities.Tpo -c ../../src/string_utilities.cpp -o libhttpserver_la-string_utilities.o \u003e/dev/null 2\u003e\u00261\r\nmv -f .deps/libhttpserver_la-string_utilities.Tpo .deps/libhttpserver_la-string_utilities.Plo\r\n/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../src -I..  -I../ -I../../src/httpserver/  -DDEBUG -g -Wall -Wextra -Werror -pedantic -std=c++14 -Wno-unused-command-line-argument -O0 -fPIC -Wall  -DUSE_FASTOPEN -std=c++11 -DHTTPSERVER_COMPILATION -D_REENTRANT   -MT libhttpserver_la-webserver.lo -MD -MP -MF .deps/libhttpserver_la-webserver.Tpo -c -o libhttpserver_la-webserver.lo `test -f 'webserver.cpp' || echo '../../src/'`webserver.cpp\r\nlibtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -I../ -I../../src/httpserver/ -DDEBUG -g -Wall -Wextra -Werror -pedantic -std=c++14 -Wno-unused-command-line-argument -O0 -fPIC -Wall -DUSE_FASTOPEN -std=c++11 -DHTTPSERVER_COMPILATION -D_REENTRANT -MT libhttpserver_la-webserver.lo -MD -MP -MF .deps/libhttpserver_la-webserver.Tpo -c ../../src/webserver.cpp  -fPIC -DPIC -o .libs/libhttpserver_la-webserver.o\r\nlibtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../src -I.. -I../ -I../../src/httpserver/ -DDEBUG -g -Wall -Wextra -Werror -pedantic -std=c++14 -Wno-unused-command-line-argument -O0 -fPIC -Wall -DUSE_FASTOPEN -std=c++11 -DHTTPSERVER_COMPILATION -D_REENTRANT -MT libhttpserver_la-webserver.lo -MD -MP -MF .deps/libhttpserver_la-webserver.Tpo -c ../../src/webserver.cpp -o libhttpserver_la-webserver.o \u003e/dev/null 2\u003e\u00261\r\nmv -f .deps/libhttpserver_la-webserver.Tpo .deps/libhttpserver_la-webserver.Plo\r\n…\r\n```\r\n\r\nNotice those lines have `-std=c++14` first and `-std=c++11` later, it builds successfully though.\r\n\r\nThis actually bit me when I added the example from #229 to the *examples* folder and tried to build it, build fails like this then:\r\n\r\n```\r\ng++ -DHAVE_CONFIG_H -I. -I../../examples -I..  -I../../src -I../../src/httpserver/  -DDEBUG -g -Wall -Wextra -Werror -pedantic -std=c++14 -Wno-unused-command-line-argument -O0 -DUSE_FASTOPEN -std=c++11 -DHTTPSERVER_COMPILATION -D_REENTRANT   -MT bug_229.o -MD -MP -MF $depbase.Tpo -c -o bug_229.o ../../examples/bug_229.cpp \u0026\u0026\\\r\nmv -f $depbase.Tpo $depbase.Po\r\n../../examples/bug_229.cpp: In member function ‘virtual const std::shared_ptr\u003chttpserver::http_response\u003e file_resource::render_POST(const httpserver::http_request\u0026)’:\r\n../../examples/bug_229.cpp:13:58: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14\r\n         std::for_each(headers.begin(), headers.end(), [](auto\u0026 p){\r\n                                                          ^~~~\r\n../../examples/bug_229.cpp: In lambda function:\r\n../../examples/bug_229.cpp:14:32: error: request for member ‘first’ in ‘p’, which is of non-class type ‘int’\r\n                 std::cout \u003c\u003c p.first \u003c\u003c \" -\u003e \" \u003c\u003c p.second \u003c\u003c std::endl;\r\n                                ^~~~~\r\n../../examples/bug_229.cpp:14:53: error: request for member ‘second’ in ‘p’, which is of non-class type ‘int’\r\n                 std::cout \u003c\u003c p.first \u003c\u003c \" -\u003e \" \u003c\u003c p.second \u003c\u003c std::endl;\r\n                                                     ^~~~~~\r\n../../examples/bug_229.cpp: In member function ‘virtual const std::shared_ptr\u003chttpserver::http_response\u003e file_resource::render_POST(const httpserver::http_request\u0026)’:\r\n../../examples/bug_229.cpp:19:52: error: use of ‘auto’ in lambda parameter declaration only available with -std=c++14 or -std=gnu++14\r\n         std::for_each(args.begin(), args.end(), [](auto\u0026 p) {\r\n                                                    ^~~~\r\n../../examples/bug_229.cpp: In lambda function:\r\n../../examples/bug_229.cpp:20:32: error: request for member ‘first’ in ‘p’, which is of non-class type ‘int’\r\n                 std::cout \u003c\u003c p.first \u003c\u003c \" -\u003e \" \u003c\u003c p.second \u003c\u003c std::endl;\r\n                                ^~~~~\r\n../../examples/bug_229.cpp:20:53: error: request for member ‘second’ in ‘p’, which is of non-class type ‘int’\r\n                 std::cout \u003c\u003c p.first \u003c\u003c \" -\u003e \" \u003c\u003c p.second \u003c\u003c std::endl;\r\n                                                     ^~~~~~\r\n…\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\n1. Create a new file in subfolder *examples*\r\n2. Copy and paste the example code from #229 to that new file\r\n3. Adapt *examples/Makefile.am* to build that new source file\r\n4. Call *./configure* with *--enable-examples*\r\n5. Call *make*\r\n\r\n**Expected behavior:** Build does not fail.\r\n\r\n**Actual behavior:** Build fails.\r\n\r\n**Reproduces how often:** Always.\r\n\r\n### Versions\r\n\r\n* OS version: Debian GNU/Linux 10 (buster)\r\n* libhttpserver version: 0.18.2-23-g8901082 (current master)\r\n* libmicrohttpd version: 0.9.62-1 (Debian package)\r\n\r\nIf you have problems during build:\r\n* Compiler version: g++ (Debian 8.3.0-6) 8.3.0\r\n* autotools version: autoconf (GNU Autoconf) 2.69, automake (GNU automake) 1.16.1\r\n\r\n### Additional Information\r\n\r\nC++14 support is required since #227 was merged.\r\n\r\n[config.log](https://github.com/etr/libhttpserver/files/7528897/config.log)\r\n\r\nI have no experience with autotools and can not provide a fix by myself.","author":{"url":"https://github.com/LeSpocky","@type":"Person","name":"LeSpocky"},"datePublished":"2021-11-12T16:11:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/245/libhttpserver/issues/245"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:252e7ed3-7876-c36f-e47f-1b6c3961039c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE066:288515:1935D2B:21EA692:6A535B47
html-safe-noncec675e6e41c50329f8d4be237ddfdc7521c6a168549cba022625b595e5932eda2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDY2OjI4ODUxNToxOTM1RDJCOjIxRUE2OTI6NkE1MzVCNDciLCJ2aXNpdG9yX2lkIjoiMjg3MzQ3MTEzNjE2MTY5Nzk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacaae38553b594225ff7f8cc2d4395837264bc206bd19676dfc245838da1336c3f
hovercard-subject-tagissue:1052127512
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/etr/libhttpserver/245/issue_layout
twitter:imagehttps://opengraph.githubassets.com/91979c84a930d98f8549e7b4bff48ec28dabc602683a6b42b0fdf158b7de8da0/etr/libhttpserver/issues/245
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/91979c84a930d98f8549e7b4bff48ec28dabc602683a6b42b0fdf158b7de8da0/etr/libhttpserver/issues/245
og:image:altPrerequisites Put an X between the brackets on this line if you have checked that your issue isn't already filed: https://github.com/search?l=&q=repo:etr/libhttpserver&type=Issues Description C...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLeSpocky
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/etr/libhttpserver git https://github.com/etr/libhttpserver.git
octolytics-dimension-user_id1201536
octolytics-dimension-user_loginetr
octolytics-dimension-repository_id3416891
octolytics-dimension-repository_nwoetr/libhttpserver
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3416891
octolytics-dimension-repository_network_root_nwoetr/libhttpserver
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/etr/libhttpserver/issues/245#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fetr%2Flibhttpserver%2Fissues%2F245
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fetr%2Flibhttpserver%2Fissues%2F245
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=etr%2Flibhttpserver
Reloadhttps://github.com/etr/libhttpserver/issues/245
Reloadhttps://github.com/etr/libhttpserver/issues/245
Reloadhttps://github.com/etr/libhttpserver/issues/245
etr https://github.com/etr
libhttpserverhttps://github.com/etr/libhttpserver
Notifications https://github.com/login?return_to=%2Fetr%2Flibhttpserver
Fork 191 https://github.com/login?return_to=%2Fetr%2Flibhttpserver
Star 942 https://github.com/login?return_to=%2Fetr%2Flibhttpserver
Code https://github.com/etr/libhttpserver
Issues 15 https://github.com/etr/libhttpserver/issues
Pull requests 4 https://github.com/etr/libhttpserver/pulls
Actions https://github.com/etr/libhttpserver/actions
Projects https://github.com/etr/libhttpserver/projects
Wiki https://github.com/etr/libhttpserver/wiki
Security and quality 0 https://github.com/etr/libhttpserver/security
Insights https://github.com/etr/libhttpserver/pulse
Code https://github.com/etr/libhttpserver
Issues https://github.com/etr/libhttpserver/issues
Pull requests https://github.com/etr/libhttpserver/pulls
Actions https://github.com/etr/libhttpserver/actions
Projects https://github.com/etr/libhttpserver/projects
Wiki https://github.com/etr/libhttpserver/wiki
Security and quality https://github.com/etr/libhttpserver/security
Insights https://github.com/etr/libhttpserver/pulse
[BUG] Build still uses C++11 flags, although C++14 is supposed to be requiredhttps://github.com/etr/libhttpserver/issues/245#top
https://github.com/etr
bugConfirmed bugs or reports that are very likely to be bugs.https://github.com/etr/libhttpserver/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/LeSpocky
LeSpockyhttps://github.com/LeSpocky
on Nov 12, 2021https://github.com/etr/libhttpserver/issues/245#issue-1052127512
https://github.com/search?l=&q=repo%3Aetr%2Flibhttpserver&type=Issueshttps://github.com/search?l=&q=repo%3Aetr%2Flibhttpserver&type=Issues
1e61eaehttps://github.com/etr/libhttpserver/commit/1e61eae1f1874a26c447d0fa26ef663073ab2312
#229https://github.com/etr/libhttpserver/issues/229
[BUG] Unable to access Content-Type of file when part of multipart form #229https://github.com/etr/libhttpserver/issues/229
#227https://github.com/etr/libhttpserver/pull/227
config.loghttps://github.com/etr/libhttpserver/files/7528897/config.log
etrhttps://github.com/etr
bugConfirmed bugs or reports that are very likely to be bugs.https://github.com/etr/libhttpserver/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.