Subject: Re: pkg/25855: devel/SDL does not build with gcc 3.4.0
To: None <tech-pkg@netbsd.org>
From: Antoine Reilles <reilles@loria.fr>
List: tech-pkg
Date: 06/25/2004 14:46:29
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
> ===================================================================
> RCS file: /cvsroot/pkgsrc/devel/SDL/Makefile.common,v
> retrieving revision 1.14
> diff -r1.14 Makefile.common
> 37c37
> <
> - ---
>> CONFIGURE_ARGS+=      --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