Je n'arrive plus à compiler surf!

Bonsoir!
Tous est dans le titre. Après modification, j’ai voulu recompiler, et là, c’est le drame :

$ make Package zlib was not found in the pkg-config search path. Perhaps you should add the directory containing `zlib.pc' to the PKG_CONFIG_PATH environment variable Package 'zlib', required by 'GnuTLS', not found Package zlib was not found in the pkg-config search path. Perhaps you should add the directory containing `zlib.pc' to the PKG_CONFIG_PATH environment variable Package 'zlib', required by 'GnuTLS', not found surf build options: CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -DVERSION="0.3" LDFLAGS = -s -L /usr/lib -lc -lgthread-2.0 CC = cc Package zlib was not found in the pkg-config search path. Perhaps you should add the directory containing `zlib.pc' to the PKG_CONFIG_PATH environment variable Package 'zlib', required by 'GnuTLS', not found CC surf.c surf.c:8:21: error: gtk/gtk.h: Aucun fichier ou dossier de ce type surf.c:9:22: error: gdk/gdkx.h: Aucun fichier ou dossier de ce type surf.c:10:21: error: gdk/gdk.h: Aucun fichier ou dossier de ce type surf.c:11:28: error: gdk/gdkkeysyms.h: Aucun fichier ou dossier de ce type surf.c:18:27: error: webkit/webkit.h: Aucun fichier ou dossier de ce type surf.c:19:25: error: glib/gstdio.h: Aucun fichier ou dossier de ce type surf.c:20:39: error: JavaScriptCore/JavaScript.h: Aucun fichier ou dossier de ce type surf.c:27: error: expected specifier-qualifier-list before ‘gboolean’ surf.c:30: warning: union has no members
Et je vous passe les erreurs suivantes.
Ce qui m’inquiète le plus, c’est qu’il ne trouve plus les librairies :open_mouth:
Pourquoi??? elles sont pourtant bien installées! Et c’est quoi ce zlib dont il me parle?
Merci d’avance!

Il te manque
libgtk2.0-dev libwebkit-dev libglib2.0-dev zlib1g-dev

apt-cache policy libgtk2.0-dev libwebkit-dev libglib2.0-dev zlib1g-dev libgtk2.0-dev: Installé : 2.20.0-3 Candidat : 2.20.0-3 Table de version : *** 2.20.0-3 0 -10 http://ftp.fr.debian.org testing/main Packages -10 http://ftp.fr.debian.org sid/main Packages 100 /var/lib/dpkg/status 2.18.6-1~bpo50+1 0 1 http://www.backports.org lenny-backports/main Packages 2.12.12-1~lenny1 0 900 http://ftp.fr.debian.org stable/main Packages libwebkit-dev: Installé : 1.1.17-2 Candidat : 1.1.17-2 Table de version : 1.2.0-1 0 -10 http://ftp.fr.debian.org sid/main Packages *** 1.1.17-2 0 -10 http://ftp.fr.debian.org testing/main Packages 100 /var/lib/dpkg/status 1.0.1-4+lenny2 0 900 http://ftp.fr.debian.org stable/main Packages 500 http://security.debian.org stable/updates/main Packages libglib2.0-dev: Installé : 2.24.0-1 Candidat : 2.24.0-1 Table de version : 2.25.3-1 0 1 http://ftp.fr.debian.org experimental/main Packages *** 2.24.0-1 0 -10 http://ftp.fr.debian.org testing/main Packages -10 http://ftp.fr.debian.org sid/main Packages 100 /var/lib/dpkg/status 2.22.4-1~bpo50+1 0 1 http://www.backports.org lenny-backports/main Packages 2.16.6-3 0 900 http://ftp.fr.debian.org stable/main Packages 2.16.6-1+lenny1 0 500 http://security.debian.org stable/updates/main Packages zlib1g-dev: Installé : 1:1.2.3.3.dfsg-12 Candidat : 1:1.2.3.3.dfsg-12 Table de version : 1:1.2.3.5.dfsg-1 0 1 http://ftp.fr.debian.org experimental/main Packages 1:1.2.3.4.dfsg-3 0 -10 http://ftp.fr.debian.org testing/main Packages -10 http://ftp.fr.debian.org sid/main Packages *** 1:1.2.3.3.dfsg-12 0 900 http://ftp.fr.debian.org stable/main Packages 100 /var/lib/dpkg/status
Ils sont tous installés, c’est bien ce qui m’inquiète…

l’autoconf ou le ./configure est foireux.

Il n’y a ni autoconf ni configure, suckless.org les déteste.
Il y a un config.mk, qui éventuellement pourrait donner une piste?

[code]# surf version
VERSION = 0.4

Customize below to fit your system

paths

PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man

GTKINC=$(shell pkg-config --static --cflags gtk±2.0 webkit-1.0)
GTKLIB=$(shell pkg-config --static --libs gtk±2.0 webkit-1.0)

includes and libs

INCS = -I. -I/usr/include ${GTKINC}
LIBS = -L/usr/lib -lc ${GTKLIB} -lgthread-2.0

flags

CPPFLAGS = -DVERSION="${VERSION}"
CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
LDFLAGS = -g ${LIBS} -static

Solaris

#CFLAGS = -fast ${INCS} -DVERSION="${VERSION}"
#LDFLAGS = ${LIBS}

compiler and linker

CC = cc
[/code]
Cependant, ça marchait bien il y a quelque temps, je ne vois pas ce que j’ai pu faire de mal. En installant autre chose, un paquet a du virer sans que je sache qu’il était important…

nb : j’ai essayé d’autres compilations, comme dwm par exemple, et là, pas de souci, le compilateur trouve bien les librairies.

Je regarderais du coté de pkg-config, ça marche sans le --static??

…non, toujours la même chose :confused:

J’ai installé la version testing de zlib1g-dev, et ça roule maintenant \o/
Merci pour tout fran.b !