История изменений
Исправление
kirk_johnson,
(текущая версия)
:
Ты гонишь:
$ qlist -Iv | grep libpng
media-libs/libpng-1.6.29
$ cat test.c
#include <err.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *resolved_path;
if ((resolved_path = realpath("/etc/mtab", NULL)) == NULL)
err(EXIT_FAILURE, "cannot resolve /etc/mtab");
puts(resolved_path);
free(resolved_path);
exit(EXIT_SUCCESS);
}
$ gcc -std=c11 -Wall -O2 -o test test.c
$ lddtree test
test => ./test (interpreter => /lib64/ld-linux-x86-64.so.2)
libc.so.6 => /lib64/libc.so.6
ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2
Исправление
kirk_johnson,
:
По-моему, ты гонишь:
$ qlist -Iv | grep libpng
media-libs/libpng-1.6.29
$ cat test.c
#include <err.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *resolved_path;
if ((resolved_path = realpath("/etc/mtab", NULL)) == NULL)
err(EXIT_FAILURE, "cannot resolve /etc/mtab");
puts(resolved_path);
free(resolved_path);
exit(EXIT_SUCCESS);
}
$ gcc -std=c11 -Wall -O2 -o test test.c
$ lddtree test
test => ./test (interpreter => /lib64/ld-linux-x86-64.so.2)
libc.so.6 => /lib64/libc.so.6
ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2
Исходная версия
kirk_johnson,
:
По-моему, ты гонишь:
$ cat test.c
#include <err.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char *resolved_path;
if ((resolved_path = realpath("/etc/mtab", NULL)) == NULL)
err(EXIT_FAILURE, "cannot resolve /etc/mtab");
puts(resolved_path);
free(resolved_path);
exit(EXIT_SUCCESS);
}
$ gcc -std=c11 -Wall -O2 -o test test.c
$ lddtree test
test => ./test (interpreter => /lib64/ld-linux-x86-64.so.2)
libc.so.6 => /lib64/libc.so.6
ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2