httpgd icon indicating copy to clipboard operation
httpgd copied to clipboard

Some versions of libtiff fail to compile

Open renkun-ken opened this issue 2 years ago • 9 comments
trafficstars

I have installed all system dependencies but still failed to install the latest dev on linux.

Rscript -e 'remotes::install_github("nx10/httpgd")'
Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo nx10/httpgd@HEAD
unigd (NA -> 491cd4715...) [GitHub]
Downloading GitHub repo nx10/unigd@HEAD

── R CMD build ─────────────────────────────────────────────────────────────────
* checking for file ‘/tmp/RtmpgsNJCt/remotesb8c55d7033/nx10-unigd-491cd47/DESCRIPTION’ ... OK
* preparing ‘unigd’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* running ‘cleanup’
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building ‘unigd_0.1.0.9000.tar.gz’

Installing package into '/home/ken/R/x86_64-pc-linux-gnu-library/4.1'
(as 'lib' is unspecified)
* installing *source* package 'unigd' ...
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16
Using PKG_LIBS=-lcairo -lfreetype
Using PKG_LIBTIFF_CFLAGS=-I/usr/include/x86_64-linux-gnu
Using PKG_LIBTIFF_LIBS=-ltiff -ltiffxx 
** libs
rm -f unigd.so base_64.o compress.o cpp11.o draw_data.o page_store.o plot_history.o r_thread_posix.o r_thread_win32.o renderer_cairo.o renderer_json.o renderer_meta.o renderer_strings.o renderer_svg.o renderer_tikz.o renderers.o unigd.o unigd_dev.o unigd_external.o uuid.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c base_64.cpp -o base_64.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c compress.cpp -o compress.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c cpp11.cpp -o cpp11.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c draw_data.cpp -o draw_data.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c page_store.cpp -o page_store.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c plot_history.cpp -o plot_history.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c r_thread_posix.cpp -o r_thread_posix.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c r_thread_win32.cpp -o r_thread_win32.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c renderer_cairo.cpp -o renderer_cairo.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c renderer_json.cpp -o renderer_json.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c renderer_meta.cpp -o renderer_meta.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c renderer_strings.cpp -o renderer_strings.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c renderer_svg.cpp -o renderer_svg.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c renderer_tikz.cpp -o renderer_tikz.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c renderers.cpp -o renderers.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c unigd.cpp -o unigd.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c unigd_dev.cpp -o unigd_dev.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c unigd_external.cpp -o unigd_external.o
g++ -std=gnu++14 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -Ilib -I../inst/include -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c uuid.cpp -o uuid.o
In file included from renderer_cairo.cpp:13:0:
/usr/include/x86_64-linux-gnu/tiffio.hxx:37:8: error: ‘TIFF’ does not name a type; did you mean ‘_TIFF_’?
 extern TIFF* TIFFStreamOpen(const char*, std::ostream *);
        ^~~~
        _TIFF_
/usr/include/x86_64-linux-gnu/tiffio.hxx:38:8: error: ‘TIFF’ does not name a type; did you mean ‘_TIFF_’?
 extern TIFF* TIFFStreamOpen(const char*, std::istream *);
        ^~~~
        _TIFF_
renderer_cairo.cpp: In member function ‘virtual void unigd::renderers::RendererCairoTiff::render(const unigd::renderers::Page&, double)’:
renderer_cairo.cpp:521:3: error: ‘TIFF’ was not declared in this scope
   TIFF *tiff = TIFFStreamOpen("memory", &tiff_ostream);  // filename is ignored
   ^~~~
renderer_cairo.cpp:521:3: note: suggested alternative: ‘_TIFF_’
   TIFF *tiff = TIFFStreamOpen("memory", &tiff_ostream);  // filename is ignored
   ^~~~
   _TIFF_
renderer_cairo.cpp:521:9: error: ‘tiff’ was not declared in this scope
   TIFF *tiff = TIFFStreamOpen("memory", &tiff_ostream);  // filename is ignored
         ^~~~
renderer_cairo.cpp:521:9: note: suggested alternative: ‘time’
   TIFF *tiff = TIFFStreamOpen("memory", &tiff_ostream);  // filename is ignored
         ^~~~
         time
renderer_cairo.cpp:521:16: error: ‘TIFFStreamOpen’ was not declared in this scope
   TIFF *tiff = TIFFStreamOpen("memory", &tiff_ostream);  // filename is ignored
                ^~~~~~~~~~~~~~
renderer_cairo.cpp:521:16: note: suggested alternative: ‘TIFFDataType’
   TIFF *tiff = TIFFStreamOpen("memory", &tiff_ostream);  // filename is ignored
                ^~~~~~~~~~~~~~
                TIFFDataType
renderer_cairo.cpp:523:3: error: ‘TIFFSetField’ was not declared in this scope
   TIFFSetField(tiff, TIFFTAG_IMAGEWIDTH, width);
   ^~~~~~~~~~~~
renderer_cairo.cpp:537:44: error: ‘TIFFDefaultStripSize’ was not declared in this scope
   TIFFSetField(tiff, TIFFTAG_ROWSPERSTRIP, TIFFDefaultStripSize(tiff, width * argb_size));
                                            ^~~~~~~~~~~~~~~~~~~~
renderer_cairo.cpp:550:9: error: ‘TIFFWriteScanline’ was not declared in this scope
     if (TIFFWriteScanline(tiff, line.data(), row) < 0)
         ^~~~~~~~~~~~~~~~~
renderer_cairo.cpp:556:3: error: ‘TIFFClose’ was not declared in this scope
   TIFFClose(tiff);
   ^~~~~~~~~
/usr/lib/R/etc/Makeconf:177: recipe for target 'renderer_cairo.o' failed
make: *** [renderer_cairo.o] Error 1
make: *** Waiting for unfinished jobs....
ERROR: compilation failed for package 'unigd'
* removing '/home/ken/R/x86_64-pc-linux-gnu-library/4.1/unigd'
Downloading GitHub repo nx10/unigd@HEAD
Skipping unigd, it is already being installed
── R CMD build ─────────────────────────────────────────────────────────────────
* checking for file ‘/tmp/RtmpgsNJCt/remotesb8c54b984f91/nx10-httpgd-d8869ac/DESCRIPTION’ ... OK
* preparing ‘httpgd’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building ‘httpgd_2.0.0.9000.tar.gz’
Warning: file 'httpgd/cleanup' did not have execute permissions: corrected

Installing package into '/home/ken/R/x86_64-pc-linux-gnu-library/4.1'
(as 'lib' is unspecified)
ERROR: dependency 'unigd' is not available for package 'httpgd'
* removing '/home/ken/R/x86_64-pc-linux-gnu-library/4.1/httpgd'
Warning messages:
1: In i.p(...) :
  installation of package '/tmp/RtmpgsNJCt/fileb8c549c0e330/unigd_0.1.0.9000.tar.gz' had non-zero exit status
2: In i.p(...) :
  installation of package '/tmp/RtmpgsNJCt/fileb8c55ae3ab8e/httpgd_2.0.0.9000.tar.gz' had non-zero exit status

renkun-ken avatar Feb 03 '23 16:02 renkun-ken

Seems like you are missing libtiff while it assumes you have it installed. Can you post what version of libtiff is installed on your system?

nx10 avatar Feb 03 '23 18:02 nx10

libtiff-dev is already the newest version (4.0.9-5ubuntu0.9).
libtiff5-dev is already the newest version (4.0.9-5ubuntu0.9).

renkun-ken avatar Feb 04 '23 01:02 renkun-ken

im intertested. the same issue occurred to me and saying that,

In file included from renderer_cairo.cpp:13:
/usr/include/tiffio.hxx:37:8: error: ‘TIFF’ does not name a type
   37 | extern TIFF* TIFFStreamOpen(const char*, std::ostream *);

while I was trying to install the basic unigd package. My linux distrubution is centos 7, and now I'd like to try the version did not requiring TIFF in issue #109 Stay tuned.

johnsCheng avatar Sep 04 '23 09:09 johnsCheng

it worked after i add #include "tiffio.h" to the wrong file /usr/include/tiffio.hxx , so unigd is done. however, when i tried to install httpgd, it told that, perhaps something conflict...

** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘httpgd’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/newdata1/software/R4/R-4.0.3/build_dir_share/lib64/R/library/00LOCK-httpgd/00new/httpgd/libs/httpgd.so':
  /newdata1/software/R4/R-4.0.3/build_dir_share/lib64/R/library/00LOCK-httpgd/00new/httpgd/libs/httpgd.so: undefined symbol: stat

Stay tuned.

johnsCheng avatar Sep 04 '23 14:09 johnsCheng

The configuration script now attempts to compile and link a libtiff test file fully and will deactivate tiff support if something goes wrong https://github.com/nx10/unigd/commit/15a62bd64e0e9519df64ea84bd65123af5efe059

This way the dev version can be installed on any system.

nx10 avatar Jan 23 '24 14:01 nx10

The configuration script now attempts to compile and link a libtiff test file fully and will deactivate tiff support if something goes wrong nx10/unigd@15a62bd

This way the dev version can be installed on any system.

@nx10 See https://github.com/nx10/unigd/pull/17 for a fixed libtiff test configuration.

benz0li avatar Jan 29 '24 09:01 benz0li

@eitsupi libtiff-dev v4.0.9...

Must be Ubuntu 18.04 (Bionic Beaver), which is EOL (end of standard support) since 2023-05-31.

benz0li avatar Jan 29 '24 10:01 benz0li

The configuration script now attempts to compile and link a libtiff test file fully and will deactivate tiff support if something goes wrong nx10/unigd@15a62bd

@nx10 This goes wrong in any case and deactivates TIFF support on UNIX-like operating systems.

benz0li avatar Jan 30 '24 21:01 benz0li

This issue is due to the Linux OS being either EOL or discontinued, i.e. using an outdated version of the TIFF library.

IMHO this can be closed.

benz0li avatar Jan 31 '24 06:01 benz0li