undefined errors in qt lighthouse native client

205 views
Skip to first unread message

Pierre Chicoine

unread,
Apr 23, 2011, 1:49:18 AM4/23/11
to native client, Morten Sorvig
Morten

I've done a full compile with the patch of the Lighthouse version using Native Client. No real problems. 

When I compile my program though, I have several undefined errors that seem to relate to file access. I've removed everything I could think of that might access a file. QSettings, database access, QFile function and the like. I didn't remove the translate functions in the main form. Is that what is causing these undefined errors?

It's a small program I'm testing so as to place it on the net.

I'm hesitant about jumping into the Lighthouse code and removing everything that relates to a file without checking with you. Any ideas?

//////////////////////// link error from QtCreator window. Following that from the compile window as those seem a little bit more detailed:

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:119: error: undefined reference to `readlink'

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:495: error: undefined reference to `mkdir'

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:520: error: undefined reference to `rmdir'

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:535: error: undefined reference to `symlink'

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:563: error: undefined reference to `unlink'

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:599: error: undefined reference to `chmod'

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:638: error: undefined reference to `chdir'

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:655: error: undefined reference to `getcwd'

linkr.c:-1: error: undefined reference to `link'

/////////////////////////////////////////// from the compile window

Configuration unchanged, skipping qmake step.

Starting: "/usr/bin/make" -w

make: Entering directory `/home/pierre/UbookIndex-build-desktop'

nacl-g++ -Wl,-rpath,/home/pierre/lighthouse/lib -o UbookIndex main.o MainWindow.o DbRecordsets.o Database.o FillTree.o FillTreeItem.o StringManip.o Environment.o Settings.o moc_MainWindow.o moc_Database.o -L/home/pierre/lighthouse/lib -lQtSql -I/home/pierre/native_client/src/toolchain/linux_x86/sdk/nacl-sdk/lib -L/home/pierre/lighthouse/lib -I/home/pierre/native_client/src/toolchain/linux_x86/sdk/nacl-sdk/lib -I/home/pierre/native_client/src/toolchain/linux_x86/sdk/nacl-sdk/lib -lQtGui -I/home/pierre/native_client/src/toolchain/linux_x86/sdk/nacl-sdk/lib -I/home/pierre/native_client/src/toolchain/linux_x86/sdk/nacl-sdk/lib -I/home/pierre/native_client/src/toolchain/linux_x86/sdk/nacl-sdk/lib -lQtCore -I/home/pierre/native_client/src/toolchain/linux_x86/sdk/nacl-sdk/lib -lm -lpthread

/home/pierre/lighthouse/lib/libQtCore.a(qfilesystemengine_unix.o): In function `QFileSystemEngine::getLinkTarget(QFileSystemEntry const&, QFileSystemMetaData&)':

make: Leaving directory `/home/pierre/UbookIndex-build-desktop'

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:119: undefined reference to `readlink'

/home/pierre/lighthouse/lib/libQtCore.a(qfilesystemengine_unix.o): In function `QFileSystemEngine::createDirectory(QFileSystemEntry const&, bool)':

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:495: undefined reference to `mkdir'

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:506: undefined reference to `mkdir'

/home/pierre/lighthouse/lib/libQtCore.a(qfilesystemengine_unix.o): In function `QFileSystemEngine::removeDirectory(QFileSystemEntry const&, bool)':

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:520: undefined reference to `rmdir'

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:529: undefined reference to `rmdir'

/home/pierre/lighthouse/lib/libQtCore.a(qfilesystemengine_unix.o): In function `QFileSystemEngine::createLink(QFileSystemEntry const&, QFileSystemEntry const&, QSystemError&)':

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:535: undefined reference to `symlink'

/home/pierre/lighthouse/lib/libQtCore.a(qfilesystemengine_unix.o): In function `QFileSystemEngine::removeFile(QFileSystemEntry const&, QSystemError&)':

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:563: undefined reference to `unlink'

/home/pierre/lighthouse/lib/libQtCore.a(qfilesystemengine_unix.o): In function `QFileSystemEngine::setPermissions(QFileSystemEntry const&, QFlags<QFile::Permission>, QSystemError&, QFileSystemMetaData*)':

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:599: undefined reference to `chmod'

/home/pierre/lighthouse/lib/libQtCore.a(qfilesystemengine_unix.o): In function `QFileSystemEngine::setCurrentPath(QFileSystemEntry const&)':

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:638: undefined reference to `chdir'

/home/pierre/lighthouse/lib/libQtCore.a(qfilesystemengine_unix.o): In function `QFileSystemEngine::currentPath()':

/home/pierre/lighthouse/src/corelib/io/qfilesystemengine_unix.cpp:655: undefined reference to `getcwd'

/home/pierre/native_client/toolchain/linux_x86/bin/../lib/gcc/nacl64/4.4.3/../../../../nacl64/lib/../lib32/libc.a(lib_a-unlinkr.o): In function `_unlink_r':

unlinkr.c:(.text+0x1c): undefined reference to `unlink'

/home/pierre/native_client/toolchain/linux_x86/bin/../lib/gcc/nacl64/4.4.3/../../../../nacl64/lib/../lib32/libc.a(lib_a-linkr.o): In function `_link_r':

linkr.c:(.text+0x3c): undefined reference to `link'

collect2: ld returned 1 exit status

make: *** [UbookIndex] Error 1

The process "/usr/bin/make" exited with code 2.

Error while building project UbookIndex (target: Desktop)

When executing build step 'Make'


Thanks

Pierre

David Springer

unread,
Apr 23, 2011, 10:55:26 AM4/23/11
to native-cli...@googlegroups.com
Pierre,

Try linking with -lnosys.

--
You received this message because you are subscribed to the Google Groups "Native-Client-Discuss" group.
To post to this group, send email to native-cli...@googlegroups.com.
To unsubscribe from this group, send email to native-client-di...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/native-client-discuss?hl=en.

Pierre Chicoine

unread,
Apr 23, 2011, 11:36:51 AM4/23/11
to native-cli...@googlegroups.com
Thanks. I'll try that.

I'm having the same problem with Morten's Wiggly test so I've obviously done something wrong with the lighthouse compile. 

I'll be diligent and run different tests, obviously something I'm doing wrong here.

Pierre


--- On Sat, 4/23/11, David Springer <dspr...@chromium.org> wrote:
Reply all
Reply to author
Forward
0 new messages