Open Bug 347733 Opened 18 years ago Updated 2 years ago

msie tridentprofile importer doesn't build on linux

Categories

(Toolkit :: Startup and Profile System, defect)

x86
Linux
defect

Tracking

()

People

(Reporter: romaxa, Unassigned)

Details

Attachments

(1 file)

Yes, we know this is not quite sensible. but the code at least *thinks* about doing this and so, it should either think *harder* or less hard.

romaxa@romaxa-sr:/home/work/xulrunner/maemo-browser/build-tree/mozilla/debug-i686-pc-linux-gnu/extensions/tridentprofile$ make -s
nsTridentProfileMigrator.o: In function `nsTridentProfileMigrator::MigrateTridentProfile(unsigned int)':
/home/work/xulrunner/maemo-browser/build-tree/mozilla-cvs-20060803.0/extensions/tridentprofile/src/nsTridentProfileMigrator.cpp:69: undefined reference to `MakeTridentPreferences()'
collect2: ld returned 1 exit status
make[2]: *** [libtridentprofile.so] Error 1
make[1]: *** [libs] Error 2
make: *** [all] Error 2
romaxa@romaxa-sr:/home/work/xulrunner/maemo-browser/build-tree/mozilla/debug-i686-pc-linux-gnu/extensions/tridentprofile$ ls src/
Makefile  nsModule.o  nsTridentProfileMigrator.o

This is of course because the makefile looks like this:

ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
CPPSRCS += nsTridentPreferencesWin.cpp
endif
Attachment #232528 - Flags: review?(mconnor)
Any reviews for this bug?
Assignee: nobody → romaxa
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 232528 [details] [diff] [review]
this will work most of the time

> nsTridentProfileMigrator::MigrateTridentProfile(PRUint32 aItems)
>+  nsTridentPreferences *pref;
>+#ifdef XP_WIN
>+  pref = MakeTridentPreferences();
you need:
 #else
    pref = nsnull
>+#endif
otherwise this accesses unintialized memory:
>   if (!pref)
>     return NS_ERROR_OUT_OF_MEMORY;
Attachment #232528 - Flags: review?(mconnor) → review-
Product: Firefox → Toolkit

The bug assignee didn't login in Bugzilla in the last 7 months.
:mossop, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: romaxa → nobody
Flags: needinfo?(dtownsend)
Flags: needinfo?(dtownsend)
Severity: trivial → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: