Opened 11 years ago

Last modified 11 years ago

#38242 closed defect

py24-mssql: error: redefinition of typedef ‘LPBYTE’ — at Version 2

Reported by: ballen4705 Owned by: ruseel@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: py24-mssql

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Cleaning poppler
--->  py-mssql is replaced by py24-mssql
--->  Computing dependencies for py24-mssql
--->  Building py24-mssql
Error: org.macports.build for port py24-mssql returned: command execution failed
Please see the log file for port py24-mssql for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-mssql/py24-mssql/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Change History (2)

comment:1 Changed 11 years ago by ballen4705

---> Cleaning poppler

--->  py-mssql is replaced by py24-mssql
--->  Computing dependencies for py24-mssql
--->  Building py24-mssql
Error: org.macports.build for port py24-mssql returned: command execution failed
Please see the log file for port py24-mssql for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-mssql/py24-mssql/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets



:notice:build --->  Building py24-mssql
:debug:build Executing proc-pre-org.macports.build-build-0
:debug:build Executing org.macports.build (py24-mssql):debug:build Environment: CPATH='/opt/local/include' CFLAGS='-arch x86_64' CXXFLAGS='-arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-mssql/py24-mssql/work/.CC_PRINT_OPTIONS' F90FLAGS='-m64' LDFLAGS='-arch x86_64' FCFLAGS='-m64' OBJC='/usr/bin/gcc-4.2' OBJCFLAGS='-arch x86_64' FFLAGS='-m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.2'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-mssql/py24-mssql/work/pymssql-1.0.2" && /opt/local/bin/python2.4 setup.py build':debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-mssql/py24-mssql/work/pymssql-1.0.2" && /opt/local/bin/python2.4 setup.py build
:info:build running build
:info:build running build_py
:info:build running build_ext
:info:build building '_mssql' extension
:info:build /usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -I/sw/include -I
/opt/local/include -I/opt/local/include/freetds -I/opt/local/include/python2.4 -c mssqldbmodule.c -o build/temp.macosx-10.6-i386-2.4/mssqldbm
odule.o
:info:build mssqldbmodule.c:88: error: redefinition of typedef ‘LPBYTE’
:info:build /opt/local/include/freetds/sqlfront.h:36: error: previous declaration of ‘LPBYTE’ was here
:info:build error: command '/usr/bin/gcc-4.2' failed with exit status 1

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: py24-mssql removed
Owner: changed from macports-tickets@… to ruseel@…
Summary: upgrade outdated fails for py-mssql is replaced by py24-mssqlpy24-mssql: error: redefinition of typedef ‘LPBYTE’

It builds fine for me. Please clean py24-mssql and try again. Also, are you sure you want py24-mssql? That's for Python 2.4, which is quite old. You might prefer py26-mssql, which is for Python 2.6.

Note: See TracTickets for help on using tickets.