You are not logged in.

#1 2009-03-30 23:30:05

ugkbunb
Member
Registered: 2009-02-26
Posts: 227

Unable to build ZoneMinder

At first it complained about lack of mmap dependencies. I built the perl mmap from the AUR but now the build stops with the following error. I am unsure how to proceed. Any help is appreciated.

e -lavformat -lavcodec -lavutil -lpcre -lcrypto -lmysqlclient -lpthread -ldl -lz -ljpeg 
collect: recompiling zm_utils.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtsp.cpp
In file included from zm_rtsp.h:25,
                 from zm_rtsp.cpp:24:
zm_comms.h: In member function 'virtual int Socket::send(const std::string&) const':
zm_comms.h:323: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&) const':
zm_comms.h:332: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&, size_t) const':
zm_comms.h:345: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
zm_rtsp.cpp: In member function 'bool RtspThread::recvResponse(std::string&)':
zm_rtsp.cpp:70: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_rtsp.cpp:82: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
zm_rtsp.cpp: In member function 'virtual int RtspThread::run()':
zm_rtsp.cpp:246: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_rtsp.cpp:258: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
zm_rtsp.cpp:546: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
zm_rtsp.cpp:558: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
zm_rtsp.cpp:571: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
In file included from zm_rtsp.h:25,
                 from zm_rtsp.cpp:24:
zm_comms.h: In member function 'virtual int Socket::send(const std::string&) const':
zm_comms.h:323: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&) const':
zm_comms.h:332: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&, size_t) const':
zm_comms.h:345: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
In file included from zm_rtsp.h:25,
                 from zm_rtsp.cpp:24:
zm_comms.h: In member function 'virtual int Socket::send(const std::string&) const':
zm_comms.h:323: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&) const':
zm_comms.h:332: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&, size_t) const':
zm_comms.h:345: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
zm_rtsp.cpp: In member function 'bool RtspThread::recvResponse(std::string&)':
zm_rtsp.cpp:70: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_rtsp.cpp:82: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
zm_rtsp.cpp: In member function 'virtual int RtspThread::run()':
zm_rtsp.cpp:246: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_rtsp.cpp:258: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
zm_rtsp.cpp:546: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
zm_rtsp.cpp:558: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
zm_rtsp.cpp:571: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
zm_rtsp.cpp: In member function 'bool RtspThread::recvResponse(std::string&)':
zm_rtsp.cpp:70: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_rtsp.cpp:82: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
zm_rtsp.cpp: In member function 'virtual int RtspThread::run()':
zm_rtsp.cpp:246: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_rtsp.cpp:258: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
zm_rtsp.cpp:546: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
zm_rtsp.cpp:558: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
zm_rtsp.cpp:571: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
collect: recompiling zm_rtp_ctrl.cpp
In file included from zm_rtp_ctrl.h:24,
                 from zm_rtp_ctrl.cpp:24:
zm_comms.h: In member function 'virtual int Socket::send(const std::string&) const':
zm_comms.h:323: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&) const':
zm_comms.h:332: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&, size_t) const':
zm_comms.h:345: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
zm_rtp_ctrl.cpp: In member function 'int RtpCtrlThread::recvPacket(const unsigned char*, ssize_t)':
zm_rtp_ctrl.cpp:87: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
zm_rtp_ctrl.cpp: In member function 'virtual int RtpCtrlThread::run()':
zm_rtp_ctrl.cpp:297: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
zm_rtp_ctrl.cpp:308: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
collect: recompiling zm_monitor.cpp
In file included from zm_rtsp.h:25,
                 from zm_remote_camera_rtsp.h:27,
                 from zm_monitor.cpp:35:
zm_comms.h: In member function 'virtual int Socket::send(const std::string&) const':
zm_comms.h:323: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&) const':
zm_comms.h:332: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&, size_t) const':
zm_comms.h:345: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_rtp_ctrl.cpp
In file included from zm_rtp_ctrl.h:24,
                 from zm_rtp_ctrl.cpp:24:
zm_comms.h: In member function 'virtual int Socket::send(const std::string&) const':
zm_comms.h:323: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&) const':
zm_comms.h:332: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&, size_t) const':
zm_comms.h:345: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
In file included from zm_rtp_ctrl.h:24,
                 from zm_rtp_ctrl.cpp:24:
zm_comms.h: In member function 'virtual int Socket::send(const std::string&) const':
zm_comms.h:323: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&) const':
zm_comms.h:332: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&, size_t) const':
zm_comms.h:345: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
zm_rtp_ctrl.cpp: In member function 'int RtpCtrlThread::recvPacket(const unsigned char*, ssize_t)':
zm_rtp_ctrl.cpp:87: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
zm_rtp_ctrl.cpp: In member function 'virtual int RtpCtrlThread::run()':
zm_rtp_ctrl.cpp:297: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
zm_rtp_ctrl.cpp:308: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
zm_rtp_ctrl.cpp: In member function 'int RtpCtrlThread::recvPacket(const unsigned char*, ssize_t)':
zm_rtp_ctrl.cpp:87: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
zm_rtp_ctrl.cpp: In member function 'virtual int RtpCtrlThread::run()':
zm_rtp_ctrl.cpp:297: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
zm_rtp_ctrl.cpp:308: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
collect: recompiling zm_monitor.cpp
collect: recompiling zm_monitor.cpp
In file included from zm_rtsp.h:25,
                 from zm_remote_camera_rtsp.h:27,
                 from zm_monitor.cpp:35:
zm_comms.h: In member function 'virtual int Socket::send(const std::string&) const':
zm_comms.h:323: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&) const':
zm_comms.h:332: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&, size_t) const':
zm_comms.h:345: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
collect: recompiling zm_local_camera.cpp
In file included from zm_rtsp.h:25,
                 from zm_remote_camera_rtsp.h:27,
                 from zm_monitor.cpp:35:
zm_comms.h: In member function 'virtual int Socket::send(const std::string&) const':
zm_comms.h:323: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&) const':
zm_comms.h:332: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&, size_t) const':
zm_comms.h:345: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
collect: recompiling zm_event.cpp
zm_event.cpp: In member function 'bool Event::SendFrameImage(const Image*, bool)':
zm_event.cpp:318: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t'
zm_event.cpp:318: warning: format '%d' expects type 'int', but argument 7 has type 'ssize_t'
collect: recompiling zm_comms.cpp
In file included from zm_comms.cpp:20:
zm_comms.h: In member function 'virtual int Socket::send(const std::string&) const':
zm_comms.h:323: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&) const':
zm_comms.h:332: warning: format '%d' expects type 'int', but argument 6 has type 'long unsigned int'
zm_comms.h: In member function 'virtual int Socket::recv(std::string&, size_t) const':
zm_comms.h:345: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
collect: relinking
g++: Internal error: Segmentation fault (program collect2)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [zma] Error 1
make[2]: *** Waiting for unfinished jobs....
collect: recompiling zm_local_camera.cpp
collect: recompiling zm_local_camera.cpp
g++: Internal error: Segmentation fault (program collect2)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [zmu] Error 1
g++: Internal error: Segmentation fault (program collect2)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/tmp/yaourt-tmp-geota/aur-zoneminder/zoneminder/src/ZoneMinder-1.24.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-geota/aur-zoneminder/zoneminder/src/ZoneMinder-1.24.1'
make: *** [all] Error 2
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build zoneminder package.

Offline

#2 2009-03-31 04:54:48

ugkbunb
Member
Registered: 2009-02-26
Posts: 227

Re: Unable to build ZoneMinder

Herm... I realized there are pre-compiled packages for ZoneMinder for ArchLinux on the webpage but they are only for i686. The aur package only mentioned i686 support I merely just tried slapping x86_64 in it's spot (seemed to work with other packages). Perhaps this package can't be compiled for x86_64? Only other post I have found is:
http://bbs.archlinux.org/viewtopic.php?id=54602

Doesn't seem to be the same problem and the solution didnt seem to work for me.

Offline

Board footer

Powered by FluxBB