Opened 14 years ago

Closed 13 years ago

#23501 closed defect (duplicate)

Pinentry fails to build with QT 4.6

Reported by: xumix@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: pinentry

Description

Making all in pinentry
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..  -I../assuan -I../secmem -I/opt/local/include -Wall  -O2 -arch x86_64 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wno-pointer-sign -MT pinentry.o -MD -MP -MF .deps/pinentry.Tpo -c -o pinentry.o pinentry.c
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..  -I../assuan -I../secmem -I/opt/local/include -Wall  -O2 -arch x86_64 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wno-pointer-sign -MT pinentry-curses.o -MD -MP -MF .deps/pinentry-curses.Tpo -c -o pinentry-curses.o pinentry-curses.c
pinentry.c: In function 'pinentry_utf8_to_local':
pinentry.c:133: warning: passing argument 2 of 'libiconv' from incompatible pointer type
pinentry.c: In function 'pinentry_local_to_utf8':
pinentry.c:199: warning: passing argument 2 of 'libiconv' from incompatible pointer type
pinentry-curses.c: In function 'dialog_run':
pinentry-curses.c:646: warning: passing argument 1 of 'newterm' discards qualifiers from pointer target type
mv -f .deps/pinentry-curses.Tpo .deps/pinentry-curses.Po
rm -f libpinentry-curses.a
ar cru libpinentry-curses.a pinentry-curses.o 
ranlib libpinentry-curses.a
mv -f .deps/pinentry.Tpo .deps/pinentry.Po
rm -f libpinentry.a
ar cru libpinentry.a pinentry.o 
ranlib libpinentry.a
Making all in curses
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..  -I/opt/local/include/ncurses -I../pinentry -I/opt/local/include -Wall  -O2 -arch x86_64 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wno-pointer-sign -MT pinentry-curses.o -MD -MP -MF .deps/pinentry-curses.Tpo -c -o pinentry-curses.o pinentry-curses.c
mv -f .deps/pinentry-curses.Tpo .deps/pinentry-curses.Po
/usr/bin/gcc-4.2  -O2 -arch x86_64 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wno-pointer-sign  -L/opt/local/lib -o pinentry-curses pinentry-curses.o ../pinentry/libpinentry.a ../pinentry/libpinentry-curses.a ../assuan/libassuan.a ../secmem/libsecmem.a  -lncurses -liconv 
Making all in qt4
/usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I..  -I.. -I../assuan -I../secmem -I/opt/local/include/ncurses -I../pinentry -I/opt/local/include -Wall -I/Library/Frameworks/QtCore.framework/Headers   -I/Library/Frameworks/QtGui.framework/Headers   -O2 -arch x86_64 -MT pinentrydialog.o -MD -MP -MF .deps/pinentrydialog.Tpo -c -o pinentrydialog.o pinentrydialog.cpp
/usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I..  -I.. -I../assuan -I../secmem -I/opt/local/include/ncurses -I../pinentry -I/opt/local/include -Wall -I/Library/Frameworks/QtCore.framework/Headers   -I/Library/Frameworks/QtGui.framework/Headers   -O2 -arch x86_64 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
In file included from pinentrydialog.cpp:246:
pinentrydialog.moc:14:2: error: #error "This file was generated using the moc from 4.4.1. It"
pinentrydialog.moc:15:2: error: #error "cannot be used with the include files from this version of Qt."
pinentrydialog.moc:16:2: error: #error "(The moc has changed too much.)"
main.cpp: In function 'int main(int, char**)':
main.cpp:162: warning: deprecated conversion from string constant to 'char*'
mv -f .deps/main.Tpo .deps/main.Po
/usr/bin/g++-4.2 -DHAVE_CONFIG_H -I. -I..  -I.. -I../assuan -I../secmem -I/opt/local/include/ncurses -I../pinentry -I/opt/local/include -Wall -I/Library/Frameworks/QtCore.framework/Headers   -I/Library/Frameworks/QtGui.framework/Headers   -O2 -arch x86_64 -MT secstring.o -MD -MP -MF .deps/secstring.Tpo -c -o secstring.o secstring.cpp
make[2]: *** [pinentrydialog.o] Error 1
make[2]: *** Waiting for unfinished jobs....
secstring.cpp: In function 'secstring toUtf8(const secqstring&)':
secstring.cpp:71: warning: unused variable 'cursor'
mv -f .deps/secstring.Tpo .deps/secstring.Po
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_security_pinentry/work/pinentry-0.7.6" && /usr/bin/make -j2 all " returned error 2
Warning: the following items did not execute (for pinentry): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.

Need to add one more variant "qt4", and so add by default one more configure flag --disable-qt4

Change History (1)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed

This was taken care of via #25402.

Note: See TracTickets for help on using tickets.