Z ciekawości co będziesz nim robił na mięsie?
Wysłano ze smartfonu Sony Xperia™
---- Użytkownik Sławomir Paszkiewicz napisał ----
Ok, sam sobie odpowiem ;-)
Użyłem podpowiedzi z tego linka:
http://www.linuxquestions.org/questions/linux-software-2/undefined-reference-to-%60rpl_malloc'-587256/
ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes
i udało się skompilować demona dla mipsa!
Pozdrawiam,
paszczus
W dniu 2015-09-12 o 15:41, Sławomir Paszkiewicz pisze:
> Witam,
> Dalej walczę z kompilacją demona na mipsie i już mam postępy, ale
> teraz ugrzązłem na :
>
> make[3]: Wejście do katalogu `/home/paszczus/buildenv/lms/daemon'
> mips-linux-gnu-gcc -DHAVE_CONFIG_H -I. -D_FORTIFY_SOURCE=2
> -DLMS_LIB_DIR=\"/usr/lib/mips-linux-gnu/lmsd\"
> -DLMS_DEFAULT_DRIVER=\"mysql\" -DLMS_CONF_DIR=\"/etc/lms\" -g -O2
> -Wformat -Werror=format-security -fPIC -DGNU -c -o lmsd-util.o `test
> -f 'util.c' || echo './'`util.c
> mips-linux-gnu-gcc -DHAVE_CONFIG_H -I. -D_FORTIFY_SOURCE=2
> -DLMS_LIB_DIR=\"/usr/lib/mips-linux-gnu/lmsd\"
> -DLMS_DEFAULT_DRIVER=\"mysql\" -DLMS_CONF_DIR=\"/etc/lms\" -g -O2
> -Wformat -Werror=format-security -fPIC -DGNU -c -o lmsd-cronparse.o
> `test -f 'cron/cronparse.c' || echo './'`cron/cronparse.c
> mips-linux-gnu-gcc -DHAVE_CONFIG_H -I. -D_FORTIFY_SOURCE=2
> -DLMS_LIB_DIR=\"/usr/lib/mips-linux-gnu/lmsd\"
> -DLMS_DEFAULT_DRIVER=\"mysql\" -DLMS_CONF_DIR=\"/etc/lms\" -g -O2
> -Wformat -Werror=format-security -fPIC -DGNU -c -o lmsd-cron.o `test
> -f 'cron/cron.c' || echo './'`cron/cron.c
> mips-linux-gnu-gcc -DHAVE_CONFIG_H -I. -D_FORTIFY_SOURCE=2
> -DLMS_LIB_DIR=\"/usr/lib/mips-linux-gnu/lmsd\"
> -DLMS_DEFAULT_DRIVER=\"mysql\" -DLMS_CONF_DIR=\"/etc/lms\" -g -O2
> -Wformat -Werror=format-security -fPIC -DGNU -c -o lmsd-dictionary.o
> `test -f 'config/dictionary.c' || echo './'`config/dictionary.c
> mips-linux-gnu-gcc -DHAVE_CONFIG_H -I. -D_FORTIFY_SOURCE=2
> -DLMS_LIB_DIR=\"/usr/lib/mips-linux-gnu/lmsd\"
> -DLMS_DEFAULT_DRIVER=\"mysql\" -DLMS_CONF_DIR=\"/etc/lms\" -g -O2
> -Wformat -Werror=format-security -fPIC -DGNU -c -o lmsd-config.o `test
> -f 'config/config.c' || echo './'`config/config.c
> mips-linux-gnu-gcc -DHAVE_CONFIG_H -I. -D_FORTIFY_SOURCE=2
> -DLMS_LIB_DIR=\"/usr/lib/mips-linux-gnu/lmsd\"
> -DLMS_DEFAULT_DRIVER=\"mysql\" -DLMS_CONF_DIR=\"/etc/lms\" -g -O2
> -Wformat -Werror=format-security -fPIC -DGNU -c -o lmsd-lmsd.o `test
> -f 'lmsd.c' || echo './'`lmsd.c
> lmsd.c: In function ‘init_set_proc_title’:
> lmsd.c:597:26: warning: assignment makes pointer from integer without
> a cast [enabled by default]
> lmsd.c: In function ‘main’:
> lmsd.c:244:10: warning: ignoring return value of ‘system’, declared
> with attribute warn_unused_result [-Wunused-result]
> /bin/bash ./libtool --tag=CC --mode=link mips-linux-gnu-gcc
> -DLMS_LIB_DIR=\"/usr/lib/mips-linux-gnu/lmsd\"
> -DLMS_DEFAULT_DRIVER=\"mysql\" -DLMS_CONF_DIR=\"/etc/lms\" -g -O2
> -Wformat -Werror=format-security -fPIC -DGNU -rdynamic -Wl,-z,relro -o
> lmsd lmsd-util.o lmsd-cronparse.o lmsd-cron.o lmsd-dictionary.o
> lmsd-config.o lmsd-lmsd.o -ldl
> libtool: link: mips-linux-gnu-gcc
> -DLMS_LIB_DIR=\"/usr/lib/mips-linux-gnu/lmsd\"
> -DLMS_DEFAULT_DRIVER=\"mysql\" -DLMS_CONF_DIR=\"/etc/lms\" -g -O2
> -Wformat -Werror=format-security -fPIC -DGNU -rdynamic -Wl,-z
> -Wl,relro -o lmsd lmsd-util.o lmsd-cronparse.o lmsd-cron.o
> lmsd-dictionary.o lmsd-config.o lmsd-lmsd.o -ldl
> lmsd-lmsd.o: In function `main':
> /home/paszczus/buildenv/lms/daemon/lmsd.c:74: undefined reference to
> `rpl_realloc'
> /home/paszczus/buildenv/lms/daemon/lmsd.c:74: undefined reference to
> `rpl_realloc'
> /home/paszczus/buildenv/lms/daemon/lmsd.c:76: undefined reference to
> `rpl_realloc'
> /home/paszczus/buildenv/lms/daemon/lmsd.c:76: undefined reference to
> `rpl_realloc'
> lmsd-lmsd.o: In function `init_set_proc_title':
> /home/paszczus/buildenv/lms/daemon/lmsd.c:592: undefined reference to
> `rpl_malloc'
> /home/paszczus/buildenv/lms/daemon/lmsd.c:592: undefined reference to
> `rpl_malloc'
> /home/paszczus/buildenv/lms/daemon/lmsd.c:597: undefined reference to
> `rpl_malloc'
> /home/paszczus/buildenv/lms/daemon/lmsd.c:597: undefined reference to
> `rpl_malloc'
> lmsd-lmsd.o: In function `main':
> /home/paszczus/buildenv/lms/daemon/lmsd.c:265: undefined reference to
> `rpl_malloc'
> lmsd-lmsd.o:/home/paszczus/buildenv/lms/daemon/lmsd.c:265: more
> undefined references to `rpl_malloc' follow
> lmsd-lmsd.o: In function `main':
> /home/paszczus/buildenv/lms/daemon/lmsd.c:284: undefined reference to
> `rpl_realloc'
> /home/paszczus/buildenv/lms/daemon/lmsd.c:284: undefined reference to
> `rpl_realloc'
> /home/paszczus/buildenv/lms/daemon/lmsd.c:357: undefined reference to
> `rpl_malloc'
> /home/paszczus/buildenv/lms/daemon/lmsd.c:357: undefined reference to
> `rpl_malloc'
> /home/paszczus/buildenv/lms/daemon/lmsd.c:265: undefined reference to
> `rpl_malloc'
> /home/paszczus/buildenv/lms/daemon/lmsd.c:265: undefined reference to
> `rpl_malloc'
> /home/paszczus/buildenv/lms/daemon/lmsd.c:307: undefined reference to
> `rpl_realloc'
> /home/paszczus/buildenv/lms/daemon/lmsd.c:307: undefined reference to
> `rpl_realloc'
> collect2: error: ld returned 1 exit status
> make[3]: *** [lmsd] Błąd 1
> make[3]: Opuszczenie katalogu `/home/paszczus/buildenv/lms/daemon'
> make[2]: *** [all-recursive] Błąd 1
> make[2]: Opuszczenie katalogu `/home/paszczus/buildenv/lms/daemon'
> make[1]: *** [all] Błąd 2
> make[1]: Opuszczenie katalogu `/home/paszczus/buildenv/lms/daemon'
> dh_auto_build: make -j1 returned exit code 2
> make: *** [build] Błąd 2
> dpkg-buildpackage: błąd: debian/rules build zwrócił status błędu 2
>
>
> Ktoś ma pomysł jak to obejść?
>
> Pozdrawiam,
> paszczus
_______________________________________________
lms mailing list
lms@lists.lms.org.pl
http://lists.lms.org.pl/mailman/listinfo/lms