Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296149 - dev-db/pgadmin3-1.10.1 fails to emerge
Summary: dev-db/pgadmin3-1.10.1 fails to emerge
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-08 01:57 UTC by a_tevelev
Modified: 2011-04-07 05:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,3.83 KB, text/plain)
2009-12-08 01:57 UTC, a_tevelev
Details
config.log for failed pgadmin3 build (config.log,24.82 KB, text/plain)
2010-01-08 18:22 UTC, Bob Johnson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description a_tevelev 2009-12-08 01:57:16 UTC
# emerge -uv1ND dev-db/pgadmin3

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] dev-db/pgadmin3-1.10.1 [1.10.0] USE="-debug" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

...

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..   -I/usr/include/postgresql/libpq-4 -DSSL -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -O2 -DEMBED_XRC -I/usr/include/libxml2 -I/usr/include/libxml2 -DDATA_DIR=\"/usr/share/pgadmin3/\" -Wall -Wno-non-virtual-dtor -fno-strict-aliasing -I../pgadmin/include   -MT dlgSchedule.o -MD -MP -MF .deps/dlgSchedule.Tpo -c -o dlgSchedule.o `test -f './agent/dlgSchedule.cpp' || echo './'`./agent/dlgSchedule.cpp                                                                                                       
In file included from ../pgadmin/include/ctl/ctlSQLBox.h:20,                                                                                                 
                 from ../pgadmin/include/pgAdmin3.h:23,                                                                                                      
                 from ./agent/dlgSchedule.cpp:12:                                                                                                            
../pgadmin/include/db/pgConn.h: In static member function ‘static bool pgConn::IsValidServerEncoding(int)’:                                                  
../pgadmin/include/db/pgConn.h:104: error: ‘pg_valid_server_encoding_id’ was not declared in this scope                                                      
In file included from ../pgadmin/include/ctl/ctlSQLBox.h:20,                                                                                                 
                 from ../pgadmin/include/pgAdmin3.h:23,                                                                                                      
                 from ./agent/dlgJob.cpp:14:                                                                                                                 
../pgadmin/include/db/pgConn.h: In static member function ‘static bool pgConn::IsValidServerEncoding(int)’:                                                  
../pgadmin/include/db/pgConn.h:104: error: ‘pg_valid_server_encoding_id’ was not declared in this scope                                                      
make[2]: *** [dlgSchedule.o] Error 1                                                                                                                         
make[2]: *** Waiting for unfinished jobs....                                                                                                                 
In file included from ../pgadmin/include/ctl/ctlSQLBox.h:20,                                                                                                 
                 from ../pgadmin/include/pgAdmin3.h:23,                                                                                                      
                 from ./pgAdmin3.cpp:13:                                                                                                                     
../pgadmin/include/db/pgConn.h: In static member function ‘static bool pgConn::IsValidServerEncoding(int)’:                                                  
../pgadmin/include/db/pgConn.h:104: error: ‘pg_valid_server_encoding_id’ was not declared in this scope                                                      
make[2]: *** [dlgJob.o] Error 1                                                                                                                              
make[2]: *** [pgAdmin3.o] Error 1                                                                                                                            
make[2]: Leaving directory `/tmp/portage/dev-db/pgadmin3-1.10.1/work/pgadmin3-1.10.1/pgadmin'                                                                
make[1]: *** [all-recursive] Error 1                                                                                                                         
make[1]: Leaving directory `/tmp/portage/dev-db/pgadmin3-1.10.1/work/pgadmin3-1.10.1'                                                                        
make: *** [all] Error 2                                                                                                                                      
 *                                                                                                                                                           
 * ERROR: dev-db/pgadmin3-1.10.1 failed.                                                                                                                     
 * Call stack:                                                                                                                                               
 *               ebuild.sh, line   49:  Called src_compile                                                                                                   
 *             environment, line 2926:  Called die                                                                                                           
 * The specific snippet of code:                                                                                                                             
 *       emake || die "emake failed"                                                                                                                         
 *  The die message:                                                                                                                                         
 *   emake failed                                                                                                                                            
 *                                                                                                                                                           
 * If you need support, post the topmost build error, and the call stack if relevant.                                                                        
 * A complete build log is located at '/tmp/portage/dev-db/pgadmin3-1.10.1/temp/build.log'.                                                                  
 * The ebuild environment file is located at '/tmp/portage/dev-db/pgadmin3-1.10.1/temp/environment'.
Comment 1 a_tevelev 2009-12-08 01:57:58 UTC
Created attachment 212427 [details]
emerge --info
Comment 2 Rafał Mużyło 2009-12-08 02:47:59 UTC
You are mixing stable and unstable.
Though, this still may be a valid bug.
What versions of postgresql do you have installed ?
Comment 3 a_tevelev 2009-12-08 03:08:28 UTC
Installed packages:

~ $ equery l gresql
[ Searching for package 'gresql' in all categories among: ]
 * installed packages
[I--] [ ~] dev-db/postgresql-8.2.14 (0)
[I--] [ ~] dev-db/postgresql-docs-8.2.14 (8.2)
[I--] [ ~] dev-db/postgresql-docs-8.4.1 (8.4)
[I--] [  ] dev-java/jdbc-postgresql-8.3_p605 (0)
[I--] [ ~] virtual/postgresql-base-8.2 (8.2)
Comment 4 Rafał Mużyło 2009-12-08 04:37:29 UTC
This should be defined in libpq-fe.h.
It is in postgresql-8.4 (not sure about 8.3)
(but probably adding a version dep would be good)
Comment 5 a_tevelev 2009-12-08 05:28:56 UTC
Yes, there is /usr/include/postgresql/libpq-4/libpq-fe.h. But I am not sure what I should be looking at?
Comment 6 Rafał Mużyło 2009-12-08 12:00:21 UTC
pg_valid_server_encoding_id, of course.
Comment 7 a_tevelev 2009-12-08 13:14:18 UTC
Well, it doesn't have it:

# grep -i pg_valid_server_encoding_id /usr/include/postgresql/libpq-fe.h
#
Comment 8 Tom Hendrikx 2009-12-11 00:13:50 UTC
I ran into this also. Stable =dev-db/libpq-8.1.11 does not have any reference to pg_valid_server_encoding_id, so please add a least version dependency. Marking virtual/postgresql-base and deps as ~x86 pulled in 8.4.1, so I can't say anything about postgres 8.3
Comment 9 Bob Johnson 2010-01-08 18:22:20 UTC
Created attachment 215699 [details]
config.log for failed pgadmin3 build
Comment 10 Bob Johnson 2010-01-08 18:24:12 UTC
As a stable x86 user, I'll add that the recent stabilization of postgresql to 8.4.2 has now broken both the stable (currently 1.8.2) and keyworded (1.10.1) versions of pgadmin3. Both die with an inability to find pg_config:

checking for strchr... yes                                                      
checking for pg_config... no                                                    
configure: error: Could not find your PostgreSQL installation. You might need to use the --with-pgsql=DIR configure option                                      

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-db/pgadmin3-1.10.1/work/pgadmin3-1.10.1/config.log
 *                                                                         
 * ERROR: dev-db/pgadmin3-1.10.1 failed.                                   
 * Call stack:                                                             
 *               ebuild.sh, line   49:  Called src_compile                 
 *             environment, line 2863:  Called econf '--with-wx-version=2.8' '--disable-debug'                                                                  
 *               ebuild.sh, line  534:  Called die                              
 * The specific snippet of code:                                                
 *                      die "econf failed"                                      
 *  The die message:                                                            
 *   econf failed                                                               
 *                                                                              
 * If you need support, post the topmost build error, and the call stack if relevant. 

                                                                      
Comment 11 Aaron W. Swenson gentoo-dev 2010-03-26 11:38:48 UTC
Please check if the problem persists when using dev-db/postgresql-server. (8.4.3 is currently stable upstream and the ebuild is in the tree keyword masked.)
Comment 12 Patrick Lauer gentoo-dev 2010-07-05 20:03:56 UTC
Should be fixed with current in-tree ebuilds
Comment 13 Talamona Francesco 2011-02-10 12:50:42 UTC
I was experiencing this problem even if it is marked as resolved, and even with several versions of postgres installed.

The fix is easy, my computer was using an old postgres version

eselect  postgresql list
Available postgresql installations
  8.1 <-* <-S                base-8.1.22 server-8.1.22
  8.2                        base-8.2.18 server-8.2.18
  8.3                        base-8.3.12 server-8.3.12
  8.4                        base-8.4.5 server-8.4.5
  9.0                        base-9.0.1 server-9.0.1

So, after a

eselect  postgresql set 9.0

it is possible to upgrade >=pgadmin3-1.10.2
Hope this helps someone else.
Comment 14 Weonbin 2011-04-07 05:39:35 UTC
Happened to me with postgresql 8.4.6 while trying to install pgadmin3-1.12.2
Although "eselect postgresql list" was showing that 8.4 was selected (and the only install), doing an "eselect postgresql set 8.4" fixed it