I have tried to install a newer version of libmtp on my kubuntu.
But I did not succeed with these versions: 1.1.12, 1.1.13, 1.1.14.
I have downloaded the sources from here:
https://sourceforge.net/projects/libmtp/files/libmtp/
Then:
- unpack
- ./configure
- make
The configure output is fine. But the make fails with:
collect2: error: ld returned 1 exit status
Makefile:505: die Regel für Ziel „mtp-connect“ scheiterte
make[2]: *** [mtp-connect] Fehler 1
make[2]: Verzeichnis „/home/libmtp-1.1.12/examples“ wird verlassen
Makefile:525: die Regel für Ziel „all-recursive“ scheiterte
make[1]: *** [all-recursive] Fehler 1
make[1]: Verzeichnis „/home/libmtp-1.1.12“ wird verlassen
Makefile:388: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2
in english the message could be something like this:
collect2: error: ld returned 1 exit status
Makefile:505: rule for target „mtp-connect“ failed
make[2]: *** [mtp-connect] error 1
make[2]: exit folder „/home/libmtp-1.1.12/examples“
Makefile:525: rule for target „all-recursive“ failed
make[1]: *** [all-recursive] error 1
make[1]: exit folder „/home/libmtp-1.1.12“
Makefile:388: rule for target „all“ failed
make: *** [all] Fehler 2
Anybody has an idea where to search? Where to begin?
Related
I am doing OpenVswitch compile in Odroid XU4 with the kernel module.
I did execute the 'boot.sh' file and configure it with the Linux kernel module.
But When I make OpenVswitch, there is an error when building the datapath kernel module.
Here is the full log.
odroid#odroid:~/Downloads/openvswitch-2.15.4$ make
make all-recursive
make[1]: Entering directory '/home/odroid/Downloads/openvswitch-2.15.4'
Making all in datapath
make[2]: Entering directory '/home/odroid/Downloads/openvswitch-2.15.4/datapath'
Making all in linux
make[3]: Entering directory '/home/odroid/Downloads/openvswitch-2.15.4/datapath/linux'
make -C /lib/modules/5.4.167+/build M=/home/odroid/Downloads/openvswitch-2.15.4/datapath/linux modules
make[4]: Entering directory '/home/odroid/linux'
Building modules, stage 2.
MODPOST 6 modules
ERROR: "geneve_dev_create_fb" [/home/odroid/Downloads/openvswitch-2.15.4/datapath/linux/vport-geneve.ko] undefined!
make[5]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
make[4]: *** [Makefile:1650: modules] Error 2
make[4]: Leaving directory '/home/odroid/linux'
make[3]: *** [Makefile.main:71: default] Error 2
make[3]: Leaving directory '/home/odroid/Downloads/openvswitch-2.15.4/datapath/linux'
make[2]: *** [Makefile:579: all-recursive] Error 1
make[2]: Leaving directory '/home/odroid/Downloads/openvswitch-2.15.4/datapath'
make[1]: *** [Makefile:5251: all-recursive] Error 1
make[1]: Leaving directory '/home/odroid/Downloads/openvswitch-2.15.4'
make: *** [Makefile:2996: all] Error 2
I tried to compile XNU-2782.1.97 for my Mac that's on OSX Yosemite 10.10.3, but I got the following errors at the end of the compilation.
I think that normally I have everything that's needing for doing it.
...
clang: error: optimization flag '-freorder-blocks' is not supported
make[7]: *** [device_tree.o] Error 1
make[6]: *** [build_all] Error 2
make[5]: *** [do_all] Error 2
clang: error: optimization flag '-freorder-blocks' is not supported
make[4]: *** [build_all] Error 2
clang: error: optimization flag '-freorder-blocks' is not supported
make[3]: *** [build_all_recurse_into_conf] Error 2
make[7]: *** [IOLib.cpo] Error 1
make[2]: *** [build_all_recurse_into_pexpert] Error 2
make[2]: *** Waiting for unfinished jobs....
make[6]: *** [build_all] Error 2
make[5]: *** [do_all] Error 2
make[4]: *** [build_all] Error 2
make[3]: *** [build_all_recurse_into_conf] Error 2
make[2]: *** [build_all_recurse_into_iokit] Error 2
make[7]: *** [OSRuntimeSupport.o] Error 1
make[7]: *** Waiting for unfinished jobs....
C++ OSSerialize.cpo
clang: error: optimization flag '-freorder-blocks' is not supported
make[7]: *** [OSSerialize.cpo] Error 1
make[6]: *** [build_all] Error 2
make[5]: *** [do_all] Error 2
make[4]: *** [build_all] Error 2
make[3]: *** [build_all_recurse_into_conf] Error 2
make[2]: *** [build_all_recurse_into_libkern] Error 2
MIG atm_notification_user.c
MIG device_server.h
MIG default_pager_alerts_user.c
Generating audit_kevents.c from /Users/Martin/xnu-2782.1.97/bsd/kern/syscalls.master
MIG audit_triggers_user.c
MIG device_server.c
CC audit_mac.o
clang: error: optimization flag '-freorder-blocks' is not supported
make[7]: *** [audit_mac.o] Error 1
make[6]: *** [build_all] Error 2
make[5]: *** [do_all] Error 2
make[4]: *** [build_all] Error 2
make[3]: *** [build_all_recurse_into_conf] Error 2
make[2]: *** [build_all_recurse_into_bsd] Error 2
MIG default_pager_object_server.c
MIG UNDRequest.c
MIG clock_reply_user.c
MIG gssd_mach.c
MIG UNDReplyServer.c
MIG coalition_notification_user.c
MIG kextd_mach.c
MIG gssd_mach.h
MIG lockd_mach.c
MIG exc_user.c
MIG kextd_mach.h
MIG lockd_mach.h
MIG host_notify_reply_user.c
MIG mach_exc_user.c
MIG mach_notify_user.c
MIG memory_object_user.c
MIG memory_object_control_user.c
MIG memory_object_default_user.c
MIG task_access_user.c
MIG telemetry_notification_user.c
MIG upl_user.c
MIG vm_map_user.c
MIG clock_server.c
MIG clock_priv_server.c
MIG exc_server.c
MIG host_priv_server.c
MIG host_security_server.c
MIG lock_set_server.c
MIG mach_exc_server.c
MIG mach_host_server.c
MIG mach_notify_server.c
MIG mach_port_server.c
MIG mach_vm_server.c
MIG mach_voucher_server.c
MIG mach_voucher_attr_control_server.c
MIG memory_object_server.c
MIG memory_object_control_server.c
MIG memory_object_default_server.c
MIG processor_server.c
MIG processor_set_server.c
MIG task_server.c
MIG thread_act_server.c
MIG upl_server.c
MIG vm_map_server.c
MIG vm32_map_server.c
CC vm_compressor_backing_store.o
CC default_pager.o
CC dp_backing_store.o
CC dp_memory_object.o
clang: error: optimization flag '-freorder-blocks' is not supportedclang
: error: optimization flag '-freorder-blocks' is not supported
clang: error: optimization flag '-freorder-blocks' is not supported
clang: error: optimization flag '-freorder-blocks' is not supported
make[7]: *** [dp_memory_object.o] Error 1
make[7]: *** Waiting for unfinished jobs....
make[7]: *** [dp_backing_store.o] Error 1
make[7]: *** [default_pager.o] Error 1
make[7]: *** [vm_compressor_backing_store.o] Error 1
CC default_pager_alerts_user.o
clang: error: optimization flag '-freorder-blocks' is not supported
make[7]: *** [default_pager_alerts_user.o] Error 1
make[6]: *** [build_all] Error 2
make[5]: *** [do_all] Error 2
make[4]: *** [build_all] Error 2
make[3]: *** [build_all_recurse_into_conf] Error 2
make[2]: *** [build_all_recurse_into_osfmk] Error 2
make[1]: *** [build_all_bootstrap_RELEASE^X86_64^NONE] Error 2
make: *** [all] Error 2
You're most likely using the wrong Xcode version. An Apple kernel engineer, Shantonu Sen, maintains a blog about compiling xnu from source, and he tells you the the exact toolchain versions to use for each version of xnu. I suggest checking that you're doing it exactly as he says. You may need to use xcode-select to set the Xcode version that xcodebuild will use.
Here are the steps that I have done for compiling it.
Last login: Sat May 16 20:39:26 on ttys006
iMac-de-Martin:~ Martin$ curl -O http://opensource.apple.com/tarballs/xnu/xnu-2782.1.97.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9655k 100 9655k 0 0 48145 0 0:03:25 0:03:25 --:--:-- 64335
iMac-de-Martin:~ Martin$ tar zxf xnu-2782.1.97.tar.gz
iMac-de-Martin:~ Martin$ cd xnu-2782.1.97
iMac-de-Martin:xnu-2782.1.97 Martin$ make SDKROOT=macosx ARCH_CONFIGS=X86_64 KERNEL_CONFIGS=RELEASE
I am building gcc-5 and getting the following make problem
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/cdi/Local
/gcc-release/objdir/x86_64-unknown-linux-gnu
/32/libjava/classpath'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/cdi/Local/gcc-release
/objdir/x86_64-unknown-linux-gnu/32/libjava'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory `/home/cdi/Local/gcc-release
/objdir/x86_64-unknown-linux-gnu/libjava'
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory `/home/cdi/Local/gcc-release
/objdir/x86_64-unknown-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/home/cdi/Local/gcc-release
/objdir'
make: *** [all] Error 2
I investigated if there is a more descriptive make error at an earlier stage, however, I did not find anything.
I'm trying to install squid from source.
I issue the command make but it gets this error at the end:
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make[3]: *** [basic_ncsa_auth] Error 1
make[3]: Leaving directory `/root/squid-3.4.6/helpers/basic_auth/NCSA'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/squid-3.4.6/helpers/basic_auth'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/squid-3.4.6/helpers'
make: *** [all-recursive] Error 1
Any ideas how to solve this?
You do not have the OpenSSL development toolkit installed.
yum install openssl
I am trying to install korundum on fedora 17. And during the $ make phase I got the following error:
In file included from /usr/include/ruby.h:32:0,
from Qt.cpp:49:
/usr/include/ruby/ruby.h:24:25: fatal error: ruby/config.h: No such file or directory
compilation terminated.
make[5]: *** [Qt.lo] Error 1
make[5]: Leaving directory `/home/n/Downloads/korundum-3.5.5/qtruby/rubylib/qtruby'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/n/Downloads/korundum-3.5.5/qtruby/rubylib/qtruby'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/n/Downloads/korundum-3.5.5/qtruby/rubylib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/n/Downloads/korundum-3.5.5/qtruby'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/n/Downloads/korundum-3.5.5'
make: *** [all] Error 2
How can solve this problem? I'm loosing my mind.
The error message suggests that you need the ruby dev files installed, but do not have them.