markfasheh / duperemove

Tools for deduping file systems
GNU General Public License v2.0
816 stars 81 forks source link

filerec.c:28: error: storage size of 'filerec_fd_mutex' isn't known #92

Closed CRCinAU closed 9 years ago

CRCinAU commented 9 years ago

When trying to build on EL6:

gcc -Wall -ggdb -O2 -D_FILE_OFFSET_BITS=64 -DVERSTRING=\"v0.11-dev\"  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -rdynamic -c duperemove.c -o duperemove.o  -lglib-2.0   -lsqlite3   -lm
gcc -Wall -ggdb -O2 -D_FILE_OFFSET_BITS=64 -DVERSTRING=\"v0.11-dev\"  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -rdynamic -c hash-tree.c -o hash-tree.o  -lglib-2.0   -lsqlite3   -lm
gcc -Wall -ggdb -O2 -D_FILE_OFFSET_BITS=64 -DVERSTRING=\"v0.11-dev\"  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -rdynamic -c results-tree.c -o results-tree.o  -lglib-2.0   -lsqlite3   -lm
gcc -Wall -ggdb -O2 -D_FILE_OFFSET_BITS=64 -DVERSTRING=\"v0.11-dev\"  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -rdynamic -c rbtree.c -o rbtree.o  -lglib-2.0   -lsqlite3   -lm
gcc -Wall -ggdb -O2 -D_FILE_OFFSET_BITS=64 -DVERSTRING=\"v0.11-dev\"  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -rdynamic -c dedupe.c -o dedupe.o  -lglib-2.0   -lsqlite3   -lm
gcc -Wall -ggdb -O2 -D_FILE_OFFSET_BITS=64 -DVERSTRING=\"v0.11-dev\"  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -rdynamic -c filerec.c -o filerec.o  -lglib-2.0   -lsqlite3   -lm
filerec.c:28: error: storage size of 'filerec_fd_mutex' isn't known
make: *** [filerec.o] Error 1
markfasheh commented 9 years ago

Hmm, it's not finding GMutex? I assume the glib-devel package are installed (since the makefile got a path for them).

CRCinAU commented 9 years ago

Would you like me to include the entire build log from mock to confirm anything you may need to know?

On 29/08/2015 6:49 AM, markfasheh wrote:

Hmm, it's not finding GMutex? I assume the glib-devel package are installed (since the makefile got a path for them).

— Reply to this email directly or view it on GitHub https://github.com/markfasheh/duperemove/issues/92#issuecomment-135884702.

CRCinAU commented 9 years ago

Interestingly enough, this now works. Maybe it was a transient issue between upgrading from EL6.6 -> 6.7 packages?

Closing as for whatever reason this now works.

kikitux commented 8 years ago

Hello,

I am hitting this same issue.

filerec.c:28: error: storage size of ‘filerec_fd_mutex’ isn’t known
make: *** [filerec.o] Error 1
[root@desktop duperemove]# 

I have glib2-devel rpm installed, and I did move to a new kernel too.

Oracle Linux 6 with kernel from playgound channel

Any hint is welcome:

[root@desktop duperemove]# uname -r
4.0.0-4.0.y.20150414.ol6.x86_64
[root@desktop duperemove]# uname -a
Linux desktop 4.0.0-4.0.y.20150414.ol6.x86_64 #1 SMP Tue Apr 14 05:15:14 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@desktop duperemove]# rpm -q glib2-devel
glib2-devel-2.28.8-4.el6.x86_64
[root@desktop duperemove]#