René's URL Explorer Experiment


Title: Build failure on 32-bit OS: incompatible type in tp_hash in PyTypeObject · Issue #149 · grisha/mod_python · GitHub

Open Graph Title: Build failure on 32-bit OS: incompatible type in tp_hash in PyTypeObject · Issue #149 · grisha/mod_python

X Title: Build failure on 32-bit OS: incompatible type in tp_hash in PyTypeObject · Issue #149 · grisha/mod_python

Description: Current mod_python v3.5.0.6 fails to build on 32-bit OS (e.g., armhf, i386, ...): Build log: https://buildd.debian.org/status/fetch.php?pkg=libapache2-mod-python&arch=i386&ver=3.5.0.6-1&stamp=1767544870&raw=0 Building mod_python.so. /usr...

Open Graph Description: Current mod_python v3.5.0.6 fails to build on 32-bit OS (e.g., armhf, i386, ...): Build log: https://buildd.debian.org/status/fetch.php?pkg=libapache2-mod-python&arch=i386&ver=3.5.0.6-1&stamp=17675...

X Description: Current mod_python v3.5.0.6 fails to build on 32-bit OS (e.g., armhf, i386, ...): Build log: https://buildd.debian.org/status/fetch.php?pkg=libapache2-mod-python&arch=i386&ver=3.5.0.6-1&...

Opengraph URL: https://github.com/grisha/mod_python/issues/149

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build failure on 32-bit OS: incompatible type in tp_hash in PyTypeObject","articleBody":"Current mod_python v3.5.0.6 fails to build on 32-bit OS (e.g., armhf, i386, ...):\n\n* Build log: https://buildd.debian.org/status/fetch.php?pkg=libapache2-mod-python\u0026arch=i386\u0026ver=3.5.0.6-1\u0026stamp=1767544870\u0026raw=0\n\n```\nBuilding mod_python.so.\n\n/usr/bin/apxs2 -I/build/reproducible-path/libapache2-mod-python-3.5.0.6/src/include -I/usr/include/python3.13 -I/usr/include/python3.13 -Wc,-ffile-prefix-map=/build/reproducible-path/libapache2-mod-python-3.5.0.6=.  -c mod_python.c _apachemodule.c requestobject.c tableobject.c util.c serverobject.c connobject.c filterobject.c hlist.c hlistobject.c finfoobject.c version.c include/_apachemodule.h  include/filterobject.h  include/hlist.h include/mod_python.h  include/psp_flex.h include/psp_parser.h include/requestobject.h include/tableobject.h include/connobject.h include/finfoobject.h include/hlistobject.h include/mp_version.h include/_pspmodule.h  include/psp_string.h  include/serverobject.h include/util.h -L/usr/lib/python3.13/config-3.13-i386-linux-gnu -L/usr/lib/i386-linux-gnu -lpython3.13 -ldl  -lm   \n/usr/share/apr-1.0/build/libtool  --mode=compile --tag=disable-static i686-linux-gnu-gcc -prefer-pic -pipe -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2   -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE   -I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include -ffile-prefix-map=/build/reproducible-path/libapache2-mod-python-3.5.0.6=. -I/build/reproducible-path/libapache2-mod-python-3.5.0.6/src/include -I/usr/include/python3.13 -I/usr/include/python3.13  -c -o mod_python.lo mod_python.c \u0026\u0026 touch mod_python.slo\nlibtool: compile:  i686-linux-gnu-gcc -pipe -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -ffile-prefix-map=/build/reproducible-path/libapache2-mod-python-3.5.0.6=. -I/build/reproducible-path/libapache2-mod-python-3.5.0.6/src/include -I/usr/include/python3.13 -I/usr/include/python3.13 -c mod_python.c  -fPIC -DPIC -o .libs/mod_python.o\n/usr/share/apr-1.0/build/libtool  --mode=compile --tag=disable-static i686-linux-gnu-gcc -prefer-pic -pipe -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2   -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE   -I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include -ffile-prefix-map=/build/reproducible-path/libapache2-mod-python-3.5.0.6=. -I/build/reproducible-path/libapache2-mod-python-3.5.0.6/src/include -I/usr/include/python3.13 -I/usr/include/python3.13  -c -o _apachemodule.lo _apachemodule.c \u0026\u0026 touch _apachemodule.slo\nlibtool: compile:  i686-linux-gnu-gcc -pipe -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -ffile-prefix-map=/build/reproducible-path/libapache2-mod-python-3.5.0.6=. -I/build/reproducible-path/libapache2-mod-python-3.5.0.6/src/include -I/usr/include/python3.13 -I/usr/include/python3.13 -c _apachemodule.c  -fPIC -DPIC -o .libs/_apachemodule.o\n/usr/share/apr-1.0/build/libtool  --mode=compile --tag=disable-static i686-linux-gnu-gcc -prefer-pic -pipe -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2   -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE   -I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include -ffile-prefix-map=/build/reproducible-path/libapache2-mod-python-3.5.0.6=. -I/build/reproducible-path/libapache2-mod-python-3.5.0.6/src/include -I/usr/include/python3.13 -I/usr/include/python3.13  -c -o requestobject.lo requestobject.c \u0026\u0026 touch requestobject.slo\nlibtool: compile:  i686-linux-gnu-gcc -pipe -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -ffile-prefix-map=/build/reproducible-path/libapache2-mod-python-3.5.0.6=. -I/build/reproducible-path/libapache2-mod-python-3.5.0.6/src/include -I/usr/include/python3.13 -I/usr/include/python3.13 -c requestobject.c  -fPIC -DPIC -o .libs/requestobject.o\n/usr/share/apr-1.0/build/libtool  --mode=compile --tag=disable-static i686-linux-gnu-gcc -prefer-pic -pipe -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security  -Wdate-time -D_FORTIFY_SOURCE=2   -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE   -I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include -ffile-prefix-map=/build/reproducible-path/libapache2-mod-python-3.5.0.6=. -I/build/reproducible-path/libapache2-mod-python-3.5.0.6/src/include -I/usr/include/python3.13 -I/usr/include/python3.13  -c -o tableobject.lo tableobject.c \u0026\u0026 touch tableobject.slo\nlibtool: compile:  i686-linux-gnu-gcc -pipe -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -ffile-prefix-map=/build/reproducible-path/libapache2-mod-python-3.5.0.6=. -I/build/reproducible-path/libapache2-mod-python-3.5.0.6/src/include -I/usr/include/python3.13 -I/usr/include/python3.13 -c tableobject.c  -fPIC -DPIC -o .libs/tableobject.o\ntableobject.c:1203:5: error: initialization of 'Py_hash_t (*)(PyObject *)' {aka 'int (*)(struct _object *)'} from incompatible pointer type 'long int (*)(PyObject *)' {aka 'long int (*)(struct _object *)'} [-Wincompatible-pointer-types]\n 1203 |     table_nohash,                       /* tp_hash */\n      |     ^~~~~~~~~~~~\ntableobject.c:1203:5: note: (near initialization for 'MpTable_Type.tp_hash')\ntableobject.c:1161:13: note: 'table_nohash' declared here\n 1161 | static long table_nohash(PyObject *self)\n      |             ^~~~~~~~~~~~\napxs:Error: Command failed with rc=65536\n.\nmake[3]: *** [Makefile:57: mod_python.so] Error 1\n```\n\nThe reason is that `*hashfunc` as defined in https://docs.python.org/3/c-api/typeobj.html#c.hashfunc has type `Py_hash_t`, which is of type `signed integer` as defined at https://docs.python.org/3/c-api/hash.html#c.Py_hash_t . However, in https://github.com/grisha/mod_python/blob/52f8975829a0a3c467f089894e884d29c83e8a5e/src/tableobject.c#L1161 you are using `long` instead. On 32-bit OS, `long` may not equal to `int` and thus the build error happens.\n\nThe solution could be directly using `Py_hash_t`, instead of hardcoding `int` or `long` for function return.","author":{"url":"https://github.com/hosiet","@type":"Person","name":"hosiet"},"datePublished":"2026-01-04T17:39:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/149/mod_python/issues/149"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:241fb4d7-63a5-1d88-0058-d75d9bc4e791
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8C30:29E627:BA896C:FD13FB:6A4D5826
html-safe-noncef8de565cb501258b1d2909af66b3adaabbb93bf6cf973e149b53f83b2c256f39
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzMwOjI5RTYyNzpCQTg5NkM6RkQxM0ZCOjZBNEQ1ODI2IiwidmlzaXRvcl9pZCI6Ijc0ODU4MjQ4NjQyMTQ2NjkzNTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9295c83dd2790e6ab40b75899a5a046a6675492f203b386e38ed7292facf7f5c
hovercard-subject-tagissue:3779472697
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/grisha/mod_python/149/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3d17646b1155ed46dcad295d0b2ac8cff1b4dfd4b4f15320d76f277055058132/grisha/mod_python/issues/149
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3d17646b1155ed46dcad295d0b2ac8cff1b4dfd4b4f15320d76f277055058132/grisha/mod_python/issues/149
og:image:altCurrent mod_python v3.5.0.6 fails to build on 32-bit OS (e.g., armhf, i386, ...): Build log: https://buildd.debian.org/status/fetch.php?pkg=libapache2-mod-python&arch=i386&ver=3.5.0.6-1&stamp=17675...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehosiet
hostnamegithub.com
expected-hostnamegithub.com
None2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441
turbo-cache-controlno-preview
go-importgithub.com/grisha/mod_python git https://github.com/grisha/mod_python.git
octolytics-dimension-user_id243835
octolytics-dimension-user_logingrisha
octolytics-dimension-repository_id7504434
octolytics-dimension-repository_nwogrisha/mod_python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7504434
octolytics-dimension-repository_network_root_nwogrisha/mod_python
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
releasef3bdd3157ea1f0fd738d408eceeead721acf1dc3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/grisha/mod_python/issues/149#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgrisha%2Fmod_python%2Fissues%2F149
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2Fgrisha%2Fmod_python%2Fissues%2F149
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=grisha%2Fmod_python
Reloadhttps://github.com/grisha/mod_python/issues/149
Reloadhttps://github.com/grisha/mod_python/issues/149
Reloadhttps://github.com/grisha/mod_python/issues/149
grisha https://github.com/grisha
mod_pythonhttps://github.com/grisha/mod_python
Notifications https://github.com/login?return_to=%2Fgrisha%2Fmod_python
Fork 87 https://github.com/login?return_to=%2Fgrisha%2Fmod_python
Star 310 https://github.com/login?return_to=%2Fgrisha%2Fmod_python
Code https://github.com/grisha/mod_python
Issues 21 https://github.com/grisha/mod_python/issues
Pull requests 0 https://github.com/grisha/mod_python/pulls
Actions https://github.com/grisha/mod_python/actions
Projects https://github.com/grisha/mod_python/projects
Wiki https://github.com/grisha/mod_python/wiki
Security and quality 0 https://github.com/grisha/mod_python/security
Insights https://github.com/grisha/mod_python/pulse
Code https://github.com/grisha/mod_python
Issues https://github.com/grisha/mod_python/issues
Pull requests https://github.com/grisha/mod_python/pulls
Actions https://github.com/grisha/mod_python/actions
Projects https://github.com/grisha/mod_python/projects
Wiki https://github.com/grisha/mod_python/wiki
Security and quality https://github.com/grisha/mod_python/security
Insights https://github.com/grisha/mod_python/pulse
#150https://github.com/grisha/mod_python/pull/150
Build failure on 32-bit OS: incompatible type in tp_hash in PyTypeObjecthttps://github.com/grisha/mod_python/issues/149#top
#150https://github.com/grisha/mod_python/pull/150
https://github.com/hosiet
hosiethttps://github.com/hosiet
on Jan 4, 2026https://github.com/grisha/mod_python/issues/149#issue-3779472697
https://buildd.debian.org/status/fetch.php?pkg=libapache2-mod-python&arch=i386&ver=3.5.0.6-1&stamp=1767544870&raw=0https://buildd.debian.org/status/fetch.php?pkg=libapache2-mod-python&arch=i386&ver=3.5.0.6-1&stamp=1767544870&raw=0
https://docs.python.org/3/c-api/typeobj.html#c.hashfunchttps://docs.python.org/3/c-api/typeobj.html#c.hashfunc
https://docs.python.org/3/c-api/hash.html#c.Py_hash_thttps://docs.python.org/3/c-api/hash.html#c.Py_hash_t
mod_python/src/tableobject.chttps://github.com/grisha/mod_python/blob/52f8975829a0a3c467f089894e884d29c83e8a5e/src/tableobject.c#L1161
52f8975https://github.com/grisha/mod_python/commit/52f8975829a0a3c467f089894e884d29c83e8a5e
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.