1.21.0 bug :)

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
fernando
Posts: 240
Joined: Thu Jul 10, 2003 6:00 pm

1.21.0 bug :)

Post by fernando »

like the old times.
my 1.20.1 instalation works fine.
same machine.
mdk 10.1 final

error on "make install"
g++ -g -O2 -Lyes -L/usr/local/lib/lib -L/usr/lib/mysql -o zma zma.o zm.o zm_db.o zm_config.o zm_coord.o zm_box.o zm_image.o zm_event.o zm_zone.o zm_camera.o
zm_local_camera.o zm_remote_camera.o zm_monitor.o zm_user.o zm_mpeg.o zm_jpeg.o
zm_regexp.o zm_buffer.o zm_debug.o -L/usr/lib/mysql -lmp3lame -lavformat -lavcodec -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/lib/include -g -O2 -MT zmu.o -MD -MP -MF ".deps/zmu.Tpo" -c -o zmu.o zmu.cpp; \
then mv -f ".deps/zmu.Tpo" ".deps/zmu.Po"; else rm -f ".deps/zmu.Tpo"; exit 1; fi
g++ -g -O2 -Lyes -L/usr/local/lib/lib -L/usr/lib/mysql -o zmu zmu.o zm.o zm_db.o zm_config.o zm_coord.o zm_box.o zm_image.o zm_event.o zm_zone.o zm_camera.o
zm_local_camera.o zm_remote_camera.o zm_monitor.o zm_user.o zm_mpeg.o zm_jpeg.o
zm_regexp.o zm_buffer.o zm_debug.o -L/usr/lib/mysql -lmp3lame -lavformat -lavcodec -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg
collect2: ld returned 1 exit status
make[2]: *** [zmu] Error 1
make[2]: Leaving directory `/root/zm-1.21.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zm-1.21.0'
make: *** [all] Error 2
[root@localhost zm-1.21.0]#
Fernando
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I can't actually see an error here, though -Lyes seems a bit suspicious.

Are you sure your configure line was correct?

Phil
User avatar
fernando
Posts: 240
Joined: Thu Jul 10, 2003 6:00 pm

Post by fernando »

i use the same line on both versions
no errors on there.
lets wait to ross .. iam sure he use same config.
Fernando
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Your library lines do look very odd. Where you have

Code: Select all

-Lyes -L/usr/local/lib/lib -L/usr/lib/mysql
I have

Code: Select all

-L -L/lib -L/usr/lib/mysql
so both -Lyes and -L/usr/local/lib/lib look wrong to me.

I did send Ross a preview copy and though he found a couple of issues, he didn't get any problems building as far as I know.

Phil
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

Hi Fernando,
My configure line is:
./configure --with-mysql=/usr --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin

I just downloaded and built 1.21.0 with no errors. I'm using Mandrake 10.1 official.

Maybe just try again, maybe you had a typo.

Best regards,

Ross
User avatar
fernando
Posts: 240
Joined: Thu Jul 10, 2003 6:00 pm

Post by fernando »

i have use your config.. same error.. this is like the old times.. iam the ugly duck ..
i repeat 1.20.1 works FINE FINE..

Code: Select all

then mv -f ".deps/zm_image.Tpo" ".deps/zm_image.Po"; else rm -f ".deps/zm_image.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include -I/include   -g -O2 -MT zm_event.o -MD -MP -MF ".deps/zm_event.Tpo" -c -o zm_event.o zm_event.cpp; \
then mv -f ".deps/zm_event.Tpo" ".deps/zm_event.Po"; else rm -f ".deps/zm_event.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include -I/include   -g -O2 -MT zm_zone.o -MD -MP -MF ".deps/zm_zone.Tpo" -c -o zm_zone.o zm_zone.cpp; \
then mv -f ".deps/zm_zone.Tpo" ".deps/zm_zone.Po"; else rm -f ".deps/zm_zone.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include -I/include   -g -O2 -MT zm_camera.o -MD -MP -MF ".deps/zm_camera.Tpo" -c -o zm_camera.o zm_camera.cpp; \
then mv -f ".deps/zm_camera.Tpo" ".deps/zm_camera.Po"; else rm -f ".deps/zm_camera.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include -I/include   -g -O2 -MT zm_local_camera.o -MD -MP -MF ".deps/zm_local_camera.Tpo" -c -o zm_local_camera.o zm_local_camera.cpp; \
then mv -f ".deps/zm_local_camera.Tpo" ".deps/zm_local_camera.Po"; else rm -f ".deps/zm_local_camera.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include -I/include   -g -O2 -MT zm_remote_camera.o -MD -MP -MF ".deps/zm_remote_camera.Tpo" -c -o zm_remote_camera.o
 zm_remote_camera.cpp; \
then mv -f ".deps/zm_remote_camera.Tpo" ".deps/zm_remote_camera.Po"; else rm -f
".deps/zm_remote_camera.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include -I/include   -g -O2 -MT zm_monitor.o -MD -MP -MF ".deps/zm_monitor.Tpo" -c -o zm_monitor.o zm_monitor.cpp; \

then mv -f ".deps/zm_monitor.Tpo" ".deps/zm_monitor.Po"; else rm -f ".deps/zm_monitor.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include -I/include   -g -O2 -MT zm_user.o -MD -MP -MF ".deps/zm_user.Tpo" -c -o zm_user.o zm_user.cpp; \
then mv -f ".deps/zm_user.Tpo" ".deps/zm_user.Po"; else rm -f ".deps/zm_user.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include -I/include   -g -O2 -MT zm_mpeg.o -MD -MP -MF ".deps/zm_mpeg.Tpo" -c -o zm_mpeg.o zm_mpeg.cpp; \
then mv -f ".deps/zm_mpeg.Tpo" ".deps/zm_mpeg.Po"; else rm -f ".deps/zm_mpeg.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include -I/include   -g -O2 -MT zm_regexp.o -MD -MP -MF ".deps/zm_regexp.Tpo" -c -o zm_regexp.o zm_regexp.cpp; \
then mv -f ".deps/zm_regexp.Tpo" ".deps/zm_regexp.Po"; else rm -f ".deps/zm_regexp.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include -I/include   -g -O2 -MT zm_buffer.o -MD -MP -MF ".deps/zm_buffer.Tpo" -c -o zm_buffer.o zm_buffer.cpp; \
then mv -f ".deps/zm_buffer.Tpo" ".deps/zm_buffer.Po"; else rm -f ".deps/zm_buffer.Tpo"; exit 1; fi
g++  -g -O2  -L -L/lib -L/usr/lib/mysql  -o zmc  zmc.o zm.o zm_db.o zm_config.o
zm_coord.o zm_box.o zm_image.o zm_event.o zm_zone.o zm_camera.o zm_local_camera.o zm_remote_camera.o zm_monitor.o zm_user.o zm_mpeg.o zm_jpeg.o zm_regexp.o zm_buffer.o zm_debug.o -L/usr/lib/mysql -lmp3lame -lavformat -lavcodec -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include -I/include   -g -O2 -MT zma.o -MD -MP -MF ".deps/zma.Tpo" -c -o zma.o zma.cpp; \
then mv -f ".deps/zma.Tpo" ".deps/zma.Po"; else rm -f ".deps/zma.Tpo"; exit 1; fi
g++  -g -O2  -L -L/lib -L/usr/lib/mysql  -o zma  zma.o zm.o zm_db.o zm_config.o
zm_coord.o zm_box.o zm_image.o zm_event.o zm_zone.o zm_camera.o zm_local_camera.o zm_remote_camera.o zm_monitor.o zm_user.o zm_mpeg.o zm_jpeg.o zm_regexp.o zm_buffer.o zm_debug.o -L/usr/lib/mysql -lmp3lame -lavformat -lavcodec -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include -I/include   -g -O2 -MT zmu.o -MD -MP -MF ".deps/zmu.Tpo" -c -o zmu.o zmu.cpp; \
then mv -f ".deps/zmu.Tpo" ".deps/zmu.Po"; else rm -f ".deps/zmu.Tpo"; exit 1; fi
g++  -g -O2  -L -L/lib -L/usr/lib/mysql  -o zmu  zmu.o zm.o zm_db.o zm_config.o
zm_coord.o zm_box.o zm_image.o zm_event.o zm_zone.o zm_camera.o zm_local_camera.o zm_remote_camera.o zm_monitor.o zm_user.o zm_mpeg.o zm_jpeg.o zm_regexp.o zm_buffer.o zm_debug.o -L/usr/lib/mysql -lmp3lame -lavformat -lavcodec -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg
collect2: ld returned 1 exit status
make[2]: *** [zmu] Error 1
make[2]: Leaving directory `/root/zm-1.21.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zm-1.21.0'
make: *** [all] Error 2
[root@localhost zm-1.21.0]#
Fernando
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Your -L lines look more sensible now at least. However although ld is failing it doesn't say _why_ it's failing which is very odd as usually you would get an undefined symbol or something.

You could try running the final link line directly but adding some debug flags (-v I think is one) to see if that points to anything. Can you still build 1.20.1?

Phil
User avatar
fernando
Posts: 240
Joined: Thu Jul 10, 2003 6:00 pm

Post by fernando »

http://www.host-tech.com.ar/zm/debug.rar

you are ready for the debug? :twisted:
i use "make -d"
Fernando
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Nope, it's not debug from make we need, it's debug from g++. That's why I suggest running the final g++ line directly, without make, and adding g++ debug flags. The make debug just tells us why it's compiling and/or linking not what happening when it does so.

Phil
Locked