Skip to content

Instantly share code, notes, and snippets.

@2bits
Created October 10, 2012 01:16
Show Gist options
  • Save 2bits/3862561 to your computer and use it in GitHub Desktop.
Save 2bits/3862561 to your computer and use it in GitHub Desktop.
feh-2.6.3 build error on osx, missing symbols from imlib2
$ brew install -vd --env=std feh
/usr/local/bin/brew: loading /usr/local/Library/Formula/feh.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/giblib.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/imlib2.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/pkg-config.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/jpeg.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/libexif.rb
/usr/local/Library/Formula/feh.rb: loading /usr/local/Library/Formula/giblib.rb
/usr/local/Library/Formula/feh.rb: loading /usr/local/Library/Formula/imlib2.rb
/usr/local/Library/Formula/feh.rb: loading /usr/local/Library/Formula/pkg-config.rb
/usr/local/Library/Formula/feh.rb: loading /usr/local/Library/Formula/jpeg.rb
/usr/local/Library/Formula/feh.rb: loading /usr/local/Library/Formula/libexif.rb
==> Downloading http://feh.finalrewind.org/feh-2.6.3.tar.bz2
Already downloaded: /Library/Caches/Homebrew/feh-2.6.3.tar.bz2
/usr/bin/tar xf /Library/Caches/Homebrew/feh-2.6.3.tar.bz2
==> make PREFIX=/usr/local/Cellar/feh/2.6.3
make PREFIX=/usr/local/Cellar/feh/2.6.3
sed \
-e 's/\$VERSION\$/2.6.3/g' \
-e 's/\$DATE\$/'"$(date '+%B %d, %Y')"/g \
-e 's/\$MAN_CURL\$/enabled/' \
-e 's/\$MAN_DEBUG\$//' \
-e 's/\$MAN_EXIF\$/disabled/' \
-e 's/\$MAN_XINERAMA\$/enabled/' \
< feh-cam.pre > feh-cam.1
sed \
-e 's/\$VERSION\$/2.6.3/g' \
-e 's/\$DATE\$/'"$(date '+%B %d, %Y')"/g \
-e 's/\$MAN_CURL\$/enabled/' \
-e 's/\$MAN_DEBUG\$//' \
-e 's/\$MAN_EXIF\$/disabled/' \
-e 's/\$MAN_XINERAMA\$/enabled/' \
< feh.pre > feh.1
sed \
-e 's/\$VERSION\$/2.6.3/g' \
-e 's/\$DATE\$/'"$(date '+%B %d, %Y')"/g \
-e 's/\$MAN_CURL\$/enabled/' \
-e 's/\$MAN_DEBUG\$//' \
-e 's/\$MAN_EXIF\$/disabled/' \
-e 's/\$MAN_XINERAMA\$/enabled/' \
< gen-cam-menu.pre > gen-cam-menu.1
sed 's/^\(.*\)$/"\1\\n"/' < help.raw > help.inc
/usr/bin/clang -I/opt/X11/include -MM collage.c events.c exif.c exif_canon.c exif_nikon.c feh_png.c filelist.c getopt.c getopt1.c imlib.c index.c keyevents.c list.c main.c md5.c menu.c multiwindow.c options.c signals.c slideshow.c thumbnail.c timers.c utils.c wallpaper.c winwidget.c > deps.mk
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o collage.o collage.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o events.o events.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o exif.o exif.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o exif_canon.o exif_canon.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o exif_nikon.o exif_nikon.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o feh_png.o feh_png.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o filelist.o filelist.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o getopt.o getopt.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o getopt1.o getopt1.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o imlib.o imlib.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o index.o index.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o keyevents.o keyevents.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o list.o list.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o main.o main.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o md5.o md5.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o menu.o menu.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o multiwindow.o multiwindow.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o options.o options.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o signals.o signals.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o slideshow.o slideshow.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o thumbnail.o thumbnail.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o timers.o timers.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o utils.o utils.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o wallpaper.o wallpaper.c
/usr/bin/clang -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -I/opt/X11/include -c -o winwidget.o winwidget.c
/usr/bin/clang -L/usr/local/lib -L/opt/X11/lib -Os -w -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -mmacosx-version-min=10.8 -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -Wall -Wextra -pedantic -DHAVE_LIBCURL -DHAVE_LIBXINERAMA -DPREFIX=\"/usr/local/Cellar/feh/2.6.3\" -DPACKAGE=\"feh\" -DVERSION=\"2.6.3\" -o feh collage.o events.o exif.o exif_canon.o exif_nikon.o feh_png.o filelist.o getopt.o getopt1.o imlib.o index.o keyevents.o list.o main.o md5.o menu.o multiwindow.o options.o signals.o slideshow.o thumbnail.o timers.o utils.o wallpaper.o winwidget.o -lcurl -lXinerama -lm -lpng -lX11 -lImlib2 -lgiblib
Undefined symbols for architecture x86_64:
"_imlib_context_set_colormap", referenced from:
_init_x_and_imlib in imlib.o
"_imlib_context_set_display", referenced from:
_init_x_and_imlib in imlib.o
"_imlib_context_set_visual", referenced from:
_init_x_and_imlib in imlib.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [feh] Error 1
make: *** [build-src] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment