By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 871

Summary: Build issue: tdeadmin FTBFS Against TQt3
Product: TDE Reporter: Darrell <darrella>
Component: tdeadminAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: blocker CC: bugwatch, darrella, trin
Priority: P1    
Version: R14.0.0 [Trinity]   
Hardware: Other   
OS: Other   
Compiler Version: TDE Version String:
Application Version: Application Name:
Attachments: Build log failure for tdeamin/knetworkconf
Copy of knetworkconfdlg.cpp after build failure
Copy of knetworkconfdlg.h after build failure
Copy of knetworkconfdlg.moc after build failure
Potential fix

Description Darrell 2012-02-24 18:05:43 CST
Error:

In file included from knetworkconfdlg.cpp:11: knetworkconfdlg.h:142: error: TQListViewItem' has not been declared

tdeadmin builds without error against Qt3.
Comment 1 Darrell 2012-06-02 16:32:29 CDT
Here is a more appropriate build log output to help debug this bug:

/usr/bin/tmoc knetworkconfdlg.h -o knetworkconfdlg.moc
rm -f knetworkconfdlg.cpp
echo '#include <kdialog.h>' > knetworkconfdlg.cpp
echo '#include <klocale.h>' >> knetworkconfdlg.cpp
/usr/bin/uic-tqt -L /opt/trinity/lib/trinity/plugins/designer -nounload -tr tr2i18n -i knetworkconfdlg.h ./knetworkconfdlg.ui > knetworkconfdlg.cpp.temp ; ret=$?; \
	/usr/bin/perl -pe "s,tr2i18n( \"\" ),QString::null,g" knetworkconfdlg.cpp.temp | /usr/bin/perl -pe "s,tr2i18n( \"\"\, \"\" ),QString::null,g" | /usr/bin/perl -pe "s,image([0-9][0-9]*)_data,img\$1_knetworkconfdlg,g" | /usr/bin/perl -pe "s,: TQWizard\(,: KWizard(,g; s,: QWizard\(,: KWizard(,g;" >> knetworkconfdlg.cpp ;\
	rm -f knetworkconfdlg.cpp.temp ;\
	if test "$ret" = 0; then echo '#include "knetworkconfdlg.moc"' >> knetworkconfdlg.cpp; else rm -f knetworkconfdlg.cpp ; exit $ret ; fi
/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..  -I/opt/trinity/include -I. -include tqt.h  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i486 -mtune=i686 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -UQT_NO_COMPAT -MT knetworkconfdlg.lo -MD -MP -MF .deps/knetworkconfdlg.Tpo -c -o knetworkconfdlg.lo knetworkconfdlg.cpp
 g++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/trinity/include -I. -include tqt.h -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i486 -mtune=i686 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -UQT_NO_COMPAT -MT knetworkconfdlg.lo -MD -MP -MF .deps/knetworkconfdlg.Tpo -c knetworkconfdlg.cpp  -fPIC -DPIC -o .libs/knetworkconfdlg.o
In file included from knetworkconfdlg.cpp:11:
knetworkconfdlg.h:142: error: 'TQListViewItem' has not been declared
In file included from knetworkconfdlg.cpp:31:
./knetworkconfdlg.ui.h:153: error: prototype for 'void KNetworkConfDlg::updateProfileNameSlot(TQListViewItem*)' does not match any in class 'KNetworkConfDlg'
knetworkconfdlg.h:142: error: candidates are: virtual void KNetworkConfDlg::updateProfileNameSlot(int*)
./knetworkconfdlg.ui.h:147: error:                 virtual void KNetworkConfDlg::updateProfileNameSlot()
In file included from knetworkconfdlg.cpp:688:
knetworkconfdlg.moc: In member function 'virtual bool KNetworkConfDlg::tqt_invoke(int, TQUObject*)':
knetworkconfdlg.moc:171: error: no matching function for call to 'KNetworkConfDlg::updateProfileNameSlot(TQListViewItem*)'
./knetworkconfdlg.ui.h:147: note: candidates are: virtual void KNetworkConfDlg::updateProfileNameSlot()
knetworkconfdlg.h:142: note:                 virtual void KNetworkConfDlg::updateProfileNameSlot(int*)
make[3]: *** [knetworkconfdlg.lo] Error 1
make[3]: Leaving directory `/dev/shm/tdeadmin/knetworkconf/knetworkconf'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/dev/shm/tdeadmin/knetworkconf'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/dev/shm/tdeadmin'
make: *** [all] Error 2
Comment 2 Darrell 2012-06-04 12:31:14 CDT
Note: I have to use DO_NOT_COMPILE="knetworkconf" to build tdeadmin, which means KControl does not provide a "Network Settings" option.
Comment 3 Darrell 2012-06-09 00:20:55 CDT
Created attachment 649 [details]
Build log failure for tdeamin/knetworkconf

Tim,

Would you please look at this bug report? This is driving me bonkers. :-)

I'm trying everything I can fathom. Nothing gets past this build error except DO_NOT_COMPILE=networkconf.

I seem to be the only person who is experiencing this error.

Here are my configure options:

CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
  --prefix=${PREFIX} \
  --sysconfdir=${SYSCONFDIR} \
  --libdir=${LIBDIR} \
  --mandir=${MANDIR} \
  --with-qt-dir=${QTDIR} \
  --with-qt-includes=${QT_INCLUDE_DIR} \
  --with-qt-libraries=${QT_LIB_DIR} \
  --with-shadow \
  $DEBUG_AUTOTOOL_OPT \
  --enable-closure || exit 1

I'm attaching a full build log, with parallel processing disabled (NUMJOBS=-j1) for easier reading.

I'm building against TQt3 (I haven't built anything against Qt3 in a long time).

Please let me know what to try or test.
Comment 4 David C. Rankin 2012-06-12 11:20:22 CDT
6/12 - status,

  tdeadmin was built without error on x86_64 but this resulted in no Network Setting module in kcontrol. Here is a screenshot of kcontrol showing Internet & Network modules available:

http://www.3111skyline.com/dl/dt/trinity/ss/kcontrol-internet.jpg
Comment 5 Timothy Pearson 2012-06-12 12:45:44 CDT
I cannot replicate this problem.

Can you please attach these files from your build (after it fails)?
knetworkconfdlg.cpp
knetworkconfdlg.h
knetworkconfdlg.moc

Are you using out-of-source building or in-source building?
Comment 6 Darrell 2012-06-12 13:18:04 CDT
Created attachment 659 [details]
Copy of knetworkconfdlg.cpp after build failure
Comment 7 Darrell 2012-06-12 13:18:44 CDT
Created attachment 660 [details]
Copy of knetworkconfdlg.h after build failure
Comment 8 Darrell 2012-06-12 13:19:27 CDT
Created attachment 661 [details]
Copy of knetworkconfdlg.moc after build failure
Comment 9 Darrell 2012-06-12 13:25:13 CDT
I use out of source building for everything --- I think. For all of my builds I copy the sources from my GIT tree and build in that copied directory.

For cmake builds there are the extra steps of:

mkdir -p ${TMP}/${PRGNAM}.build
cd ${TMP}/${PRGNAM}.build

I don't do anything like that for automake builds. Just copy from the GIT tree and build in the copied directory.

tdeadmin is an automake build.
Comment 10 Timothy Pearson 2012-06-12 13:37:15 CDT
Created attachment 662 [details]
Potential fix

Try this patch to see if it at least gets you further along in the build process.  I don't see how my systems are even able to build this file with the magnitude of this error, but strange things can happen...
Comment 11 Darrell 2012-06-12 15:04:23 CDT
Patch allows building without incident. The Network Settings module is now present. Cursory testing indicates the module is functional.

Thank you! :-)

I say push the patch to GIT but we should wait for David's reply before closing the bug report as resolved.
Comment 12 Timothy Pearson 2012-06-12 15:14:41 CDT
Pushed to GIT in hash f2dde84.

Please mark as RESOLVED FIXED if testing confirms this solution.
Comment 13 Timothy Pearson 2012-06-25 22:40:43 CDT
Marking RESOLVED FIXED as the patch appears to be functional.