You are not logged in.

#1 2009-03-31 19:21:22

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

[SOLVED] Is it possible to install or compile ZoneMinder on the x86_64

There are up to date prebuilt binaries for arch i686 available off of ZoneMinders website.  I am unable to get it to compile natively on x86_64. Would it be possible to install them along the same lines as how wine is handled on x86_64 (i.e. making a proper PKGBUILD that installs the required lib32 dependencies)? If so how do I find out the proper layout for the package (should I install it in a chroot 32bit environment and inspect how it was installed)? My second question is rather confusing... not sure how to make it more clear but if you look in a firefox-bin32 package it installs everything using commands like the following:

  install -d ${startdir}/pkg/usr/share/applications/ ${startdir}/pkg/usr/share/pixmaps/
  install -m644 ${startdir}/src/firefox.desktop ${startdir}/pkg/usr/share/applications/
  install -m644 ${startdir}/src/firefox-safe.desktop ${startdir}/pkg/usr/share/applications/
  install -m644 ${startdir}/src/firefox/icons/mozicon128.png ${startdir}/pkg/usr/share/pixmaps/firefox.png

Last edited by ugkbunb (2009-04-05 18:40:06)

Offline

#2 2009-03-31 19:35:11

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: [SOLVED] Is it possible to install or compile ZoneMinder on the x86_64

First, can we try to get the software to compile under x86_64? big_smile Sorry, I'm not sure about making a bin32-* package.

Offline

#3 2009-03-31 19:39:24

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] Is it possible to install or compile ZoneMinder on the x86_64

ugkbunb wrote:

I am unable to get it to compile natively on x86_64.

I'm sure you can do the lib32 thing, but if it was me, I'd try to solve the x86_64 build problem first. Post the error here, so that others can have a look at it.

Offline

#4 2009-03-31 20:00:56

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

Re: [SOLVED] Is it possible to install or compile ZoneMinder on the x86_64

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.

Thanks a ton~~ any help is a appreciated! My house was broken into last year... currently got Motion set up with a webcam but there is a number of things in ZoneMinder that interest me.

btw- The AUR PKGBUILD only has i686 under architecture field... I just changed it to x86_64 (it seemed to work in building other packages in the past).

Last edited by ugkbunb (2009-03-31 20:02:31)

Offline

#5 2009-04-01 21:13:46

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: [SOLVED] Is it possible to install or compile ZoneMinder on the x86_64

Holy crap, dude, that's a GCC bug unless I'm mistaken.

g++: Internal error: Segmentation fault (program collect2)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Offline

#6 2009-04-01 22:12:58

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

Re: [SOLVED] Is it possible to install or compile ZoneMinder on the x86_64

^^
Should I follow the instructions and file a bug report?

Perhaps I will try reinstalling/downgrading GCC and see if that fixes anything.

Offline

#7 2009-04-02 06:41:30

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [SOLVED] Is it possible to install or compile ZoneMinder on the x86_64

You could try rebuilding ZoneMinder to see if you can reproduce the error. Try using options=('!makeflags')

If gcc seg faults, there's probably bad code causing this. You could file a bug report for  gcc.  Filing a bug report to the ZoneMinder devs might be  a good idea too as they might figure out and fix what's causingg gcc to seg fault.

Offline

#8 2009-04-05 02:41:42

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

Re: [SOLVED] Is it possible to install or compile ZoneMinder on the x86_64

weird  I restarted my comp and the GCC error went away... disabling the makeflags allows the build to coplete. I thank you for that tip.... now I am stuck on setting it up... but I have posted that on ZM forums... below is my post... just in case any of yall can't help me out:

After installed the package I was prompted to do the following:

Note:
==> To initialize the ZoneMinder database run (as root)
==> /usr/lib/zm/bin/zminit

==> You must edit /etc/php/php.ini and uncomment "extension=mysql.so"
==> so php and MySQL can play together.

==> You must edit /etc/php/php.ini and set short_open_tag = On
==> or ZoneMinder will not work

==> You must edit /etc/php/php.ini and add to it open_basedir "/etc/" as such:
==> open_basedir = /home/:/tmp/:/usr/share/pear/:/etc/
==> Otherwise ZoneMinder will be unable to read /etc/zm.conf

Note:
==> You must edit /etc/httpd/conf/httpd.conf and uncomment the line
==> #LoadModule php5_module modules/libphp5.so

==> You must edit /etc/httpd/conf/httpd.conf
==> and add this line:
==> Include /etc/httpd/conf/extra/httpd-zm.conf

The only issue I am having is that I /usr/lib/zm/bin/zminit seems to not be setting up the database correctly. Attempting to start zm after runing zminit prompts me to run zminit again. I have httpd started... plus what I believe are all the run-time dependencies. Any suggestions are appreciated.

[*******@geota-desktop ~]$ sudo /usr/lib/zm/bin/zminit
Password:
Enter MySQL Administrator username
(Default: root and password is blank)
MySQL Admin: root
Password:  *****
A zm database exists, but the version is unknown
Updating is unlikely to succeed
Choose one of the following options:
[u]pdate the database
[D]rop the old database and reinitialize
[E]xit and do nothing
D
ERROR 1175 (HY000) at line 593: You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
Bareword "ZM_PATH_LOGS" not allowed while "strict subs" in use at /usr/share/perl5/site_perl/5.10.0/ZoneMinder/Debug.pm line 265.
Compilation failed in require at /usr/lib/zm/bin/zmupdate.pl line 50.
BEGIN failed--compilation aborted at /usr/lib/zm/bin/zmupdate.pl line 50.

Offline

#9 2009-04-05 18:40:57

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

Re: [SOLVED] Is it possible to install or compile ZoneMinder on the x86_64

Thanks goes to all yall and rdelmin... if anyone is interested or has the same issue as I had... you can see how I fixed it at:
http://www.zoneminder.com/forums/viewto … 1430#51430

Offline

Board footer

Powered by FluxBB