1.20.0 build error on Fedora 23 - Mailing list pgadmin-hackers

From Devrim GÜNDÜZ
Subject 1.20.0 build error on Fedora 23
Date
Msg-id 1447081666.24301.5.camel@gunduz.org
Whole thread Raw
Responses Re: 1.20.0 build error on Fedora 23
List pgadmin-hackers
Hi,

I'm getting the error below while trying to build pgadmin3 1.20.0 on
Fedora 23. All is

I am not a gcc expert, but adding -fPIC to CFLAGS did not help.

Any comments?

gcc -DHAVE_CONFIG_H -I. -I.. -I../pgadmin/include/libssh2  -DDATA_DIR=\"/usr/pgsql-9.5/share/pgadmin3/\"
-I../pgadmin/include-I../pgadmin/include/libssh2   -I/usr/pgsql-9.5/include -I/usr/pgsql-9.5/include/server
-I/usr/pgsql-9.5/include-DPG_SSL -DHAVE_CONNINFO_PARSE -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__ -DEMBED_XRC -I/usr/include/libxml2
-I/usr/include/libxml2-DHAVE_OPENSSL_CRYPTO  -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1-m64 -mtune=generic -fPIC -c -o libssh2/version.o libssh2/version.c 
g++  -O2  -L/usr/pgsql-9.5/lib -lkrb5 -Wl,-as-needed -L/usr/lib -o pgadmin3 pgAdmin3.o agent/dlgJob.o
agent/dlgSchedule.oagent/dlgStep.o agent/pgaJob.o agent/pgaSchedule.o agent/pgaStep.o ctl/calbox.o ctl/ctlAuiNotebook.o
ctl/ctlCheckTreeView.octl/ctlColourPicker.o ctl/ctlComboBox.o ctl/ctlListView.o ctl/ctlMenuToolbar.o ctl/ctlSQLBox.o
ctl/ctlSQLGrid.octl/ctlSQLResult.o ctl/ctlDefaultSecurityPanel.o ctl/ctlSeclabelPanel.o ctl/ctlSecurityPanel.o
ctl/ctlTree.octl/ctlProgressStatusBar.o ctl/explainCanvas.o ctl/explainShape.o ctl/timespin.o ctl/xh_calb.o
ctl/xh_ctlcolourpicker.octl/xh_ctlcombo.o ctl/xh_ctlchecktreeview.o ctl/xh_ctltree.o ctl/xh_sqlbox.o ctl/xh_timespin.o
db/keywords.odb/pgConn.o db/pgSet.o db/pgQueryThread.o dd/dditems/figures/ddColumnFigure.o
dd/dditems/figures/ddColumnKindIcon.odd/dditems/figures/ddColumnOptionIcon.o dd/dditems/figures/ddRelationshipFigure.o
dd/dditems/figures/ddRelationshipItem.odd/dditems/figures/ddRelationshipTerminal.o dd/dditems/figures/ddTableFigure.o
dd/dditems/figures/ddTextTableItemFigure.odd/dditems/figures/xml/ddXmlStorage.o
dd/dditems/handles/ddAddColButtonHandle.odd/dditems/handles/ddAddFkButtonHandle.o
dd/dditems/handles/ddMinMaxTableButtonHandle.odd/dditems/handles/ddRemoveTableButtonHandle.o
dd/dditems/handles/ddScrollBarHandle.odd/dditems/handles/ddSouthTableSizeHandle.o dd/dditems/locators/ddAddColLocator.o
dd/dditems/locators/ddAddFkLocator.odd/dditems/locators/ddMinMaxTableLocator.o
dd/dditems/locators/ddRemoveTableLocator.odd/dditems/locators/ddScrollBarTableLocator.o
dd/dditems/locators/ddTableBottomLocator.odd/dditems/tools/ddColumnFigureTool.o dd/dditems/tools/ddColumnTextTool.o
dd/dditems/utilities/ddPrecisionScaleDialog.odd/dditems/utilities/ddSelectKindFksDialog.o
dd/dditems/utilities/ddTableNameDialog.odd/ddmodel/ddDatabaseDesign.o dd/ddmodel/ddDrawingEditor.o
dd/ddmodel/ddDBReverseEnginering.odd/ddmodel/ddModelBrowser.o dd/ddmodel/ddGenerationWizard.o
dd/ddmodel/ddDrawingView.odd/ddmodel/ddBrowserDataContainer.o debugger/ctlMessageWindow.o debugger/ctlResultGrid.o
debugger/ctlStackWindow.odebugger/ctlTabWindow.o debugger/ctlVarWindow.o debugger/dbgBreakPoint.o
debugger/dbgController.odebugger/dbgEvents.o debugger/dbgModel.o debugger/dbgTargetInfo.o debugger/debugger.o
debugger/dlgDirectDbg.odebugger/frmDebugger.o dlg/dlgAddFavourite.o dlg/dlgAggregate.o dlg/dlgCast.o dlg/dlgClasses.o
dlg/dlgCheck.odlg/dlgCollation.o dlg/dlgColumn.o dlg/dlgConnect.o dlg/dlgConversion.o dlg/dlgDatabase.o dlg/dlgDomain.o
dlg/dlgEventTrigger.odlg/dlgExtension.o dlg/dlgEditGridOptions.o dlg/dlgFindReplace.o dlg/dlgForeignDataWrapper.o
dlg/dlgForeignKey.odlg/dlgForeignServer.o dlg/dlgForeignTable.o dlg/dlgFunction.o dlg/dlgGroup.o dlg/dlgHbaConfig.o
dlg/dlgIndex.odlg/dlgIndexConstraint.o dlg/dlgLanguage.o dlg/dlgMainConfig.o dlg/dlgManageFavourites.o
dlg/dlgMoveTablespace.odlg/dlgOperator.o dlg/dlgPackage.o dlg/dlgPgpassConfig.o dlg/dlgProperty.o
dlg/dlgReassignDropOwned.odlg/dlgRole.o dlg/dlgRule.o dlg/dlgSchema.o dlg/dlgSearchObject.o dlg/dlgSelectConnection.o
dlg/dlgSequence.odlg/dlgServer.o dlg/dlgSynonym.o dlg/dlgTable.o dlg/dlgTablespace.o dlg/dlgTextSearchConfiguration.o
dlg/dlgTextSearchDictionary.odlg/dlgTextSearchParser.o dlg/dlgTextSearchTemplate.o dlg/dlgTrigger.o dlg/dlgType.o
dlg/dlgUser.odlg/dlgUserMapping.o dlg/dlgView.o dlg/dlgManageMacros.o dlg/dlgExtTable.o dlg/dlgSelectDatabase.o
dlg/dlgResourceGroup.ofrm/events.o frm/frmAbout.o frm/frmBackup.o frm/frmBackupGlobals.o frm/frmBackupServer.o
frm/frmConfig.ofrm/frmDatabaseDesigner.o frm/frmEditGrid.o frm/frmExport.o frm/frmGrantWizard.o frm/frmHbaConfig.o
frm/frmHint.ofrm/frmImport.o frm/frmMain.o frm/frmMainConfig.o frm/frmMaintenance.o frm/frmOptions.o frm/frmPassword.o
frm/frmPgpassConfig.ofrm/frmQuery.o frm/frmReport.o frm/frmRestore.o frm/frmSplash.o frm/frmStatus.o
frm/plugins.o   ogl/basic.oogl/bmpshape.o ogl/composit.o ogl/divided.o ogl/lines.o ogl/oglmisc.o ogl/basic2.o
ogl/canvas.oogl/constrnt.o ogl/drawn.o ogl/mfutils.o ogl/ogldiag.o pgscript/pgsApplication.o pgscript/lex.pgs.o
pgscript/parser.tab.opgscript/exceptions/pgsArithmeticException.o pgscript/exceptions/pgsAssertException.o
pgscript/exceptions/pgsBreakException.opgscript/exceptions/pgsCastException.o
pgscript/exceptions/pgsContinueException.opgscript/exceptions/pgsException.o
pgscript/exceptions/pgsInterruptException.opgscript/exceptions/pgsParameterException.o pgscript/expressions/pgsAnd.o
pgscript/expressions/pgsAssign.opgscript/expressions/pgsAssignToRecord.o pgscript/expressions/pgsCast.o
pgscript/expressions/pgsColumns.opgscript/expressions/pgsDifferent.o pgscript/expressions/pgsEqual.o
pgscript/expressions/pgsExecute.opgscript/expressions/pgsExpression.o pgscript/expressions/pgsGenDate.o
pgscript/expressions/pgsGenDateTime.opgscript/expressions/pgsGenDictionary.o pgscript/expressions/pgsGenInt.o
pgscript/expressions/pgsGenReal.opgscript/expressions/pgsGenReference.o pgscript/expressions/pgsGenRegex.o
pgscript/expressions/pgsGenString.opgscript/expressions/pgsGenTime.o pgscript/expressions/pgsGreater.o
pgscript/expressions/pgsGreaterEqual.opgscript/expressions/pgsIdent.o pgscript/expressions/pgsIdentRecord.o
pgscript/expressions/pgsLines.opgscript/expressions/pgsLower.o pgscript/expressions/pgsLowerEqual.o
pgscript/expressions/pgsMinus.opgscript/expressions/pgsModulo.o pgscript/expressions/pgsNegate.o
pgscript/expressions/pgsNot.opgscript/expressions/pgsOperation.o pgscript/expressions/pgsOr.o
pgscript/expressions/pgsOver.opgscript/expressions/pgsParenthesis.o pgscript/expressions/pgsPlus.o
pgscript/expressions/pgsRemoveLine.opgscript/expressions/pgsTimes.o pgscript/expressions/pgsTrim.o
pgscript/generators/pgsDateGen.opgscript/generators/pgsDateTimeGen.o pgscript/generators/pgsDictionaryGen.o
pgscript/generators/pgsIntegerGen.opgscript/generators/pgsNumberGen.o pgscript/generators/pgsObjectGen.o
pgscript/generators/pgsRealGen.opgscript/generators/pgsReferenceGen.o pgscript/generators/pgsRegexGen.o
pgscript/generators/pgsStringGen.opgscript/generators/pgsTimeGen.o pgscript/objects/pgsGenerator.o
pgscript/objects/pgsNumber.opgscript/objects/pgsRecord.o pgscript/objects/pgsString.o pgscript/objects/pgsVariable.o
pgscript/statements/pgsAssertStmt.opgscript/statements/pgsBreakStmt.o pgscript/statements/pgsContinueStmt.o
pgscript/statements/pgsDeclareRecordStmt.opgscript/statements/pgsExpressionStmt.o pgscript/statements/pgsIfStmt.o
pgscript/statements/pgsPrintStmt.opgscript/statements/pgsProgram.o pgscript/statements/pgsStmt.o
pgscript/statements/pgsStmtList.opgscript/statements/pgsWhileStmt.o pgscript/utilities/pgsAlloc.o
pgscript/utilities/pgsContext.opgscript/utilities/pgsDriver.o pgscript/utilities/pgsMapm.o
pgscript/utilities/pgsThread.opgscript/utilities/pgsUtilities.o pgscript/utilities/m_apm/mapm5sin.o
pgscript/utilities/m_apm/mapmasin.opgscript/utilities/m_apm/mapmasn0.o pgscript/utilities/m_apm/mapmcbrt.o
pgscript/utilities/m_apm/mapmcnst.opgscript/utilities/m_apm/mapmfact.o pgscript/utilities/m_apm/mapmfmul.o
pgscript/utilities/m_apm/mapmgues.opgscript/utilities/m_apm/mapmhasn.o pgscript/utilities/m_apm/mapmhsin.o
pgscript/utilities/m_apm/mapmipwr.opgscript/utilities/m_apm/mapmistr.o pgscript/utilities/m_apm/mapmpwr2.o
pgscript/utilities/m_apm/mapmrsin.opgscript/utilities/m_apm/mapmsqrt.o pgscript/utilities/m_apm/mapmstck.o
pgscript/utilities/m_apm/mapmutil.opgscript/utilities/m_apm/mapmutl1.o pgscript/utilities/m_apm/mapmutl2.o
pgscript/utilities/m_apm/mapm_add.opgscript/utilities/m_apm/mapm_cpi.o pgscript/utilities/m_apm/mapm_div.o
pgscript/utilities/m_apm/mapm_exp.opgscript/utilities/m_apm/mapm_fam.o pgscript/utilities/m_apm/mapm_fft.o
pgscript/utilities/m_apm/mapm_flr.opgscript/utilities/m_apm/mapm_fpf.o pgscript/utilities/m_apm/mapm_gcd.o
pgscript/utilities/m_apm/mapm_lg2.opgscript/utilities/m_apm/mapm_lg3.o pgscript/utilities/m_apm/mapm_lg4.o
pgscript/utilities/m_apm/mapm_log.opgscript/utilities/m_apm/mapm_mul.o pgscript/utilities/m_apm/mapm_pow.o
pgscript/utilities/m_apm/mapm_rcp.opgscript/utilities/m_apm/mapm_rnd.o pgscript/utilities/m_apm/mapm_set.o
pgscript/utilities/m_apm/mapm_sin.oschema/edbPackage.o schema/edbPackageFunction.o schema/edbPackageVariable.o
schema/edbSynonym.oschema/edbPrivateSynonym.o schema/pgAggregate.o schema/pgCast.o schema/pgCatalogObject.o
schema/pgCheck.oschema/pgCollation.o schema/pgCollection.o schema/pgColumn.o schema/pgConstraints.o
schema/pgConversion.oschema/pgDatabase.o schema/pgDatatype.o schema/pgDomain.o schema/pgEventTrigger.o
schema/pgExtension.oschema/pgForeignDataWrapper.o schema/pgForeignKey.o schema/pgForeignServer.o
schema/pgForeignTable.oschema/pgFunction.o schema/pgGroup.o schema/pgIndex.o schema/pgIndexConstraint.o
schema/pgLanguage.oschema/pgObject.o schema/pgOperator.o schema/pgOperatorClass.o schema/pgOperatorFamily.o
schema/pgRole.oschema/pgRule.o schema/pgSchema.o schema/pgSequence.o schema/pgServer.o schema/pgTable.o
schema/pgTablespace.oschema/pgTextSearchConfiguration.o schema/pgTextSearchDictionary.o schema/pgTextSearchParser.o
schema/pgTextSearchTemplate.oschema/pgTrigger.o schema/pgType.o schema/pgUser.o schema/pgUserMapping.o schema/pgView.o
schema/gpExtTable.oschema/gpResQueue.o schema/gpPartition.o schema/edbResourceGroup.o slony/dlgRepCluster.o
slony/dlgRepListen.oslony/dlgRepNode.o slony/dlgRepPath.o slony/dlgRepProperty.o slony/dlgRepSequence.o
slony/dlgRepSet.oslony/dlgRepSubscription.o slony/dlgRepTable.o slony/slCluster.o slony/slListen.o slony/slNode.o
slony/slPath.oslony/slSequence.o slony/slSet.o slony/slSubscription.o slony/slTable.o gqb/gqbArrayCollection.o
gqb/gqbBrowser.ogqb/gqbCollection.o gqb/gqbColumn.o gqb/gqbController.o gqb/gqbDatabase.o gqb/gqbGraphSimple.o
gqb/gqbGridOrderTable.ogqb/gqbGridProjTable.o gqb/gqbGridRestTable.o gqb/gqbGridJoinTable.o gqb/gqbModel.o
gqb/gqbObject.ogqb/gqbObjectCollection.o gqb/gqbQueryObjs.o gqb/gqbSchema.o gqb/gqbTable.o gqb/gqbViewPanels.o
gqb/gqbView.ohotdraw/connectors/hdChopBoxConnector.o hotdraw/connectors/hdIConnector.o
hotdraw/connectors/hdLocatorConnector.ohotdraw/connectors/hdStickyRectangleConnector.o
hotdraw/figures/hdAbstractFigure.ohotdraw/figures/hdAbstractMenuFigure.o hotdraw/figures/hdAttribute.o
hotdraw/figures/hdAttributeFigure.ohotdraw/figures/hdBitmapFigure.o hotdraw/figures/hdCompositeFigure.o
hotdraw/figures/hdIConnectionFigure.ohotdraw/figures/hdIFigure.o hotdraw/figures/hdLineConnection.o
hotdraw/figures/hdLineTerminal.ohotdraw/figures/hdPolyLineFigure.o hotdraw/figures/hdRectangleFigure.o
hotdraw/figures/hdSimpleTextFigure.ohotdraw/figures/defaultAttributes/hdFillAttribute.o
hotdraw/figures/defaultAttributes/hdFontAttribute.ohotdraw/figures/defaultAttributes/hdFontColorAttribute.o
hotdraw/figures/defaultAttributes/hdLineAttribute.ohotdraw/figures/xml/hdStorage.o hotdraw/handles/hdButtonHandle.o
hotdraw/handles/hdChangeConnectionEndHandle.ohotdraw/handles/hdChangeConnectionHandle.o
hotdraw/handles/hdChangeConnectionStartHandle.ohotdraw/handles/hdIHandle.o hotdraw/handles/hdLineConnectionHandle.o
hotdraw/handles/hdLocatorHandle.ohotdraw/handles/hdPolyLineHandle.o hotdraw/locators/hdILocator.o
hotdraw/locators/hdPolyLineLocator.ohotdraw/main/hdDrawing.o hotdraw/main/hdDrawingEditor.o
hotdraw/main/hdDrawingView.ohotdraw/tools/hdAbstractTool.o hotdraw/tools/hdCanvasMenuTool.o
hotdraw/tools/hdCompositeFigureTool.ohotdraw/tools/hdConnectionCreationTool.o hotdraw/tools/hdCreationTool.o
hotdraw/tools/hdDragCreationTool.ohotdraw/tools/hdDragTrackerTool.o hotdraw/tools/hdFigureTool.o
hotdraw/tools/hdHandleTrackerTool.ohotdraw/tools/hdITool.o hotdraw/tools/hdMenuTool.o
hotdraw/tools/hdPolyLineFigureTool.ohotdraw/tools/hdSelectAreaTool.o hotdraw/tools/hdSelectionTool.o
hotdraw/tools/hdSimpleTextTool.ohotdraw/utilities/hdArrayCollection.o hotdraw/utilities/hdCollection.o
hotdraw/utilities/hdGeometry.ohotdraw/utilities/hdKeyEvent.o hotdraw/utilities/hdMouseEvent.o
hotdraw/utilities/hdMultiPosRect.ohotdraw/utilities/hdPoint.o hotdraw/utilities/hdRect.o
hotdraw/utilities/hdRemoveDeleteDialog.oui/xrcDialogs.o utils/csvfiles.o utils/factory.o utils/favourites.o
utils/misc.outils/pgconfig.o utils/registry.o utils/sysLogger.o utils/sysProcess.o utils/sysSettings.o
utils/tabcomplete.outils/utffile.o utils/macros.o utils/sshTunnel.o libssh2/agent.o libssh2/channel.o libssh2/comp.o
libssh2/crypt.olibssh2/global.o libssh2/hostkey.o libssh2/keepalive.o libssh2/kex.o libssh2/knownhost.o
libssh2/libgcrypt.olibssh2/mac.o libssh2/misc.o libssh2/openssl.o libssh2/packet.o libssh2/pem.o libssh2/publickey.o
libssh2/scp.olibssh2/session.o libssh2/sftp.o libssh2/transport.o libssh2/userauth.o libssh2/version.o -pthread
-Wl,-z,relro-specs=/usr/lib/rpm/redhat/redhat-hardened-ld  -lwx_gtk2u_stc-2.8 -lwx_gtk2u_richtext-2.8
-lwx_gtk2u_aui-2.8-lwx_gtk2u_xrc-2.8 -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8
-lwx_baseu_xml-2.8-lwx_baseu_net-2.8 -lwx_baseu-2.8  -lxml2 -lz -lm -ldl -L/usr/lib64 -lxslt -lxml2 -lz -ldl -lm
-lwx_gtk2u_core-2.8-L/usr/pgsql-9.5/lib -lpq -lssl -lcrypto -lz 
/usr/bin/ld: pgAdmin3.o: relocation R_X86_64_32 against `_ZN10frmDlgTest13sm_eventTableE' can not be used when making a
sharedobject; recompile with -fPIC 
pgAdmin3.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:4992: recipe for target 'pgadmin3' failed
make[4]: *** [pgadmin3] Error 1
make[4]: Leaving directory
'/home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/9.5/pgadmin3/F-23/pgadmin3-1.20.0/pgadmin'
Makefile:3553: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory
'/home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/9.5/pgadmin3/F-23/pgadmin3-1.20.0/pgadmin'
Makefile:584: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
'/home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/9.5/pgadmin3/F-23/pgadmin3-1.20.0'
Makefile:468: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory
'/home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/9.5/pgadmin3/F-23/pgadmin3-1.20.0'
error: Bad exit status from /var/tmp/rpm-tmp.HyQHMQ (%build)

 
--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR



Attachment

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: patch: pretty size for temp files
Next
From: Timon
Date:
Subject: Re: 1.20.0 build error on Fedora 23