Hi Jean-Pierre,

thanks again.

Am 12.02.2016 um 08:18 schrieb Jean-Pierre André:
>
>>>
>>> Define the macro SELFTEST
>>
>> I guess, you mean? :
>>
>> #define SELFTESTS 1 /* include code for self-testing */
>>
>> But this doesn't help, as there is always:
>>
>> #if SELFTESTS & !USESTUBS
>>
>> But USESTUBS is also set with:
>>
>> #ifdef HAVE_CONFIG_H
>> #undef POSIXACLS   /* override default by configure option */
>> #define USESTUBS 1 /* API stubs generated at link time */
>> #else
>> #define USESTUBS 0 /* direct calls to API, based on following definitions */
>> #define ENVNTFS3G "NTFS3G"
>> #define LIBFILE64 "/lib64/libntfs-3g.so.4921"
>> #define LIBFILE "/lib/libntfs-3g.so.4921"
>> #endif
>>
>> So it seems, that I have to unset HAVE_CONFIG_H.
>>
>> Should I do this, and how?
>> I'm not sure about the impact from defining ENVNTFS3G, LIBFILE64 and
>> LIBFILE which will happen then.
>
> Yes : secaudit is designed to run in various conditions, and you
> have to fiddle with them.

Hm, with "Yes" do you simply mean? :
#undef HAVE_CONFIG_H
But then I probably have POSIXACLS defined.

>
> So, get to the basics (you may have to fix minor things, there are
> buggy versions around) :
> gcc -O2 -ldl -o secaudit acls.c secaudit.c

This doesn't work, because acls.c and secaudit.c are in different folders. Even 
with:
gcc -O2 -ldl -o secaudit libntfs-3g/acls.c src/secaudit.c
I get errors because of *.h files not found

So I copied all *.c + *.h from these folders to folder basic.
There I get:
=========================================
ich@ThinkPad-T500:~/Projects/ntfs-3g_ntfsprogs-2015.3.14/basic$ LANG=C gcc -O2 
-ldl -o secaudit 
acls.c secaudit.c
secaudit.c:338:2: warning: #warning "The extended attribute package is not 
available" [-Wcpp]
  #warning "The extended attribute package is not available"
   ^
/tmp/ccDsKoNv.o: In function `open_security_api':
secaudit.c:(.text+0x83): undefined reference to `dlopen'
secaudit.c:(.text+0xa0): undefined reference to `dlsym'
secaudit.c:(.text+0xac): undefined reference to `dlerror'
secaudit.c:(.text+0xed): undefined reference to `dlsym'
secaudit.c:(.text+0x105): undefined reference to `dlsym'
secaudit.c:(.text+0x11d): undefined reference to `dlsym'
secaudit.c:(.text+0x135): undefined reference to `dlsym'
secaudit.c:(.text+0x14d): undefined reference to `dlsym'
/tmp/ccDsKoNv.o:secaudit.c:(.text+0x165): more undefined references to `dlsym' 
follow
/tmp/ccDsKoNv.o: In function `close_security_api':
secaudit.c:(.text+0x33c): undefined reference to `dlclose'
/tmp/ccDsKoNv.o: In function `mapproposal.part.3':
secaudit.c:(.text+0x39a4): undefined reference to `dlclose'
/tmp/ccDsKoNv.o: In function `dorestore':
secaudit.c:(.text+0x6858): undefined reference to `dlclose'
/tmp/ccDsKoNv.o: In function `backup':
secaudit.c:(.text+0x8b9f): undefined reference to `dlclose'
/tmp/ccDsKoNv.o: In function `listfiles':
secaudit.c:(.text+0x8d4c): undefined reference to `dlclose'
/tmp/ccDsKoNv.o:secaudit.c:(.text+0x8e7d): more undefined references to 
`dlclose' follow
collect2: error: ld returned 1 exit status
=========================================


> You are borrowing too much from my time, so I may have to apply
> the Magic Lamp limitations...

Sorry about that.
What can I do?
Are there others on the list who have successfully ran the self-tests, so I 
could ask them?

I guess you have a running configuration / script to compile an run the 
self-test.
Would it be possible, to upload this to some URL or to post it to me?

Regards,

Ulf



------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
ntfs-3g-devel mailing list
ntfs-3g-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to