Closed Bug 1466328 Opened 6 years ago Closed 6 years ago

Allow compiling without gtk2

Categories

(Core :: Widget: Gtk, defect)

60 Branch
Unspecified
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1377445

People

(Reporter: ht990332, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Build ID: 20180601164825

Steps to reproduce:

While firefox does not use gtk2 themeing anymore and uses gtk3 instead, it still requires gtk2 at compile time. this is likely for flash plugin?

Otherwise I get the following build error:

 0:23.39 checking if app-specific confvars.sh exists... /home/hussam/cache/firefox/src/gecko-dev/browser/confvars.sh
 0:23.81 checking for gtk+-3.0 >= 3.4.0 gtk+-unix-print-3.0 glib-2.0 gobject-2.0 ... yes
 0:24.06 checking MOZ_GTK3_CFLAGS... -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/libdrm -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gtk-3.0/unix-print -pthread
 0:24.07 checking MOZ_GTK3_LIBS... -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
 0:24.57 checking for gtk+-2.0 >= 2.18.0 gtk+-unix-print-2.0 glib-2.0 >= 2.22 gobject-2.0 gdk-x11-2.0... Package gtk+-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable Package 'gtk+-2.0', required by 'virtual:world', not found Package 'gtk+-unix-print-2.0', required by 'virtual:world', not found Package 'gdk-x11-2.0', required by 'virtual:world', not found
 0:24.57 configure: error: Library requirements (gtk+-2.0 >= 2.18.0 gtk+-unix-print-2.0 glib-2.0 >= 2.22 gobject-2.0 gdk-x11-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
 0:24.60 DEBUG: <truncated - see config.log for full output>
 0:24.60 DEBUG: configure:9948: checking for BZ2_bzread in -lbz2
 0:24.60 DEBUG: configure:9967: /usr/bin/clang -std=gnu99 -o conftest  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -Qunused-arguments  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -lpthread  -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,--build-id conftest.c -lbz2  -ldl  1>&5
 0:24.60 DEBUG: configure:10016: checking for png_get_valid in -lpng
 0:24.60 DEBUG: configure:10035: /usr/bin/clang -std=gnu99 -o conftest  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -Qunused-arguments  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -lpthread  -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,--build-id conftest.c -lpng  -ldl  1>&5
 0:24.60 DEBUG: configure:10057: checking for png_get_acTL in -lpng
 0:24.60 DEBUG: configure:10076: /usr/bin/clang -std=gnu99 -o conftest  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -Qunused-arguments  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -lpthread  -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,--build-id conftest.c -lpng  -ldl  1>&5
 0:24.60 DEBUG: configure:10124: /usr/bin/clang -std=gnu99 -c  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -Qunused-arguments  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 conftest.c 1>&5
 0:24.60 DEBUG: In file included from configure:10111:
 0:24.60 DEBUG: In file included from /usr/include/stdio.h:27:
 0:24.60 DEBUG: In file included from /usr/include/bits/libc-header-start.h:33:
 0:24.60 DEBUG: /usr/include/features.h:381:4: warning: _FORTIFY_SOURCE requires compiling with optimization (-O) [-W#warnings]
 0:24.60 DEBUG: #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
 0:24.60 DEBUG:    ^
 0:24.60 DEBUG: 1 warning generated.
 0:24.60 DEBUG: configure:10244: checking if app-specific confvars.sh exists
 0:24.60 DEBUG: configure:10701: checking for gtk+-3.0 >= 3.4.0 gtk+-unix-print-3.0 glib-2.0 gobject-2.0
 0:24.60 DEBUG: configure:10708: checking MOZ_GTK3_CFLAGS
 0:24.60 DEBUG: configure:10713: checking MOZ_GTK3_LIBS
 0:24.60 DEBUG: configure:10787: checking for gtk+-2.0 >= 2.18.0 gtk+-unix-print-2.0 glib-2.0 >= 2.22 gobject-2.0 gdk-x11-2.0
 0:24.60 DEBUG: configure: error: Library requirements (gtk+-2.0 >= 2.18.0 gtk+-unix-print-2.0 glib-2.0 >= 2.22 gobject-2.0 gdk-x11-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
 0:24.60 ERROR: old-configure failed
 0:24.64 *** Fix above errors and then restart with\
 0:24.64                "/usr/bin/make -f client.mk build"
 0:24.64 make: *** [client.mk:149: configure] Error 1




Expected results:

Allow compiling without gtk2.
OS: Unspecified → Linux
Product: Firefox → Core
Component: Untriaged → Widget: Gtk
This is with 60ESR branch.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.