Re: path allocation failure in make of

From: "Florian Pflug" <fgp(at)phlo(dot)org>
To: "OpenMacNews" <OpenMacNews(at)speakeasy(dot)net>
Cc: "pgadmin-hackers" <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: path allocation failure in make of
Date: 2005-05-10 11:16:13
Message-ID: 32790.193.170.75.125.1115723773.squirrel@mail.office.solution-x.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

On Mon, May 9, 2005 18:01, OpenMacNews said:
> hi all,
>
> after de-fubar'ing my firewall for svn:// access (Thx Dave!), i've been
> catching up on trying to get pgadmin3 built on OSX 10.4.
>
> note that wxWidgets 2.6.0 does not build on 10.4 without patching, and
> even
> then i'm seeing some issues. further, it seems that 'corrective efforts'
> are
> going primarily into cvs ... soooooo, it's wxwidgets-CVS only for me.
Hm.. are you using gcc 3.3 or gcc 4.0?

-I/usr/local/wxWidgets-cvs-STAT/lib/wx/include/mac-unicode-release-static-2
> .6 -I/usr/local/wxWidgets-cvs-STAT/include/wx-2.6 -D__WXMAC__
> -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA
> -I/usr/local/wxWidgets-cvs-STAT/include/wx-2.6 -no-cpp-precomp
> -fno-rtti
> -Wall -g -I../src/include -I../src/agent/include
> -I../src/slony/include
> -Wall -g -O0 -MT appbase.o -MD -MP -MF ".deps/appbase.Tpo" -c -o
> appbase.o
> `test -f './base/appbase.cpp' || echo './'`./base/appbase.cpp; \
> then mv -f ".deps/appbase.Tpo" ".deps/appbase.Po"; else rm -f
> ".deps/appbase.Tpo"; exit 1; fi
> ./base/appbase.cpp: In member function `void pgAppBase::InitPaths()':
> ./base/appbase.cpp:76: error: 'path' was not declared in this scope
> ./base/appbase.cpp:78: error: 'path' was not declared in this scope
> make[2]: *** [appbase.o] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> which is referring the to snippet in ./src/base/appbase.cpp:
> #if defined(__WXMAC__)M
>
> //When using wxStandardPaths on OSX, wx defaults to the unix,
> //not to the mac variants. Therefor, we request wxStandardPathsCF
> //directly.
> wxStandardPathsCF stdPaths ;
> dataDir = stdPaths.GetDataDir() ;
>
> 75 if (wxDir::Exists(dataDir + HELPER_DIR))
> 76 path.Add(dataDir + HELPER_DIR) ;
> 77 if (wxDir::Exists(dataDir + SCRIPT_DIR))
> path.Add(dataDir + SCRIPT_DIR) ;
>
> #else // other *ixes
This certainly is wrong - path is undeclared here.
Before the "Great Shuffling", path was declare
for all architectures, and used to
locale the slony-sql-scripts, and pg_dump.

If you just remove the two if-statements, it should
compile again - but I don't guarantee that it will run ;-)

I'll take a closer look, and report back.

greetings, Florian Pflug

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Gino Lucrezi 2005-05-10 11:17:09 pgAdmin 1.2.1 doesn't display comments on constraints
Previous Message Dave Page 2005-05-10 10:39:55 Re: A strange frame(Windows-XP)