Closed Bug 349235 Opened 20 years ago Closed 18 years ago

undefined reference to `XRE_LockProfileDirectory'

Categories

(Minimo Graveyard :: Build Config, defect)

WinCE
x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: lucasvr, Assigned: dougt)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051107 Firefox/1.0.7 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051107 Firefox/1.0.7 When compiling Minimo for the x86, 'make' fails at link time, being unable to reference XRE_LockProfileDirectory, XRE_LockProfileDirectory, XRE_TermEmbedding and XRE_InitEmbedding symbols. The problem, however, was fixed in a strange way. If libxulapp_s is moved from SHARED_LIBRARY_LIBS to EXTRA_DSO_LDOPTS, the build is finished successfully. I suspect that might be a compiler problem, but I'm not sure of that. I'm using GCC 4.1.1, Make 3.80 and BinUtils 2.16. Reproducible: Always Steps to Reproduce: 1. Environment variables at compile time are the following ones: MOZCONFIG=$dir/minimo-cc-opt.mozconfig GTK_CONFIG="`which pkg-config` $goboLibraries/pkgconfig/gtk+-2.0.pc" GLIB_CONFIG="`which pkg-config` $goboLibraries/pkgconfig/glib-2.0.pc" LIBIDL_CONFIG="$goboExecutables/libIDL-config-2" HOST_LIBIDL_CONFIG=`which libIDL-config-2` $goboLibraries and $goboExecutables are just the same as /bin and /lib on standard distributions. 2. Configure flags used: --enable-application=minimo --with-embedding-profile=basic --disable-official-branding --enable-default-toolkit=gtk2 --disable-gtktest --disable-freetype2 --enable-xft --disable-xul --disable-profilesharing --disable-profilelocking --enable-single-profile --disable-accessibility --disable-composer --enable-plaintext-editor-only --disable-mailnews --disable-ldap --disable-postscript --disable-mathml --disable-jsd --disable-jsloader --disable-installer --disable-xpinstall --disable-xpfe-components --disable-xprint --disable-printing --disable-necko-disk-cache --disable-gnomevfs --disable-gnomeui --disable-xpcom-obsolete --disable-xpcom-fastload --disable-updater --disable-static --disable-js-static-build --disable-javaxpcom --disable-xpconnect-idispatch --disable-rdf --enable-necko-small-buffers --disable-dtd-debug --disable-logging --disable-tests --disable-crypto --enable-necko-protocols=http,file,res,jar --enable-image-decoders=png,gif,jpeg --enable-optimize=-Os --enable-strip --disable-debug --enable-reorder --enable-elf-dynstr-gc 3. Ran 'make -f client.mk build'. Since I'm calling configure by hand, I've disabled the 2nd call to configure at client.mk again, at line 1003 on today's cvs snapshot. Actual Results: make[1]: Entering directory `/Files/Compile/Sources/mozilla/toolkit/library' rm -f libxul.so c++ -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -O2 -march=i686 -fomit-frame-pointer -pipe -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -Os-fPIC -shared -Wl,-z,defs -Wl,-h,libxul.so -o libxul.so -lpthread -Wl,--whole-archive ../../embedding/browser/gtk/src/libgtkembedmoz.a -Wl,--no-whole-archive -L../../dist/bin -lxpcom_core -L../../dist/bin -L../../dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -L../../dist/bin -lmozjs -L../../dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lX11 -L/Programs/Xorg/7.0/lib -L/Programs/Fontconfig/2.3.2/lib -L/Programs/FreeType/2.1.10/lib -lXft -lXrender -lfontconfig -lfreetype -lz -lX11 -L/Programs/GTK+/2.6.0/lib -L/Programs/ATK/1.10.3/lib -L/Programs/Pango/1.8.0/lib -L/Programs/GLib/2.8.1/lib -lgtk-x11-2.0 -latk-1.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgmodule-2.0 -ldl -lgobject-2.0 -lglib-2.0 -lXt -L/Programs/FreeType/2.1.10/lib -Wl,--rpath -Wl,/Programs/FreeType/2.1.10/lib -lfreetype -lz -ldl -lm ../../embedding/browser/gtk/src/libgtkembedmoz.a(EmbedPrivate.o)(.text+0x389): In function `EmbedPrivate::SetProfilePath(char const*, char const*)': : undefined reference to `XRE_LockProfileDirectory' ../../embedding/browser/gtk/src/libgtkembedmoz.a(EmbedPrivate.o)(.text+0x39f): In function `EmbedPrivate::SetProfilePath(char const*, char const*)': : undefined reference to `XRE_NotifyProfile' ../../embedding/browser/gtk/src/libgtkembedmoz.a(EmbedPrivate.o)(.text+0x52f): In function `EmbedPrivate::PopStartup()': : undefined reference to `XRE_TermEmbedding' ../../embedding/browser/gtk/src/libgtkembedmoz.a(EmbedPrivate.o)(.text+0x16e6): In function `EmbedPrivate::PushStartup()': : undefined reference to `XRE_InitEmbedding' ../../embedding/browser/gtk/src/libgtkembedmoz.a(EmbedPrivate.o)(.text+0x16fd): In function `EmbedPrivate::PushStartup()': : undefined reference to `XRE_NotifyProfile' collect2: ld returned 1 exit status make[1]: *** [libxul.so] Error 1 make[1]: Leaving directory `/Files/Compile/Sources/mozilla/toolkit/library' make: *** [all] Error 2
Patch against today's cvs snapshot.
enable-application=minimo is not supported any longer.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: