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

ubuntu building error.. #303

Open
zlstl1 opened this issue Mar 28, 2019 · 1 comment
Open

ubuntu building error.. #303

zlstl1 opened this issue Mar 28, 2019 · 1 comment

Comments

@zlstl1
Copy link

zlstl1 commented Mar 28, 2019

Scanning dependencies of target opendcp-asdcp
[ 9%] Building CXX object libasdcp/CMakeFiles/opendcp-asdcp.dir/KM_fileio.cpp.o
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp: In function 'Kumu::Result_t Kumu::ReadFileIntoObject(const string&, Kumu::IArchive&, ui32_t)':
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1218:86: warning: unused parameter 'max_size' [-Wunused-parameter]
Kumu::ReadFileIntoObject(const std::string& Filename, Kumu::IArchive& Object, ui32_t max_size)
^~~~~~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp: In function 'Kumu::Result_t Kumu::ReadFileIntoBuffer(const string&, Kumu::ByteString&, ui32_t)':
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1279:88: warning: unused parameter 'max_size' [-Wunused-parameter]
Kumu::ReadFileIntoBuffer(const std::string& Filename, Kumu::ByteString& Buffer, ui32_t max_size)
^~~~~~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp: In member function 'Kumu::Result_t Kumu::DirScanner::Open(const string&)':
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1343:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
result = RESULT_NOTAFILE;
~~~~~~~^~~~~~~~~~~~~~~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1344:2: note: here
case EACCES:
^~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1345:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
result = RESULT_NO_PERM;
~~~~~~~^~~~~~~~~~~~~~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1346:2: note: here
case ELOOP:
^~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1348:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
result = RESULT_PARAM;
~~~~~~~^~~~~~~~~~~~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1349:2: note: here
case EMFILE:
^~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1351:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
result = RESULT_STATE;
~~~~~~~^~~~~~~~~~~~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1352:2: note: here
default:
^~~~~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp: In member function 'Kumu::Result_t Kumu::DirScannerEx::Open(const string&)':
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1426:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
result = RESULT_NOTAFILE;
~~~~~~~^~~~~~~~~~~~~~~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1427:2: note: here
case EACCES:
^~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1428:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
result = RESULT_NO_PERM;
~~~~~~~^~~~~~~~~~~~~~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1429:2: note: here
case ELOOP:
^~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1431:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
result = RESULT_PARAM;
~~~~~~~^~~~~~~~~~~~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1432:2: note: here
case EMFILE:
^~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1434:11: warning: this statement may fall through [-Wimplicit-fallthrough=]
result = RESULT_STATE;
~~~~~~~^~~~~~~~~~~~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_fileio.cpp:1435:2: note: here
default:
^~~~~~~
[ 10%] Building CXX object libasdcp/CMakeFiles/opendcp-asdcp.dir/KM_log.cpp.o
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_log.cpp: In member function 'virtual void Kumu::SyslogLogSink::WriteEntry(const Kumu::LogEntry&)':
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_log.cpp:196:10: warning: enumeration value 'LOG_MAX' not handled in switch [-Wswitch]
switch ( Entry.Type )
^
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_log.cpp: In member function 'bool Kumu::LogEntry::TestFilter(i32_t) const':
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_log.cpp:260:10: warning: enumeration value 'LOG_MAX' not handled in switch [-Wswitch]
switch ( Type )
^
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_log.cpp: In member function 'virtual void Kumu::StreamLogSink::WriteEntry(const Kumu::LogEntry&)':
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_log.cpp:154:12: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
write(m_fd, buf.c_str(), buf.size());
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 10%] Building CXX object libasdcp/CMakeFiles/opendcp-asdcp.dir/KM_prng.cpp.o
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_prng.cpp: In function 'void Kumu::Gen_FIPS_186_Value(const byte_t*, ui32_t, byte_t*, ui32_t)':
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_prng.cpp:219:10: error: aggregate 'BIGNUM c_2powb' has incomplete type and cannot be defined
BIGNUM c_2powb, c_2, c_b;
^~~~~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_prng.cpp:219:19: error: aggregate 'BIGNUM c_2' has incomplete type and cannot be defined
BIGNUM c_2powb, c_2, c_b;
^~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_prng.cpp:219:24: error: aggregate 'BIGNUM c_b' has incomplete type and cannot be defined
BIGNUM c_2powb, c_2, c_b;
^~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_prng.cpp:220:3: error: 'BN_init' was not declared in this scope
BN_init(&c_2powb); BN_init(&c_2); BN_init(&c_b);
^~~~~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_prng.cpp:220:3: note: suggested alternative: 'BN_print'
BN_init(&c_2powb); BN_init(&c_2); BN_init(&c_b);
^~~~~~~
BN_print
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_prng.cpp:248:14: error: aggregate 'BIGNUM bn_tmp' has incomplete type and cannot be defined
BIGNUM bn_tmp, bn_xkey, bn_x_n;
^~~~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_prng.cpp:248:22: error: aggregate 'BIGNUM bn_xkey' has incomplete type and cannot be defined
BIGNUM bn_tmp, bn_xkey, bn_x_n;
^~~~~~~
/openssl-0.9.8zh/cmake-3.14.0/test/opendcp/libasdcp/KM_prng.cpp:248:31: error: aggregate 'BIGNUM bn_x_n' has incomplete type and cannot be defined
BIGNUM bn_tmp, bn_xkey, bn_x_n;
^~~~~~
libasdcp/CMakeFiles/opendcp-asdcp.dir/build.make:88: recipe for target 'libasdcp/CMakeFiles/opendcp-asdcp.dir/KM_prng.cpp.o' failed
make[2]: *** [libasdcp/CMakeFiles/opendcp-asdcp.dir/KM_prng.cpp.o] Error 1
CMakeFiles/Makefile2:200: recipe for target 'libasdcp/CMakeFiles/opendcp-asdcp.dir/all' failed
make[1]: *** [libasdcp/CMakeFiles/opendcp-asdcp.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

what is this?..

@zlstl1
Copy link
Author

zlstl1 commented Apr 5, 2019

[ 67%] Building C object libopendcp/CMakeFiles/opendcp-lib.dir/opendcp_image.c.o
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c: In function ‘opendcp_image_float_create’:
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:105:44: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
image->component[x].float_data = (int *)malloc((w * h) * sizeof(int));
^
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c: In function ‘opendcp_image_readline_float’:
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:257:49: error: expected ‘;’ before ‘)’ token
dbuffer[d + 1] = (pixel0_b & 0x0f) << 4 ) | ((pixel0_g >> 8) & 0x0f);
^
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:257:49: error: expected statement before ‘)’ token
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:257:51: error: expected expression before ‘|’ token
dbuffer[d + 1] = (pixel0_b & 0x0f) << 4 ) | ((pixel0_g >> 8) & 0x0f);
^
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:260:49: error: expected ‘;’ before ‘)’ token
dbuffer[d + 4] = (pixel0_r & 0x0f) << 4 ) | ((pixel1_b >> 8) & 0x0f);
^
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:260:49: error: expected statement before ‘)’ token
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:260:51: error: expected expression before ‘|’ token
dbuffer[d + 4] = (pixel0_r & 0x0f) << 4 ) | ((pixel1_b >> 8) & 0x0f);
^
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:263:61: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
dbuffer[d + 7] = (pixel1_g << 4 ) | (pixel1_r >> 8) & 0x0f);
~~~~~~~~~~~~~~~~^~~~~~
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:263:67: error: expected ‘;’ before ‘)’ token
dbuffer[d + 7] = (pixel1_g << 4 ) | (pixel1_r >> 8) & 0x0f);
^
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:263:67: error: expected statement before ‘)’ token
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c: At top level:
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:387:7: error: conflicting types for ‘dci_transfer’
float dci_transfer(float p) {
^~~~~~~~~~~~
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:376:5: note: previous definition of ‘dci_transfer’ was here
int dci_transfer(float p) {
^~~~~~~~~~~~
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:405:7: error: conflicting types for ‘dci_transfer_inverse’
float dci_transfer_inverse(float p) {
^~~~~~~~~~~~~~~~~~~~
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:398:5: note: previous definition of ‘dci_transfer_inverse’ was here
int dci_transfer_inverse(float p) {
^~~~~~~~~~~~~~~~~~~~
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c: In function ‘rgb_to_xyz_float’:
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:431:14: warning: implicit declaration of function ‘rgb_to_xyz_calculate_float’; did you mean ‘rgb_to_xyz_calculate’? [-Wimplicit-function-declaration]
result = rgb_to_xyz_calculate_float(image, index);
^~~~~~~~~~~~~~~~~~~~~~~~~~
rgb_to_xyz_calculate
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c: In function ‘rgb_to_xyz_calculate_float’:
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:516:45: warning: implicit declaration of function ‘dci_transfer_float’; did you mean ‘dci_transfer’? [-Wimplicit-function-declaration]
image->component[0].float_data[i] = dci_transfer_float(d.x);
^~~~~~~~~~~~~~~~~~
dci_transfer
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c: In function ‘resize_float’:
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:772:32: warning: implicit declaration of function ‘opendcp_image_create_float’; did you mean ‘opendcp_image_free_float’? [-Wimplicit-function-declaration]
opendcp_image_t *d_image = opendcp_image_create_float(num_components, w, h);
^~~~~~~~~~~~~~~~~~~~~~~~~~
opendcp_image_free_float
/home/kskim/opendcp/opendcp/libopendcp/opendcp_image.c:772:32: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
libopendcp/CMakeFiles/opendcp-lib.dir/build.make:140: recipe for target 'libopendcp/CMakeFiles/opendcp-lib.dir/opendcp_image.c.o' failed
make[2]: *** [libopendcp/CMakeFiles/opendcp-lib.dir/opendcp_image.c.o] Error 1
CMakeFiles/Makefile2:256: recipe for target 'libopendcp/CMakeFiles/opendcp-lib.dir/all' failed
make[1]: *** [libopendcp/CMakeFiles/opendcp-lib.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

I try openssl downgrade to v.0.9.8zh
but now 67% occured error.
plz let me some hint..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant