Makfile: [ GCC编译选项 ] >CFLAGS参数 -c -o

-c              用于把源码文件编译成 .o 对象文件,不进行链接过程

-o              用于连接生成可执行文件,在其后可以指定输出文件的名称

CFLAGS=-I/usr/include         #        不用双引号 "-I/usr/include"

gcc $(FLAGS) -c test.c                           # -c一定要加, 表示进行编译, 默认生成test.o

gcc $(FLAGS) -c test.c -o test.o                # 这样也一样

test.o: test.c

        gcc $(FLAGS) -c $^ -o $@                # 也是可以的

生成test.o

server.c // server.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <arpa/inet.h> #include <pthread.h> #define MAX_CLIENTS 5 #define BUFFER_SIZE 1024 typedef struct dict_entry { char word[64]; char meaning[256]; struct dict_entry *next; } DictEntry; DictEntry *dictionary = NULL; void load_dictionary(const char *filename) { FILE *fp = fopen(filename, "r"); if (!fp) { perror("无法打开词典文件"); exit(EXIT_FAILURE); } char line[BUFFER_SIZE]; while (fgets(line, sizeof(line), fp)) { // 去除换行符 line[strcspn(line, "\n")] = '\0'; char *word = strtok(line, " \t"); // 支持 tab 分隔 char *meaning = strtok(NULL, "\0"); // 剩余部分作为释义 if (word && meaning) { DictEntry *entry = (DictEntry *)malloc(sizeof(DictEntry)); if (!entry) { fprintf(stderr, "内存分配失败\n"); fclose(fp); exit(EXIT_FAILURE); } strncpy(entry->word, word, sizeof(entry->word) - 1); entry->word[sizeof(entry->word) - 1] = '\0'; strncpy(entry->meaning, meaning, sizeof(entry->meaning) - 1); entry->meaning[sizeof(entry->meaning) - 1] = '\0'; entry->next = dictionary; dictionary = entry; } } fclose(fp); printf("词典加载完成\n"); } // 查找单词 const char *lookup_word(const char *word) { DictEntry *current = dictionary; while (current) { if (strcmp(current->word, word) == 0) { return current->meaning; } current = current->next; } return "Not found"; } // 处理客户端请求 void *handle_client(void *arg) { int client_socket = *((int *)arg); char buffer[BUFFER_SIZE]; int bytes_read; while ((bytes_read = recv(client_socket, buffer, sizeof(buffer) - 1, 0)) > 0) { buffer[bytes_read] = '\0'; char *command = strtok(buffer, " "); if (strcmp(command, "REGISTER") == 0) { char *username = strtok(NULL, " "); char *password = strtok(NULL, "\n"); printf("注册: 用户名=%s 密码=%s\n", username, password); send(client_socket, "注册成功", strlen("注册成功"), 0); } else if (strcmp(command, "LOGIN") == 0) { char *username = strtok(NULL, " "); char *password = strtok(NULL, "\n"); printf("登录: 用户名=%s 密码=%s\n", username, password); send(client_socket, "登录成功", strlen("登录成功"), 0); } else if (strcmp(command, "QUERY") == 0) { char *word = strtok(NULL, "\n"); const char *response = lookup_word(word); send(client_socket, response, strlen(response), 0); } } close(client_socket); pthread_exit(NULL); } int main() { load_dictionary("dict.txt"); // <<< 关键:加载词典文件 int server_socket, client_socket; struct sockaddr_in server_addr, client_addr; socklen_t client_len = sizeof(client_addr); server_socket = socket(AF_INET, SOCK_STREAM, 0); if (server_socket < 0) { perror("socket 创建失败"); exit(EXIT_FAILURE); } server_addr.sin_family = AF_INET; server_addr.sin_addr.s_addr = INADDR_ANY; server_addr.sin_port = htons(8080); if (bind(server_socket, (struct sockaddr *)&server_addr, sizeof(server_addr)) < 0) { perror("bind 失败"); close(server_socket); exit(EXIT_FAILURE); } listen(server_socket, MAX_CLIENTS); printf("服务器启动,等待连接...\n"); while (1) { client_socket = accept(server_socket, (struct sockaddr *)&client_addr, &client_len); if (client_socket < 0) { perror("accept 失败"); continue; } pthread_t thread; pthread_create(&thread, NULL, handle_client, &client_socket); pthread_detach(thread); } close(server_socket); return 0; } client.c // client.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <arpa/inet.h> #define BUFFER_SIZE 1024 int main() { int sock; struct sockaddr_in server_addr; char buffer[BUFFER_SIZE]; sock = socket(AF_INET, SOCK_STREAM, 0); if (sock < 0) { perror("Socket 创建失败"); exit(EXIT_FAILURE); } server_addr.sin_family = AF_INET; server_addr.sin_port = htons(8080); inet_pton(AF_INET, "127.0.0.1", &server_addr.sin_addr); if (connect(sock, (struct sockaddr *)&server_addr, sizeof(server_addr)) < 0) { perror("连接失败"); close(sock); exit(EXIT_FAILURE); } int is_logged_in = 0; while (1) { printf("请选择操作 (%s): ", is_logged_in ? "3.查询 4.退出" : "1.注册 2.登录 4.退出"); int choice; scanf("%d", &choice); getchar(); // 清除换行符 if (!is_logged_in && choice == 1) { char username[64], password[64]; printf("请输入用户名: "); fgets(username, sizeof(username), stdin); username[strcspn(username, "\n")] = '\0'; printf("请输入密码: "); fgets(password, sizeof(password), stdin); password[strcspn(password, "\n")] = '\0'; char request[BUFFER_SIZE]; snprintf(request, sizeof(request), "REGISTER %s %s", username, password); send(sock, request, strlen(request), 0); int bytes_read = recv(sock, buffer, sizeof(buffer) - 1, 0); if (bytes_read > 0) { buffer[bytes_read] = '\0'; printf("响应: %s\n", buffer); } } else if (!is_logged_in && choice == 2) { char username[64], password[64]; printf("请输入用户名: "); fgets(username, sizeof(username), stdin); username[strcspn(username, "\n")] = '\0'; printf("请输入密码: "); fgets(password, sizeof(password), stdin); password[strcspn(password, "\n")] = '\0'; char request[BUFFER_SIZE]; snprintf(request, sizeof(request), "LOGIN %s %s", username, password); send(sock, request, strlen(request), 0); int bytes_read = recv(sock, buffer, sizeof(buffer) - 1, 0); if (bytes_read > 0) { buffer[bytes_read] = '\0'; printf("响应: %s\n", buffer); is_logged_in = 1; } } else if (is_logged_in && choice == 3) { char word[64]; printf("请输入要查询的单词: "); fgets(word, sizeof(word), stdin); word[strcspn(word, "\n")] = '\0'; char request[BUFFER_SIZE]; snprintf(request, sizeof(request), "QUERY %s", word); send(sock, request, strlen(request), 0); int bytes_read = recv(sock, buffer, sizeof(buffer) - 1, 0); if (bytes_read > 0) { buffer[bytes_read] = '\0'; printf("释义: %s\n", buffer); } } else if (choice == 4) { printf("退出\n"); break; } else { printf("无效选项\n"); } } close(sock); return 0; } Makfile CC = gcc CFLAGS = -Wall -Wextra -g -pthread # -pthread 支持线程 SRC = main.c OBJ = $(SRC:.c=.o) BIN = dictionary_server all: $(BIN) $(BIN): $(OBJ) $(CC) $(CFLAGS) $(OBJ) -o $@ clean: rm -f $(OBJ) $(BIN) run: $(BIN) ./$(BIN) install: cp $(BIN) /usr/local/bin/ 检查一下
08-21
下载完后samba软件包怎么编译 openssl support zlib make[1]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt' make[2]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt' make[2]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt' make[2]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/ibase/lua' WARNING: skipping lua-examples -- package not selected make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/ibase/lua' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/package/gettext' WARNING: skipping libintl -- package not selected make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/package/gettext' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/package/libiconv' WARNING: skipping libiconv -- package not selected make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/package/libiconv' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/package/libtool' WARNING: skipping libltdl -- package not selected make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/package/libtool' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/packages/opensource/libjson-c' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/packages/opensource/libjson-c' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/ibase/libubox' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/ibase/libubox' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/ibase/ubus' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/ibase/ubus' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/packages/private/usb_sync' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/packages/private/usb_sync' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/package/ncurses' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/package/ncurses' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/package/ncurses' WARNING: skipping libncurses-dev -- package not selected make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/package/ncurses' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/package/ncurses' WARNING: skipping libncurses-dev -- package not selected make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/package/ncurses' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/packages/opensource/util-linux' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/packages/opensource/util-linux' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/package/libreadline' WARNING: skipping libreadline -- package not selected make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/package/libreadline' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/packages/opensource/samba' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/packages/opensource/samba' make[2]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt' make[1]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt' zhihonghe@14b254839176:/data/red-round3/red-round3/Iplatform/build$ make PRODUCT_NAME=be220v1 iplatform_package/samba/clean V=s openssl support zlib make[1]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt' make[2]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt' make[2]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt' make[2]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/packages/opensource/samba' rm -f /data/red-round3/red-round3/Iplatform/openwrt/staging_dir/target-arm-openwrt-linux-uclibc-be220v1/stamp/.samba_installed rm -f /data/red-round3/red-round3/Iplatform/openwrt/bin/model_brcm_bcm490x-be220v1/packages/samba36-libs_* rm -f /data/red-round3/red-round3/Iplatform/openwrt/bin/model_brcm_bcm490x-be220v1/packages/samba36-server_* rm -f /data/red-round3/red-round3/Iplatform/openwrt/bin/model_brcm_bcm490x-be220v1/packages/samba36-client_* rm -f /data/red-round3/red-round3/Iplatform/openwrt/staging_dir/target-arm-openwrt-linux-uclibc-be220v1/packages/samba.list /data/red-round3/red-round3/Iplatform/openwrt/staging_dir/host/packages/samba.list rm -rf /data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25 make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/packages/opensource/samba' make[2]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt' make[1]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt' zhihonghe@14b254839176:/data/red-round3/red-round3/Iplatform/build$ make PRODUCT_NAME=be220v1 iplatform_package/samba/compile V=s openssl support zlib make[1]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt' make[2]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt' make[2]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt' make[2]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/ibase/lua' WARNING: skipping lua-examples -- package not selected make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/ibase/lua' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/package/gettext' WARNING: skipping libintl -- package not selected make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/package/gettext' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/package/libiconv' WARNING: skipping libiconv -- package not selected make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/package/libiconv' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/package/libtool' WARNING: skipping libltdl -- package not selected make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/package/libtool' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/packages/opensource/libjson-c' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/packages/opensource/libjson-c' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/ibase/libubox' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/ibase/libubox' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/ibase/ubus' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/ibase/ubus' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/packages/private/usb_sync' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/packages/private/usb_sync' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/package/ncurses' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/package/ncurses' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/package/ncurses' WARNING: skipping libncurses-dev -- package not selected make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/package/ncurses' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/package/ncurses' WARNING: skipping libncurses-dev -- package not selected make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/package/ncurses' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/packages/opensource/util-linux' make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/packages/opensource/util-linux' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/package/libreadline' WARNING: skipping libreadline -- package not selected make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/package/libreadline' make[3]: Entering directory '/data/red-round3/red-round3/Iplatform/packages/opensource/samba' mkdir -p /data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25 cp -fpR ./src/* /data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25 touch /data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25/.prepared_b01c3156afc1b74183de4ac69cbb7e54 (cd /data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25/source3/; if [ -x ./configure ]; then /usr/bin/find /data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25/ -name config.guess | xargs -r chmod u+w; /usr/bin/find /data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25/ -name config.guess | xargs -r -n1 cp /data/red-round3/red-round3/Iplatform/openwrt/scripts/config.guess; /usr/bin/find /data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25/ -name config.sub | xargs -r chmod u+w; /usr/bin/find /data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25/ -name config.sub | xargs -r -n1 cp /data/red-round3/red-round3/Iplatform/openwrt/scripts/config.sub; AR=arm-buildroot-linux-gnueabi-ar AS="arm-buildroot-linux-gnueabi-gcc -c -DMAX_DEBUG_LEVEL=-1 -D__location__=\\\"\\\" -ffunction-sections -fdata-sections" LD=arm-buildroot-linux-gnueabi-ld NM=arm-buildroot-linux-gnueabi-nm CC="arm-buildroot-linux-gnueabi-gcc" GCC="arm-buildroot-linux-gnueabi-gcc" CXX="arm-buildroot-linux-gnueabi-g++" RANLIB=arm-buildroot-linux-gnueabi-ranlib STRIP=arm-buildroot-linux-gnueabi-strip OBJCOPY=arm-buildroot-linux-gnueabi-objcopy OBJDUMP=arm-buildroot-linux-gnueabi-objdump SIZE=arm-buildroot-linux-gnueabi-size CFLAGS=" -DMAX_DEBUG_LEVEL=-1 -D__location__=\\\"\\\" -ffunction-sections -fdata-sections " CXXFLAGS=" -DMAX_DEBUG_LEVEL=-1 -D__location__=\\\"\\\" -ffunction-sections -fdata-sections " CPPFLAGS="-I/data/red-round3/red-round3/Iplatform/openwrt/staging_dir/target-arm-openwrt-linux-uclibc-be220v1/usr/include -I/data/red-round3/red-round3/Iplatform/openwrt/staging_dir/target-arm-openwrt-linux-uclibc-be220v1/include -I/data/red-round3/red-round3/Iplatform/openwrt/staging_dir/usr-be220v1/include -I/data/red-round3/red-round3/Iplatform/openwrt/../../bcm504L04/toolchain/opt/toolchains/crosstools-arm_softfp-gcc-10.3-linux-4.19-glibc-2.32-binutils-2.36.1/usr/include " LDFLAGS="-L/data/red-round3/red-round3/Iplatform/openwrt/staging_dir/target-arm-openwrt-linux-uclibc-be220v1/usr/lib -L/data/red-round3/red-round3/Iplatform/openwrt/staging_dir/target-arm-openwrt-linux-uclibc-be220v1/lib -Wl,-rpath-link,/data/red-round3/red-round3/Iplatform/openwrt/staging_dir/target-arm-openwrt-linux-uclibc-be220v1/usr/lib -L/data/red-round3/red-round3/Iplatform/openwrt/../../bcm504L04/toolchain/opt/toolchains/crosstools-arm_softfp-gcc-10.3-linux-4.19-glibc-2.32-binutils-2.36.1/usr/lib -L/data/red-round3/red-round3/Iplatform/openwrt/../../bcm504L04/toolchain/opt/toolchains/crosstools-arm_softfp-gcc-10.3-linux-4.19-glibc-2.32-binutils-2.36.1/lib -Wl,--gc-sections -lubox -lubus -lifaddrs " ac_cv_lib_attr_getxattr=no ac_cv_search_getxattr=no ac_cv_file__proc_sys_kernel_core_pattern=yes libreplace_cv_HAVE_C99_VSNPRINTF=yes libreplace_cv_HAVE_IFACE_IFCONF=yes libreplace_cv_HAVE_GETADDRINFO=yes LINUX_LFS_SUPPORT=yes samba_cv_CC_NEGATIVE_ENUM_VALUES=yes samba_cv_HAVE_GETTIMEOFDAY_TZ=yes samba_cv_HAVE_IFACE_IFCONF=yes samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes samba_cv_HAVE_SECURE_MKSTEMP=yes samba_cv_HAVE_WRFILE_KEYTAB=no samba_cv_USE_SETREUID=yes samba_cv_USE_SETRESUID=yes samba_cv_have_setreuid=yes samba_cv_have_setresuid=yes ac_cv_header_zlib_h=no samba_cv_zlib_1_2_3=no ./configure --target=arm-openwrt-linux-uclibc --host=arm-openwrt-linux-uclibc --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --exec-prefix=/usr --prefix=/ --disable-avahi --disable-cups --disable-pie --disable-relro --disable-static --disable-swat --enable-shared-libs --with-codepagedir=/etc/samba --with-configdir=/etc/samba --with-included-iniparser --with-included-popt --with-lockdir=/var/lock --with-logfilebase=/var/log --with-nmbdsocketdir=/var/nmbd --with-piddir=/var/run --with-privatedir=/etc/samba --with-sendfile-support --without-acl-support --without-cluster-support --without-ads --without-krb5 --without-ldap --without-pam --without-winbind --without-libtdb --without-libtalloc --without-libnetapi --without-libsmbsharemodes --without-libtevent --without-libaddns --with-shared-modules=pdb_tdbsam,pdb_wbc_sam,idmap_nss,nss_info_template,auth_winbind,auth_wbc,auth_domain ; fi; ) rm -f /data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25/.configured_* touch /data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25/.configured_ CFLAGS=" -DMAX_DEBUG_LEVEL=-1 -D__location__=\\\"\\\" -ffunction-sections -fdata-sections -I/data/red-round3/red-round3/Iplatform/openwrt/staging_dir/target-arm-openwrt-linux-uclibc-be220v1/usr/include -I/data/red-round3/red-round3/Iplatform/openwrt/staging_dir/target-arm-openwrt-linux-uclibc-be220v1/include -I/data/red-round3/red-round3/Iplatform/openwrt/staging_dir/usr-be220v1/include -I/data/red-round3/red-round3/Iplatform/openwrt/../../bcm504L04/toolchain/opt/toolchains/crosstools-arm_softfp-gcc-10.3-linux-4.19-glibc-2.32-binutils-2.36.1/usr/include " CXXFLAGS=" -DMAX_DEBUG_LEVEL=-1 -D__location__=\\\"\\\" -ffunction-sections -fdata-sections -I/data/red-round3/red-round3/Iplatform/openwrt/staging_dir/target-arm-openwrt-linux-uclibc-be220v1/usr/include -I/data/red-round3/red-round3/Iplatform/openwrt/staging_dir/target-arm-openwrt-linux-uclibc-be220v1/include -I/data/red-round3/red-round3/Iplatform/openwrt/staging_dir/usr-be220v1/include -I/data/red-round3/red-round3/Iplatform/openwrt/../../bcm504L04/toolchain/opt/toolchains/crosstools-arm_softfp-gcc-10.3-linux-4.19-glibc-2.32-binutils-2.36.1/usr/include " LDFLAGS="-L/data/red-round3/red-round3/Iplatform/openwrt/staging_dir/target-arm-openwrt-linux-uclibc-be220v1/usr/lib -L/data/red-round3/red-round3/Iplatform/openwrt/staging_dir/target-arm-openwrt-linux-uclibc-be220v1/lib -Wl,-rpath-link,/data/red-round3/red-round3/Iplatform/openwrt/staging_dir/target-arm-openwrt-linux-uclibc-be220v1/usr/lib -L/data/red-round3/red-round3/Iplatform/openwrt/../../bcm504L04/toolchain/opt/toolchains/crosstools-arm_softfp-gcc-10.3-linux-4.19-glibc-2.32-binutils-2.36.1/usr/lib -L/data/red-round3/red-round3/Iplatform/openwrt/../../bcm504L04/toolchain/opt/toolchains/crosstools-arm_softfp-gcc-10.3-linux-4.19-glibc-2.32-binutils-2.36.1/lib -Wl,--gc-sections -lubox -lubus -lifaddrs " make -j1 -C /data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25/source3 AR=arm-buildroot-linux-gnueabi-ar AS="arm-buildroot-linux-gnueabi-gcc -c -DMAX_DEBUG_LEVEL=-1 -D__location__=\\\"\\\" -ffunction-sections -fdata-sections" LD=arm-buildroot-linux-gnueabi-ld NM=arm-buildroot-linux-gnueabi-nm CC="arm-buildroot-linux-gnueabi-gcc" GCC="arm-buildroot-linux-gnueabi-gcc" CXX="arm-buildroot-linux-gnueabi-g++" RANLIB=arm-buildroot-linux-gnueabi-ranlib STRIP=arm-buildroot-linux-gnueabi-strip OBJCOPY=arm-buildroot-linux-gnueabi-objcopy OBJDUMP=arm-buildroot-linux-gnueabi-objdump SIZE=arm-buildroot-linux-gnueabi-size CROSS="arm-buildroot-linux-gnueabi-" ARCH="arm" DYNEXP= PICFLAG= MODULES= ; make[4]: Entering directory '/data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25/source3' make[4]: *** No targets specified and no makefile found. Stop. make[4]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25/source3' Makefile:221: recipe for target '/data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25/.built' failed make[3]: *** [/data/red-round3/red-round3/Iplatform/openwrt/build_dir/target-arm-openwrt-linux-uclibc-be220v1/samba-3.6.25/.built] Error 2 make[3]: Leaving directory '/data/red-round3/red-round3/Iplatform/packages/opensource/samba' package/Makefile:133: recipe for target 'package/feeds/iplatform/samba/compile' failed make[2]: *** [package/feeds/iplatform/samba/compile] Error 2 make[2]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt' /data/red-round3/red-round3/Iplatform/openwrt/include/toplevel.mk:184: recipe for target 'package/samba/compile' failed make[1]: *** [package/samba/compile] Error 2 make[1]: Leaving directory '/data/red-round3/red-round3/Iplatform/openwrt' Makefile:234: recipe for target 'iplatform_package/samba/compile' failed make: *** [iplatform_package/samba/compile] Error 2
最新发布
11-02
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值