Error building in Ubuntu 24.04
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- c, node.js, postgresql, typescript, ubuntu
Línea de trabajo
Comienza reproduciendo el fallo con npm clean-install en Ubuntu 24.04; después inspecciona la salida de compilación de libpg_query, src/postgres/src_port_snprintf.c alrededor de strchrnul y el Makefile referenciado. Se considera terminado cuando el paquete se compile correctamente en Ubuntu 24.04 sin el error de declaración en conflicto.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug report
- I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
I'm trying to build supabase postgres-meta in my ubuntu 24.04 machine and I get this error
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error Cloning into 'libpg_query'...
npm error Note: switching to 'e7c14fe399c4903223362790c212bcbeb6832864'.
npm error
npm error You are in 'detached HEAD' state. You can look around, make experimental
npm error changes and commit them, and you can discard any commits you make in this
npm error state without impacting any branches by switching back to a branch.
npm error
npm error If you want to create a new branch to retain commits you create, you may
npm error do so (now or later) by using -c with the switch command. Example:
npm error
npm error git switch -c <new-branch-name>
npm error
npm error Or undo this operation with:
npm error
npm error git switch -
npm error
npm error Turn off this advice by setting config variable advice.detachedHead to false
npm error
npm error HEAD is now at e7c14fe fix(makefile): ar var to inherit ar command
npm error src/postgres/src_port_snprintf.c:374:1: error: conflicting types for 'strchrnul'; have 'const char *(const char *, int)'
npm error 374 | strchrnul(const char *s, int c)
npm error | ^~~~~~~~~
npm error In file included from ./src/postgres/include/c.h:61,
npm error from src/postgres/src_port_snprintf.c:62:
npm error /usr/include/string.h:286:14: note: previous declaration of 'strchrnul' with type 'char *(const char *, int)'
npm error 286 | extern char *strchrnul (const char *__s, int __c)
npm error | ^~~~~~~~~
npm error make[1]: *** [Makefile:172: src/postgres/src_port_snprintf.o] Error 1
npm error make: *** [queryparser.target.mk:13: libpg_query/include/pg_query.h] Error 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: `make` failed with exit code: 2
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Spin up a Ubuntu 24.04 environment
- Run npm clean-install
Expected behavior
It should build in this distro
Screenshots
If applicable, add screenshots to help explain your problem.
System information
- OS: Ubuntu 24.04
Additional context
Add any other context about the problem here.
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.2k
- Forks
- 224
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de supabase/postgres-meta
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
supabase/postgres-meta#1150 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
supabase/postgres-meta#1147 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
supabase/postgres-meta#1146 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
supabase/postgres-meta#1143 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
supabase/postgres-meta#1142 ·
Los mantenedores suelen responder en 1 día
Todos los issues de supabase/postgres-meta
Issues similares
-
Resources: New palettes of MacaoAbiertoresources
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
railmapgen/rmg-palette#2445 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
danielmiessler/LifeOS#2242 ·
Los mantenedores suelen responder en 5 días
-
good first issue hacktoberfest help wanted translation
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
callstackincubator/appduct#129 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100