On 11/07/11 00:54, Marc Espie wrote:
> On Mon, Nov 07, 2011 at 12:45:20AM +0000, Nigel Taylor wrote:
>> On 11/06/11 12:44, Marc Espie wrote:
>>> CVSROOT:    /cvs
>>> Module name:        ports
>>> Changes by: es...@cvs.openbsd.org   2011/11/06 05:44:04
>>>
>>> Modified files:
>>>     x11/qt4        : Makefile 
>>>     x11/qt4/patches: patch-qmake_generators_unix_unixmake2_cpp 
>>>     x11/qt4/pkg    : DESCR-main DESCR-phonon PFRAG.shared-phonon 
>>>                      PLIST-main PLIST-phonon 
>>>
>>> Log message:
>>> tweak to create correct .la files for the qt libraries, and install them.
>>> after a few iterations to fix various builds such as bacula.
>>> work from Vadim Zhukov
>>>
>>>
>> Hi,
>>
>> Guess this might be related, run on amd64 current, these used to work. dpb 
>> error reported for these...
> 
> Nope. Something else must have happened. I have built bacula with that patch.
> 
> 

The error is with this using qt4-4.7.4p1 built 6 Nov...

g++ -c -pipe -O2 -fno-wrapv  -g -pthread -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB 
-DQT_SHARED -I/usr/local/lib/qt4/mkspecs/openbsd-g++4 -I. 
-I/usr/local/include/X11/qt4/QtCore -I/usr/local/include/X11/qt4 /QtGui 
-I/usr/local/include/X11/qt4 -I.. -I. -Iconsole -Irestore -Iselect -Imoc -Iui 
-I/usr/local/include -o obj/qrc_main.o qrc_main.cpp 
/usr/ports/infrastructure/bin/libtool  --silent --tag=CXX --mode=link g++ 
-pthread -o bat obj/main.o obj/bat_conf.o obj/mainwin.o obj/qstd.o obj/pages.o 
obj/dircomm.o obj/dircomm_auth.o obj/console.o  obj/prerestore.o obj/restore.o 
obj/brestore.o obj/label.o obj/relabel.o obj/mount.o obj/run.o obj/runcmd.o 
obj/estimate.o obj/prune.o obj/select.o obj/textinput.o obj/medialist.o 
obj/mediaview.o obj /mediaedit.o obj/joblist.o obj/clients.o obj/storage.o 
obj/content.o obj/fileset.o obj/joblog.o obj/job.o obj/jobs.o obj/restoretree.o 
obj/help.o obj/mediainfo.o obj/dirstat.o obj/clientstat.o obj/storstat.o 
obj/fmtwidgetitem.o obj/comboutil.o obj/moc_mainwin.o obj/moc_dircomm.o 
obj/moc_console.o obj/moc_restore.o obj/moc_label.o obj/moc_relabel.o 
obj/moc_mount.o obj/moc_run.o obj/moc_select.o obj/moc_textinput.o 
obj/moc_medialist.o obj/moc_mediaview.o obj/moc_mediaedit.o obj/moc_joblist.o 
obj/moc_clients.o obj/moc_storage.o obj/moc_content.o obj/moc_fileset.o 
obj/moc_joblog.o obj/mo
c_job.o obj/moc_jobs.o obj/moc_restoretree.o obj/moc_help.o obj/moc_mediainfo.o 
obj/moc_dirstat.o obj/moc_clientstat.o obj/moc_storstat.o obj/qrc_main.o    
-L/usr/local/lib -L/usr/local/lib/qt4 -L../lib -lbaccfg -lbac -lssl -lcrypto 
-lQtGui -L/usr/local/lib/qt4 -L/usr/X11R6/lib -L/usr/local/lib/mysql 
-L/usr/local/lib -L/usr/X11R6/lib -lQtCore 
obj/main.o(.text+0x49a): In function `main':
/usr/ports/pobj/bacula-5.0.2-sqlite3/bacula-5.0.2/src/qt-console/main.cpp:109: 
warning: strcpy() is almost always misused, please use strlcpy()
.libs/libbaccfg.so.1.0: warning: sprintf() is often misused, please use 
snprintf()
.libs/libbac.so.1.0: warning: strcat() is almost always misused, please use 
strlcat()
/usr/local/lib/libglib-2.0.so.2992.0: warning: vsprintf() is often misused, 
please use vsnprintf()
/usr/bin/ld: warning: libfreetype.so.18.0, needed by .libs/libQtGui.so.10.0, 
not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libSM.so.8.0, needed by .libs/libQtGui.so.10.0, not found 
(try using -rpath or -rpath-link)
/usr/bin/ld: warning: libICE.so.9.0, needed by .libs/libQtGui.so.10.0, not 
found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libXi.so.11.0, needed by .libs/libQtGui.so.10.0, not 
found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libXrender.so.5.0, needed by .libs/libQtGui.so.10.0, not 
found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libXinerama.so.5.0, needed by .libs/libQtGui.so.10.0, not 
found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libfontconfig.so.7.0, needed by .libs/libQtGui.so.10.0, 
not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libXext.so.12.0, needed by .libs/libQtGui.so.10.0, not 
found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libX11.so.15.0, needed by .libs/libQtGui.so.10.0, not 
found (try using -rpath or -rpath-link)
.libs/libQtGui.so.10.0: undefined reference to `XFreePixmap'
.libs/libQtGui.so.10.0: undefined reference to `XSetInputFocus'
.libs/libQtGui.so.10.0: undefined reference to `XSetWMProtocols'
.libs/libQtGui.so.10.0: undefined reference to `XSetWMIconName'
.libs/libQtGui.so.10.0: undefined reference to `FcPatternAddLangSet'
.libs/libQtGui.so.10.0: undefined reference to `XShmDetach'


With qt4-4.7.4p0 I don't get the error, built 3 Nov..

g++ -c -pipe -O2 -fno-wrapv  -g -pthread -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB 
-DQT_SHARED -I/usr/local/lib/qt4/mkspecs/openbsd-g++4 -I. 
-I/usr/local/include/X11/qt4/QtCore -I/usr/local/include/X11/qt4/QtGui 
-I/usr/local/include/X11/qt4 -I.. -I. -Iconsole -Irestore -Iselect -Imoc -Iui 
-I/usr/local/include -o obj/qrc_main.o qrc_main.cpp
/usr/ports/infrastructure/bin/libtool  --silent --tag=CXX --mode=link g++ 
-pthread -o bat obj/main.o obj/bat_conf.o obj/mainwin.o obj/qstd.o obj/pages.o 
obj/dircomm.o obj/dircomm_auth.o obj/console.o obj/prerestore.o obj/restore.o 
obj/brestore.o obj/label.o obj/relabel.o obj/mount.o obj/run.o obj/runcmd.o 
obj/estimate.o obj/prune.o obj/select.o obj/textinput.o obj/medialist.o 
obj/mediaview.o obj/mediaedit.o obj/joblist.o obj/clients.o obj/storage.o 
obj/content.o obj/fileset.o obj/joblog.o obj/job.o obj/jobs.o obj/restoretree.o 
obj/help.o obj/mediainfo.o obj/dirstat.o obj/clientstat.o obj/storstat.o 
obj/fmtwidgetitem.o obj/comboutil.o obj/moc_mainwin.o obj/moc_dircomm.o 
obj/moc_console.o obj/moc_restore.o obj/moc_label.o obj/moc_relabel.o 
obj/moc_mount.o obj/moc_run.o obj/moc_select.o obj/moc_textinput.o 
obj/moc_medialist.o obj/moc_mediaview.o obj/moc_mediaedit.o obj/moc_joblist.o 
obj/moc_clients.o obj/moc_storage.o obj/moc_content.o obj/moc_fileset.o 
obj/moc_joblog.o obj/moc_
job.o obj/moc_jobs.o obj/moc_restoretree.o obj/moc_help.o obj/moc_mediainfo.o 
obj/moc_dirstat.o obj/moc_clientstat.o obj/moc_storstat.o obj/qrc_main.o    
-L/usr/local/lib -L/usr/local/lib/qt4 -L../lib -lbaccfg -lbac -lssl -lcrypto 
-lQtGui -L/usr/local/lib/qt4 -L/usr/X11R6/lib -L/usr/local/lib/mysql 
-L/usr/local/lib -L/usr/X11R6/lib -lQtCore 
.libs/libglib-2.0.so.2992.0: warning: vsprintf() is often misused, please use 
vsnprintf()
obj/main.o(.text+0x49a): In function `main':
/usr/ports/pobj/bacula-5.0.2-sqlite3/bacula-5.0.2/src/qt-console/main.cpp:109: 
warning: strcpy() is almost always misused, please use strlcpy()
.libs/libbaccfg.so.1.0: warning: sprintf() is often misused, please use 
snprintf()
.libs/libbac.so.1.0: warning: strcat() is almost always misused, please use 
strlcat()
gmake[1]: Leaving directory 
`/usr/ports/pobj/bacula-5.0.2-sqlite3/bacula-5.0.2/src/qt-console'
==>Entering directory 
/usr/ports/pobj/bacula-5.0.2-sqlite3/bacula-5.0.2/src/console
gmake[1]: Entering directory 
`/usr/ports/pobj/bacula-5.0.2-sqlite3/bacula-5.0.2/src/console'
Compiling console.c

Both package built using same kernel/userland/xenocara built from CVS on 3rd 
Nov, two exceptions are the update to m4 has been installed and mandoc.

One difference there is a /usr/local/lib/qt4/libQtGui.la file for qt4-4.7.4p1

If I install qt4-4.7.4p1 and do this
$ sudo mv /usr/local/lib/qt4/libQtGui.la{,.old}
$ sudo mv /usr/local/lib/qt4/libQtCore.la{,.old}

Then it builds past the error. 
I can't see many other possible causes for the problem but this change.

Reply via email to