libsentry problem + Slacko 533 + src2pkg 2.8

Please post any bugs you have found
Post Reply
Message
Author
petan
Posts: 3
Joined: Wed 08 May 2013, 12:02

libsentry problem + Slacko 533 + src2pkg 2.8

#1 Post by petan »

Hi all.

problem in Slacko 533 - libsentry not created.
Error : conflicting types for 'scandir'
Message points to difference in files
"dirent.h" line 252

Code: Select all

# ifndef __USE_FILE_OFFSET64
extern int scandir (__const char *__restrict __dir,
		    struct dirent ***__restrict __namelist,
		    int (*__selector) (__const struct dirent *),
		    int (*__cmp) (__const struct dirent **,
				  __const struct dirent **))
     __nonnull ((1, 2));
# else
and "libsentry.c" line 3087

Code: Select all

int scandir(	const char *dir,struct dirent ***namelist,
		int (*select)(const struct dirent *),
#if(GLIBC_MINOR >= 10)
		int (*compar)(const struct dirent **,const struct dirent **)	) {
#else
		int (*compar)(const void *,const void *)	) {
#endif
	int result;

	if (!libc_handle)
		initialize();

#if DEBUG
	debug(2,"scandir(%s,%p,%p,%p)\n",dir,namelist,select,compar);
#endif

	  /* We were asked to work in "real" mode */
	if( !(__instw.gstatus & INSTW_INITIALIZED) ||
	    !(__instw.gstatus & INSTW_OKWRAP) ) {
		result=true_scandir(dir,namelist,select,compar);
		return result;
	}

	result=true_scandir(dir,namelist,select,compar);

	return result;
}		
What is wrong between them ? (not C coder I am)

Thx for advices guys.
Last edited by petan on Wed 08 May 2013, 19:36, edited 1 time in total.

petan
Posts: 3
Joined: Wed 08 May 2013, 12:02

#2 Post by petan »

Looks like Slacko 533 problem - missing something !
The same package (src2pkg -2.8-noarch1.pet ) installed on Retro precise 543 and libsentry created !

Post Reply