Subject: Re: pkg/25855: devel/SDL does not build with gcc 3.4.0
To: Antoine Reilles <reilles@loria.fr>
From: John R. Shannon <john@johnrshannon.com>
List: tech-pkg
Date: 06/25/2004 07:01:12
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I saw the patch for src/video/SDL_stretch.c in the CVS tree:
Revision 1.9 / (download) - annotate - [selected], Sun May 16 21:08:55 2004=
=20
UTC (5 weeks, 4 days ago) by slouken=20
CVS Tags: HEAD=20
Changes since 1.8: +33 -1 lines
Diff to previous 1.8=20
Don't crash if the stretch routines are used on hardware surfaces
That appear unrelated to your problem.
Your problem looks like this one reported on the SDL Mailing list:
http://twomix.devolution.com/pipermail/sdl/2003-November/057746.html
On Friday 25 June 2004 06:46 am, you wrote:
> On Jun 25, 2004, at 14:06, John R. Shannon wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > A simular problem was report on the SDL mailing list with Cygwin. The
> > workaround suggested there involves configuring with "--disable-nasm".
> >
> > What happens if you build with:
> >
> > # cvs diff Makefile.common
> > Enter passphrase for key '/root/.ssh/id_rsa':
> > Index: Makefile.common
> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> > RCS file: /cvsroot/pkgsrc/devel/SDL/Makefile.common,v
> > retrieving revision 1.14
> > diff -r1.14 Makefile.common
> > 37c37
> > <
> > - ---
> >
> >> CONFIGURE_ARGS+=3D --disable-nasm
>
> I just tried with --disable-nasm, and i get the same error.
> In darwinports (a port system for macosx), they build SDL with
> --enable-shared and only a small patch for __asm__ __volatile__ in
> src/video/SDL_stretch.c
>
> gcc -dynamiclib -o .libs/libSDL.0.7.dylib .libs/SDL.o
> .libs/SDL_error.o .libs/SDL_fatal.o .libs/SDL_getenv.o
> .libs/SDL_loadso.o -all_load main/.libs/libarch.a
> audio/.libs/libaudio.a video/.libs/libvideo.a events/.libs/libevents.a
> joystick/.libs/libjoystick.a cdrom/.libs/libcdrom.a
> thread/.libs/libthread.a timer/.libs/libtimer.a
> endian/.libs/libendian.a file/.libs/libfile.a
> cpuinfo/.libs/libcpuinfo.a
> -L/Volumes/NetBSD/pkgsrc/devel/SDL/work/.buildlink/lib
> -L/Volumes/NetBSD/pkgsrc/devel/SDL/work/.x11-buildlink/lib -lstdc++
> -install_name /Volumes/NetBSD/pkg/lib/libSDL.0.dylib
> -compatibility_version 1 -current_version 1.7
> /usr/bin/libtool: internal link edit command failed
> ld: Undefined symbols:
> _BitAndAtomic
> _DecrementAtomic
> _IncrementAtomic
> _NewSndCallBackUPP
> _SndDisposeChannel
> _SndDoCommand
> _SndNewChannel
> .objc_class_name_NSAutoreleasePool
> .objc_class_name_NSConstantString
> .objc_class_name_NSDate
> .objc_class_name_NSEvent
> _CFRelease
> _CFRunLoopAddSource
> _CFRunLoopGetCurrent
> _CGAssociateMouseAndMouseCursorPosition
> _CGGetLastMouseDelta
> _GetScriptManagerVariable
> _IOAllowPowerChange
> _IONotificationPortGetRunLoopSource
> _IORegisterForSystemPower
> _KeyTranslate
> _NSApp
> _NSDefaultRunLoopMode
> _NSLog
> _UpdateSystemActivity
> __NSConstantStringClassReference
> _kCFRunLoopDefaultMode
> _objc_msgSend
> _objc_msgSend_stret
> .objc_class_name_NSOpenGLContext
> .objc_class_name_NSOpenGLPixelFormat
> _CFBundleCreate
> _CFBundleGetFunctionPointerForName
> _CFStringCreateWithCString
> _CFURLCreateWithFileSystemPath
> _CGDisplayIDToOpenGLDisplayMask
> _CGLSetParameter
> ___CFStringMakeConstantString
> _glGetIntegerv
> _kCFAllocatorDefault
> .objc_class_name_NSQuickDrawView
> .objc_class_name_NSScreen
> .objc_class_name_NSView
> _AddAbsoluteToAbsolute
> _CFArrayGetCount
> _CFArrayGetValueAtIndex
> _CFDictionaryGetValue
> _CFNumberGetValue
> _CGCaptureAllDisplays
> _CGDisplayAvailableModes
> _CGDisplayBaseAddress
> _CGDisplayBeamPosition
> _CGDisplayBestModeForParameters
> _CGDisplayBytesPerRow
> _CGDisplayCanSetPalette
> _CGDisplayCapture
> _CGDisplayCurrentMode
> _CGDisplayRestoreColorSyncSettings
> _CGDisplaySetPalette
> _CGDisplayShowCursor
> _CGDisplaySwitchToMode
> _CGGetDisplayTransferByFormula
> _CGGetDisplayTransferByTable
> _CGLErrorString
> _CGLSetFullScreen
> _CGMainDisplayID
> _CGPaletteCreateDefaultColorPalette
> _CGPaletteRelease
> _CGPaletteSetColorAtIndex
> _CGReleaseAllDisplays
> _CGSetDisplayTransferByFormula
> _CGSetDisplayTransferByTable
> _CopyBits
> _CreateNewPortForCGDisplayID
> _DisposeRgn
> _GetPixBaseAddr
> _GetPixRowBytes
> _GetPort
> _GetPortBitMapForCopyBits
> _GetPortPixMap
> _HideMenuBar
> _LocalToGlobal
> _LockPortBits
> _MPDelayUntil
> _NanosecondsToAbsolute
> _NewRgn
> _QDFlushPortBuffer
> _RectInRgn
> _SetEmptyRgn
> _SetPort
> _SetRect
> _SetRectRgn
> _ShowMenuBar
> _UnionRgn
> _UnlockPortBits
> _UpTime
> _glClear
> .objc_class_name_NSNotificationCenter
> .objc_class_name_NSObject
> .objc_class_name_NSWindow
> _NSApplicationDidHideNotification
> _NSApplicationDidUnhideNotification
> _NSApplicationWillUnhideNotification
> _objc_msgSendSuper
> .objc_class_name_NSBitmapImageRep
> .objc_class_name_NSCursor
> .objc_class_name_NSImage
> .objc_class_name_NSString
> _CGDisplayIsCaptured
> _CGDisplayPixelsHigh
> _CGSetLocalEventsSuppressionInterval
> _CGWarpMouseCursorPosition
> _NSDeviceRGBColorSpace
> _NSPointInRect
> _SetCursor
> _CDSequenceEnd
> _CGShieldingWindowLevel
> _DecompressSequenceBeginS
> _DecompressSequenceFrameS
> _DisposeHandle
> _EnterMovies
> _ExitMovies
> _FindCodec
> _FixDiv
> _HLock
> _HUnlock
> _Long2Fix
> _NewHandleClear
> _ScaleMatrix
> _SetDSequenceMatrix
> _SetIdentityMatrix
> _CFArrayApplyFunction
> _CFArrayGetTypeID
> _CFDictionaryGetTypeID
> _CFGetTypeID
> _CFStringGetCString
> _CFStringGetSystemEncoding
> _CFUUIDGetConstantUUIDWithBytes
> _CFUUIDGetUUIDBytes
> _DisposePtr
> _IOCreatePlugInInterfaceForService
> _IOIteratorNext
> _IOMasterPort
> _IOObjectRelease
> _IORegistryEntryCreateCFProperties
> _IORegistryEntryGetParentEntry
> _IOServiceGetMatchingServices
> _IOServiceMatching
> _NewPtrClear
> _PBHGetVolParmsSync
> _PBUnmountVol
> _AudioConverterDispose
> _AudioConverterFillBuffer
> _AudioConverterNew
> _AudioUnitGetProperty
> _AudioUnitSetProperty
> _FSClose
> _FSGetDataForkName
> _FSOpenFork
> _FSReadFork
> _FSSetForkPosition
> _GetComponentInfo
> _FSGetForkPosition
> _AudioOutputUnitStart
> _AudioOutputUnitStop
> _AudioUnitInitialize
> _CFDataCreate
> _CFPropertyListCreateFromXMLData
> _CFStringCreateWithCharacters
> _CFStringHasSuffix
> _FSCloseFork
> _FSCloseIterator
> _FSGetCatalogInfoBulk
> _FSGetForkSize
> _FSGetVolumeInfo
> _FSOpenIterator
> _FindNextComponent
> _NewPtr
> _OpenAComponent
> _PBMakeFSRefSync
> _kCFBooleanTrue
> gnumake[2]: *** [libSDL.la] Error 1
> gnumake[1]: *** [all-recursive] Error 1
> gnumake: *** [all-recursive] Error 1
> *** Error code 2
>
> Stop.
> bmake: stopped in /usr/pkgsrc/devel/SDL
> *** Error code 1
>
> Stop.
> bmake: stopped in /usr/pkgsrc/devel/SDL
=2D --=20
John R. Shannon
john@johnrshannon.com
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)
iEYEARECAAYFAkDcIhgACgkQOKbCxya4HYtgfgCdGtN8KpJXNGkL1/2rdOI3hzFC
bHgAnAlYhJwt4xE+GRA0v9O2rwfRKYcr
=3Dw/LW
=2D----END PGP SIGNATURE-----