[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#34816: Unresolved _IO_stderr_ when linking statically



Package: libc6-dev
Version: 2.1.1-0.1

I'm attempting to *statically* link a program that makes use of a lot
of other libraries that were compiled with the old libc (libXt.a,
libXm.a, libpng.a, etc., etc.).

I'm finding that all of these libraries contain references to
_IO_stderr_ (as well as some others, but for now I'm trying to deal
with _IO_stderr_).  It seems to be coming from code like
fprintf(stderr, ...) within those libraries.  The new libc.a doesn't
provide _IO_stderr_, but it does provide an _IO_stderr.

Simply re-compiling the affected libs and installing the resulting
.debs fixes the unresolve.  If this is the accepted fix, let me know
and I'll start filing bugs in the individual packages where I find
this is a problem.  

But, if static linking is supposed to be backwards compatible with the
new libc, this is one thing that needs fixing.

Thanks!


(link example below...)

gcc -static  -o ../../gnucash.motif.static obj/motif/AccWindow.o obj/motif/AccountMenu.o obj/motif/AdjBWindow.o obj/motif/BuildMenu.o obj/motif/FileBox.o obj/motif/HelpWindow.o obj/motif/MainWindow.o obj/motif/PriceMenu.o obj/motif/RecnWindow.o obj/motif/RegWindow.o obj/motif/Reports.o obj/motif/TextBox.o obj/motif/XferWindow.o obj/motif/top-level.o obj/motif/xtutil.o ../../lib/Xbae-4.6.2-linas/src/obj/motif/Actions.o ../../lib/Xbae-4.6.2-linas/src/obj/motif/Caption.o ../../lib/Xbae-4.6.2-linas/src/obj/motif/Cell.o ../../lib/Xbae-4.6.2-linas/src/obj/motif/Clip.o ../../lib/Xbae-4.6.2-linas/src/obj/motif/Converters.o ../../lib/Xbae-4.6.2-linas/src/obj/motif/Create.o ../../lib/Xbae-4.6.2-linas/src/obj/motif/Draw.o ../../lib/Xbae-4.6.2-linas/src/obj/motif/Matrix.o ../../lib/Xbae-4.6.2-linas/src/obj/motif/Methods.o ../../lib/Xbae-4.6.2-linas/src/obj/motif/Public.o ../../lib/Xbae-4.6.2-linas/src/obj/motif/ScrollMgr.o ../../lib/Xbae-4.6.2-linas/src/obj/motif/Shadow.o ../../lib/Xbae-4!
.6.2-linas/src/obj/motif/Utils.o ../../lib/ComboBox-1.33/obj/motif/ComboBox.o ../../src/obj/motif/Destroy.o ../../src/obj/motif/FileDialog.o ../../src/obj/motif/MultiLedger.o ../../src/obj/motif/SplitLedger.o ../../src/engine/obj/AccInfo.o ../../src/engine/obj/Account.o ../../src/engine/obj/DateUtils.o ../../src/engine/obj/FileIO.o ../../src/engine/obj/Group.o ../../src/engine/obj/LedgerUtils.o ../../src/engine/obj/QIFIO.o ../../src/engine/obj/Query.o ../../src/engine/obj/Queue.o ../../src/engine/obj/Scrub.o ../../src/engine/obj/Session.o ../../src/engine/obj/TransLog.o ../../src/engine/obj/Transaction.o ../../src/engine/obj/date.o ../../src/engine/obj/util.o ../../src/register/obj/motif/QuickFill.o ../../src/register/obj/motif/basiccell.o ../../src/register/obj/motif/cellblock.o ../../src/register/obj/motif/combocell-motif.o ../../src/register/obj/motif/datecell.o ../../src/register/obj/motif/pricecell.o ../../src/register/obj/motif/quickfillcell.o ../../src/register/obj/mot!
if/recncell.o ../../src/register/obj/motif/splitreg.o ../../src/register/obj/motif/table-allgui.o ../../src/register/obj/motif/table-html.o ../../src/register/obj/motif/table-motif.o ../../src/register/obj/motif/textcell.o ../../src/reports/obj/File.o ../../src/reports/obj/Sheet.o ../../src/guile/obj/gnucash.o ../../src/swig/guile/obj/gnucash-all-guile_wrap.o ../../src/swig/obj/helperfuncs.o -L/usr/local/lib -lSM -lICE -lXmHTML -lXm  -lXpm  -L/usr/X11R6/lib -lXext -lXmu -lXt -lX11 -lguile -lqthreads -lguile -lqthreads -lpng -ljpeg -lz  -lm -lnana
/usr/X11R6/lib/libXt.a(Error.o): In function `DefaultMsg':
Error.o(.text+0x34b): undefined reference to `_IO_stderr_'
Error.o(.text+0x3a2): undefined reference to `_IO_stderr_'
Error.o(.text+0x3b6): undefined reference to `_IO_stderr_'
/usr/X11R6/lib/libXt.a(Error.o): In function `_XtDefaultError':
Error.o(.text+0x81b): undefined reference to `_IO_stderr_'
/usr/X11R6/lib/libXt.a(Error.o): In function `_XtDefaultWarning':
Error.o(.text+0x84b): undefined reference to `_IO_stderr_'
/usr/X11R6/lib/libXt.a(Shell.o): In function `StopManagingSession':
Shell.o(.text+0x2f74): undefined reference to `SmcCloseConnection'
/usr/X11R6/lib/libXt.a(Shell.o): In function `JoinSession':
Shell.o(.text+0x2ff8): undefined reference to `SmcModifyCallbacks'
Shell.o(.text+0x3004): undefined reference to `SmcClientID'
Shell.o(.text+0x3068): undefined reference to `SmcOpenConnection'
Shell.o(.text+0x314c): undefined reference to `SmcGetIceConnection'
Shell.o(.text+0x315a): undefined reference to `IceConnectionNumber'
/usr/X11R6/lib/libXt.a(Shell.o): In function `SetSessionProperties':
Shell.o(.text+0x3544): undefined reference to `SmcSetProperties'
Shell.o(.text+0x35b2): undefined reference to `SmcSetProperties'
Shell.o(.text+0x35fa): undefined reference to `SmcDeleteProperties'
/usr/X11R6/lib/libXt.a(Shell.o): In function `GetIceEvent':
Shell.o(.text+0x3623): undefined reference to `SmcGetIceConnection'
Shell.o(.text+0x362c): undefined reference to `IceProcessMessages'
/usr/X11R6/lib/libXt.a(Shell.o): In function `CallSaveCallbacks':
Shell.o(.text+0x36c5): undefined reference to `SmcSaveYourselfDone'
/usr/X11R6/lib/libXt.a(Shell.o): In function `XtInteractPermission':
Shell.o(.text+0x3820): undefined reference to `SmcInteractDone'
/usr/X11R6/lib/libXt.a(Shell.o): In function `XtCallCancelCallbacks':
Shell.o(.text+0x393e): undefined reference to `SmcSaveYourselfDone'
/usr/X11R6/lib/libXt.a(Shell.o): In function `XtSessionReturnToken':
Shell.o(.text+0x3ba1): undefined reference to `SmcInteractRequest'
Shell.o(.text+0x3c45): undefined reference to `SmcInteractDone'
Shell.o(.text+0x3c92): undefined reference to `SmcRequestSaveYourselfPhase2'
Shell.o(.text+0x3cba): undefined reference to `SmcSaveYourselfDone'
/usr/X11R6/lib/libX11.a(ParseCmd.o): In function `_XReportParseError':
ParseCmd.o(.text+0x17): undefined reference to `_IO_stderr_'
/usr/X11R6/lib/libX11.a(OpenDis.o): In function `XOpenDisplay':
OpenDis.o(.text+0x501): undefined reference to `_IO_stderr_'
OpenDis.o(.text+0x528): undefined reference to `_IO_stderr_'
OpenDis.o(.text+0x5c7): undefined reference to `_IO_stderr_'
OpenDis.o(.text+0x5d1): undefined reference to `_IO_stderr_'
/usr/X11R6/lib/libX11.a(OpenDis.o)(.text+0x5e9): more undefined references to `_IO_stderr_' follow
/usr/bin/../lib/libguile.a(dynl.o): In function `sysdep_dynl_link':
/home/matta/tmp-guile-guild/guile-core-1.3/libguile/dynl-dl.c:61: undefined reference to `dlopen'
/home/matta/tmp-guile-guild/guile-core-1.3/libguile/dynl-dl.c:65: undefined reference to `dlerror'
/usr/bin/../lib/libguile.a(dynl.o): In function `sysdep_dynl_unlink':
/home/matta/tmp-guile-guild/guile-core-1.3/libguile/dynl-dl.c:75: undefined reference to `dlclose'
/home/matta/tmp-guile-guild/guile-core-1.3/libguile/dynl-dl.c:78: undefined reference to `dlerror'
/usr/bin/../lib/libguile.a(dynl.o): In function `sysdep_dynl_func':
/home/matta/tmp-guile-guild/guile-core-1.3/libguile/dynl-dl.c:101: undefined reference to `dlsym'
/home/matta/tmp-guile-guild/guile-core-1.3/libguile/dynl-dl.c:104: undefined reference to `dlerror'
/usr/bin/../lib/libpng.a(pngerror.o): In function `png_default_error':
pngerror.o(.text+0x2e1): undefined reference to `_IO_stderr_'
/usr/bin/../lib/libpng.a(pngerror.o): In function `png_default_warning':
pngerror.o(.text+0x30d): undefined reference to `_IO_stderr_'
/usr/bin/../lib/libpng.a(pngrutil.o): In function `png_handle_gAMA':
pngrutil.o(.text+0x1049): undefined reference to `_IO_stderr_'
/usr/bin/../lib/libpng.a(pngrutil.o): In function `png_handle_cHRM':
pngrutil.o(.text+0x1dba): undefined reference to `_IO_stderr_'
pngrutil.o(.text+0x1df0): undefined reference to `_IO_stderr_'
/usr/bin/../lib/libpng.a(pngrutil.o)(.text+0x21af): more undefined references to `_IO_stderr_' follow
collect2: ld returned 1 exit status
make[3]: *** [../../gnucash.motif.static] Error 1
make[3]: Leaving directory `/home/matta/gnucash/xacc/src/motif'
make[2]: *** [motif.static] Error 2
make[2]: Leaving directory `/home/matta/gnucash/xacc/src'
make[1]: *** [build-flavor] Error 2
make[1]: Leaving directory `/home/matta/gnucash/xacc'
make: *** [motif.static] Error 2

-- 
Matt


Reply to: