Doh, -lpthread, not -pthread is also an issue it seems?
Anyway, try pulling the git tree again please.
Same problem my friend.. unless I add ldl I get:
/usr/bin/ld: cgminer-adl.o: undefined reference to symbol 'dlopen@@GLIBC_2.1'
/usr/bin/ld: note: 'dlopen@@GLIBC_2.1' is defined in DSO /lib/libdl.so.2 so try adding it to the linker command line
/lib/libdl.so.2: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [cgminer] Error 1
make[2]: Leaving directory `/RAM/new/cgminer'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/RAM/new/cgminer'
make: *** [all] Error 2
Well I honestly am completely baffled since the build has -ldl added... Unless the LDFLAGS are not being passed at all. God I hate autofoo tools. Anyone with a clue out there?
Your error is different than mine, but on the off chance that it is caused by differing versions of something, see my post:
https://bitcointalk.org/index.php?topic=28402.msg512233#msg512233Don't forget that when you manually specifiy CFLAGS or LDFLAGS (or whatever else) on the command line, your specification overrides anything the script would do. As such, the -ldl must be added manually because the autmatic stuff isn't applying. This may not be true when you export, and may not be true as a general rule of thumb, but has been true in my experience on Fedora 15.