Rich Shepard wrote:

> I need some help in figuring out what went wrong here. Yesterday,
> I upgraded to qt-3.3.1 so I could build Scribus on my RH 7.3 box.
> So, this morning as I tried to build lyx-1.3.4, I used the 
> following configuration options:

>   I thought that the missing QSizePolicy _was_ in qt-3.3.1. That's
>   why I'm stymied.

Looking at the Qt 3.2.1 sources, it is defined inline:

    QSizePolicy( SizeType hor, SizeType ver, bool hfw = FALSE )
        : data( hor | (ver<<HSize) | (hfw ? (Q_UINT32)(1<<2*HSize) : 0) ) { }

so it should just be optimized away. 

Certainly, here, there is no such symbol in libqt.so.

$ nm -C /usr/lib/qt3/lib/libqt.so | grep QSizePolicy
001df1a0 T QSpacerItem::changeSize(int, int, QSizePolicy::SizeType, 
QSizePolicy::SizeType)
00270ca0 T QWidget::setSizePolicy(QSizePolicy)
00275350 T QVariant::QVariant[in-charge](QSizePolicy)
002752f0 T QVariant::QVariant[not-in-charge](QSizePolicy)

Or indeed in the Qt lyx executable:
$ nm -C lyx/devel/build/src/lyx-qt | grep QSizePolicy
         U QWidget::setSizePolicy(QSizePolicy)

$ nm -C lyx/13x/build-qt/src/lyx | grep QSizePolicy
         U QWidget::setSizePolicy(QSizePolicy)

So, my initial assumption is that you've hit a compiler bug.

What happens if you cheat and add the above definition to one
of your src files?

-- 

Reply via email to