Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build breaks at libcap #4

Closed
ghost opened this issue Apr 8, 2018 · 11 comments
Closed

build breaks at libcap #4

ghost opened this issue Apr 8, 2018 · 11 comments

Comments

@ghost
Copy link

ghost commented Apr 8, 2018

cc -Wl,-x -shared -L/home/mrgreen/Downloads/janus/build/sources/libcap-2.25/pam_cap/../libcap -o pam_cap.so pam_cap.o -L../libcap -lcap make testcompile make[2]: Entering directory '/home/mrgreen/Downloads/janus/build/sources/libcap-2.25/pam_cap' gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -L/home/mrgreen/Downloads/janus/build/sources/libcap-2.25/pam_cap/../libcap -o testcompile test.c pam_cap.o -lpam -ldl -L../libcap -lcap /bin/ld: warning: libc.so, needed by /home/mrgreen/Downloads/janus/build/sources/libcap-2.25/pam_cap/../libcap/libcap.so, not found (try using -rpath or -rpath-link) /bin/ld: testcompile: hidden symbol lstat' in /usr/lib/libc_nonshared.a(lstat.oS) is referenced by DSO
/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:26: testcompile] Error 1
make[2]: Leaving directory '/home/mrgreen/Downloads/janus/build/sources/libcap-2.25/pam_cap'
make[1]: *** [Makefile:13: all] Error 2
make[1]: Leaving directory '/home/mrgreen/Downloads/janus/build/sources/libcap-2.25/pam_cap'
make: *** [Makefile:13: install] Error 2
`

@ghost
Copy link
Author

ghost commented Apr 8, 2018 via email

@ghost
Copy link
Author

ghost commented Apr 8, 2018

No! loading now, thanks ;-)

@ghost
Copy link
Author

ghost commented Apr 8, 2018

make[1]: Entering directory '/home/mrgreen/Downloads/janus/build/sources/libcap-2.25/pam_cap'
gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -fPIC -I/home/mrgreen/Downloads/janus/build/sources/libcap-2.25/pam_cap/../libcap/include/uapi -I/home/mrgreen/Downloads/janus/build/sources/libcap-2.25/pam_cap/../libcap/include -c pam_cap.c -o pam_cap.o
pam_cap.c: In function 'parse_args':
pam_cap.c:213:9: warning: variable 'ctrl' set but not used [-Wunused-but-set-variable]
int ctrl=0;
^~~~
gcc -Wl,-x -shared -L/home/mrgreen/Downloads/janus/build/sources/libcap-2.25/pam_cap/../libcap -o pam_cap.so pam_cap.o -L../libcap -lcap
make testcompile
make[2]: Entering directory '/home/mrgreen/Downloads/janus/build/sources/libcap-2.25/pam_cap'
gcc -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -g -L/home/mrgreen/Downloads/janus/build/sources/libcap-2.25/pam_cap/../libcap -o testcompile test.c pam_cap.o -lpam -ldl -L../libcap -lcap
/bin/ld: warning: libc.so, needed by /home/mrgreen/Downloads/janus/build/sources/libcap-2.25/pam_cap/../libcap/libcap.so, not found (try using -rpath or -rpath-link)
/bin/ld: testcompile: hidden symbol `lstat' in /usr/lib/libc_nonshared.a(lstat.oS) is referenced by DSO
/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:26: testcompile] Error 1
make[2]: Leaving directory '/home/mrgreen/Downloads/janus/build/sources/libcap-2.25/pam_cap'
make[1]: *** [Makefile:13: all] Error 2
make[1]: Leaving directory '/home/mrgreen/Downloads/janus/build/sources/libcap-2.25/pam_cap'
make: *** [Makefile:13: install] Error 2

@ghost
Copy link
Author

ghost commented Apr 8, 2018 via email

@ghost
Copy link
Author

ghost commented Apr 8, 2018

If I get time I will try under debian, meantime I can test out boot.iso

@ghost
Copy link
Author

ghost commented Apr 8, 2018

Loaded Lubuntu and build broke when trying to make busybox, guess I will just test iso instead.

@ghost
Copy link
Author

ghost commented Apr 8, 2018 via email

@ghost
Copy link
Author

ghost commented Apr 11, 2018

Many distros no longer use mdev (hotplug) in there kernels. Would love to take stock archlinux kernel and add in say minirc. Been looking at docker images and some that are Arch based are tiny. Of course Alpine would be even smaller but I cannot always make it work the way I need...... Why not go the minimal linux way and just have kernel and busybox then build on that?

@ghost
Copy link
Author

ghost commented Apr 11, 2018

My Linux distribution is more advanced

@ghost
Copy link
Author

ghost commented Apr 15, 2018

You can try "pacman" branch. There is fixed ARM compilation and more! But you need use custom kernel.

@ghost
Copy link
Author

ghost commented Apr 22, 2018

new builder without useless stuff

@ghost ghost closed this as completed Apr 22, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants