Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some versions of libtiff fail to compile #130

Open
renkun-ken opened this issue Feb 3, 2023 · 9 comments
Open

Some versions of libtiff fail to compile #130

renkun-ken opened this issue Feb 3, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@renkun-ken
Copy link
Contributor

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 renkun-ken added the bug Something isn't working label Feb 3, 2023
@nx10
Copy link
Owner

nx10 commented Feb 3, 2023

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?

@renkun-ken
Copy link
Contributor Author

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

@johnsCheng
Copy link

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
Copy link

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.

@nx10
Copy link
Owner

nx10 commented Jan 23, 2024

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 nx10 changed the title Cannot install latest dev on linux Some versions of libtiff fail to compile Jan 23, 2024
@benz0li
Copy link
Contributor

benz0li commented Jan 29, 2024

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 nx10/unigd#17 for a fixed libtiff test configuration.

@benz0li
Copy link
Contributor

benz0li commented Jan 29, 2024

@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 benz0li mentioned this issue Jan 29, 2024
@benz0li
Copy link
Contributor

benz0li commented Jan 30, 2024

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
Copy link
Contributor

benz0li commented Jan 31, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants