Seg fault wen compiling on Linux

The place to discuss linux version of MakeMKV
Post Reply
edent
Posts: 8
Joined: Mon Nov 28, 2011 1:51 pm

Seg fault wen compiling on Linux

Post by edent »

Solved!
This requires GCC 4.6 - I had an older version.

To check, run

Code: Select all

gcc --version
If you need to install GCC 4.6, there are instructions on StackOverflow.


----------------------------
I'm getting a segmentation fault when trying to compile on Ubuntu.

I've installed all the dependencies (build-essential libc6-dev libssl-dev libexpat1-dev libgl1-mesa-dev libqt4-dev).

But this is what happens when I try to compile makemkv-oss-1.7.6

Code: Select all

make -f makefile.linux
mkdir -p out
gcc -Os -D_GNU_SOURCE -D_linux_ -D_REENTRANT -shared -Wl,-z,defs -oout/libdriveio.so.0.full -Ilibdriveio/inc libdriveio/src/infolist.cpp libdriveio/src/scsihlp.cpp libdriveio/src/srlist.cpp libdriveio/src/stdquery.cpp libdriveio/src/tipclient.cpp libdriveio/src/tipcommon.cpp libdriveio/src/tipserver.cpp libdriveio/src/drives/pioneer.cpp libdriveio/src/drives/xboxhddvd.cpp \
	-fPIC -Xlinker -dy -Xlinker --version-script=libdriveio/src/libdriveio.vers \
	-Xlinker -soname=libdriveio.so.0 -lc -lstdc++
libdriveio/src/infolist.cpp: In function ‘void LibDriveIo::uint32_put_ns(uint32_t, void*)’:
libdriveio/src/infolist.cpp:341:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/scsihlp.cpp: In function ‘uint32_t LibDriveIo::uint32_get_be(const void*)’:
libdriveio/src/scsihlp.cpp:389:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/srlist.cpp: In function ‘uint32_t uint32_get_ns(const void*)’:
libdriveio/src/srlist.cpp:43:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/stdquery.cpp: In function ‘uint32_t LibDriveIo::uint32_get_be(const void*)’:
libdriveio/src/stdquery.cpp:555:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/tipclient.cpp: In static member function ‘static int LibDriveIo::CTIPSClient::ExecStatic(void*, const ScsiCmd*, ScsiCmdResponse*)’:
libdriveio/src/tipclient.cpp:200:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/tipcommon.cpp: In function ‘unsigned int LibDriveIo::encode_int(uint8_t*, uint64_t)’:
libdriveio/src/tipcommon.cpp:239:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/tipserver.cpp: In function ‘ssize_t recv(int, void*, size_t, int)’:
libdriveio/src/tipserver.cpp:326:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/drives/pioneer.cpp: In function ‘void append_trimmed(char*, const char*, size_t)’:
libdriveio/src/drives/pioneer.cpp:261:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
libdriveio/src/drives/xboxhddvd.cpp: In function ‘int cmd_df_enable(ISimpleScsiTarget*)’:
libdriveio/src/drives/xboxhddvd.cpp:106:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
make: *** [out/libdriveio.so.0.full] Error 1
Any idea what I'm doing wrong?
Last edited by edent on Mon Aug 13, 2012 10:32 am, edited 1 time in total.
Joe151
Posts: 2
Joined: Fri Jun 22, 2012 2:31 pm

Re: Seg fault wen compiling on Linux

Post by Joe151 »

What version of Ubuntu? 32-bit or 64-bit? Hardware?

I installed makemkv several times now, on Ubuntu 12.04, Linux Mint 13 (Cinnamon) and Linux Mint 13 (Xfce). All 64-bit, g++ version 4.6.3.
Everytime without any problems.
edent
Posts: 8
Joined: Mon Nov 28, 2011 1:51 pm

Re: Seg fault wen compiling on Linux

Post by edent »

32 Bit. All the previous versions have compiled without problem.
Post Reply