Opened 4 years ago

Closed 4 years ago

#23869 closed defect (duplicate)

libtheora does not build on Ubuntu 16.04

Reported by: mderickx Owned by:
Priority: blocker Milestone: sage-8.1
Component: packages: optional Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


First I got an error during

make Theora.pdf which is defined in $THEORA_SOURCE/doc/spec/Makefile. Changing the two occurences of \begin{figure}[Htbp] to \begin{figure}[htbp] in doc/spec/spec.tex solves this issue but now it is stuc at a more serious problem:

png2theora.c:465:20: warning: implicit declaration of function 'png_sizeof' [-Wimplicit-function-declaration]
png2theora.c:465:31: warning: 'row_data' may be used uninitialized in this function [-Wmaybe-uninitialized]
png2theora.c:393:13: note: 'row_data' was declared here
   png_bytep row_data;
png2theora.c:467:12: warning: 'row_pointers' may be used uninitialized in this function [-Wmaybe-uninitialized]
png2theora.c:394:14: note: 'row_pointers' was declared here
   png_bytep *row_pointers;
/bin/bash ../libtool --mode=link gcc -I/users/derickx/sage_test/local/include   -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops   -L/users/derickx/sage_test/local/lib -Wl,-rpath,/users/derickx/sage_test/local/lib  -o png2theora  png2theora-png2theora.o  ../lib/ ../lib/ -L/users/derickx/sage_test/local/lib -logg   -L/users/derickx/sage_test/local/lib -lpng16   -lm 
libtool: link: gcc -I/users/derickx/sage_test/local/include -Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops -Wl,-rpath -Wl,/users/derickx/sage_test/local/lib -o .libs/png2theora png2theora-png2theora.o  -L/users/derickx/sage_test/local/lib ../lib/.libs/ ../lib/.libs/ -logg -lpng16 -lm -Wl,-rpath -Wl,/users/derickx/sage_test/local/lib
png2theora-png2theora.o: In function `png_read':
png2theora.c:(.text+0x20d): undefined reference to `png_sizeof'
png2theora.c:(.text+0x230): undefined reference to `png_sizeof'
collect2: error: ld returned 1 exit status
Makefile:290: recipe for target 'png2theora' failed
make[2]: *** [png2theora] Error 1
make[2]: Leaving directory '/users/derickx/sage_test/local/var/tmp/sage/build/libtheora-1.1.1/src/examples'
Makefile:291: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/users/derickx/sage_test/local/var/tmp/sage/build/libtheora-1.1.1/src'
Makefile:205: recipe for target 'all' failed
make: *** [all] Error 2
Error building libtheora

this seems to be because png_sizeof was removed from lib_png version 1.6.0, see [1] and we ship lib_png 1.6.29.


Change History (1)

comment:1 Changed 4 years ago by mderickx

  • Resolution set to duplicate
  • Status changed from new to closed

See #23732

Note: See TracTickets for help on using tickets.