UNKNOWN on openbsd 4.7: ldconfig: permission denied #178

Closed
kthakore opened this Issue Jul 26, 2011 · 8 comments

Projects

None yet

1 participant

@kthakore
PerlGameDev member
ldconfig: /var/run/ld.so.hints.MQb3RxF5ZC: Permission denied

will end in:

./conftest: can't load library 'libSDL.so.11.3'
checking for SDL - version >= 1.2.10... no

The previously successful build libs are not recognized, so SDL_image in this case cant find/load it.

Report:
http://www.cpantesters.org/cpan/report/6a862202-d98a-11df-a7df-cf483444d33b

@kthakore kthakore was assigned Jul 26, 2011
@kthakore
PerlGameDev member

Author: froggs
Time: 1287410872
Field: status
Value: accepted

@kthakore
PerlGameDev member

Author: froggs
Time: 1287410872
Field: description
Value: ldconfig: /var/run/ld.so.hints.MQb3RxF5ZC: Permission denied

will end in:

./conftest: can't load library 'libSDL.so.11.3'
checking for SDL - version >= 1.2.10... no

The previously successful build libs are not recognized, so SDL_image in this case cant find/load it.

Report:
http://www.cpantesters.org/cpan/report/6a862202-d98a-11df-a7df-cf483444d33b

@kthakore
PerlGameDev member

Author: froggs
Time: 1287410872
Field: comment
Value:

@kthakore
PerlGameDev member

Author: froggs
Time: 1287659298
Field: comment
Value: I guess we dont need to run ldconfig at all.

Should we patch SDL_image-1.2.10/acinclude/libtool.m4 ?

See line e.g. 2545:

finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'

Should be fine to remove that, because we are moving the libs after this command. (When the user does: Build install)

@kthakore
PerlGameDev member

Author: froggs
Time: 1287992241
Field: comment
Value: We need ldconfig.

Otherwise the previously build libs can't be found:
http://www.cpantesters.org/cpan/report/bf3d03e4-df3c-11df-bb29-ad544afd17af
./conftest: can't load library 'libSDL.so.11.3'

So what to do? Check for permissions and skip Alien::SDL at all?

@kthakore
PerlGameDev member

Author: froggs
Time: 1288457419
Field: status
Value: closed

@kthakore
PerlGameDev member

Author: froggs
Time: 1288457419
Field: resolution
Value: fixed

@kthakore
PerlGameDev member

Author: froggs
Time: 1288457419
Field: comment
Value: We run ldconfig anyway, but passing LD_LIBRARY_PATH=/.../sharedir/.../lib/ to configure.
This is fixed in Alien::SDL 1.421

@kthakore kthakore closed this Jul 26, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment